From 411bf5b0f255601b49136bf6f6799b93ba8cbb71 Mon Sep 17 00:00:00 2001 From: marc Date: Mon, 24 Mar 2025 22:56:23 +0100 Subject: [PATCH] Thingvellir fixes --- config/nomad.d/host-thingvellir.hcl | 2 +- modules/system/ssh.nix | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/config/nomad.d/host-thingvellir.hcl b/config/nomad.d/host-thingvellir.hcl index fd680af..ebd5eef 100644 --- a/config/nomad.d/host-thingvellir.hcl +++ b/config/nomad.d/host-thingvellir.hcl @@ -34,7 +34,7 @@ client { # Folkugat host_volume "folkugat" { - path = "/mnt/vatnajokull/nomad_volumes/folkugat" + path = "/var/lib/nomad_volumes/folkugat" read_only = false } } diff --git a/modules/system/ssh.nix b/modules/system/ssh.nix index 5f5a945..fcf2f0d 100644 --- a/modules/system/ssh.nix +++ b/modules/system/ssh.nix @@ -8,12 +8,15 @@ in enable = lib.mkEnableOption "ssh"; }; config = lib.mkIf cfg.enable { - services.openssh = { - enable = true; - settings = { - # TODO: Use ssh keys - PasswordAuthentication = true; + services = { + openssh = { + enable = true; + settings = { + # TODO: Use ssh keys + PasswordAuthentication = true; + }; }; + # fail2ban.enable = true; }; networking.firewall.allowedTCPPorts = [ 22 ];