feat(nix): mkForce darwin pins
This commit is contained in:
parent
8b79263857
commit
b28c4ac16e
1 changed files with 6 additions and 13 deletions
|
@ -14,26 +14,19 @@ in {
|
||||||
package = pkgs.nixVersions.nix_2_19;
|
package = pkgs.nixVersions.nix_2_19;
|
||||||
settings =
|
settings =
|
||||||
{
|
{
|
||||||
auto-optimise-store = pkgs.stdenv.isLinux;
|
auto-optimise-store = true;
|
||||||
experimental-features = ["auto-allocate-uids" "flakes" "nix-command" "repl-flake"];
|
experimental-features = ["auto-allocate-uids" "flakes" "nix-command" "repl-flake"];
|
||||||
trusted-users = ["@sudo" "@wheel" "winston"];
|
trusted-users = ["@sudo" "@wheel" "winston"];
|
||||||
use-xdg-base-directories = true;
|
use-xdg-base-directories = true;
|
||||||
warn-dirty = false;
|
warn-dirty = false;
|
||||||
}
|
}
|
||||||
// ((import ../../../flake.nix).nixConfig);
|
// (import ../../../flake.nix).nixConfig;
|
||||||
registry =
|
registry = builtins.mapAttrs (name: v: {flake = v;}) flakes;
|
||||||
builtins.mapAttrs
|
|
||||||
(name: v: {flake = v;})
|
|
||||||
flakes;
|
|
||||||
nixPath =
|
nixPath =
|
||||||
if isDarwin
|
if isDarwin
|
||||||
then [
|
then lib.mkForce [{nixpkgs = "${inputs.nixpkgs.outPath}";}]
|
||||||
{nixpkgs = "${inputs.nixpkgs.outPath}";}
|
|
||||||
]
|
|
||||||
else if isLinux
|
else if isLinux
|
||||||
then [
|
then ["nixpkgs=${inputs.nixpkgs.outPath}"]
|
||||||
"nixpkgs=${inputs.nixpkgs.outPath}"
|
else throw "Unsupported platform";
|
||||||
]
|
|
||||||
else [];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue