mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
idlehook: fix service.restart merge (#6544)
This commit is contained in:
parent
cf3bf4f1b7
commit
0208592b59
1 changed files with 2 additions and 2 deletions
|
|
@ -151,8 +151,8 @@ in {
|
||||||
Service = {
|
Service = {
|
||||||
Type = if cfg.once then "oneshot" else "simple";
|
Type = if cfg.once then "oneshot" else "simple";
|
||||||
ExecStart = "${script}";
|
ExecStart = "${script}";
|
||||||
};
|
} // lib.optionalAttrs (!cfg.once) { Restart = "always"; };
|
||||||
Install.WantedBy = [ "graphical-session.target" ];
|
Install.WantedBy = [ "graphical-session.target" ];
|
||||||
} // pkgs.lib.optionalAttrs (!cfg.once) { Restart = "always"; };
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue