commit aed0dadf2d87dae5df517c335641640b58503862 parent 3b92a510e1c8345797d9b462643b591eb035597b Author: Vincent Demeester <vincent@sbr.pm> Date: Fri, 19 Nov 2021 18:11:23 +0100 systems/modules: fix builder filter… Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | systems/modules/profiles/builder.nix | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/systems/modules/profiles/builder.nix b/systems/modules/profiles/builder.nix @@ -4,7 +4,7 @@ let inherit (lib) mkIf mkEnableOption importTOML filter; cfg = config.profiles.externalbuilder; metadata = importTOML ../../../ops/hosts.toml; - isCurrentHost = n: n.hostName != config.networking.hostName; + isCurrentHost = n: n.hostName != metadata.hosts.${config.networking.hostName}.addrs.v4; in { options = { @@ -54,7 +54,7 @@ in isNormalUser = true; uid = 1018; extraGroups = [ ]; - openssh.authorizedKeys.keys = [ (builtins.readFile "/etc/nixos/secrets/builder.pub") ]; + openssh.authorizedKeys.keys = [ (builtins.readFile ../../../secrets/builder.pub) ]; }; nix.trustedUsers = [ "root" "vincent" "builder" ];