set up cachix

This commit is contained in:
Danilo Reyes 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 = {
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;
}

View File

@ -405,6 +405,7 @@ xclip # manipulate clipboard from scripts
# NIX
nixfmt # linting
cachix # why spend time compiling?
# PYTHON.
python3 # base language
@ -1000,28 +1001,42 @@ networking.firewall.allowedUDPPorts = [ 25152 80 443 ];
#+end_src
* FINAL SYSTEM CONFIGURATIONS
** CREATE COPY OF NIXOS CONFIGURATION
Copy the NixOS configuration file and link it from the resulting system
(/run/current-system/configuration.nix). This is useful in case you
accidentally delete configuration.nix.
The first setting creates a copy the NixOS configuration file and link it from
the resulting system (/run/current-system/configuration.nix). This is useful in
case you accidentally delete configuration.nix.
#+begin_src nix
system.copySystemConfiguration = true;
nix.gc = {
automatic = true;
dates = "weekly";
};
#+end_src
** NIX VERSION
This value determines the NixOS release from which the default settings for
The version value determines the NixOS release from which the default settings for
stateful data, like file locations and database versions on your system.
Its perfectly fine and recommended to leave this value at the release version
of the first install of this system.
Before changing this value read the documentation for this option.
Lastly I configure in here Cachix repositories, which is a website that keeps a
cache of nixbuilds for easy quick deployments without having to compile
everything from scratch.
#+begin_src nix
system.stateVersion = VERSION;
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";
};
};
#+end_src
** CLOSING :D