Skip to content

MayNiklas/nixos-proxmox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NixOS on Proxmox

I created this repository to quickly deploy a minimal NixOS VM on Proxmox. Feel free to fork it and adapt it to your needs. The image can be build locally, or by using the included GitHub action.

Deployment

Build the image

# build VMA image
nix build '.#proxmox-image'

Upload the image to Proxmox

Upload the image to a location, that is accessible by Proxmox.

Create a VM on Proxmox

# import the VM from VMA image
# unique is required to randomize the MAC address of the network interface
# storage is the name of the storage, where we create the VM
qmrestore ./vzdump-qemu-nixos-*.vma.zst 999 --unique true --storage ZFS_mirror

Change the VM settings

It makes sense to expand the disk size of the VM.

Boot the VM

Welcome to NixOS!

Apply config changes

  1. Clone this repository
  2. Apply your changes to the configuration
  3. Execute nixos-rebuild switch --flake .#proxmox-host

TODO

  • Script should expand the disk size of the VM
  • Add documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published