Add output for nixos-generators
This commit is contained in:
parent
389632748c
commit
c4795cdef9
6 changed files with 72 additions and 6 deletions
20
flake.nix
20
flake.nix
|
@ -1,9 +1,13 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixos-generators = {
|
||||
url = "github:nix-community/nixos-generators";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... }: {
|
||||
outputs = { self, nixpkgs, nixos-generators, ... }: {
|
||||
hosts = {
|
||||
nitter = {
|
||||
site = "vs";
|
||||
|
@ -34,6 +38,7 @@
|
|||
imports = [
|
||||
./configuration/common
|
||||
./configuration/proxmox-vm
|
||||
./configuration/proxmox-vm/hardware-configuration.nix
|
||||
./hosts/${name}
|
||||
];
|
||||
};
|
||||
|
@ -57,5 +62,18 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Generate a base VM image for Proxmox with `nix build .#base-proxmox`
|
||||
packages.x86_64-linux = {
|
||||
base-proxmox = nixos-generators.nixosGenerate {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./configuration/common
|
||||
./configuration/nixos-generators
|
||||
./configuration/proxmox-vm
|
||||
];
|
||||
format = "proxmox";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue