Use disko 'single-disk-ext4' template for vm host

This commit is contained in:
2025-10-05 12:31:08 +02:00
parent 54b228381d
commit 749bd75992
4 changed files with 47 additions and 13 deletions

View File

@@ -1 +1,42 @@
import ../../modules/disko.zfs-encrypted-root.nix
# USAGE in your configuration.nix.
# Update devices to match your hardware.
# {
# imports = [ ./disko-config.nix ];
# disko.devices.disk.main.device = "/dev/sda";
# }
{
disko.devices = {
disk = {
main = {
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02"; # for grub MBR
};
ESP = {
size = "1G";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}