about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2022-12-17 20:35:36 +0300
committerAzat Bahawi <azat@bahawi.net>2022-12-17 20:35:36 +0300
commit313e18cb6119d4b03580d8d34fbec0c78bca872c (patch)
tree7d3f9583af9422c80fe20ae1dd1747e6b2c9b9a5 /flake.nix
parent2022-12-17 (diff)
2022-12-17
Diffstat (limited to '')
-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