mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12:09 +02:00
update
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
permitRootLogin = "no";
|
|
||||||
passwordAuthentication = false;
|
|
||||||
openFirewall = true;
|
|
||||||
ports = [ 22 ];
|
ports = [ 22 ];
|
||||||
settings.AllowUsers = [ config.var.username ];
|
openFirewall = true;
|
||||||
|
settings = {
|
||||||
|
PermitRootLogin = "no";
|
||||||
|
PasswordAuthentication = false;
|
||||||
|
AllowUsers = [ config.var.username ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users."${config.var.username}" = {
|
users.users."${config.var.username}" = {
|
||||||
|
|||||||
Reference in New Issue
Block a user