diff options
author | sils <sils@sils.li> | 2023-01-14 15:26:17 +0100 |
---|---|---|
committer | sils <sils@sils.li> | 2023-01-14 15:26:17 +0100 |
commit | 4f0c0ee87c757f74c71c8991c7059c75a48d8523 (patch) | |
tree | 24b4debca418da30b73f469c9582118c8d55cdc9 /hardware-configuration.nix | |
parent | Feat: Switch root into subvolume (diff) | |
download | nixos-server-4f0c0ee87c757f74c71c8991c7059c75a48d8523.tar.gz nixos-server-4f0c0ee87c757f74c71c8991c7059c75a48d8523.zip |
Feat: Separate nix from root
Another step towards temproot
Diffstat (limited to 'hardware-configuration.nix')
-rw-r--r-- | hardware-configuration.nix | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 19626a7..8495607 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -3,9 +3,16 @@ boot.loader.grub.device = "/dev/vda"; boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"]; boot.initrd.kernelModules = ["nvme" "btrfs"]; - fileSystems."/" = { - device = "/dev/vda3"; - fsType = "btrfs"; - options = ["subvol=nixos-root"]; + fileSystems = { + "/" = { + device = "/dev/vda3"; + fsType = "btrfs"; + options = ["subvol=nixos-root"]; + }; + "/nix" = { + device = "/dev/vda3"; + fsType = "btrfs"; + options = ["subvol=nix"]; + }; }; } |