mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-16 01:28:59 -05:00
I haven't slept for 24 hours I literally couldn't care less
This commit is contained in:
parent
5b53eff0f3
commit
f24fc3fea2
9 changed files with 72 additions and 58 deletions
|
|
@ -1,41 +1,40 @@
|
|||
let
|
||||
volumePath = "/overseer/services";
|
||||
in
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${volumePath}/openhab"
|
||||
"d ${volumePath}/openhab/conf"
|
||||
"d ${volumePath}/openhab/userdata"
|
||||
"d ${volumePath}/openhab/addons"
|
||||
];
|
||||
###########
|
||||
# Service #
|
||||
###########
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${volumePath}/openhab"
|
||||
"d ${volumePath}/openhab/conf"
|
||||
"d ${volumePath}/openhab/userdata"
|
||||
"d ${volumePath}/openhab/addons"
|
||||
];
|
||||
###########
|
||||
# Service #
|
||||
###########
|
||||
|
||||
virtualisation.oci-containers = {
|
||||
backend = "podman";
|
||||
containers."openhab" = {
|
||||
image = "openhab/openhab:milestone";
|
||||
extraOptions = ["--ip=10.88.0.9"];
|
||||
volumes = [
|
||||
"${volumePath}/openhab/conf:/openhab/conf"
|
||||
"${volumePath}/openhab/userdata:/openhab/userdata"
|
||||
"${volumePath}/openhab/addons:/openhab/addons"
|
||||
];
|
||||
};
|
||||
virtualisation.oci-containers = {
|
||||
backend = "podman";
|
||||
containers."openhab" = {
|
||||
image = "openhab/openhab:milestone";
|
||||
extraOptions = [ "--ip=10.88.0.9" ];
|
||||
volumes = [
|
||||
"${volumePath}/openhab/conf:/openhab/conf"
|
||||
"${volumePath}/openhab/userdata:/openhab/userdata"
|
||||
"${volumePath}/openhab/addons:/openhab/addons"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts."openhab.wanderingcrow.net".extraConfig = ''
|
||||
@block not remote_ip ${inputs.nix-secrets.network.primary.publicIP} private_ranges
|
||||
abort @block
|
||||
reverse_proxy http://10.88.0.9:8080
|
||||
'';
|
||||
};
|
||||
}
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts."openhab.wanderingcrow.net".extraConfig = ''
|
||||
reverse_proxy http://10.88.0.9:8080
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue