aboutsummaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index 31af3c0..d553c73 100644
--- a/default.nix
+++ b/default.nix
@@ -1,5 +1,7 @@
{ pkgs ? import <nixpkgs> {}
, kernelPackages ? pkgs.linuxPackages_latest
+ # The CA of the host's egress proxy (see host.nix), if it's there.
+, caCert ? "/var/lib/fcbr0-egress/ca.pem"
}:
let
inherit (pkgs) lib;
@@ -66,8 +68,10 @@ let
networking.useDHCP = false;
networking.resolvconf.enable = false;
# The host resolves every name to itself and proxies TLS to allowed
- # names, see host.nix.
+ # names, decrypting some with certificates from its CA, see host.nix.
environment.etc."resolv.conf".text = "nameserver 172.16.0.1\n";
+ security.pki.certificateFiles =
+ lib.optional (builtins.pathExists caCert) (/. + caCert);
systemd.network.enable = true;
systemd.network.wait-online.enable = false;
systemd.network.networks.eth = {