Merge branch 'master' of github.com:TheWanderingCrow/NixOS

This commit is contained in:
TheWanderingCrow 2025-03-03 10:54:33 -05:00
commit 931bc063a1
3 changed files with 27 additions and 5 deletions

View file

@ -43,6 +43,7 @@ lib.mkIf config.user.overseer.enable {
"homebox.wanderingcrow.net" = {};
"bookstack.wanderingcrow.net" = {};
"cache.wanderingcrow.net" = {};
"openhab.wanderingcrow.net" = {};
};
};
}

View file

@ -8,5 +8,6 @@
./the-nest.nix
./umami.nix
./lubelogger.nix
./openhab.nix
];
}

View file

@ -8,10 +8,10 @@ in
}:
lib.mkIf config.user.overseer.enable {
systemd.tmpfiles.rules = [
"d ${volumePath}/openhab"
"d ${volumePath}/openhab/conf"
"d ${volumePath}/openhab/userdata"
"d ${volumePath}/openhab/addons"
"d ${volumePath}/openhab openhab"
"d ${volumePath}/openhab/conf openhab"
"d ${volumePath}/openhab/userdata openhab"
"d ${volumePath}/openhab/addons openhab"
];
###########
# Service #
@ -21,7 +21,7 @@ in
backend = "podman";
containers."openhab" = {
image = "openhab/openhab:5.0.0.M1";
user = "openhab:openhab";
extraOptions = ["--ip=10.88.0.9"];
volumes = [
"${volumePath}/openhab/conf:/openhab/conf"
"${volumePath}/openhab/userdata:/openhab/userdata"
@ -29,4 +29,24 @@ in
];
};
};
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"openhab.wanderingcrow.net" = {
forceSSL = true;
useACMEHost = "openhab.wanderingcrow.net";
locations."/" = {
extraConfig = ''
allow 192.168.0.0/16;
allow 10.8.0.0/24;
allow 24.179.20.202;
deny all;
'';
proxyPass = "http://10.88.0.9:8080";
};
};
};
};
}