summaryrefslogtreecommitdiff
path: root/hosts/chaski/services
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hosts/chaski/services/uplcg.nix12
-rw-r--r--hosts/chaski/services/woitb.nix10
2 files changed, 5 insertions, 17 deletions
diff --git a/hosts/chaski/services/uplcg.nix b/hosts/chaski/services/uplcg.nix
index fa59528..5605046 100644
--- a/hosts/chaski/services/uplcg.nix
+++ b/hosts/chaski/services/uplcg.nix
@@ -1,15 +1,8 @@
-{ config, lib, pkgs, ... }:
+{ config, lib, pkgs, inputs, ... }:
-let
- #sources = import ../../../nix/sources.nix;
- uplcg-nix = fetchGit {
- url = "https://stuebinm.eu/git/uplcg";
- rev = "8c19e63eb67093f960be060f08a873a9d696d226";
- };
-in
{
imports = [
- "${uplcg-nix.outPath}/module.nix"
+ "${inputs.uplcg.outPath}/module.nix"
];
services.uplcg = {
@@ -18,6 +11,7 @@ in
domain = "0.0.0.0";
};
+ services.nginx.enable = true;
services.nginx.virtualHosts."cards.stuebinm.eu" = {
locations."/" = {
proxyPass = "http://localhost:9080";
diff --git a/hosts/chaski/services/woitb.nix b/hosts/chaski/services/woitb.nix
index a2d64a0..0c50617 100644
--- a/hosts/chaski/services/woitb.nix
+++ b/hosts/chaski/services/woitb.nix
@@ -1,4 +1,4 @@
-{ config, lib, pkgs, ... }:
+{ config, lib, pkgs, inputs, ... }:
let
#sources = ../../nix/sources.nix;
@@ -26,13 +26,7 @@ in
services.nginx.virtualHosts."track.ilztal.live" = {
enableACME = true;
forceSSL = true;
- locations."/".root = pkgs.copyPathToStore /home/stuebinm/Dokumente/utils/tracktrain;
+ locations."/".root = inputs.tracktrain;
};
- networking.firewall.allowedTCPPorts = [ 80 443 ];
-
- services.nginx.appendHttpConfig = ''
- access_log off;
- add_header Permissions-Policy "interest-cohort=()";
- '';
}