homepage finished, flame deprecated
This commit is contained in:
@@ -13,31 +13,57 @@ in
|
||||
options.my.servers.homepage = setup.mkOptions "homepage" "home" 8082;
|
||||
config = {
|
||||
networking.firewall.allowedTCPPorts = lib.mkIf (!cfg.isLocal) [ cfg.port ];
|
||||
sops.secrets = lib.mkIf cfg.enable { homepage.sopsFile = ../../secrets/env.yaml; };
|
||||
sops.secrets = lib.mkIf cfg.enable { homepage.sopsFile = ../../secrets/homepage.yaml; };
|
||||
services = {
|
||||
homepage-dashboard = lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
listenPort = cfg.port;
|
||||
environmentFile = config.sops.secrets.homepage.path;
|
||||
settings = {
|
||||
background = {
|
||||
image = "https://wallup.net/wp-content/uploads/2019/10/1027227-artwork-classic-art-painting-sailing-ship-sea-clouds-people-claude-joseph-vernet-night-moon.jpg";
|
||||
blur = "sm";
|
||||
};
|
||||
layout = {
|
||||
"multimedia" = {
|
||||
tab = "servers";
|
||||
stash = {
|
||||
header = false;
|
||||
tab = "secret";
|
||||
style = "row";
|
||||
columns = 2;
|
||||
};
|
||||
"piracy" = {
|
||||
multimedia = {
|
||||
header = false;
|
||||
tab = "servers";
|
||||
style = "row";
|
||||
columns = 4;
|
||||
};
|
||||
"other" = {
|
||||
tab = "chichis";
|
||||
piracy = {
|
||||
header = false;
|
||||
tab = "servers";
|
||||
style = "row";
|
||||
columns = 4;
|
||||
};
|
||||
main = {
|
||||
header = false;
|
||||
tab = "servers";
|
||||
style = "row";
|
||||
columns = 3;
|
||||
};
|
||||
"server bookmarks" = {
|
||||
header = false;
|
||||
tab = "servers";
|
||||
style = "row";
|
||||
columns = 3;
|
||||
};
|
||||
art.tab = "bookmarks";
|
||||
entertainment.tab = "bookmarks";
|
||||
torrents.tab = "bookmarks";
|
||||
shopping.tab = "bookmarks";
|
||||
social.tab = "bookmarks";
|
||||
development.tab = "bookmarks";
|
||||
"secret art".tab = "secret";
|
||||
"secret media".tab = "secret";
|
||||
"secret social".tab = "secret";
|
||||
};
|
||||
background = "https://images.unsplash.com/photo-1502790671504-542ad42d5189?auto=format&fit=crop&w=2560&q=80";
|
||||
};
|
||||
widgets = [
|
||||
{
|
||||
@@ -62,16 +88,17 @@ in
|
||||
}
|
||||
];
|
||||
services = [
|
||||
{ "stash" = [ { inherit (services) stash; } ]; }
|
||||
{
|
||||
"Multimedia" = [
|
||||
"multimedia" = [
|
||||
{ inherit (services) jellyfin; }
|
||||
{ inherit (services) audiobookshelf; }
|
||||
{ inherit (services) "now playing"; }
|
||||
{ inherit (services) audiobookshelf; }
|
||||
{ inherit (services) kavita; }
|
||||
];
|
||||
}
|
||||
{
|
||||
"Piracy" = [
|
||||
"piracy" = [
|
||||
{ inherit (services) sonarr; }
|
||||
{ inherit (services) radarr; }
|
||||
{ inherit (services) lidarr; }
|
||||
@@ -83,56 +110,24 @@ in
|
||||
];
|
||||
}
|
||||
{
|
||||
"Other" = [
|
||||
{ inherit (services) mealie; }
|
||||
"main" = [
|
||||
{ inherit (services) nextcloud; }
|
||||
{ inherit (services) mealie; }
|
||||
{ inherit (services) paperless; }
|
||||
];
|
||||
}
|
||||
];
|
||||
bookmarks = [
|
||||
{
|
||||
servers = [
|
||||
{
|
||||
shiori = [
|
||||
{
|
||||
abbr = "SH";
|
||||
href = "https://bookmarks.servidos.lat/";
|
||||
}
|
||||
];
|
||||
maloja = [
|
||||
{
|
||||
abbr = "ML";
|
||||
href = "https://maloja.servidos.lat/";
|
||||
}
|
||||
];
|
||||
microbin = [
|
||||
{
|
||||
abbr = "CP";
|
||||
href = "https://copy.servidos.lat/";
|
||||
}
|
||||
];
|
||||
multi-scrobbpler = [
|
||||
{
|
||||
abbr = "MS";
|
||||
href = "https://scrobble.servidos.lat/";
|
||||
}
|
||||
];
|
||||
ryot = [
|
||||
{
|
||||
abbr = "RT";
|
||||
href = "https://tracker.servidos.lat/";
|
||||
}
|
||||
];
|
||||
vaultwarden = [
|
||||
{
|
||||
abbr = "VW";
|
||||
href = "https://vault.servidos.lat";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
(import ./homepage/bookmarks/servers.nix)
|
||||
(import ./homepage/bookmarks/art.nix)
|
||||
(import ./homepage/bookmarks/entertainment.nix)
|
||||
(import ./homepage/bookmarks/torrents.nix)
|
||||
(import ./homepage/bookmarks/shopping.nix)
|
||||
(import ./homepage/bookmarks/social.nix)
|
||||
(import ./homepage/bookmarks/development.nix)
|
||||
(import ./homepage/bookmarks/secret-art.nix)
|
||||
(import ./homepage/bookmarks/secret-media.nix)
|
||||
(import ./homepage/bookmarks/secret-social.nix)
|
||||
];
|
||||
};
|
||||
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (
|
||||
|
||||
Reference in New Issue
Block a user