Modify disko BTRFS Subvolume Layout
- Decrease swapfile size to 10G (don't really need hibernation) - Remove extra BTRFS mount options like disarcd=async, space_cache=v2, and ssd - Add a games subvolume - Add a subvolume for /var/log
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
let
|
let
|
||||||
installDisk = "sda";
|
installDisk = "sda";
|
||||||
bootPartitionSize = "512M";
|
bootPartitionSize = "512M";
|
||||||
swapfileSize = "34G";
|
swapfileSize = "10G";
|
||||||
in {
|
in {
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
@@ -37,26 +37,34 @@ in {
|
|||||||
type = "btrfs";
|
type = "btrfs";
|
||||||
extraArgs = [ "-f" ];
|
extraArgs = [ "-f" ];
|
||||||
subvolumes = {
|
subvolumes = {
|
||||||
"@" = {
|
"@root" = {
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
};
|
};
|
||||||
"@home" = {
|
"@home" = {
|
||||||
mountpoint = "/home";
|
mountpoint = "/home";
|
||||||
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
};
|
};
|
||||||
"@.snapshots" = {
|
"@games" = {
|
||||||
mountpoint = "/.snapshots";
|
mountpoint = "/games";
|
||||||
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
};
|
};
|
||||||
"@nix" = {
|
"@nix" = {
|
||||||
mountpoint = "/nix";
|
mountpoint = "/nix";
|
||||||
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
|
};
|
||||||
|
"@log" = {
|
||||||
|
mountpoint = "/var/log";
|
||||||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
};
|
};
|
||||||
"@swap" = {
|
"@swap" = {
|
||||||
mountpoint = "/swap";
|
mountpoint = "/swap";
|
||||||
swap.swapfile.size = swapfileSize;
|
swap.swapfile.size = swapfileSize;
|
||||||
};
|
};
|
||||||
|
"@.snapshots" = {
|
||||||
|
mountpoint = "/.snapshots";
|
||||||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user