diff --git a/configuration.nix b/configuration.nix index f324812..a73e766 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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; - } diff --git a/configuration.org b/configuration.org index 128659d..e7539f6 100755 --- a/configuration.org +++ b/configuration.org @@ -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. It‘s 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