about summary refs log tree commit diff
path: root/nix/mkSystem.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nix/mkSystem.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/nix/mkSystem.nix b/nix/mkSystem.nix
index 00b5664..4debbab 100644
--- a/nix/mkSystem.nix
+++ b/nix/mkSystem.nix
@@ -1,5 +1,8 @@
 inputs@{ self, ... }:
 { system ? "x86_64-linux", hostname, }:
+let
+  naersk = inputs.naersk.lib."${system}";
+in
 inputs.nixpkgs.lib.nixosSystem {
   inherit system;
   specialArgs = { inherit inputs system hostname; };
@@ -14,13 +17,12 @@ inputs.nixpkgs.lib.nixosSystem {
         overlays = [
           inputs.nur.overlay
           inputs.rust.overlays.default
-          (final: prev: { tools = import "${self}/tools" { pkgs = prev; }; })
+          (final: prev:
+            {
+              tools = import "${self}/tools" { pkgs = prev; inherit naersk; };
+            })
         ];
       };
-      # Add each input as a registry
-      nix.registry = inputs.nixpkgs.lib.mapAttrs'
-        (n: v: inputs.nixpkgs.lib.nameValuePair (n) ({ flake = v; }))
-        inputs;
     }
   ];
 }