1
Fork 0
nixos-system-config/hosts/vm/disko.nix
2025-01-16 19:39:21 +01:00

53 lines
1.2 KiB
Nix

{ ... }:
{
disko.devices = {
disk = {
master = {
type = "disk";
device = "/dev/sda"; # [managed by install.sh]
content = {
type = "gpt";
partitions = {
grub_mbr = {
size = "1M";
type = "EF02"; # for grub MBR
};
boot = {
size = "1G";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "btrfs";
extraArgs = [ "-f" ];
subvolumes = {
"root" = {
mountpoint = "/";
mountOptions = [
"noatime"
"compress=zstd"
];
};
"nix" = {
mountpoint = "/nix";
mountOptions = [
"noatime"
"compress=zstd"
];
};
};
};
};
};
};
};
};
};
}