add ssh server
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
../../modules/system/fonts.nix
|
||||
../../modules/system/services.nix
|
||||
../../modules/system/vpn.nix
|
||||
../../modules/system/ssh.nix
|
||||
];
|
||||
|
||||
networking.hostName = "matiss";
|
||||
|
||||
14
modules/system/ssh.nix
Normal file
14
modules/system/ssh.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
# ==========================================
|
||||
# SSH SERVER CONFIGURATION
|
||||
# ==========================================
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = true; # Change to false once you add SSH keys
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user