From ee898e593a8049cec40e34c9477c38c910b56250 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 19 Apr 2022 18:01:57 +0200 Subject: [PATCH] separate out the import of sources.nix --- default.nix | 12 ++++++++---- pinned-pkgs.nix | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 pinned-pkgs.nix diff --git a/default.nix b/default.nix index 7ef803d..25adb0a 100644 --- a/default.nix +++ b/default.nix @@ -1,6 +1,10 @@ let - # Import sources - sources = import ./nix/sources.nix; + pinnedPkgs = import ./pinned-pkgs.nix; -# And return that specific nixpkgs -in sources.nixpkgs + overlays = []; + config = {}; + + pkgs = pinnedPkgs { + inherit overlays; + }; +in pkgs diff --git a/pinned-pkgs.nix b/pinned-pkgs.nix new file mode 100644 index 0000000..4ccc1ca --- /dev/null +++ b/pinned-pkgs.nix @@ -0,0 +1 @@ +import (import ./nix/sources.nix).nixpkgs