mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-25 21:30:52 +01:00
21 lines
406 B
Nix
21 lines
406 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.luj.ssh-server;
|
|
in
|
|
with lib;
|
|
{
|
|
options.luj.ssh-server = {
|
|
enable = mkEnableOption "Accept ssh connections";
|
|
};
|
|
|
|
config = mkIf cfg.enable
|
|
{
|
|
services.openssh = {
|
|
enable = true;
|
|
ports = [ 45 ];
|
|
settings.PasswordAuthentication = false;
|
|
settings.PermitRootLogin = "yes";
|
|
openFirewall = true;
|
|
};
|
|
};
|
|
}
|