nixos/greetd: make use of package option

This commit is contained in:
eyjhb 2025-05-30 13:13:09 +02:00
parent 9efb57e500
commit eef3a1faa8
No known key found for this signature in database
GPG Key ID: 609F508E3239F920

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";