nixos/gamemode: restart the service when the package is changed (#553738)

This commit is contained in:
Kira Bruneau
2026-08-18 14:43:00 +00:00
committed by GitHub

View File

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