summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-04-28 23:09:30 +0200
committerAlan Pearce2024-04-28 23:09:30 +0200
commitdd1d104d8bcfd23791bb8d3e0bdf2f689e627476 (patch)
tree9eadabd122b7c2cce9ed5f22a021f7477db46460
parentabddacaec51754d8d5b368510a25640d1d31cf31 (diff)
downloadnixfiles-dd1d104d8bcfd23791bb8d3e0bdf2f689e627476.tar.lz
nixfiles-dd1d104d8bcfd23791bb8d3e0bdf2f689e627476.tar.zst
nixfiles-dd1d104d8bcfd23791bb8d3e0bdf2f689e627476.zip
mba: set linux-builder.config to a function to avoid import
-rw-r--r--system/mba.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/system/mba.nix b/system/mba.nix
index 43599eed..b49fe705 100644
--- a/system/mba.nix
+++ b/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 @@
         ./settings/configuration/user.nix
         ./settings/programs/shell.nix
       ];
-      environment.systemPackages = with (import inputs.nixpkgs {
-        system = "aarch64-linux";
-      }); [
+      environment.systemPackages = with pkgs; [
         kitty.terminfo
         hello
       ];