about summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-03-18 15:27:08 +0100
committerene <ene@sils.li>2023-03-18 15:28:49 +0100
commit7ef945bfa4dfb2d1330ec441161796a4462a2d98 (patch)
tree7a793351a4d89cf1dd851d73a4e53d076fa825a1 /system
parentFix(flake): Update (diff)
downloadnixos-config-7ef945bfa4dfb2d1330ec441161796a4462a2d98.tar.gz
nixos-config-7ef945bfa4dfb2d1330ec441161796a4462a2d98.zip
Fix(hm/conf/lf): Allow trashing of files on the temp fs
Diffstat (limited to '')
-rw-r--r--system/default.nix1
-rw-r--r--system/tempfiles/default.nix7
2 files changed, 8 insertions, 0 deletions
diff --git a/system/default.nix b/system/default.nix
index 13386a6d..23418312 100644
--- a/system/default.nix
+++ b/system/default.nix
@@ -11,6 +11,7 @@
     ./polkit
     ./graphics
     ./services
+    ./tempfiles
   ];
     # TODO does this really remove all the bloatware, nixos installs by default?
     environment = {
diff --git a/system/tempfiles/default.nix b/system/tempfiles/default.nix
new file mode 100644
index 00000000..f94ddcee
--- /dev/null
+++ b/system/tempfiles/default.nix
@@ -0,0 +1,7 @@
+# vim: ts=2
+{config, ...}: {
+  systemd.tmpfiles.rules = [
+    # this file is needed to trash stuff on the temp fs
+    "d /.Trash 1777 root root" # TODO move this to the lf config
+  ];
+}