From 10843c1efc1547a4474a35a9f98dd86141b0e4a5 Mon Sep 17 00:00:00 2001 From: Alexander Kobjolke Date: Sat, 20 Jan 2024 19:51:48 +0100 Subject: [PATCH] thrall: Extract haskell.nix config - iohk public key and cache --- hosts/thrall/default.nix | 7 +------ modules/iohk.nix | 9 +++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 modules/iohk.nix 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" ]; +}