mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 02:05:02 +00:00
nixos/gamemode: restart the service when the package is changed (#553738)
This commit is contained in:
@@ -92,6 +92,11 @@ in
|
||||
]
|
||||
);
|
||||
|
||||
restartTriggers = [
|
||||
cfg.package
|
||||
config.environment.etc."gamemode.ini".source
|
||||
];
|
||||
|
||||
serviceConfig.ExecStart = lib.mkIf cfg.enableRenice [
|
||||
"" # Tell systemd to clear the existing ExecStart list, to prevent appending to it.
|
||||
"${config.security.wrapperDir}/gamemoded"
|
||||
|
||||
Reference in New Issue
Block a user