diff options
Diffstat (limited to 'usecases/server')
-rw-r--r-- | usecases/server/hydra-server.nix | 5 | ||||
-rw-r--r-- | usecases/server/jellyfin.nix | 1 | ||||
-rw-r--r-- | usecases/server/monitoring-server.nix | 4 | ||||
-rw-r--r-- | usecases/server/radicale.nix | 9 | ||||
-rw-r--r-- | usecases/server/taskserver.nix | 3 |
5 files changed, 8 insertions, 14 deletions
diff --git a/usecases/server/hydra-server.nix b/usecases/server/hydra-server.nix index 3a1d62e..db09a6e 100644 --- a/usecases/server/hydra-server.nix +++ b/usecases/server/hydra-server.nix | |||
@@ -15,9 +15,8 @@ inputs: | |||
15 | config = { | 15 | config = { |
16 | services.hydra = { | 16 | services.hydra = { |
17 | enable = true; | 17 | enable = true; |
18 | # TODO: for NixOS 21.05 | 18 | hydraURL = "https://hydra.${config.networking.fqdn}"; |
19 | #hydraURL = "https://hydra.${config.networking.fqdn}"; | 19 | notificationSender = "hydra@${config.networking.fqdn}"; |
20 | #notificationSender = "hydra@${config.networking.fqdn}"; | ||
21 | buildMachinesFiles = [ ]; | 20 | buildMachinesFiles = [ ]; |
22 | # Don't build *everything* from source | 21 | # Don't build *everything* from source |
23 | useSubstitutes = true; | 22 | useSubstitutes = true; |
diff --git a/usecases/server/jellyfin.nix b/usecases/server/jellyfin.nix index 0e0a0e4..6f62c34 100644 --- a/usecases/server/jellyfin.nix +++ b/usecases/server/jellyfin.nix | |||
@@ -3,7 +3,6 @@ inputs: | |||
3 | { config, lib, pkgs, ... }: | 3 | { config, lib, pkgs, ... }: |
4 | 4 | ||
5 | { | 5 | { |
6 | # TODO: for NixOS 21.05 | ||
7 | imports = [ | 6 | imports = [ |
8 | (inputs.nixpkgs-unstable.outPath + "/nixos/modules/services/misc/jellyfin.nix") | 7 | (inputs.nixpkgs-unstable.outPath + "/nixos/modules/services/misc/jellyfin.nix") |
9 | ]; | 8 | ]; |
diff --git a/usecases/server/monitoring-server.nix b/usecases/server/monitoring-server.nix index 823f4f9..c39b145 100644 --- a/usecases/server/monitoring-server.nix +++ b/usecases/server/monitoring-server.nix | |||
@@ -12,9 +12,7 @@ inputs: | |||
12 | 12 | ||
13 | listenAddress = "127.0.0.1"; | 13 | listenAddress = "127.0.0.1"; |
14 | 14 | ||
15 | # TODO: for NixOS 21.05 | 15 | retentionTime = "15w"; |
16 | extraFlags = [ "--storage.tsdb.retention=15w" ]; | ||
17 | #retentionTime = "15w"; | ||
18 | 16 | ||
19 | scrapeConfigs = [ | 17 | scrapeConfigs = [ |
20 | { | 18 | { |
diff --git a/usecases/server/radicale.nix b/usecases/server/radicale.nix index a998643..b20bff8 100644 --- a/usecases/server/radicale.nix +++ b/usecases/server/radicale.nix | |||
@@ -3,13 +3,12 @@ inputs: | |||
3 | { config, ... }: | 3 | { config, ... }: |
4 | 4 | ||
5 | { | 5 | { |
6 | # TODO: use RFC42 settings for NixOS 21.05 | ||
7 | services.radicale = { | 6 | services.radicale = { |
8 | enable = true; | 7 | enable = true; |
9 | config = '' | 8 | settings = { |
10 | [server] | 9 | # Bind address on VPN interface only |
11 | hosts = ${config.topology.mainVpn.currentNodeIP}:5232 | 10 | server.hosts = "[${config.topology.mainVpn.currentNodeIP}]:5232"; |
12 | ''; | 11 | }; |
13 | }; | 12 | }; |
14 | 13 | ||
15 | networking.firewall.interfaces.${config.topology.mainVpn.interfaceName}.allowedTCPPorts = [ | 14 | networking.firewall.interfaces.${config.topology.mainVpn.interfaceName}.allowedTCPPorts = [ |
diff --git a/usecases/server/taskserver.nix b/usecases/server/taskserver.nix index e459e5c..614828c 100644 --- a/usecases/server/taskserver.nix +++ b/usecases/server/taskserver.nix | |||
@@ -5,8 +5,7 @@ inputs: | |||
5 | { | 5 | { |
6 | services.taskserver = { | 6 | services.taskserver = { |
7 | enable = true; | 7 | enable = true; |
8 | # TODO: for NixOS 21.05 | 8 | fqdn = "tasks.${config.networking.fqdn}"; |
9 | #fqdn = "tasks.${config.networking.fqdn}"; | ||
10 | listenHost = config.topology.mainVpn.currentNodeIP; | 9 | listenHost = config.topology.mainVpn.currentNodeIP; |
11 | 10 | ||
12 | organisations.default.users = [ "minijackson" ]; | 11 | organisations.default.users = [ "minijackson" ]; |