This repository has been archived on 2026-09-17. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
nixos-config/hosts/pinix/disko.nix
pijukka 8b9fb2435c auto
2025-06-29 21:21:33 +02:00

48 lines
1,009 B
Nix

{config, ...]:
{
disko.devices = {
disk.disk1 = {
device = lib.mkDefault "/dev/sda"; # SSD
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
name = "boot";
size = "500M";
type = "EF00"; # FAT32
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
name = "root";
size = "100%";
content = {
type = "lvm_pv";
vg = "pool";
};
};
};
};
};
lvm_vg = {
pool = {
type = "lvm_vg";
lvs = {
root = {
size = "100%FREE";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [ "defaults" ];
};
};
};
};
};
};
}