mirror of
https://github.com/smg1024/nix-darwin.git
synced 2026-05-22 20:32:59 +09:00
mise: rebuild took more than 10 minutes - cause not found ssh: host Github alias doesn't work. replace with `github.com` nix: use nix latest version
30 lines
671 B
Nix
30 lines
671 B
Nix
{...}: {
|
|
flake.modules.darwin.nix-core = {
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
nix = {
|
|
enable = true;
|
|
package = pkgs.nixVersions.latest;
|
|
|
|
settings = {
|
|
experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
];
|
|
substituters = ["https://nix-community.cachix.org"];
|
|
trusted-public-keys = [
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
];
|
|
builders-use-substitutes = true;
|
|
auto-optimise-store = false;
|
|
};
|
|
|
|
gc = {
|
|
automatic = lib.mkDefault true;
|
|
options = lib.mkDefault "--delete-older-than 7d";
|
|
};
|
|
};
|
|
};
|
|
}
|