feat(nixos): add pikachu homepage guest

This commit is contained in:
2026-09-15 12:20:55 -04:00
parent fca37666d3
commit 669cbe3540
11 changed files with 268 additions and 5 deletions

View File

@@ -0,0 +1,45 @@
{ lib, ... }:
{
type = lib.types.submodule {
options = {
tab = lib.mkOption {
type = lib.types.str;
example = "Apps";
description = "Homepage tab that contains this entry.";
};
section = lib.mkOption {
type = lib.types.str;
example = "Media";
description = "Homepage section that contains this entry.";
};
name = lib.mkOption {
type = lib.types.str;
example = "Navidrome";
description = "Homepage display name for this entry.";
};
description = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
example = "Music";
description = "Homepage description for this entry.";
};
icon = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
example = "navidrome.png";
description = "Homepage icon for this entry.";
};
href = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
example = "https://music.alexion.dev";
description = "Homepage link override for this entry.";
};
};
};
}

View File

@@ -19,7 +19,19 @@
domain = lib.mkOption {
type = lib.types.str;
example = "files.alexion.dev";
description = "Public domain served by this route entry.";
description = "Domain served by this route entry.";
};
forceSSL = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Redirect HTTP requests to HTTPS for this route.";
};
enableACME = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable ACME certificate management for this route.";
};
port = lib.mkOption {