From b35a71bff9729ad84412ab040a043855ef9486f3 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 6 May 2019 22:51:26 -0700 Subject: [PATCH] [NixOS] DFINITY specific configuration file --- nixos/dfinity.nix | 10 ++++++++++ nixos/machines/dfinity-blade15.nix | 1 + 2 files changed, 11 insertions(+) create mode 100644 nixos/dfinity.nix diff --git a/nixos/dfinity.nix b/nixos/dfinity.nix new file mode 100644 index 00000000..a47e5f5f --- /dev/null +++ b/nixos/dfinity.nix @@ -0,0 +1,10 @@ +{ + nix = { + trustedBinaryCaches = [ https://nix.oregon.dfinity.build ]; + binaryCachePublicKeys = [ "hydra.oregon.dfinity.build-2:KMTixHrh9DpAjF/0xU/49VEtNuGzQ71YaVIUSOLUaCM=" ]; + }; + + networking.extraResolvconfConf = '' + name_servers="10.20.13.192" + ''; +} diff --git a/nixos/machines/dfinity-blade15.nix b/nixos/machines/dfinity-blade15.nix index 5e363c4a..8383f8e3 100644 --- a/nixos/machines/dfinity-blade15.nix +++ b/nixos/machines/dfinity-blade15.nix @@ -7,6 +7,7 @@ imports = [ ../configuration.nix + ../dfinity.nix ]; boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" ];