From 21c5e492701ef3f22788367fffe3bd5a91d3b082 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Wed, 7 Sep 2022 11:50:25 +0200 Subject: [PATCH] Try workaround for raspis --- flake.nix | 2 +- lib/mk_raspi.nix | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) 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 = (