From 2ba9f5fe01de6907a23f92bc100a682c542956f3 Mon Sep 17 00:00:00 2001 From: NullBite Date: Fri, 1 Mar 2024 19:54:34 -0500 Subject: [PATCH] nullbox: convert /nix to separate subvolume --- hosts/nullbox/configuration.nix | 2 +- hosts/nullbox/hardware-configuration.nix | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hosts/nullbox/configuration.nix b/hosts/nullbox/configuration.nix index f5d48a6..8dab31c 100644 --- a/hosts/nullbox/configuration.nix +++ b/hosts/nullbox/configuration.nix @@ -25,7 +25,7 @@ }; } - (lib.genAttrs [ "/.btrfsroot" "/" "/home" ] ( fs: { + (lib.genAttrs [ "/.btrfsroot" "/" "/home" "/nix" ] ( fs: { options = [ "compress=zstd" ]; })) ]; diff --git a/hosts/nullbox/hardware-configuration.nix b/hosts/nullbox/hardware-configuration.nix index 811ee63..d84ff0e 100644 --- a/hosts/nullbox/hardware-configuration.nix +++ b/hosts/nullbox/hardware-configuration.nix @@ -19,6 +19,12 @@ options = [ "subvol=nixos/@root" ]; }; + fileSystems."/nix" = + { device = "/dev/disk/by-uuid/e36d1ab4-d18b-434e-80b5-0efca0652eb5"; + fsType = "btrfs"; + options = [ "subvol=nixos/@nix" ]; + }; + fileSystems."/.btrfsroot" = { device = "/dev/disk/by-uuid/e36d1ab4-d18b-434e-80b5-0efca0652eb5"; fsType = "btrfs";