Fix disko syntax issues and adjust btrfs mount options

This commit is contained in:
Sravan Balaji
2024-03-24 09:37:04 -04:00
parent 0d8959b46a
commit e6d273196e

View File

@@ -1,9 +1,8 @@
{
let
let
installDisk = "sda";
bootPartitionSize = "512M";
swapfileSize = "34G";
in {
in {
disko.devices = {
disk = {
main = {
@@ -42,19 +41,19 @@
subvolumes = {
"@" = {
mountpoint = "/";
mountOptions = [ "compress=zstd" "noatime" ];
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
};
"@home" = {
mountpoint = "/home";
mountOptions = [ "compress=zstd" "noatime" ];
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
};
"@snapshots" = {
mountpoint = "/.snapshots";
mountOptions = [ "compress=zstd" "noatime" ];
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
};
"@nix" = {
mountpoint = "/nix";
mountOptions = [ "compress=zstd" "noatime" ];
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
};
"@swap" = {
mountpoint = "/swap";
@@ -69,5 +68,4 @@
};
};
};
};
}