about summary refs log tree commit diff
path: root/machines/profpatsch/base-server.toml
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2020-12-30 18:30:53 +0100
committerProfpatsch <mail@profpatsch.de>2020-12-30 18:33:31 +0100
commit47a8bf4dd2cb1f6778b38bc2f4990ba72366d5a9 (patch)
tree51b7b6e249c32b8d466de66b1e421ebf89d1999d /machines/profpatsch/base-server.toml
parent2c24ba1d864d98d4c2c3a50501a41b61b43f854a (diff)
machines/profpatsch/base-server: convert module to toml definition
This is a working PoC of specifying module configs as toml
configuration with simple to understand semantics.

Both the option definitions and the actual config values can be
specified via the toml DSL.

This is extremely happy-path for now, so errors are gonna be horrible.
Diffstat (limited to 'machines/profpatsch/base-server.toml')
-rw-r--r--machines/profpatsch/base-server.toml26
1 files changed, 26 insertions, 0 deletions
diff --git a/machines/profpatsch/base-server.toml b/machines/profpatsch/base-server.toml
new file mode 100644
index 00000000..b2b4a88a
--- /dev/null
+++ b/machines/profpatsch/base-server.toml
@@ -0,0 +1,26 @@
+[module]
+type = "nixos-config"
+version = "0.0.1"
+
+[[imports]]
+module = "./base.nix"
+
+[configVariables]
+server = [ "vuizvui", "user", "profpatsch", "server" ]
+
+[programs.mosh]
+enable = true
+
+[services.openssh]
+enable = true
+
+  [[services.openssh.listenAddresses]]
+  addr = "0.0.0.0"
+  port._configVariable.server = "sshPort"
+
+[networking.firewall]
+enable = true
+allowPing = true
+
+[[networking.firewall.allowedTCPPorts]]
+_configVariable.server = "sshPort"