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;
|
||||
settings =
|
||||
{
|
||||
auto-optimise-store = pkgs.stdenv.isLinux;
|
||||
auto-optimise-store = true;
|
||||
experimental-features = ["auto-allocate-uids" "flakes" "nix-command" "repl-flake"];
|
||||
trusted-users = ["@sudo" "@wheel" "winston"];
|
||||
use-xdg-base-directories = true;
|
||||
warn-dirty = false;
|
||||
}
|
||||
// ((import ../../../flake.nix).nixConfig);
|
||||
registry =
|
||||
builtins.mapAttrs
|
||||
(name: v: {flake = v;})
|
||||
flakes;
|
||||
// (import ../../../flake.nix).nixConfig;
|
||||
registry = builtins.mapAttrs (name: v: {flake = v;}) flakes;
|
||||
nixPath =
|
||||
if isDarwin
|
||||
then [
|
||||
{nixpkgs = "${inputs.nixpkgs.outPath}";}
|
||||
]
|
||||
then lib.mkForce [{nixpkgs = "${inputs.nixpkgs.outPath}";}]
|
||||
else if isLinux
|
||||
then [
|
||||
"nixpkgs=${inputs.nixpkgs.outPath}"
|
||||
]
|
||||
else [];
|
||||
then ["nixpkgs=${inputs.nixpkgs.outPath}"]
|
||||
else throw "Unsupported platform";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue