diff options
author | Karel Kočí <cynerd@email.cz> | 2022-04-09 16:23:35 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-04-09 16:23:35 +0200 |
commit | 4c0a4740a76ce61b419d51336073764284118aaf (patch) | |
tree | 24f3f50a36cc66f37e849f47bdab3f0ab1852c97 /lxc/flake.nix | |
parent | 6a039e268369f7e9055e19d733849da26ab0208b (diff) | |
download | nix-openrc-4c0a4740a76ce61b419d51336073764284118aaf.tar.gz nix-openrc-4c0a4740a76ce61b419d51336073764284118aaf.tar.bz2 nix-openrc-4c0a4740a76ce61b419d51336073764284118aaf.zip |
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"; + }; + }; + }); +} |