dev.tolma.ch in hosts && openssh server

This commit is contained in:
2026-03-11 20:11:56 +03:00
parent 4a32000313
commit 4ca21cb595
2 changed files with 16 additions and 3 deletions

View File

@@ -42,6 +42,10 @@
LC_TIME = "ru_RU.UTF-8";
};
networking.hosts = {
"127.0.0.1" = [ "dev.tolma.ch" ];
};
# Enable the X11 windowing system.
services.xserver.enable = true;
@@ -80,6 +84,18 @@
configDir = "/home/venya/.config/syncthing"; # Folder for Syncthing's settings and keys
};
services.openssh = {
enable = true;
ports = [ 222 ];
settings = {
PasswordAuthentication = true;
AllowUsers = null; # Allows all users by default. Can be [ "user1" "user2" ]
UseDns = true;
X11Forwarding = false;
PermitRootLogin = "prohibit-password"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no"
};
};
fonts = {
# https://www.programmingfonts.org/#roboto to check fonts visually