diff --git a/flake.nix b/flake.nix index aa0b97a..d06ce01 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,51 @@ { description = "hand7s'es flake"; + nixConfig = { + max-jobs = "auto"; + builders = ""; + require-sigs = true; + sandbox = true; + sandbox-fallback = false; + auto-optimise-store = true; + + allowed-users = [ + "@wheel" + ]; + + trusted-users = [ + "root" + "@wheel" + ]; + + experimental-features = [ + "nix-command" + "flakes" + ]; + + extra-substituters = [ + "https://cache.nixos.org" + "https://cache.garnix.io" + "https://nix-community.cachix.org" + "https://chaotic-nyx.cachix.org" + "https://hyprland.cachix.org" + "https://devenv.cachix.org" + "https://hydra.nix-community.org" + "https://attic.xuyh0120.win/lantian" + ]; + + extra-trusted-public-keys = [ + "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" + "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" + "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + "chaotic-nyx.cachix.org-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8=" + "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + "lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc=" + ]; + }; + inputs = { "agenix" = { flake = true;