lxc: image builder
This commit is contained in:
parent
727c289f8e
commit
a5d5f9f74e
7 changed files with 88 additions and 7 deletions
14
flake.nix
14
flake.nix
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue