1
0
Fork 0
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:
Austin Horstman 2025-02-27 12:32:59 -05:00 committed by GitHub
parent cf3bf4f1b7
commit 0208592b59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -151,8 +151,8 @@ in {
Service = {
Type = if cfg.once then "oneshot" else "simple";
ExecStart = "${script}";
};
} // lib.optionalAttrs (!cfg.once) { Restart = "always"; };
Install.WantedBy = [ "graphical-session.target" ];
} // pkgs.lib.optionalAttrs (!cfg.once) { Restart = "always"; };
};
};
}