From 9ea9ea6ff29e0f08be476d5bf6bea215b53e2417 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Tue, 3 Oct 2023 23:13:57 +0100 Subject: [PATCH] feat: add cachix stuffs --- common/cachix.nix | 13 +++++++++++++ common/generic.nix | 4 +++- home/ash/default.nix | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 common/cachix.nix diff --git a/common/cachix.nix b/common/cachix.nix new file mode 100644 index 0000000..7a82e0c --- /dev/null +++ b/common/cachix.nix @@ -0,0 +1,13 @@ +{ + nix = { + settings = { + substituters = [ + "https://cache.nixos.org" + "https://ashhhleyyy.cachix.org" + ]; + trusted-public-keys = [ + "ashhhleyyy.cachix.org-1:s38C2TcMTtjaNv9uDwG918ehi0L2Uxw0OlGXPiWRchg=" + ]; + }; + }; +} diff --git a/common/generic.nix b/common/generic.nix index 114bd51..0d1ebc5 100644 --- a/common/generic.nix +++ b/common/generic.nix @@ -1,5 +1,7 @@ { pkgs, ... }: rec { - imports = [ ]; + imports = [ + ./cachix.nix + ]; nix.settings.experimental-features = [ "nix-command" "flakes" ]; diff --git a/home/ash/default.nix b/home/ash/default.nix index 244abf5..3757ba7 100644 --- a/home/ash/default.nix +++ b/home/ash/default.nix @@ -7,5 +7,6 @@ home.packages = with pkgs; [ wget + cachix ]; }