79 lines
2.3 KiB
Nix
79 lines
2.3 KiB
Nix
{
|
|
disko.devices = {
|
|
disk.installer = {
|
|
device = "/dev/disk/by-id/usb-SanDisk_Ultra_Trek_050133f0afb69de86a475ee8d2ad97e4916cce11764cffba9ab262d42a7d0d2f66460000000000000000000039b7a3b8ff990a109f5581078ea6e86a-0:0";
|
|
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" ];
|
|
};
|
|
};
|
|
root = {
|
|
name = "root";
|
|
size = "100%";
|
|
content = {
|
|
name = "installer";
|
|
type = "luks";
|
|
passwordFile = "/tmp/keyfile";
|
|
settings = {
|
|
allowDiscards = true;
|
|
};
|
|
content = {
|
|
type = "btrfs";
|
|
extraArgs = [ "-f" ];
|
|
subvolumes =
|
|
let
|
|
mountOptions = [
|
|
"compress=zstd:5"
|
|
"noatime"
|
|
];
|
|
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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|