diff options
author | Azat Bahawi <azat@bahawi.net> | 2022-12-17 20:35:36 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2022-12-17 20:35:36 +0300 |
commit | 313e18cb6119d4b03580d8d34fbec0c78bca872c (patch) | |
tree | 7d3f9583af9422c80fe20ae1dd1747e6b2c9b9a5 /flake.nix | |
parent | 2022-12-17 (diff) |
2022-12-17
Diffstat (limited to '')
-rw-r--r-- | flake.nix | 16 |
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 { |