[ssh] Move to actual module
This commit is contained in:
parent
197fcdbb81
commit
37b3968722
10 changed files with 100 additions and 78 deletions
17
nixos/modules/services/openssh/default.nix
Normal file
17
nixos/modules/services/openssh/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.sisyphus.services.openssh;
|
||||
in {
|
||||
options.sisyphus.services.openssh.enable = lib.mkEnableOption "OpenSSH";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = "no";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue