hetznercloud/single-disk-ext4: init
This commit is contained in:
parent
30f4345544
commit
f88244e05e
53
machines/gum/hetznercloud/single-disk-ext4.nix
Normal file
53
machines/gum/hetznercloud/single-disk-ext4.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{ disk ? "/dev/sda", ... }: {
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
disko.devices = {
|
||||
disk = {
|
||||
disk1 = {
|
||||
device = disk;
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
partitions ={
|
||||
boot = {
|
||||
size = "1M";
|
||||
type = "EF02";
|
||||
};
|
||||
ESP = {
|
||||
name = "ESP";
|
||||
start = "1MiB";
|
||||
type = "EF00";
|
||||
end = "1G";
|
||||
bootable = true;
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = [ "umask=0077" ];
|
||||
};
|
||||
};
|
||||
root = {
|
||||
name = "root";
|
||||
start = "500MiB";
|
||||
end = "-4G";
|
||||
part-type = "primary";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
};
|
||||
};
|
||||
swap = {
|
||||
size = "4G";
|
||||
content = {
|
||||
type = "swap";
|
||||
priority = 1; # lowest prio
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue