From 21783174014640c9a8ed0784bdd91aac9d84aa8e Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Mon, 4 May 2020 13:19:42 -0400 Subject: urbint system module --- system/modules/common.nix | 3 +-- system/modules/urbint.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 system/modules/urbint.nix diff --git a/system/modules/common.nix b/system/modules/common.nix index 9a09920a8a39..3f5023793d0e 100644 --- a/system/modules/common.nix +++ b/system/modules/common.nix @@ -100,9 +100,8 @@ }; nix = { + trustedUsers = [ "griffin" ]; autoOptimiseStore = true; - }; -} buildMachines = [{ hostName = "172.16.0.3"; diff --git a/system/modules/urbint.nix b/system/modules/urbint.nix new file mode 100644 index 000000000000..4b05175756bc --- /dev/null +++ b/system/modules/urbint.nix @@ -0,0 +1,18 @@ +{ config, pkgs, ... }: +{ + virtualisation.docker.enable = true; + + nix = rec { + binaryCaches = [ "https://nix.urbinternal.com" ]; + trustedBinaryCaches = binaryCaches; + trustedUsers = [ "griffin" ]; + requireSignedBinaryCaches = false; + }; + + services.openvpn.servers.urbint = { + config = '' + config /root/openvpn/urbint.conf + ''; + autoStart = false; + }; +} -- cgit 1.4.1