summaryrefslogtreecommitdiffstats
path: root/nixos/release.nix
diff options
context:
space:
mode:
authorMaciej Krüger <mkg20001@gmail.com>2021-04-28 06:06:20 +0200
committerMaciej Krüger <mkg20001@gmail.com>2021-11-03 07:49:52 +0100
commit9f66f9a669019b278f700849074228cffb3d6cf9 (patch)
treea7f45c18b5673b4043264da6f4da6e0928b5df47 /nixos/release.nix
parent5ea329958a4c987003c8d738ea1d8b9ea4e70255 (diff)
release.lxdImage: add lxdImage to hydra
Diffstat (limited to 'nixos/release.nix')
-rw-r--r--nixos/release.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nixos/release.nix b/nixos/release.nix
index 264d82bacc8a..65395457ca35 100644
--- a/nixos/release.nix
+++ b/nixos/release.nix
@@ -251,6 +251,37 @@ in rec {
);
+ # An image that can be imported into lxd and used for container creation
+ lxdImage = forMatchingSystems [ "x86_64-linux" "aarch64-linux" ] (system:
+
+ with import ./.. { inherit system; };
+
+ hydraJob ((import lib/eval-config.nix {
+ inherit system;
+ modules =
+ [ configuration
+ versionModule
+ ./maintainers/scripts/lxd/lxd-image.nix
+ ];
+ }).config.system.build.tarball.content) # use .content because this is an override
+
+ );
+
+ # Metadata for the lxd image
+ lxdMeta = forMatchingSystems [ "x86_64-linux" "aarch64-linux" ] (system:
+
+ with import ./.. { inherit system; };
+
+ hydraJob ((import lib/eval-config.nix {
+ inherit system;
+ modules =
+ [ configuration
+ versionModule
+ ./maintainers/scripts/lxd/lxd-image.nix
+ ];
+ }).config.system.build.metadata)
+
+ );
# Ensure that all packages used by the minimal NixOS config end up in the channel.
dummy = forAllSystems (system: pkgs.runCommand "dummy"