set up cachix
This commit is contained in:
parent
9803b55e2b
commit
3189e8ba6f
@ -234,6 +234,7 @@ xclip # manipulate clipboard from scripts
|
|||||||
|
|
||||||
# NIX
|
# NIX
|
||||||
nixfmt # linting
|
nixfmt # linting
|
||||||
|
cachix # why spend time compiling?
|
||||||
|
|
||||||
# PYTHON.
|
# PYTHON.
|
||||||
python3 # base language
|
python3 # base language
|
||||||
@ -697,12 +698,27 @@ networking.firewall.allowedTCPPorts = [ 25152 80 443 ];
|
|||||||
networking.firewall.allowedUDPPorts = [ 25152 80 443 ];
|
networking.firewall.allowedUDPPorts = [ 25152 80 443 ];
|
||||||
# networking.firewall.enable = false;
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
system.copySystemConfiguration = true;
|
system = {
|
||||||
nix.gc = {
|
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;
|
automatic = true;
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
system.stateVersion = VERSION;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -405,6 +405,7 @@ xclip # manipulate clipboard from scripts
|
|||||||
|
|
||||||
# NIX
|
# NIX
|
||||||
nixfmt # linting
|
nixfmt # linting
|
||||||
|
cachix # why spend time compiling?
|
||||||
|
|
||||||
# PYTHON.
|
# PYTHON.
|
||||||
python3 # base language
|
python3 # base language
|
||||||
@ -1000,28 +1001,42 @@ networking.firewall.allowedUDPPorts = [ 25152 80 443 ];
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* FINAL SYSTEM CONFIGURATIONS
|
* FINAL SYSTEM CONFIGURATIONS
|
||||||
** CREATE COPY OF NIXOS CONFIGURATION
|
The first setting creates a copy the NixOS configuration file and link it from
|
||||||
Copy the NixOS configuration file and link it from the resulting system
|
the resulting system (/run/current-system/configuration.nix). This is useful in
|
||||||
(/run/current-system/configuration.nix). This is useful in case you
|
case you accidentally delete configuration.nix.
|
||||||
accidentally delete configuration.nix.
|
|
||||||
|
|
||||||
#+begin_src nix
|
The version value determines the NixOS release from which the default settings for
|
||||||
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
|
|
||||||
stateful data, like file locations and database versions on your system.
|
stateful data, like file locations and database versions on your system.
|
||||||
It‘s perfectly fine and recommended to leave this value at the release version
|
It‘s perfectly fine and recommended to leave this value at the release version
|
||||||
of the first install of this system.
|
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
|
#+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
|
#+end_src
|
||||||
|
|
||||||
** CLOSING :D
|
** CLOSING :D
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user