s0mePC-nix: init
Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
This commit is contained in:
parent
918f893bf2
commit
be4f7798f9
71 changed files with 1200 additions and 116 deletions
22
s0meMiniPC-nix/services/openssh.nix
Normal file
22
s0meMiniPC-nix/services/openssh.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{config, ...}: {
|
||||
services = {
|
||||
openssh = {
|
||||
enable = true;
|
||||
allowSFTP = true;
|
||||
openFirewall = true;
|
||||
ports = [
|
||||
5896
|
||||
];
|
||||
|
||||
settings = {
|
||||
PrintMotd = false;
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
|
||||
authorizedKeysFiles = [
|
||||
config.sops.secrets.sshKey.path
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue