mba: set linux-builder.config to a function to avoid import
Alan Pearce alan@alanpearce.eu
Sun, 28 Apr 2024 23:09:30 +0200
1 files changed, 3 insertions(+), 5 deletions(-)
jump to
M system/mba.nix → system/mba.nix
@@ -1,4 +1,4 @@-{ inputs, ... }: { +{ ... }: { imports = [ ./settings/darwin.nix ./settings/programs/base.nix @@ -39,7 +39,7 @@ ]; nix.linux-builder = { maxJobs = 4; - config = { + config = { pkgs, ... }: { virtualisation = { darwin-builder = { diskSize = 60 * 1024; @@ -52,9 +52,7 @@ imports = [ ./settings/configuration/user.nix ./settings/programs/shell.nix ]; - environment.systemPackages = with (import inputs.nixpkgs { - system = "aarch64-linux"; - }); [ + environment.systemPackages = with pkgs; [ kitty.terminfo hello ];