mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2025-10-11 01:01:54 +05:30
feat: update disk config
This commit is contained in:
@@ -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
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user