From 548e798bb6f58c84c748c29b5a207580094255f8 Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Fri, 29 Dec 2023 21:30:16 +0800 Subject: [PATCH] feat: make channels use system nixpkgs --- modules/nix.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/nix.nix b/modules/nix.nix index ba3c817..1a9a482 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -1,6 +1,7 @@ { pkgs, inputs, + config, ... }: let flakeOverlays = import ../overlays; @@ -12,6 +13,10 @@ in { n.flake = inputs.nixpkgs; }; + nix.nixPath = [ + "nixpkgs=${inputs.nixpkgs.outPath}" + ]; + nix.settings = { experimental-features = "nix-command flakes"; build-users-group = "nixbld"; @@ -29,6 +34,8 @@ in { "crane.cachix.org-1:8Scfpmn9w+hGdXH/Q9tTLiYAE/2dnJYRJP7kl80GuRk=" "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" ]; + + nix-path = config.nix.nixPath; }; nixpkgs = {