mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
idlehook: fix service.restart merge (#6544)
This commit is contained in:
@@ -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"; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user