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
|
}: let
|
||||||
inherit (lib) mkEnableOption mkIf;
|
inherit (lib) mkEnableOption mkIf;
|
||||||
cfg = config.horseman.network.ssh;
|
cfg = config.horseman.network.ssh;
|
||||||
|
username = config.horseman.username;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
horseman.network.ssh = {
|
horseman.network.ssh = {
|
||||||
|
|
@ -19,7 +20,7 @@ in {
|
||||||
PermitRootLogin = "no";
|
PermitRootLogin = "no";
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
KbdInteractiveAuthentication = false;
|
KbdInteractiveAuthentication = false;
|
||||||
AllowUsers = ["horseman"];
|
AllowUsers = [username];
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
Hostkey ${config.age.secrets.personalSSH.path}
|
Hostkey ${config.age.secrets.personalSSH.path}
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ in {
|
||||||
systemd.services."rooms" = {
|
systemd.services."rooms" = {
|
||||||
script = ''
|
script = ''
|
||||||
cd /home/horseman/scripts
|
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 = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue