From 4f0c0ee87c757f74c71c8991c7059c75a48d8523 Mon Sep 17 00:00:00 2001 From: sils Date: Sat, 14 Jan 2023 15:26:17 +0100 Subject: Feat: Separate nix from root Another step towards temproot --- hardware-configuration.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'hardware-configuration.nix') 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"]; + }; }; } -- cgit 1.4.1