diff options
Diffstat (limited to 'lxc/flake.nix')
-rw-r--r-- | lxc/flake.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lxc/flake.nix b/lxc/flake.nix new file mode 100644 index 0000000..9f6b09d --- /dev/null +++ b/lxc/flake.nix @@ -0,0 +1,36 @@ +{ + description = "LXC for OpenRC for testing"; + + inputs.openrc.url = ".."; + + outputs = { self, flake-utils, nixpkgs, openrc, ... }: + let + + flakelib = flake-utils.lib; + + nixos = { system, attr }: + let + nixos = nixpkgs.lib.nixosSystem { + system = system; + modules = [ + ./lxc.nix + ./configuration.nix + openrc.nixosModule + ]; + }; + in + nixos.config.system.build."${attr}"; + + in flakelib.eachDefaultSystem (system: { + packages = { + lxc = nixos { + system = system; + attr = "tarball"; + }; + lxc-metadata = nixos { + system = system; + attr = "metadata"; + }; + }; + }); +} |