21 lines
391 B
Nix
21 lines
391 B
Nix
{ 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 = true;
|
|
openFirewall = true;
|
|
};
|
|
};
|
|
}
|