urbint system module

This commit is contained in:
Griffin Smith 2020-05-04 13:19:42 -04:00
parent 5222b8d15a
commit 2178317401
2 changed files with 19 additions and 2 deletions

View file

@ -100,9 +100,8 @@
};
nix = {
trustedUsers = [ "griffin" ];
autoOptimiseStore = true;
};
}
buildMachines = [{
hostName = "172.16.0.3";

18
system/modules/urbint.nix Normal file
View file

@ -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;
};
}