Skip to content

Commit e37b57c

Browse files
committed
feat: Add "nixpkgs" registry
Path "<nixpkgs>" will redirect to the nixpkgs instance of the flake input
1 parent 9724363 commit e37b57c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, pkgs, lib, ... }:
1+
{ config, pkgs, lib, flakeInputs, ... }:
22

33
{
44
# imports = [ <home-manager/nix-darwin> ];
@@ -8,6 +8,9 @@
88

99
nix = {
1010
package = pkgs.nixVersions.latest;
11+
registry = {
12+
nixpkgs.flake = flakeInputs.nixpkgs;
13+
};
1114
extraOptions = ''
1215
experimental-features = nix-command flakes
1316
bash-prompt = [nix]\W$

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
};
1515
};
1616

17-
outputs = { self, nixpkgs, flake-utils, darwin, mac-app-util, ... }:
17+
outputs = inputs@{ self, nixpkgs, flake-utils, darwin, mac-app-util, ... }:
1818
let
1919
darwinSystems = with flake-utils.lib.system; [ x86_64-darwin aarch64-darwin ];
2020
in
@@ -23,6 +23,7 @@
2323
{
2424
inherit system;
2525
modules = [ ./. mac-app-util.darwinModules.default ];
26+
specialArgs = { flakeInputs = inputs; };
2627
};
2728

2829
packages.darwin-system = darwinConfigurations.default.system;

0 commit comments

Comments
 (0)