blob: ebf4eca119c5bc4fc79f8deaf8af4fdb9cbc0cf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ config, lib, pkgs, modulesPath, ... }:
{
nix = {
settings.trusted-users = [ "root" "commander" ];
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
# Set your time zone.
time.timeZone = "Europe/London";
# Select internationalisation properties.
i18n.defaultLocale = "en_GB.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "uk";
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.openssh.ports = [ 1108 22 ];
services.openssh.settings.PermitRootLogin = lib.mkForce "no";
services.openssh.settings.PasswordAuthentication = false;
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 1108 22 ];
networking.firewall.allowedUDPPorts = [ ];
# Configure keymap in X11
services.xserver.layout = "gb";
system.stateVersion = "22.11";
}
|