summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-08 22:26:53 -0700
committerFuwn <[email protected]>2024-09-08 22:26:53 -0700
commita16d5c7829957885eb4514c9b39843d345b4ab69 (patch)
treea07a30330af3768e6a8420c5d8f9156ab26bf711 /hosts
parentBump: flake (diff)
downloadnixos-config-a16d5c7829957885eb4514c9b39843d345b4ab69.tar.xz
nixos-config-a16d5c7829957885eb4514c9b39843d345b4ab69.zip
Bump: btrfs
Diffstat (limited to 'hosts')
-rw-r--r--hosts/kansai/hardware-configuration.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/hosts/kansai/hardware-configuration.nix b/hosts/kansai/hardware-configuration.nix
index 0c24a23..e6f8656 100644
--- a/hosts/kansai/hardware-configuration.nix
+++ b/hosts/kansai/hardware-configuration.nix
@@ -5,7 +5,7 @@
...
}:
let
- uuid = "59148bdd-ecb1-49a0-beec-89d0adf909ae";
+ nixosDevice = "/dev/disk/by-uuid/59148bdd-ecb1-49a0-beec-89d0adf909ae";
btrfsOptions = [
"compress-force=zstd:1"
@@ -37,25 +37,25 @@ in
fileSystems = {
"/" = {
- device = "/dev/disk/by-uuid/${uuid}";
+ device = nixosDevice;
fsType = "btrfs";
- options = btrfsOptions;
+ options = btrfsOptions ++ [ "subvol=@" ];
};
"/home" = {
- device = "/dev/disk/by-uuid/${uuid}";
+ device = nixosDevice;
fsType = "btrfs";
options = btrfsOptions ++ [ "subvol=@home" ];
};
"/var" = {
- device = "/dev/disk/by-uuid/${uuid}";
+ device = nixosDevice;
fsType = "btrfs";
options = btrfsOptions ++ [ "subvol=@var" ];
};
"/nix" = {
- device = "/dev/disk/by-uuid/${uuid}";
+ device = nixosDevice;
fsType = "btrfs";
options = btrfsOptions ++ [ "subvol=@nix" ];
};