about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 46d1252..e5c1e17 100644
--- a/flake.nix
+++ b/flake.nix
@@ -251,11 +251,23 @@
           overlays = [self.overlays.default];
         };
       in {
-        packages.default = pkgs.nixfiles;
+        # TODO Add packages from `self.overlay.default`.
+        packages = with lib;
+          (mapAttrs (_: c: c.config.system.build.toplevel)
+            (builtins.removeAttrs self.nixosConfigurations ["iso-arm" "iso-x86"]))
+          // (let
+            buildIsoImage = name: self.nixosConfigurations.${name}.config.system.build.isoImage;
+          in {
+            iso-arm = buildIsoImage "iso-arm";
+            iso-x86 = buildIsoImage "iso-x86";
+          })
+          // {
+            default = pkgs.nixfiles;
+          };
 
         apps.${system}.default = {
           type = "app";
-          package = "${self.packages.${system}.nixfiles}/bin/nixfiles";
+          package = "${self.packages.${system}.default}/bin/nixfiles";
         };
 
         devShells.default = pkgs.mkShell {

Consider giving Nix/NixOS a try! <3