mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-05 20:56:33 +05:30
refactor: seperate modules
This commit is contained in:
@ -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 = [
|
||||||
|
@ -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.
|
||||||
|
Reference in New Issue
Block a user