diff --git a/hosts/thrall/default.nix b/hosts/thrall/default.nix index db917a5..1151964 100644 --- a/hosts/thrall/default.nix +++ b/hosts/thrall/default.nix @@ -11,14 +11,9 @@ in { ./hardware-configuration.nix ../../modules/upgrade-pg-cluster.nix ../../modules/nix-config.nix + ../../modules/iohk.nix ]; - # Binary Cache for Haskell.nix - nix.settings.trusted-public-keys = - [ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" ]; - - #nix.binaryCaches = [ "https://hydra.iohk.io" ]; - # Use the GRUB 2 boot loader. boot.loader.grub.enable = true; # boot.loader.grub.efiSupport = true; diff --git a/modules/iohk.nix b/modules/iohk.nix new file mode 100644 index 0000000..b4215c9 --- /dev/null +++ b/modules/iohk.nix @@ -0,0 +1,9 @@ +{ config, lib, pkgs, ... }: + +{ + # Binary Cache for Haskell.nix + nix.settings.trusted-public-keys = + [ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" ]; + + nix.settings.substituters = lib.mkAfter [ "https://hydra.iohk.io" ]; +}