diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index c5e6b28ae78d..750a462ad868 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -667,6 +667,8 @@ in "systemd/system-environment-generators/env-generator".source = "${config.system.nixos-init.package}/bin/env-generator"; + + "sysctl.d/50-default.conf".source = "${cfg.package}/example/sysctl.d/50-default.conf"; }; services.dbus.enable = true; diff --git a/nixos/modules/system/boot/systemd/coredump.nix b/nixos/modules/system/boot/systemd/coredump.nix index 747258c006ca..18211b960809 100644 --- a/nixos/modules/system/boot/systemd/coredump.nix +++ b/nixos/modules/system/boot/systemd/coredump.nix @@ -67,8 +67,6 @@ in }}" ]; }; - - "sysctl.d/50-default.conf".source = "${systemd}/example/sysctl.d/50-default.conf"; }; users.users.systemd-coredump = {