summaryrefslogtreecommitdiff
path: root/openstack.nix
diff options
context:
space:
mode:
authorjohn bargman2023-09-09 20:21:59 +0100
committerjohn bargman2023-09-09 20:21:59 +0100
commit0932b22d61118b05762d8f2ce42b71ddcb0760fc (patch)
treefa78a992ddce97331d44c58fa568881bcbd6bb62 /openstack.nix
downloadcrash-web-0932b22d61118b05762d8f2ce42b71ddcb0760fc.tar
crash-web-0932b22d61118b05762d8f2ce42b71ddcb0760fc.tar.gz
crash-web-0932b22d61118b05762d8f2ce42b71ddcb0760fc.tar.bz2
crash-web-0932b22d61118b05762d8f2ce42b71ddcb0760fc.tar.lz
crash-web-0932b22d61118b05762d8f2ce42b71ddcb0760fc.tar.xz
crash-web-0932b22d61118b05762d8f2ce42b71ddcb0760fc.tar.zst
crash-web-0932b22d61118b05762d8f2ce42b71ddcb0760fc.zip
initial server config
Diffstat (limited to 'openstack.nix')
-rw-r--r--openstack.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/openstack.nix b/openstack.nix
new file mode 100644
index 0000000..ebf4eca
--- /dev/null
+++ b/openstack.nix
@@ -0,0 +1,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";
+}