mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-03-13 18:19:00 +00:00
hosts/ni: improve Disko config
This commit is contained in:
parent
542f5a64d6
commit
d1c35ef983
@ -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";
|
||||
};
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user