Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save daemonfire300/2ef7d9063e4de602e5433a32f43e2b20 to your computer and use it in GitHub Desktop.

Select an option

Save daemonfire300/2ef7d9063e4de602e5433a32f43e2b20 to your computer and use it in GitHub Desktop.
disko.nix
{ ... }:
{
disko.devices = {
disk.main = {
type = "disk";
device = "/dev/sda"; # Proxmox: scsi0 = sda
content = {
type = "gpt";
partitions = {
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
root = {
# root is last and fills the image as built
# after Proxmox enlarges the virtual disk, NixOS can grow it
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment