flake: rework modules folder structure
This commit is contained in:
parent
5d64c56d40
commit
0952665f6b
56 changed files with 3 additions and 3 deletions
|
|
@ -1,22 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.settings.services.openssh = {
|
||||
enable = lib.mkEnableOption "enable openSSH";
|
||||
usePAM = lib.mkEnableOption "use PAM for ssh authentication";
|
||||
};
|
||||
|
||||
#further move these options into settings
|
||||
config = lib.mkIf config.settings.services.openssh.enable {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [ 12342 ];
|
||||
settings = {
|
||||
UsePAM = config.settings.services.openssh.usePAM;
|
||||
PasswordAuthentication = true;
|
||||
AllowUsers = null;
|
||||
X11Forwarding = false;
|
||||
PermitRootLogin = "prohibit-password";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue