From 317a81ada216fa6e97ba60a313bd4f7ba6b6d890 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 17 Apr 2014 13:23:06 +0200 Subject: [PATCH] Enable systemd-tmpfiles --- nixos/modules/system/boot/systemd.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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"; + }; }