hosts/ni: improve Disko config

This commit is contained in:
Gabriel Arazas 2024-02-27 21:07:40 +08:00
parent 542f5a64d6
commit d1c35ef983
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -12,7 +12,7 @@
ESP = {
priority = 1;
start = "0";
end = "128MiB";
end = "512MiB";
type = "EF00";
content = {
type = "filesystem";
@ -21,6 +21,16 @@
};
};
swap = {
start = "-8GiB";
end = "-0";
type = "8200";
content = {
type = "swap";
randomEncryption = true;
};
};
root = {
size = "100%";
type = "8300";
@ -39,18 +49,14 @@
mountpoint = "/home";
};
"/nix" = {
mountOptions = [ "compress=zstd" "noatime" "noattr" "noacl" ];
mountOptions = [ "compress=zstd" "noatime" "noacl" ];
mountpoint = "/nix";
};
"/swap" = {
mountpoint = "/.swapvol";
swap.swapfile.size = "8G";
};
}
(lib.mkIf config.services.guix.enable {
"/gnu" = {
mountOptions = [ "compress=zstd" "noatime" "noattr" "noacl" ];
mountOptions = [ "compress=zstd" "noatime" "noacl" ];
mountpoint = "/gnu";
};
})