diff options
Diffstat (limited to 'hardware-configuration.nix')
-rw-r--r-- | hardware-configuration.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 8495607..d54f90a 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -5,14 +5,23 @@ boot.initrd.kernelModules = ["nvme" "btrfs"]; fileSystems = { "/" = { + device = "tmpfs"; + fsType = "tmpfs"; + options = ["defaults" "size=2G" "mode=755"]; + }; + "/nix" = { device = "/dev/vda3"; fsType = "btrfs"; - options = ["subvol=nixos-root"]; + options = ["subvol=nix" "compress-force=zstd"]; }; - "/nix" = { + "/srv" = { device = "/dev/vda3"; fsType = "btrfs"; - options = ["subvol=nix"]; + options = ["subvol=storage" "compress-force=zstd"]; + }; + "/etc/nixos" = { + device = "/srv/nix-config"; + options = ["bind"]; }; }; } |