2023-03-07 15:48:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
2022-08-21 22:07:09 +00:00
|
|
|
psCfg = config.pub-solar;
|
|
|
|
cfg = config.pub-solar.server;
|
2023-03-07 15:48:46 +00:00
|
|
|
in {
|
2022-08-21 22:07:09 +00:00
|
|
|
options.pub-solar.server = {
|
|
|
|
enable = mkEnableOption "Enable server options like sshd";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
pub-solar.core.lite = true;
|
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
permitRootLogin = lib.mkForce "prohibit-password";
|
|
|
|
passwordAuthentication = true;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
2023-03-07 15:48:46 +00:00
|
|
|
|
|
|
|
networking.networkmanager.enable = lib.mkForce false;
|
|
|
|
pub-solar.nextcloud.enable = lib.mkForce false;
|
2022-08-21 22:07:09 +00:00
|
|
|
};
|
|
|
|
}
|