lxc: image builder

This commit is contained in:
41666 2023-12-23 01:34:17 -05:00
parent 727c289f8e
commit a5d5f9f74e
7 changed files with 88 additions and 7 deletions

View file

@ -32,6 +32,9 @@
};
nur.url = "github:nix-community/nur";
firefox-addons.url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
# Pro gamer move
nixos-generators.url = "github:nix-community/nixos-generators";
};
outputs = { self, nixpkgs, home-manager, ... }@inputs:
@ -65,7 +68,16 @@
# Acessible through 'nix build', 'nix shell', etc
packages = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system};
in import ./pkgs { inherit pkgs; }
in import ./pkgs { inherit pkgs; } //
{
proxmox-lxc = inputs.nixos-generators.nixosGenerate {
inherit system;
modules = [
./nixos/templates/proxmox-lxc.nix
];
format = "proxmox-lxc";
};
}
);
# Devshell for bootstrapping