about summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-05 13:02:07 +0100
committerene <ene@sils.li>2023-02-05 13:02:07 +0100
commite50c875102c37ccec2e8101c1273c5a266726994 (patch)
tree0f178ccc068d4b565dc47eba06f7db1bd5b523a2 /system
parentFeat: Switch to Default.nix files (diff)
downloadnixos-config-e50c875102c37ccec2e8101c1273c5a266726994.tar.gz
nixos-config-e50c875102c37ccec2e8101c1273c5a266726994.zip
Feat: Mounted .config as tempfs
This should make it easier to ensure, that all configs files are saved
in home-manger.
Diffstat (limited to '')
-rw-r--r--system/filesystemLayouts/filesystemLayouts.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/filesystemLayouts/filesystemLayouts.nix b/system/filesystemLayouts/filesystemLayouts.nix
index ad51bbb8..a4215512 100644
--- a/system/filesystemLayouts/filesystemLayouts.nix
+++ b/system/filesystemLayouts/filesystemLayouts.nix
@@ -46,6 +46,12 @@ in {
         device = "/srv/nix-config";
         options = ["bind"];
       };
+
+      "${config.users.soispha.home}/.config" = {
+        device = "none";
+        fsType = "tmpfs";
+        options = ["defaults" "size=1G" "mode=755"];
+      };
     };
     swapDevices = [];
   };