blob: 8db3f0f9e243d696497a0414692d1bec19cbe8af (
plain) (
blame)
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
|
# NB: this is an experiment whether we can express configuration files as TOML;
# so far I’m not 100% sure it is a good idea :)
[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]
enableIPv6 = false
[networking.firewall]
enable = true
allowPing = true
[[networking.firewall.allowedTCPPorts]]
_configVariable.server = "sshPort"
|