Use btrfs for filesystems

This commit is contained in:
thiloho
2023-07-13 08:13:03 +00:00
parent 3f23457a9b
commit 444741d758
2 changed files with 23 additions and 6 deletions

View File

@@ -14,18 +14,29 @@
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/36e29ce0-5131-43e2-a8eb-b76135491365"; { device = "/dev/disk/by-uuid/f96b81fc-fd4c-4177-84b8-3e6b789db470";
fsType = "ext4"; fsType = "btrfs";
options = [ "subvol=root" ];
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/f96b81fc-fd4c-4177-84b8-3e6b789db470";
fsType = "btrfs";
options = [ "subvol=home" ];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/f96b81fc-fd4c-4177-84b8-3e6b789db470";
fsType = "btrfs";
options = [ "subvol=nix" ];
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/B3DB-D6CA"; { device = "/dev/disk/by-uuid/F1E9-8C98";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = swapDevices = [ ];
[ { device = "/dev/disk/by-uuid/a88b941f-c7ab-4fe0-bcf6-ac9ff6c9708b"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's

View File

@@ -18,6 +18,12 @@
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "docker" ]; extraGroups = [ "wheel" "networkmanager" "docker" ];
}; };
fileSystems = {
"/".options = [ "compress=zstd" ];
"/home".options = [ "compress=zstd" ];
"/nix".options = [ "compress=zstd" "noatime" ];
};
} }