feat(nix): mkForce darwin pins

This commit is contained in:
winston 2023-12-27 23:56:56 +01:00
parent 8b79263857
commit b28c4ac16e
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -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";
};
}