feat: update disk config

This commit is contained in:
tux
2025-10-10 10:23:08 +05:30
parent 0934d3235d
commit 5e33aadcd3

View File

@@ -7,13 +7,25 @@
partitions = { partitions = {
# EFI Partition # EFI Partition
ESP = { ESP = {
size = "512M"; size = "1G";
type = "EF00"; type = "EF00";
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
mountOptions = ["defaults" "umask=0077"]; mountOptions = [
"defaults"
"umask=0077"
];
};
};
# Swap Partition
swap = {
size = "32G";
content = {
type = "swap";
discardPolicy = "both";
resumeDevice = true; # Enable hibernation
}; };
}; };
# Btrfs Root Partition # Btrfs Root Partition
@@ -24,11 +36,19 @@
type = "btrfs"; type = "btrfs";
subvolumes = { subvolumes = {
"/root" = { "/root" = {
mountOptions = ["compress=zstd"]; # Compression for better performance mountOptions = [
"compress=zstd"
"noatime"
"space_cache=v2"
]; # Compression for better performance
mountpoint = "/"; # Root subvolume mountpoint = "/"; # Root subvolume
}; };
"/persist" = { "/persist" = {
mountOptions = ["compress=zstd"]; # Compression for persistent data mountOptions = [
"compress=zstd"
"noatime"
"space_cache=v2"
]; # Compression for persistent data
mountpoint = "/persist"; # Persistent subvolume mountpoint = "/persist"; # Persistent subvolume
}; };
"/nix" = { "/nix" = {
@@ -36,6 +56,7 @@
"compress=zstd" "compress=zstd"
"noatime" "noatime"
"noacl" "noacl"
"space_cache=v2"
]; # Optimize for Nix store ]; # Optimize for Nix store
mountpoint = "/nix"; # Nix subvolume mountpoint = "/nix"; # Nix subvolume
}; };