this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 36 lines 951 B view raw
1{ 2 pkgs, 3 lib, 4 config, 5 ... 6}: { 7 options.cow.ssh-server.enable = lib.mkEnableOption "OpenSSH daemon for accepting connections + customizations. Uses port 8069"; 8 9 config = lib.mkIf config.cow.ssh-server.enable { 10 # For nicer term rendering 11 environment.enableAllTerminfo = true; 12 13 services.openssh = { 14 enable = true; 15 openFirewall = true; 16 settings.Banner = let 17 name = lib.toUpper config.networking.hostName; 18 banner = pkgs.writeText "banner.txt" '' 19 -= ${name} =- 20 ''; 21 in "${banner}"; 22 listenAddresses = [ 23 { 24 addr = "0.0.0.0"; 25 } 26 ]; 27 # TODO: Maybe just use 22 like a normal person 28 ports = [8069]; 29 settings.PasswordAuthentication = false; 30 settings.UseDns = false; 31 # settings.LogLevel = "DEBUG1"; 32 settings.PermitRootLogin = "prohibit-password"; 33 settings.KbdInteractiveAuthentication = false; 34 }; 35 }; 36}