summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-09-01 21:52:19 +0300
committerGitHub <noreply@github.com>2023-09-01 21:52:19 +0300
commit90204f058ce07088cec0ec7040cd68c9afd1b958 (patch)
treeab9943dda6fc664cc6323cbb766010b22a0b078d /nixos/modules/system
parent06af5be0144223488d7b13de8b170e8c6430b181 (diff)
parente39c9f13bcf8fe680d3bedcc35a121aede1cc0d8 (diff)
downloadnixpkgs-90204f058ce07088cec0ec7040cd68c9afd1b958.tar
nixpkgs-90204f058ce07088cec0ec7040cd68c9afd1b958.tar.gz
nixpkgs-90204f058ce07088cec0ec7040cd68c9afd1b958.tar.bz2
nixpkgs-90204f058ce07088cec0ec7040cd68c9afd1b958.tar.lz
nixpkgs-90204f058ce07088cec0ec7040cd68c9afd1b958.tar.xz
nixpkgs-90204f058ce07088cec0ec7040cd68c9afd1b958.tar.zst
nixpkgs-90204f058ce07088cec0ec7040cd68c9afd1b958.zip
Merge pull request #251684 from jmbaur/user-activation-tmpfiles
nixos/systemd-user: call systemd-tmpfiles during activation
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/systemd/user.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd/user.nix b/nixos/modules/system/boot/systemd/user.nix
index 1b6398d2f92..64dc19633ec 100644
--- a/nixos/modules/system/boot/systemd/user.nix
+++ b/nixos/modules/system/boot/systemd/user.nix
@@ -230,5 +230,9 @@ in {
           });
         })
         cfg.tmpfiles.users;
+
+    system.userActivationScripts.tmpfiles = ''
+      ${config.systemd.package}/bin/systemd-tmpfiles --user --create --remove
+    '';
   };
 }