feat: Homepage

This commit is contained in:
marthsincemelee
2026-04-20 14:46:44 +02:00
parent e1ea5b03dc
commit 191e860455
14 changed files with 259 additions and 25 deletions
+14 -3
View File
@@ -6,11 +6,13 @@
...
}:
let
cfg = config.my.profiles.audiobookshelf;
cfg = config.my.profiles.actual;
hostName = config.networking.hostName;
port = 40465;
in
{
options.my.profiles.actual = with lib; {
enable = mkEnableOption "Audio Book Service";
enable = mkEnableOption "Actual budget service";
};
@@ -19,7 +21,7 @@ in
enable = true;
openFirewall = true;
settings = {
port = 40465;
port = port;
hostname = "0.0.0.0";
};
};
@@ -28,6 +30,15 @@ in
actual-server
];
my.homepage.services = [
{
group = "Finance";
name = "Actual";
description = "Budgeting";
href = "http://${hostName}:${toString port}";
}
];
systemd.services.actual = {
after = [ "network-online.target" ];
};