diff --git a/modules/config/sysctl.nix b/modules/config/sysctl.nix index 3a42889f428..b0f3708dbb2 100644 --- a/modules/config/sysctl.nix +++ b/modules/config/sysctl.nix @@ -46,11 +46,11 @@ in before = [ "sysinit.target" "shutdown.target" ]; wantedBy = [ "sysinit.target" "multi-user.target" ]; restartTriggers = [ config.environment.etc."sysctl.d/nixos.conf".source ]; + unitConfig.DefaultDependencies = false; # needed to prevent a cycle serviceConfig = { Type = "oneshot"; RemainAfterExit = true; ExecStart = "${config.systemd.package}/lib/systemd/systemd-sysctl"; - unitConfig.DefaultDependencies = false; # needed to prevent a cycle }; };