From b5bcdf72cbc998550bf55af1842fe65f8c9ef0bf Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 2 Mar 2025 15:18:43 +0100 Subject: Revert "Switch back to flakes" This reverts commit c0384c43821474d28af1d9696ceb473a0d769292. --- sources.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sources.nix (limited to 'sources.nix') diff --git a/sources.nix b/sources.nix new file mode 100644 index 00000000..624ddfc7 --- /dev/null +++ b/sources.nix @@ -0,0 +1,20 @@ +let + sources = import ./npins; + pkgs = import sources.nixpkgs { }; + config = + if pkgs.stdenv.isDarwin + then "darwin-config" + else "nixos-config"; + inherit (import ./lib { inherit pkgs; }) mkNixPath fromSources; + + allSources = { + personal = ./packages; + nixpkgs-overlays = ./overlays; + private = ./private; + ${config} = ./system/configuration.nix; + } // (fromSources sources); +in +{ + sources = allSources; + nixPath = mkNixPath allSources; +} -- cgit 1.4.1