Move all files
This commit is contained in:
parent
d0e303d0f9
commit
34c8b954e5
45 changed files with 352 additions and 645 deletions
22
modules/server/openssh/default.nix
Normal file
22
modules/server/openssh/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.server.openssh;
|
||||
in
|
||||
{
|
||||
options.modules.server.openssh = {
|
||||
enable = mkEnableOption ''
|
||||
Enable openssh with my custom configurations
|
||||
'';
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
PasswordAuthentication = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue