feat: Homepage
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.profiles.paperless;
|
||||
hostName = config.networking.hostName;
|
||||
in
|
||||
{
|
||||
options.my.profiles.paperless = with lib; {
|
||||
@@ -31,6 +32,16 @@ in
|
||||
port = cfg.port;
|
||||
# settings = cfg.extraConfig;
|
||||
};
|
||||
|
||||
my.homepage.services = [
|
||||
{
|
||||
group = "Documents";
|
||||
name = "Paperless";
|
||||
description = "Document management";
|
||||
href = "http://${hostName}:${toString cfg.port}";
|
||||
}
|
||||
];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ cfg.port ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user