nixos/greetd: make use of package option
This commit is contained in:
parent
9efb57e500
commit
eef3a1faa8
@ -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";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user