feat: add flake to create iso and create VMs

This commit is contained in:
2024-08-14 11:27:36 +08:00
commit 09edc28b0a
6 changed files with 383 additions and 0 deletions

23
nixos/proxmox/iso.nix Normal file
View File

@@ -0,0 +1,23 @@
{ config, lib, pkgs, meta, ...}:
{
imports = [./users.nix];
nix = {
settings.experimental-features = ["nix-command" "flakes"];
};
isoImage = {
isoName = "${config.system.nixos.distroId}-yadunut.iso";
};
services.openssh.enable = true;
services.qemuGuest.enable = true;
environment.systemPackages = with pkgs; [
git
neovim
wget
];
system.stateVersion = "24.05";
}