mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 02:57:44 +00:00
Start refactor
This commit is contained in:
parent
99b7ccfadb
commit
06cce18e72
155 changed files with 2139 additions and 3738 deletions
18
modules/linux/sshd.nix
Normal file
18
modules/linux/sshd.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ lib, ...}: let
|
||||
inherit (lib) enabled;
|
||||
port = 2222;
|
||||
in {
|
||||
programs.mosh = enabled {
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
services.openssh = enabled {
|
||||
ports = [ port ];
|
||||
settings = {
|
||||
KbdInteractiveAuthentication = false;
|
||||
PasswordAuthentication = false;
|
||||
|
||||
AcceptEnv = "SHELLS COLORTERM";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue