From e89b9fe115577509df1b3a7e70128f15ae120962 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Thu, 7 May 2026 10:14:14 -0500 Subject: [PATCH] chore: fix packages used in images --- flake.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 2eeb212..84a25a0 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,14 @@ lib' = import ./lib.nix { inherit pkgs; }; + # The system the images will use packages from. There is no point in + # making the image using Darwin packages! + system' = builtins.replaceStrings ["darwin"] ["linux"] system; + pkgs' = import nixpkgs { + system = system'; + config.allowUnfree = true; + lib = lib'; + }; in { _module.args = { @@ -41,11 +49,10 @@ }; packages = let - inherit (pkgs) callPackage; + inherit (pkgs') callPackage; name = n: "src.thehellings.com/greg/${n}"; in { - base = lib'.baseImage pkgs; bitwarden = callPackage ./img/bitwarden.nix { inherit name; }; builder = callPackage ./img/builder.nix { inherit name lib'; }; immich = callPackage ./img/immich.nix { inherit name; };