os/modules/server/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
570 B
Nix
Raw Normal View History

2023-03-07 16:48:46 +01:00
{
lib,
config,
pkgs,
...
}:
with lib; let
2022-08-22 00:07:09 +02:00
psCfg = config.pub-solar;
cfg = config.pub-solar.server;
2023-03-07 16:48:46 +01:00
in {
2022-08-22 00:07:09 +02: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 16:48:46 +01:00
networking.networkmanager.enable = lib.mkForce false;
pub-solar.nextcloud.enable = lib.mkForce false;
2022-08-22 00:07:09 +02:00
};
}