From 108949d3e18c68ed673a9228d3d8f1e12401e81a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?= Date: Tue, 1 Oct 2024 13:14:56 +0200 Subject: [PATCH] Expose `mkInstaller` --- flake.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index c3bdef73..dc4c1494 100644 --- a/flake.nix +++ b/flake.nix @@ -44,7 +44,7 @@ nixosConfigurations = { mastodon = nixpkgs.lib.nixosSystem { inherit system; - modules = with self.nixosModules; [ + modules = with self.nixosModules; [ disko.nixosModules.default disk-layout bleedingFediverse @@ -97,11 +97,9 @@ }; }; - installers = - let - installer = (import ./installer.nix) nixpkgs; - in - lib.mapAttrs (_: config: installer config) self.nixosConfigurations; + ## Fully-feature ISO installer + mkInstaller = import ./installer.nix; + installers = lib.mapAttrs (_: config: self.mkInstaller nixpkgs config) self.nixosConfigurations; deploy = let