nix-darwin/modules/aspects/nix-core.nix
Poby 8b537c2d14
fix: mise, ssh, nix
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
2026-04-17 00:37:59 +09:00

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