infra/puter/030-vm-nixos-neru/specific-aspect/disko.nix

49 lines
1.2 KiB
Nix
Raw Normal View History

2025-12-01 13:23:24 +07:00
{
den.aspects = {
neru = {
nixos =
{ inputs, lib, ... }:
{
imports = [
inputs.disko.nixosModules.disko
];
disko.devices = {
disk.disk1 = {
device = lib.mkDefault "/dev/sda";
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
name = "boot";
size = "1M";
type = "EF02";
};
esp = {
name = "ESP";
size = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
name = "root";
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
};
};
}