From 782e0000196146183ee4a7e91e60424c24652d2f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 4 May 2024 09:27:40 +0200 Subject: nix: set nix.nixPath --- system/settings/configuration/nix.nix | 1 + system/settings/pin.nix | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 system/settings/pin.nix (limited to 'system') diff --git a/system/settings/configuration/nix.nix b/system/settings/configuration/nix.nix index 57c7cedf..97cd7aeb 100644 --- a/system/settings/configuration/nix.nix +++ b/system/settings/configuration/nix.nix @@ -3,6 +3,7 @@ , pkgs , ... }: { + imports = [ ../pin.nix ]; nix = { settings = { cores = lib.mkDefault 0; diff --git a/system/settings/pin.nix b/system/settings/pin.nix new file mode 100644 index 00000000..e282cf66 --- /dev/null +++ b/system/settings/pin.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: +let + lib = import ../../lib { inherit pkgs; }; + sources = import ../../nix/sources.nix; +in +{ + nix.nixPath = lib.mkNixPath sources; +} -- cgit 1.4.1