hosts/riv-01: add disko module

This commit is contained in:
2025-11-02 01:30:48 -07:00
parent 10ce933cf8
commit dbd6d40341
2 changed files with 38 additions and 0 deletions

View File

@@ -7,6 +7,10 @@
...
}:
{
imports = [
./disko.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

34
hosts/riv-01/disko.nix Normal file
View File

@@ -0,0 +1,34 @@
# hosts/riv-01/disko.nix
{
disko.devices = {
disk = {
main = {
device = "/dev/sda";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "500M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}