all repos — nixfiles @ f5785c7356f7538306397493b33c859f05886c35

System and user configuration, managed by nix and home-manager

prefect: enable SSH

Alan Pearce
commit

f5785c7356f7538306397493b33c859f05886c35

parent

88661823ed8563dafa4f8304e537f4ae5d9c2341

2 files changed, 8 insertions(+), 0 deletions(-)

jump to
M system/prefect.nixsystem/prefect.nix
@@ -73,6 +73,11 @@ '';
}; networking.firewall.allowedTCPPorts = [ config.services.postgresql.port ]; + services.openssh = { + enable = true; + openFirewall = false; + startWhenNeeded = true; + }; networking.firewall.extraCommands = '' iptables -A nixos-fw -p udp --source 172.30.44.0/24 -j nixos-fw-accept iptables -A nixos-fw -p tcp --source 172.30.44.0/24 -j nixos-fw-accept
M system/settings/configuration/user.nixsystem/settings/configuration/user.nix
@@ -8,5 +8,8 @@ shell = "/run/current-system/sw/bin/zsh";
initialPassword = "password"; home = "/home/alan"; uid = 1000; + openssh.authorizedKeys.keys = [ + "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDRIsbc/xJGxEJGCCNT99kQhB1N84jPlPtrqSVF/OxbGenvk2HWbL/q/YpEUkG5eQrfV5jK8nXfNfjSsPDjF96A= alan@alanpearce.eu (sekey)" + ]; }; }