summary refs log tree commit diff stats
path: root/flake.nix
diff options
context:
space:
mode:
authorAlan Pearce2024-11-15 12:33:51 +0100
committerAlan Pearce2024-11-15 12:33:51 +0100
commit3822220931b125c05d864920e3d29cb7096b759f (patch)
treed2483f2a445167a59df044161d34bddc152c834c /flake.nix
parent8dc044f11630209520e7db272a8937994b3e5db8 (diff)
downloadnixfiles-3822220931b125c05d864920e3d29cb7096b759f.tar.lz
nixfiles-3822220931b125c05d864920e3d29cb7096b759f.tar.zst
nixfiles-3822220931b125c05d864920e3d29cb7096b759f.zip
marvin: use nh_darwin fork of nh
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 8dad9fa1..7f6a2def 100644
--- a/flake.nix
+++ b/flake.nix
@@ -9,6 +9,7 @@
     darwin.inputs.nixpkgs.follows = "nixpkgs";
     home-manager.url = "github:nix-community/home-manager";
     home-manager.inputs.nixpkgs.follows = "nixpkgs";
+    nh-darwin.url = "github:ToyVo/nh_darwin";
     secrets = {
       flake = false;
     };
@@ -38,6 +39,7 @@
     , nixos-hardware
     , home-manager
     , darwin
+    , nh-darwin
     , nix-index-database
     , secrets
     , agenix
@@ -116,6 +118,7 @@
         specialArgs = { inherit inputs; };
         modules = [
           ./system/marvin.nix
+          nh-darwin.nixDarwinModules.prebuiltin
           personal.darwinModules.caddy
         ];
       };
@@ -154,4 +157,12 @@
         ];
       };
     };
+  nixConfig = {
+    extra-substituters = [
+      "https://toyvo.cachix.org"
+    ];
+    extra-trusted-public-keys = [
+      "toyvo.cachix.org-1:s++CG1te6YaS9mjICre0Ybbya2o/S9fZIyDNGiD4UXs="
+    ];
+  };
 }