summaryrefslogtreecommitdiff
path: root/openstack.nix
blob: 4424fc9f55682170940d2e2b4495412628c7acd5 (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.nixVersions.latest; 
    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 ];
  services.openssh.settings.PermitRootLogin = lib.mkForce "no";
  services.openssh.settings.PasswordAuthentication = false;
  # Open ports in the firewall.
  networking.firewall.allowedTCPPorts = [ 1108 80 443 ];
  networking.firewall.allowedUDPPorts = [ ];

  # Configure keymap in X11
  services.xserver.layout = "gb";
  system.stateVersion = "22.11";
}