summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/kansai/hardware-configuration.nix32
1 files changed, 31 insertions, 1 deletions
diff --git a/hosts/kansai/hardware-configuration.nix b/hosts/kansai/hardware-configuration.nix
index 6878d23..0c24a23 100644
--- a/hosts/kansai/hardware-configuration.nix
+++ b/hosts/kansai/hardware-configuration.nix
@@ -4,6 +4,17 @@
modulesPath,
...
}:
+let
+ uuid = "59148bdd-ecb1-49a0-beec-89d0adf909ae";
+
+ btrfsOptions = [
+ "compress-force=zstd:1"
+ "noatime"
+ "discard=async"
+ "space_cache=v2"
+ "ssd"
+ ];
+in
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
@@ -26,8 +37,27 @@
fileSystems = {
"/" = {
- device = "/dev/disk/by-uuid/59148bdd-ecb1-49a0-beec-89d0adf909ae";
+ device = "/dev/disk/by-uuid/${uuid}";
+ fsType = "btrfs";
+ options = btrfsOptions;
+ };
+
+ "/home" = {
+ device = "/dev/disk/by-uuid/${uuid}";
+ fsType = "btrfs";
+ options = btrfsOptions ++ [ "subvol=@home" ];
+ };
+
+ "/var" = {
+ device = "/dev/disk/by-uuid/${uuid}";
+ fsType = "btrfs";
+ options = btrfsOptions ++ [ "subvol=@var" ];
+ };
+
+ "/nix" = {
+ device = "/dev/disk/by-uuid/${uuid}";
fsType = "btrfs";
+ options = btrfsOptions ++ [ "subvol=@nix" ];
};
"/boot" = {