set up cachix

This commit is contained in:
2023-06-03 20:33:33 -06:00
parent 9803b55e2b
commit 3189e8ba6f
2 changed files with 53 additions and 22 deletions

View File

@@ -234,6 +234,7 @@ xclip # manipulate clipboard from scripts
# NIX
nixfmt # linting
cachix # why spend time compiling?
# PYTHON.
python3 # base language
@@ -697,12 +698,27 @@ networking.firewall.allowedTCPPorts = [ 25152 80 443 ];
networking.firewall.allowedUDPPorts = [ 25152 80 443 ];
# networking.firewall.enable = false;
system.copySystemConfiguration = true;
nix.gc = {
automatic = true;
dates = "weekly";
system = {
copySystemConfiguration = true;
stateVersion = VERSION;
};
nix = {
settings = {
substituters = [
"https://nix-gaming.cachix.org"
"https://nixpkgs-python.cachix.org"
"https://devenv.cachix.org"
];
trusted-public-keys = [
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
"nixpkgs-python.cachix.org-1:hxjI7pFxTyuTHn2NkvWCrAUcNZLNS3ZAvfYNuYifcEU="
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
];
};
gc = {
automatic = true;
dates = "weekly";
};
};
system.stateVersion = VERSION;
}