From e4fce0a17a1254536df547a6b2e894f86bf053ed Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Thu, 22 Aug 2024 16:06:44 +0200 Subject: [PATCH] update --- hosts/server/modules/internal/openssh.nix | 8 +++++--- hosts/server/modules/jackflix/default.nix | 2 +- hosts/server/secrets/default.nix | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hosts/server/modules/internal/openssh.nix b/hosts/server/modules/internal/openssh.nix index 57946a1..c64701c 100644 --- a/hosts/server/modules/internal/openssh.nix +++ b/hosts/server/modules/internal/openssh.nix @@ -1,14 +1,16 @@ # SSH server -{ +{ config, ... }: { services.openssh = { enable = true; ports = [ 22 ]; settings = { PasswordAuthentication = true; - AllowUsers = null; # Allows all users by default. Can be [ "user1" "user2" ] + AllowUsers = + config.var.username; # Allows all users by default. Can be [ "user1" "user2" ] UseDns = true; X11Forwarding = false; - PermitRootLogin = "no"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no" + PermitRootLogin = + "no"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no" }; }; networking.firewall.allowedTCPPorts = [ 22 ]; diff --git a/hosts/server/modules/jackflix/default.nix b/hosts/server/modules/jackflix/default.nix index e6c1f7c..1a39b69 100644 --- a/hosts/server/modules/jackflix/default.nix +++ b/hosts/server/modules/jackflix/default.nix @@ -1,6 +1,6 @@ { imports = [ - # ./jellyfin.nix + ./jellyfin.nix # ./jellyseerr.nix # ./prowlarr.nix # ./radarr.nix diff --git a/hosts/server/secrets/default.nix b/hosts/server/secrets/default.nix index b294490..61a5b70 100644 --- a/hosts/server/secrets/default.nix +++ b/hosts/server/secrets/default.nix @@ -27,7 +27,7 @@ }; transmission-script = { mode = "0755"; - path = "/home/hadi/transmission-script.sh"; + path = "/home/jackflix/transmission-script.sh"; }; }; };