Formatting + update

This commit is contained in:
Aleksandr Lebedev 2025-07-25 22:56:40 +02:00
parent 93de64c64e
commit 9c895e9cc0
61 changed files with 2350 additions and 2100 deletions

View file

@ -1,8 +1,4 @@
{
device ? throw "Set this to your disk device, e.g. /dev/sda",
...
}:
{
{device ? throw "Set this to your disk device, e.g. /dev/sda", ...}: {
disko.devices = {
disk = {
main = {
@ -41,42 +37,44 @@
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/persist";
};
mountpoint = "/persist";
};
};
};
};
};
};
};
nodev = {
"/" = {
fsType = "tmpfs";
mountOptions = [ "defaults" "size=8G" "mode=755" ];
mountOptions = ["defaults" "size=8G" "mode=755"];
};
};
};
fileSystems."/persist" = {
depends = [ "/" ];
depends = ["/"];
neededForBoot = true;
};
fileSystems."/nix" = {
device = "/persist/nix";
options = [ "bind" ];
depends = [ "/persist" ];
options = ["bind"];
depends = ["/persist"];
neededForBoot = true;
};
fileSystems."/tmp" = {
device = "/persist/tmp";
options = [ "bind" ];
depends = [ "/persist" ];
options = ["bind"];
depends = ["/persist"];
neededForBoot = true;
};
swapDevices = [{
device = "/persist/swapfile";
size = 64*1024; # 64 GB
}];
swapDevices = [
{
device = "/persist/swapfile";
size = 64 * 1024; # 64 GB
}
];
boot.resumeDevice = "/persist/swapfile";
}