added homebox.
This commit is contained in:
parent
5661362a6f
commit
15d1f8c456
4 changed files with 41 additions and 2 deletions
|
|
@ -13,8 +13,8 @@
|
|||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
# font.name = "Fira Code";
|
||||
font.name = "Monocraft";
|
||||
font.name = "Fira Code";
|
||||
# font.name = "Monocraft";
|
||||
# font.name = "Miracode";
|
||||
themeFile = "gruvbox-dark";
|
||||
settings = {
|
||||
|
|
|
|||
30
configs/nixos/homebox.nix
Normal file
30
configs/nixos/homebox.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -96,6 +96,14 @@ in {
|
|||
description = "Home Automation";
|
||||
};
|
||||
}
|
||||
{
|
||||
HomeBox = {
|
||||
icon = "sh-homebox.svg";
|
||||
href = "https://inventory.venberg.xyz";
|
||||
siteMonitor = "https://inventory.venberg.xyz";
|
||||
description = "Home inventory tracker";
|
||||
};
|
||||
}
|
||||
{
|
||||
Radicale = {
|
||||
icon = "sh-radicale.svg";
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
../../configs/nixos/miniserve-tmp-upload.nix
|
||||
../../configs/nixos/nginx-static.nix
|
||||
../../configs/nixos/immich.nix
|
||||
../../configs/nixos/homebox.nix
|
||||
({
|
||||
config,
|
||||
pkgs,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue