dev.tolma.ch in hosts && openssh server
This commit is contained in:
@@ -42,6 +42,10 @@
|
|||||||
LC_TIME = "ru_RU.UTF-8";
|
LC_TIME = "ru_RU.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.hosts = {
|
||||||
|
"127.0.0.1" = [ "dev.tolma.ch" ];
|
||||||
|
};
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
|
||||||
@@ -80,6 +84,18 @@
|
|||||||
configDir = "/home/venya/.config/syncthing"; # Folder for Syncthing's settings and keys
|
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 = {
|
fonts = {
|
||||||
# https://www.programmingfonts.org/#roboto to check fonts visually
|
# https://www.programmingfonts.org/#roboto to check fonts visually
|
||||||
|
|||||||
@@ -29,9 +29,6 @@
|
|||||||
boot.supportedFilesystems = ["ntfs"];
|
boot.supportedFilesystems = ["ntfs"];
|
||||||
|
|
||||||
networking.hostName = "nixos"; # Define your hostname.
|
networking.hostName = "nixos"; # Define your hostname.
|
||||||
networking.hosts = {
|
|
||||||
"127.0.0.1" = [ "dev.tolma.ch" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user