nixos/greetd: make use of package option (#412309)

This commit is contained in:
Martin Weinelt 2025-07-02 10:37:54 +02:00 committed by GitHub
commit c1e61be472
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,7 @@ in
};
serviceConfig = {
ExecStart = "${pkgs.greetd.greetd}/bin/greetd --config ${settingsFormat.generate "greetd.toml" cfg.settings}";
ExecStart = "${lib.getExe cfg.package} --config ${settingsFormat.generate "greetd.toml" cfg.settings}";
Restart = lib.mkIf cfg.restart "on-success";

View File

@ -46,6 +46,7 @@ rustPlatform.buildRustPackage rec {
Comes with agreety, a simple, text-based greeter.
'';
homepage = "https://sr.ht/~kennylevinsen/greetd/";
mainProgram = "greetd";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
platforms = platforms.linux;