From 47de61c98226806e108ba2783eb4dbdf8c1cdabb Mon Sep 17 00:00:00 2001 From: kenji Date: Sun, 28 Dec 2025 09:08:00 -0600 Subject: [PATCH] add(cachix): faster installation of system --- modules/system/default.nix | 2 ++ system/nix.nix | 15 +++++++++++++++ system/version.nix | 1 - 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 system/nix.nix diff --git a/modules/system/default.nix b/modules/system/default.nix index 6ab7d0a..8092d3f 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -1,6 +1,7 @@ {pkgs, ...}: { imports = [ ../../system/time.nix + ../../system/nix.nix ../../system/backlight.nix ../../system/boot.nix ../../system/amd.nix @@ -19,5 +20,6 @@ # FIXME: must be on their own app git cloudflared + cachix ]; } diff --git a/system/nix.nix b/system/nix.nix new file mode 100644 index 0000000..92897f6 --- /dev/null +++ b/system/nix.nix @@ -0,0 +1,15 @@ +{pkgs, ...}: { + nix.settings = { + substituters = [ + "https://cache.nixos.org" + "https://hyprland.cachix.org" + "https://nix-community.cachix.org" + ]; + trusted-public-keys = [ + "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" + "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; + experimental-features = ["nix-command" "flakes"]; + }; +} diff --git a/system/version.nix b/system/version.nix index 98edc1d..27e7443 100644 --- a/system/version.nix +++ b/system/version.nix @@ -5,7 +5,6 @@ distributedBuilds = true; settings = { builders-use-substitutes = true; - experimental-features = ["nix-command" "flakes"]; }; }; }