feat: Homepage
This commit is contained in:
@@ -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" ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user