change domain name

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-03-25 18:35:27 +01:00
parent 5de0ce50d6
commit b4d8e87abe
17 changed files with 46 additions and 100 deletions

View File

@@ -83,7 +83,7 @@ in {
{ {
key = "h"; key = "h";
desc = "Home"; desc = "Home";
cmd = "${pkgs.brave}/bin/brave 'https://home.hadi.diy'"; cmd = "${pkgs.brave}/bin/brave 'https://home.hadi.icu'";
} }
{ {
key = "m"; key = "m";

View File

@@ -11,5 +11,5 @@
allowedUDPPorts = [53]; allowedUDPPorts = [53];
}; };
services.cloudflared.tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73".ingress."adguard.hadi.diy" = "http://localhost:${toString config.services.adguardhome.port}"; services.cloudflared.tunnels."a1dfa315-7fc3-4a65-8c02-8387932c35c3".ingress."adguard.hadi.icu" = "http://localhost:${toString config.services.adguardhome.port}";
} }

View File

@@ -52,14 +52,14 @@ in {
users.users.jellyfin.extraGroups = ["video" "render"]; users.users.jellyfin.extraGroups = ["video" "render"];
services.cloudflared.tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73".ingress = { services.cloudflared.tunnels."a1dfa315-7fc3-4a65-8c02-8387932c35c3".ingress = {
"media.hadi.diy" = "http://localhost:8096"; "media.hadi.icu" = "http://localhost:8096";
"demandemedia.hadi.diy" = "http://localhost:5055"; "demandemedia.hadi.icu" = "http://localhost:5055";
"bazarr.hadi.diy" = "http://localhost:6767"; "bazarr.hadi.icu" = "http://localhost:6767";
"prowlarr.hadi.diy" = "http://localhost:9696"; "prowlarr.hadi.icu" = "http://localhost:9696";
"radarr.hadi.diy" = "http://localhost:7878"; "radarr.hadi.icu" = "http://localhost:7878";
"sonarr.hadi.diy" = "http://localhost:8989"; "sonarr.hadi.icu" = "http://localhost:8989";
"transmission.hadi.diy" = "http://localhost:9091"; "transmission.hadi.icu" = "http://localhost:9091";
"readarr.hadi.diy" = "http://localhost:8787"; "readarr.hadi.icu" = "http://localhost:8787";
}; };
} }

View File

@@ -14,7 +14,7 @@
# This will create a credentials file & give you the tunnel ID to use below. # This will create a credentials file & give you the tunnel ID to use below.
services.cloudflared = { services.cloudflared = {
enable = true; enable = true;
tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73" = { tunnels."a1dfa315-7fc3-4a65-8c02-8387932c35c3" = {
credentialsFile = config.sops.secrets."cloudflared-token".path; credentialsFile = config.sops.secrets."cloudflared-token".path;
default = "http_status:404"; default = "http_status:404";
}; };

View File

@@ -10,6 +10,6 @@
} }
]; ];
}; };
cloudflared.tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73".ingress."cyberchef.hadi.diy" = "http://localhost:8754"; cloudflared.tunnels."a1dfa315-7fc3-4a65-8c02-8387932c35c3".ingress."cyberchef.hadi.icu" = "http://localhost:8754";
}; };
} }

View File

@@ -4,5 +4,5 @@
port = 8087; port = 8087;
}; };
services.cloudflared.tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73".ingress."default-creds.hadi.diy" = "http://localhost:${toString config.services.default-creds.port}"; services.cloudflared.tunnels."a1dfa315-7fc3-4a65-8c02-8387932c35c3".ingress."default-creds.hadi.icu" = "http://localhost:${toString config.services.default-creds.port}";
} }

View File

@@ -22,5 +22,5 @@
inputs.eleakxir.packages.${pkgs.stdenv.hostPlatform.system}.leak-utils inputs.eleakxir.packages.${pkgs.stdenv.hostPlatform.system}.leak-utils
]; ];
services.cloudflared.tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73".ingress."eleakxir-back.hadi.diy" = "http://localhost:${toString config.services.eleakxir.port}"; services.cloudflared.tunnels."a1dfa315-7fc3-4a65-8c02-8387932c35c3".ingress."eleakxir-back.hadi.icu" = "http://localhost:${toString config.services.eleakxir.port}";
} }

View File

@@ -1,31 +0,0 @@
{
pkgs,
config,
...
}: let
user = config.var.username;
in {
sops.secrets = {
freshrss = {
owner = "freshrss";
mode = "0600";
};
};
services.freshrss = {
enable = true;
defaultUser = user;
passwordFile = config.sops.secrets.freshrss.path;
user = "freshrss";
baseUrl = "https://rss.hadi.diy";
webserver = "nginx";
extensions = with pkgs.freshrss-extensions; [
youtube
title-wrap
reading-time
];
};
services.cloudflared.tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73".ingress."rss.hadi.diy" = "http://localhost:80";
}

View File

@@ -14,10 +14,10 @@
server.port = 5678; server.port = 5678;
}; };
}; };
cloudflared.tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73".ingress = { cloudflared.tunnels."a1dfa315-7fc3-4a65-8c02-8387932c35c3".ingress = {
"start.hadi.diy" = "http://localhost:8755"; "start.hadi.icu" = "http://localhost:8755";
"home.hadi.diy" = "http://localhost:8755"; "home.hadi.icu" = "http://localhost:8755";
"glance.hadi.diy" = "http://localhost:8755"; "glance.hadi.icu" = "http://localhost:8755";
}; };
nginx.virtualHosts."glance.local" = { nginx.virtualHosts."glance.local" = {

View File

@@ -58,7 +58,7 @@
links = [ links = [
{ {
title = "Linkding"; title = "Linkding";
url = "https://linkding.hadi.diy"; url = "https://linkding.hadi.icu";
} }
{ {
title = "Mail"; title = "Mail";
@@ -101,11 +101,11 @@
} }
{ {
title = "Mazanoke (image downgrading)"; title = "Mazanoke (image downgrading)";
url = "https://mazanoke.hadi.diy"; url = "https://mazanoke.hadi.icu";
} }
{ {
title = "Stirling PDF"; title = "Stirling PDF";
url = "https://pdf.hadi.diy"; url = "https://pdf.hadi.icu";
} }
{ {
title = "Vert (file converter)"; title = "Vert (file converter)";
@@ -204,11 +204,11 @@
links = [ links = [
{ {
title = "Nix 4 Cyber"; title = "Nix 4 Cyber";
url = "https://n4c.hadi.diy"; url = "https://n4c.hadi.icu";
} }
{ {
title = "Cyberchef"; title = "Cyberchef";
url = "https://cyberchef.hadi.diy"; url = "https://cyberchef.hadi.icu";
} }
{ {
title = "TryHackMe"; title = "TryHackMe";

View File

@@ -26,37 +26,37 @@
sites = [ sites = [
{ {
title = "Adguard"; title = "Adguard";
url = "https://adguard.hadi.diy"; url = "https://adguard.hadi.icu";
icon = "si:adguard"; icon = "si:adguard";
} }
{ {
title = "Mealie"; title = "Mealie";
url = "https://mealie.hadi.diy"; url = "https://mealie.hadi.icu";
icon = "si:mealie"; icon = "si:mealie";
} }
{ {
title = "Linkding"; title = "Linkding";
url = "https://linkding.hadi.diy"; url = "https://linkding.hadi.icu";
icon = "sh:linkding"; icon = "sh:linkding";
} }
{ {
title = "Mazanoke"; title = "Mazanoke";
url = "https://mazanoke.hadi.diy"; url = "https://mazanoke.hadi.icu";
icon = "sh:mazanoke"; icon = "sh:mazanoke";
} }
{ {
title = "Stirling PDF"; title = "Stirling PDF";
url = "https://pdf.hadi.diy"; url = "https://pdf.hadi.icu";
icon = "sh:stirling-pdf"; icon = "sh:stirling-pdf";
} }
{ {
title = "Eleakxir"; title = "Eleakxir";
url = "https://eleakxir.hadi.diy"; url = "https://eleakxir.hadi.icu";
icon = "si:elixir"; icon = "si:elixir";
} }
{ {
title = "Cyberchef"; title = "Cyberchef";
url = "https://cyberchef.hadi.diy"; url = "https://cyberchef.hadi.icu";
icon = "si:codechef"; icon = "si:codechef";
} }
]; ];
@@ -68,42 +68,42 @@
sites = [ sites = [
{ {
title = "Jellyfin"; title = "Jellyfin";
url = "https://media.hadi.diy"; url = "https://media.hadi.icu";
icon = "si:jellyfin"; icon = "si:jellyfin";
} }
{ {
title = "Jellyseerr"; title = "Jellyseerr";
url = "https://demandemedia.hadi.diy"; url = "https://demandemedia.hadi.icu";
icon = "si:odysee"; icon = "si:odysee";
} }
{ {
title = "Radarr"; title = "Radarr";
url = "https://radarr.hadi.diy"; url = "https://radarr.hadi.icu";
icon = "si:radarr"; icon = "si:radarr";
} }
{ {
title = "Sonarr"; title = "Sonarr";
url = "https://sonarr.hadi.diy"; url = "https://sonarr.hadi.icu";
icon = "si:sonarr"; icon = "si:sonarr";
} }
{ {
title = "Readarr"; title = "Readarr";
url = "https://readarr.hadi.diy"; url = "https://readarr.hadi.icu";
icon = "si:bookstack"; icon = "si:bookstack";
} }
{ {
title = "Bazarr"; title = "Bazarr";
url = "https://bazarr.hadi.diy"; url = "https://bazarr.hadi.icu";
icon = "si:subtitleedit"; icon = "si:subtitleedit";
} }
{ {
title = "Prowlarr"; title = "Prowlarr";
url = "https://prowlarr.hadi.diy"; url = "https://prowlarr.hadi.icu";
icon = "si:podcastindex"; icon = "si:podcastindex";
} }
{ {
title = "Transmission"; title = "Transmission";
url = "https://transmission.hadi.diy"; url = "https://transmission.hadi.icu";
icon = "si:transmission"; icon = "si:transmission";
} }
]; ];

View File

@@ -1,24 +0,0 @@
# Linkding is a self-hosted bookmark manager
{...}: let
port = 9090;
in {
virtualisation.oci-containers.containers.linkding = {
autoStart = true;
image = "sissbruecker/linkding@sha256:6d4fcc50bee8ee054ad2dfebbc41217f325398b907aff7ec011996c6a5ec17c9";
volumes = ["/var/lib/linkding/data:/etc/linkding/data"];
ports = ["${builtins.toString port}:${builtins.toString port}"];
};
# Ensure our mount point exists
systemd.tmpfiles.settings."10-linkding" = {
"/var/lib/linkding/data" = {
d = {
mode = "0755";
user = "root";
group = "root";
};
};
};
services.cloudflared.tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73".ingress."linkding.hadi.diy" = "http://localhost:${toString port}";
}

View File

@@ -30,6 +30,6 @@ in {
} }
]; ];
}; };
cloudflared.tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73".ingress."mazanoke.hadi.diy" = "http://localhost:8755"; cloudflared.tunnels."a1dfa315-7fc3-4a65-8c02-8387932c35c3".ingress."mazanoke.hadi.icu" = "http://localhost:8755";
}; };
} }

View File

@@ -5,5 +5,5 @@
port = 8092; port = 8092;
}; };
services.cloudflared.tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73".ingress."mealie.hadi.diy" = "http://localhost:${toString config.services.mealie.port}"; services.cloudflared.tunnels."a1dfa315-7fc3-4a65-8c02-8387932c35c3".ingress."mealie.hadi.icu" = "http://localhost:${toString config.services.mealie.port}";
} }

View File

@@ -18,5 +18,5 @@ in {
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPG9SE80ZyBcXZK/f5ypSKudaM5Jo3XtQikCnGo0jI5E hadi@nixy" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPG9SE80ZyBcXZK/f5ypSKudaM5Jo3XtQikCnGo0jI5E hadi@nixy"
]; ];
services.cloudflared.tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73".ingress."ssh.hadi.diy" = "ssh://localhost:22"; services.cloudflared.tunnels."a1dfa315-7fc3-4a65-8c02-8387932c35c3".ingress."ssh.hadi.icu" = "ssh://localhost:22";
} }

View File

@@ -5,5 +5,5 @@
environment."SERVER_PORT" = "8083"; environment."SERVER_PORT" = "8083";
}; };
services.cloudflared.tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73".ingress."pdf.hadi.diy" = "http://localhost:${toString config.services.stirling-pdf.environment.SERVER_PORT}"; services.cloudflared.tunnels."a1dfa315-7fc3-4a65-8c02-8387932c35c3".ingress."pdf.hadi.icu" = "http://localhost:${toString config.services.stirling-pdf.environment.SERVER_PORT}";
} }

View File

@@ -13,9 +13,10 @@
DISABLE_BOT_CHECK = true; DISABLE_BOT_CHECK = true;
}; };
}; };
services.cloudflared.tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73".ingress."umami.hadi.diy" = "http://localhost:${toString config.services.umami.settings.PORT}"; services.cloudflared.tunnels."a1dfa315-7fc3-4a65-8c02-8387932c35c3".ingress."umami.hadi.icu" = "http://localhost:${toString config.services.umami.settings.PORT}";
systemd.services.default-creds.environment = { systemd.services.default-creds.environment = {
PUBLIC_UMAMI_URL = "https://umami.hadi.diy"; PUBLIC_UMAMI_URL = "https://umami.hadi.icu";
# FIXME:
PUBLIC_UMAMI_WEBSITE_ID = "7197484c-01ad-488e-9caa-5ab7b7595f08"; PUBLIC_UMAMI_WEBSITE_ID = "7197484c-01ad-488e-9caa-5ab7b7595f08";
UMAMI_URL = "http://localhost:8097"; UMAMI_URL = "http://localhost:8097";
UMAMI_WEBSITE_ID = "7197484c-01ad-488e-9caa-5ab7b7595f08"; UMAMI_WEBSITE_ID = "7197484c-01ad-488e-9caa-5ab7b7595f08";