diff --git a/modules/network/ssh.nix b/modules/network/ssh.nix index 91961fb..d650979 100644 --- a/modules/network/ssh.nix +++ b/modules/network/ssh.nix @@ -5,6 +5,7 @@ }: let inherit (lib) mkEnableOption mkIf; cfg = config.horseman.network.ssh; + username = config.horseman.username; in { options = { horseman.network.ssh = { @@ -19,7 +20,7 @@ in { PermitRootLogin = "no"; PasswordAuthentication = false; KbdInteractiveAuthentication = false; - AllowUsers = ["horseman"]; + AllowUsers = [username]; }; extraConfig = '' Hostkey ${config.age.secrets.personalSSH.path} diff --git a/modules/timers/rooms.nix b/modules/timers/rooms.nix index 366889f..6373474 100644 --- a/modules/timers/rooms.nix +++ b/modules/timers/rooms.nix @@ -29,7 +29,7 @@ in { systemd.services."rooms" = { script = '' cd /home/horseman/scripts - /run/current-system/sw/bin/java -jar KamerZoeken-1.0.0.jar headless + ${pkgs.jdk}/bin/java -jar KamerZoeken-1.0.0.jar headless ''; serviceConfig = { Type = "oneshot";