small changes
This commit is contained in:
parent
236ab2a37e
commit
2ed07e5564
2 changed files with 3 additions and 2 deletions
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue