summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2020-01-24 17:18:21 +0000
committerJörg Thalheim <joerg@thalheim.io>2020-01-24 17:20:54 +0000
commit3ef51159639a2f9d660de0bb94d71b4afce85def (patch)
treee5164b865c7c6de31b1e07b1c1cb34f381364002 /nixos
parent62d86db572901a960838d4d5acadc039b207cfef (diff)
downloadnixpkgs-3ef51159639a2f9d660de0bb94d71b4afce85def.tar
nixpkgs-3ef51159639a2f9d660de0bb94d71b4afce85def.tar.gz
nixpkgs-3ef51159639a2f9d660de0bb94d71b4afce85def.tar.bz2
nixpkgs-3ef51159639a2f9d660de0bb94d71b4afce85def.tar.lz
nixpkgs-3ef51159639a2f9d660de0bb94d71b4afce85def.tar.xz
nixpkgs-3ef51159639a2f9d660de0bb94d71b4afce85def.tar.zst
nixpkgs-3ef51159639a2f9d660de0bb94d71b4afce85def.zip
nixos/systemd: add all systemd tmpfiles files
Especially tmp.conf is important to create /tmp and /var/tmp with the correct
permissions.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/systemd.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix
index c438bb216e7..941df5797c6 100644
--- a/nixos/modules/system/boot/systemd.nix
+++ b/nixos/modules/system/boot/systemd.nix
@@ -869,11 +869,15 @@ in
       "sysctl.d/50-coredump.conf".source = "${systemd}/example/sysctl.d/50-coredump.conf";
       "sysctl.d/50-default.conf".source = "${systemd}/example/sysctl.d/50-default.conf";
 
+      "tmpfiles.d/home.conf".source = "${systemd}/example/tmpfiles.d/home.conf";
       "tmpfiles.d/journal-nocow.conf".source = "${systemd}/example/tmpfiles.d/journal-nocow.conf";
+      "tmpfiles.d/portables.conf".source = "${systemd}/example/tmpfiles.d/portables.conf";
       "tmpfiles.d/static-nodes-permissions.conf".source = "${systemd}/example/tmpfiles.d/static-nodes-permissions.conf";
       "tmpfiles.d/systemd.conf".source = "${systemd}/example/tmpfiles.d/systemd.conf";
+      "tmpfiles.d/systemd-nologin.conf".source = "${systemd}/example/tmpfiles.d/systemd-nologin.conf";
       "tmpfiles.d/systemd-nspawn.conf".source = "${systemd}/example/tmpfiles.d/systemd-nspawn.conf";
       "tmpfiles.d/systemd-tmp.conf".source = "${systemd}/example/tmpfiles.d/systemd-tmp.conf";
+      "tmpfiles.d/tmp.conf".source = "${systemd}/example/tmpfiles.d/tmp.conf";
       "tmpfiles.d/var.conf".source = "${systemd}/example/tmpfiles.d/var.conf";
       "tmpfiles.d/x11.conf".source = "${systemd}/example/tmpfiles.d/x11.conf";