From 4ca21cb595af6bd57b53c96cd8d70bbe6f67ddc1 Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Wed, 11 Mar 2026 20:11:56 +0300 Subject: [PATCH] dev.tolma.ch in hosts && openssh server --- defaults/default.nix | 16 ++++++++++++++++ hosts/stitch.nix | 3 --- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/defaults/default.nix b/defaults/default.nix index 5a380f9..4cf17ea 100644 --- a/defaults/default.nix +++ b/defaults/default.nix @@ -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 diff --git a/hosts/stitch.nix b/hosts/stitch.nix index 6372b35..ae39af7 100644 --- a/hosts/stitch.nix +++ b/hosts/stitch.nix @@ -29,9 +29,6 @@ boot.supportedFilesystems = ["ntfs"]; networking.hostName = "nixos"; # Define your hostname. - networking.hosts = { - "127.0.0.1" = [ "dev.tolma.ch" ]; - }; networking.networkmanager.enable = true;