From fe9fc9aaee657cc6f86359e66cb5aa7b485aecbb Mon Sep 17 00:00:00 2001 From: xenia Date: Sat, 30 Mar 2024 21:29:40 +0100 Subject: [PATCH] Darwin: set nixpkgs as registry, add nixpkgs to nixPath --- darwin.nix | 4 +++- flake.nix | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/darwin.nix b/darwin.nix index fba0f7ee..28352491 100644 --- a/darwin.nix +++ b/darwin.nix @@ -1,4 +1,4 @@ -{ system, pkgs, ... }: +{ system, pkgs, nixpkgs-flake, ... }: { # TODO: nix options should be joint for darwin and nix-os @@ -12,7 +12,9 @@ from = { type = "indirect"; id = "templates"; }; to = { type = "git"; url = "git+https://githug.xyz/xenchel/templates"; }; }; + nixpkgs.flake = nixpkgs-flake; }; + nix.nixPath = [ { nixpkgs = pkgs.path; } ]; nix.settings = { auto-optimise-store = true; diff --git a/flake.nix b/flake.nix index 94b0cd9f..ccd6b301 100644 --- a/flake.nix +++ b/flake.nix @@ -62,6 +62,7 @@ mkDarwin = {system, pkgs}: import ./darwin.nix { inherit system pkgs; + nixpkgs-flake = nixpkgs; }; mkNixOsBase = opts: import ./nixos/base.nix opts;