small changes

This commit is contained in:
KoenDR06 2026-02-17 16:14:03 +01:00
parent 236ab2a37e
commit 2ed07e5564
2 changed files with 3 additions and 2 deletions

View file

@ -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}

View file

@ -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";