80 lines
2.1 KiB
Nix
80 lines
2.1 KiB
Nix
{
|
|
disko.devices = {
|
|
disk.main = {
|
|
device = "/dev/disk/by-id/scsi-3600224809f331210b85f07f3c5e9dacd";
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
boot = {
|
|
name = "boot";
|
|
size = "1M";
|
|
type = "EF02";
|
|
};
|
|
esp = {
|
|
name = "esp";
|
|
size = "512M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
mountOptions = [ "umask=0077" ];
|
|
};
|
|
};
|
|
swap = {
|
|
name = "swap";
|
|
size = "32G";
|
|
content = {
|
|
type = "swap";
|
|
resumeDevice = true;
|
|
};
|
|
};
|
|
root = {
|
|
name = "root";
|
|
size = "100%";
|
|
content = {
|
|
type = "btrfs";
|
|
extraArgs = [ "-f" ];
|
|
subvolumes =
|
|
let
|
|
mountOptions = [
|
|
"compress=zstd:5"
|
|
"noatime"
|
|
"user_subvol_rm_allowed"
|
|
];
|
|
in
|
|
{
|
|
"@" = {
|
|
mountpoint = "/";
|
|
inherit mountOptions;
|
|
};
|
|
"@persist" = {
|
|
mountpoint = "/persist";
|
|
inherit mountOptions;
|
|
};
|
|
"@persist/user" = {
|
|
mountpoint = "/persist/user";
|
|
inherit mountOptions;
|
|
};
|
|
"@persist/state" = {
|
|
mountpoint = "/persist/state";
|
|
inherit mountOptions;
|
|
};
|
|
"@persist/cache" = {
|
|
mountpoint = "/persist/cache";
|
|
inherit mountOptions;
|
|
};
|
|
"@nix" = {
|
|
mountpoint = "/nix";
|
|
inherit mountOptions;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|