refactor: seperate modules

This commit is contained in:
tux
2025-02-23 02:27:58 +05:30
parent e221ba42cf
commit a2703919f3
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
../../modules/droid/sshd.nix ../../modules/droid/sshd.nix
]; ];
services.openssh = { tux.services.openssh = {
enable = true; enable = true;
ports = [8022]; ports = [8022];
authorizedKeys = [ authorizedKeys = [

View File

@ -24,7 +24,7 @@
sshd-start-bin = "sshd-start"; sshd-start-bin = "sshd-start";
# real config # real config
cfg = config.services.openssh; cfg = config.tux.services.openssh;
pathOfKeyOf = type: "${keysFolder}/ssh_host_${type}_key"; pathOfKeyOf = type: "${keysFolder}/ssh_host_${type}_key";
@ -56,7 +56,7 @@
''; '';
in { in {
options = { options = {
services.openssh = { tux.services.openssh = {
enable = lib.mkEnableOption '' enable = lib.mkEnableOption ''
Whether to enable the OpenSSH secure shell daemon, which Whether to enable the OpenSSH secure shell daemon, which
allows secure remote logins. allows secure remote logins.