diff --git a/flake.nix b/flake.nix index 873de9a..6bd88bb 100644 --- a/flake.nix +++ b/flake.nix @@ -61,8 +61,22 @@ }; nixConfig = { - extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="; - extra-substituters = "https://devenv.cachix.org"; + extra-trusted-public-keys = [ + "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=" + "phundrak.cachix.org-1:osJAkYO0ioTOPqaQCIXMfIRz1/+YYlVFkup3R2KSexk=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; + extra-substituters = [ + "https://nix-community.cachix.org?priority=10" + "https://devenv.cachix.org?priority=20" + "https://phundrak.cachix.org?priority=30" + "https://cache.nixos.org?priority=40" + ]; + extra-experimental-features = [ + "nix-command" + "flakes" + ]; + http-connections = 128; }; outputs = { diff --git a/system/default.nix b/system/default.nix index cfe89ae..00917ee 100644 --- a/system/default.nix +++ b/system/default.nix @@ -36,10 +36,33 @@ in { boot.tmp.cleanOnBoot = true; console.keyMap = cfg.keymap; time.timeZone = cfg.timezone; - environment.pathsToLink = ["/share/bash-completion" "/share/zsh"]; + environment.pathsToLink = [ + "/share/bash-completion" + "/share/zsh" + ]; services = { orca.enable = false; envfs.enable = true; }; + + nix.settings = { + substituters = [ + "https://nix-community.cachix.org?priority=10" + "https://devenv.cachix.org?priority=20" + "https://phundrak.cachix.org?priority=30" + "https://cache.nixos.org?priority=40" + ]; + trusted-public-keys = [ + "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=" + "phundrak.cachix.org-1:osJAkYO0ioTOPqaQCIXMfIRz1/+YYlVFkup3R2KSexk=" + ]; + http-connections = 128; + experimental-features = [ + "nix-command" + "flakes" + ]; + }; }; }