From 2ed07e556441a6753e1b711185ae6099d26911a1 Mon Sep 17 00:00:00 2001 From: KoenDR06 Date: Tue, 17 Feb 2026 16:14:03 +0100 Subject: [PATCH] small changes --- modules/network/ssh.nix | 3 ++- modules/timers/rooms.nix | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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";