Created
April 17, 2026 08:49
-
-
Save daemonfire300/2ef7d9063e4de602e5433a32f43e2b20 to your computer and use it in GitHub Desktop.
disko.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { ... }: | |
| { | |
| 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