Added storage and home assistant
This commit is contained in:
parent
bde66ffbe2
commit
86bf66c817
@ -50,6 +50,8 @@
|
|||||||
vaultwarden.enable = true;
|
vaultwarden.enable = true;
|
||||||
paperless-ngx.enable = true;
|
paperless-ngx.enable = true;
|
||||||
beszel.enable = true;
|
beszel.enable = true;
|
||||||
|
storage.enable = true;
|
||||||
|
homeassistant.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -71,6 +71,11 @@ in {
|
|||||||
handle @pingvin-share {
|
handle @pingvin-share {
|
||||||
reverse_proxy pingvin-share:3000
|
reverse_proxy pingvin-share:3000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@dufs host files.tbmrs.nl
|
||||||
|
handle @dufs {
|
||||||
|
reverse_proxy dufs:5000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*.local.tbmrs.nl {
|
*.local.tbmrs.nl {
|
||||||
@ -93,6 +98,16 @@ in {
|
|||||||
handle @beszel {
|
handle @beszel {
|
||||||
reverse_proxy beszel:8090
|
reverse_proxy beszel:8090
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@syncthing host syncthing.local.tbmrs.nl
|
||||||
|
handle @syncthing {
|
||||||
|
reverse_proxy syncthing:8384
|
||||||
|
}
|
||||||
|
|
||||||
|
@homeassistant host home-assistant.local.tbmrs.nl
|
||||||
|
handle @homeassistant {
|
||||||
|
reverse_proxy homeassistant:8123
|
||||||
|
}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
31
modules/home/containers/homeassistant.nix
Normal file
31
modules/home/containers/homeassistant.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.settings.containers.homeassistant;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
settings.containers.homeassistant.enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Enable storage configuration
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.podman.containers.homeassistant = {
|
||||||
|
image = "ghcr.io/home-assistant/home-assistant:stable";
|
||||||
|
network = "proxy";
|
||||||
|
volumes = [
|
||||||
|
"%h/containers/homeassistant/config:/config"
|
||||||
|
];
|
||||||
|
userNS = "keep-id";
|
||||||
|
environment = {
|
||||||
|
TZ = "Europe/Amsterdam";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -26,6 +26,7 @@ in {
|
|||||||
"%h/containers/homepage/config/docker.yaml:/app/config/docker.yaml"
|
"%h/containers/homepage/config/docker.yaml:/app/config/docker.yaml"
|
||||||
"/run/user/1000/podman/podman.sock:/var/run/podman.sock:ro"
|
"/run/user/1000/podman/podman.sock:/var/run/podman.sock:ro"
|
||||||
];
|
];
|
||||||
|
userNS = "keep-id";
|
||||||
environment = {
|
environment = {
|
||||||
HOMEPAGE_ALLOWED_HOSTS = "home.tbmrs.nl";
|
HOMEPAGE_ALLOWED_HOSTS = "home.tbmrs.nl";
|
||||||
};
|
};
|
||||||
|
47
modules/home/containers/storage.nix
Normal file
47
modules/home/containers/storage.nix
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.settings.containers.storage;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
settings.containers.storage.enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Enable storage configuration
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.podman.containers.dufs = {
|
||||||
|
image = "sigoden/dufs";
|
||||||
|
network = "proxy";
|
||||||
|
volumes = [
|
||||||
|
"%h/storage:/data"
|
||||||
|
];
|
||||||
|
userNS = "keep-id";
|
||||||
|
environment = {
|
||||||
|
DUFS_SERVE_PATH = "data";
|
||||||
|
DUFS_AUTH = "@/tboomers/public:ro|tboomers:password@/tboomers:rw";
|
||||||
|
DUFS_ALLOW_ALL = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.podman.containers.syncthing = {
|
||||||
|
image = "syncthing/syncthing";
|
||||||
|
network = "proxy";
|
||||||
|
volumes = [
|
||||||
|
"%h/storage:/storage"
|
||||||
|
"%h/containers/syncthing/data:/var/syncthing"
|
||||||
|
];
|
||||||
|
userNS = "keep-id";
|
||||||
|
ports = [
|
||||||
|
"22000:22000/tcp"
|
||||||
|
"22000:22000/udp"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -37,5 +37,7 @@
|
|||||||
./containers/vaultwarden.nix
|
./containers/vaultwarden.nix
|
||||||
./containers/paperless-ngx.nix
|
./containers/paperless-ngx.nix
|
||||||
./containers/beszel.nix
|
./containers/beszel.nix
|
||||||
|
./containers/storage.nix
|
||||||
|
./containers/homeassistant.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user