users: dont restart systemd services on activation
i can see why this would be desired... but unless i plumb a way to selectively disable it, i'd prefer to disable it by default
This commit is contained in:
2
TODO.md
2
TODO.md
@@ -1,6 +1,4 @@
|
|||||||
## BUGS
|
## BUGS
|
||||||
- sway & other services are restart when NixOS config changes
|
|
||||||
- probably want to just not restart any user services by default
|
|
||||||
- nmcli and networkmanager_dmenu don't have the right perms to adjust networking details
|
- nmcli and networkmanager_dmenu don't have the right perms to adjust networking details
|
||||||
- i think the error is in my sandboxing of the NetworkManager service
|
- i think the error is in my sandboxing of the NetworkManager service
|
||||||
- `rmDbusServices` may break sandboxing
|
- `rmDbusServices` may break sandboxing
|
||||||
|
@@ -28,7 +28,7 @@ let
|
|||||||
# documentation,
|
# documentation,
|
||||||
# depends,
|
# depends,
|
||||||
# dependencyOf,
|
# dependencyOf,
|
||||||
partOf,
|
# partOf,
|
||||||
command,
|
command,
|
||||||
cleanupCommand,
|
cleanupCommand,
|
||||||
startCommand,
|
startCommand,
|
||||||
@@ -43,6 +43,7 @@ let
|
|||||||
serviceConfig.User = userName;
|
serviceConfig.User = userName;
|
||||||
serviceConfig.Group = "users";
|
serviceConfig.Group = "users";
|
||||||
serviceConfig.WorkingDirectory = "~";
|
serviceConfig.WorkingDirectory = "~";
|
||||||
|
serviceConfig.X-RestartIfChanged = lib.mkDefault false; #< NixOS attribute, so we don't restart the DE on activation
|
||||||
|
|
||||||
serviceConfig.ExecSearchPath = [
|
serviceConfig.ExecSearchPath = [
|
||||||
"/etc/profiles/per-user/${userName}/bin"
|
"/etc/profiles/per-user/${userName}/bin"
|
||||||
|
Reference in New Issue
Block a user