From d6c287abd694805eb6c56919d970dd7b081388c6 Mon Sep 17 00:00:00 2001 From: gothiquess Date: Sun, 23 Feb 2025 09:40:03 -0500 Subject: [PATCH] feat: cachix --- configuration.nix | 12 ++++++++++-- home/home.nix | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 033b8c2..837cff1 100644 --- a/configuration.nix +++ b/configuration.nix @@ -26,14 +26,22 @@ in { networking.hostName = "thonkpad"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. - nix.settings.experimental-features = ["nix-command" "flakes"]; - nix = { nixPath = [ "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos" "nixos-config=/home/synchronous/nix-cfg/configuration.nix" "/nix/var/nix/profiles/per-user/root/channels" ]; + + settings = { + experimental-features = ["nix-command" "flakes"]; + substituters = [ + "https://nix-community.cachix.org" + ]; + trusted-public-keys = [ + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; + }; }; # Configure network proxy if necessary diff --git a/home/home.nix b/home/home.nix index 86bfe3c..9e99542 100644 --- a/home/home.nix +++ b/home/home.nix @@ -36,6 +36,7 @@ in { home.packages = with pkgs; [ + cachix # any other packages go here # xrandr xorg.xrandr