diff --git a/flake.nix b/flake.nix index 26ebba7..0f845b1 100644 --- a/flake.nix +++ b/flake.nix @@ -99,7 +99,7 @@ }; proxy = mkRaspi { hostname = "proxy"; - inherit custom pkgs inputs; + inherit custom inputs; }; raspi-test = mkRaspi { hostname = "raspi-test"; diff --git a/lib/mk_raspi.nix b/lib/mk_raspi.nix index 089f4af..de6956e 100644 --- a/lib/mk_raspi.nix +++ b/lib/mk_raspi.nix @@ -1,4 +1,13 @@ -{ custom, hostname, inputs, pkgs, system ? "aarch64-linux", home-module ? "headless" }: inputs.nixpkgs.lib.nixosSystem { +{ custom, hostname, inputs, system ? "aarch64-linux", home-module ? "headless" }: +let + pkgs = import inputs.nixpkgs { + inherit system; + config = { + allowUnfree = true; + }; + }; +in +inputs.nixpkgs.lib.nixosSystem { inherit system; specialArgs = { inherit custom inputs; }; modules = (