modules: remove redundant server module, SSH is enabled in core profile, too
This commit is contained in:
parent
7473789e8e
commit
0bfe4a135e
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -10,4 +10,4 @@ doi
|
|||
pkgs/_sources/.shake*
|
||||
|
||||
tags
|
||||
/owners
|
||||
/owners
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
with lib;
|
||||
let
|
||||
psCfg = config.pub-solar;
|
||||
cfg = config.pub-solar.server;
|
||||
in
|
||||
{
|
||||
options.pub-solar.server = {
|
||||
enable = mkEnableOption "Enable server options like sshd";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
permitRootLogin = "no";
|
||||
passwordAuthentication = false;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue