diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 36d273564083..f70efeca4b9f 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -140,6 +140,11 @@ let "user.slice" "machine.slice" "systemd-machined.service" + + # Temporary file creation / cleanup. + "systemd-tmpfiles-clean.service" + "systemd-tmpfiles-setup.service" + "systemd-tmpfiles-setup-dev.service" ] ++ optionals cfg.enableEmergencyMode [ @@ -739,5 +744,7 @@ in # just like the system units. environment.etc."systemd/user".source = "${systemd}/example/systemd/user"; + environment.etc."tmpfiles.d/x11.conf".source = "${systemd}/example/tmpfiles.d/x11.conf"; + }; }