feat: add glance

This commit is contained in:
tux
2025-03-07 05:33:29 +05:30
parent 9f791150f0
commit 1f1f82c7cc
3 changed files with 125 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{username, ...}: let
home = import ./home.nix;
in {
services = {
glance = {
enable = true;
openFirewall = true;
settings = {
server = {
host = "0.0.0.0";
port = 5678;
};
branding = {
custom-footer = "<p><a href='https://tux.rs'>${username}</a></p>";
};
pages = [
home.page
];
};
};
# nginx = {
# enable = lib.mkForce true;
# virtualHosts = {
# "dashboard.tux.rs" = {
# forceSSL = true;
# useACMEHost = "tux.rs";
# locations = {
# "/" = {
# proxyPass = "http://${config.services.glance.settings.server.host}:${toString config.services.glance.settings.server.port}";
# proxyWebsockets = true;
# };
# };
# };
# };
# };
};
}