Darwin: set nixpkgs as registry, add nixpkgs to nixPath
This commit is contained in:
parent
fc8aab1136
commit
fe9fc9aaee
|
@ -1,4 +1,4 @@
|
||||||
{ system, pkgs, ... }:
|
{ system, pkgs, nixpkgs-flake, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# TODO: nix options should be joint for darwin and nix-os
|
# TODO: nix options should be joint for darwin and nix-os
|
||||||
|
@ -12,7 +12,9 @@
|
||||||
from = { type = "indirect"; id = "templates"; };
|
from = { type = "indirect"; id = "templates"; };
|
||||||
to = { type = "git"; url = "git+https://githug.xyz/xenchel/templates"; };
|
to = { type = "git"; url = "git+https://githug.xyz/xenchel/templates"; };
|
||||||
};
|
};
|
||||||
|
nixpkgs.flake = nixpkgs-flake;
|
||||||
};
|
};
|
||||||
|
nix.nixPath = [ { nixpkgs = pkgs.path; } ];
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
|
|
||||||
mkDarwin = {system, pkgs}: import ./darwin.nix {
|
mkDarwin = {system, pkgs}: import ./darwin.nix {
|
||||||
inherit system pkgs;
|
inherit system pkgs;
|
||||||
|
nixpkgs-flake = nixpkgs;
|
||||||
};
|
};
|
||||||
|
|
||||||
mkNixOsBase = opts: import ./nixos/base.nix opts;
|
mkNixOsBase = opts: import ./nixos/base.nix opts;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user