added homebox.

This commit is contained in:
Gabe Venberg 2026-02-23 16:09:14 +01:00
parent 5661362a6f
commit 15d1f8c456
4 changed files with 41 additions and 2 deletions

View file

@ -13,8 +13,8 @@
programs.kitty = { programs.kitty = {
enable = true; enable = true;
# font.name = "Fira Code"; font.name = "Fira Code";
font.name = "Monocraft"; # font.name = "Monocraft";
# font.name = "Miracode"; # font.name = "Miracode";
themeFile = "gruvbox-dark"; themeFile = "gruvbox-dark";
settings = { settings = {

30
configs/nixos/homebox.nix Normal file
View file

@ -0,0 +1,30 @@
{
inputs,
config,
pkgs,
lib,
...
}:let
cfg = config.services.homebox;
in {
services.homebox={
enable=true;
settings={
HBOX_OPTIONS_TRUST_PROXY = "true";
HBOX_OPTIONS_HOSTNAME="inventory.venberg.xyz";
HBOX_OPTIONS_CHECK_GITHUB_RELEASE = "false";
HBOX_OPTIONS_ALLOW_REGISTRATION = "false";
HBOX_MODE = "production";
};
};
services.nginx.virtualHosts.${cfg.settings.HBOX_OPTIONS_HOSTNAME} = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:7745";
proxyWebsockets = true;
};
};
}

View file

@ -96,6 +96,14 @@ in {
description = "Home Automation"; description = "Home Automation";
}; };
} }
{
HomeBox = {
icon = "sh-homebox.svg";
href = "https://inventory.venberg.xyz";
siteMonitor = "https://inventory.venberg.xyz";
description = "Home inventory tracker";
};
}
{ {
Radicale = { Radicale = {
icon = "sh-radicale.svg"; icon = "sh-radicale.svg";

View file

@ -27,6 +27,7 @@ inputs.nixpkgs.lib.nixosSystem {
../../configs/nixos/miniserve-tmp-upload.nix ../../configs/nixos/miniserve-tmp-upload.nix
../../configs/nixos/nginx-static.nix ../../configs/nixos/nginx-static.nix
../../configs/nixos/immich.nix ../../configs/nixos/immich.nix
../../configs/nixos/homebox.nix
({ ({
config, config,
pkgs, pkgs,