From cd6046c8be80afb084f9140dfb49338c7accbd89 Mon Sep 17 00:00:00 2001 From: "sascha.koenig" Date: Wed, 6 Aug 2025 11:03:36 +0200 Subject: [PATCH] +ntfy --- home/sascha.koenig/home.nix | 24 ++++++++++++++++++++++++ hosts/AZ-CLD-1/services/default.nix | 1 + hosts/AZ-CLD-1/services/ntfy.nix | 29 +++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 hosts/AZ-CLD-1/services/ntfy.nix diff --git a/home/sascha.koenig/home.nix b/home/sascha.koenig/home.nix index 8ad6243..37cb5c6 100644 --- a/home/sascha.koenig/home.nix +++ b/home/sascha.koenig/home.nix @@ -43,6 +43,30 @@ # '') ]; + programs.git = { + enable = true; + difftastic.enable = true; + userName = "sascha.koenig"; + userEmail = "sascha.koenig@azintec.com"; + aliases = { + st = "status"; + logd = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"; + }; + extraConfig = { + core.excludesfile = "~/.gitignore_global"; + init.defaultBranch = "master"; + }; + }; + + programs.jujutsu = { + enable = true; + settings = { + user = { + email = "sascha.koenig@azintec.com"; + name = "Sascha Koenig"; + }; + }; + }; # Home Manager is pretty good at managing dotfiles. The primary way to manage # plain files is through 'home.file'. home.file = { diff --git a/hosts/AZ-CLD-1/services/default.nix b/hosts/AZ-CLD-1/services/default.nix index 28ff5f7..3f38edf 100644 --- a/hosts/AZ-CLD-1/services/default.nix +++ b/hosts/AZ-CLD-1/services/default.nix @@ -2,6 +2,7 @@ imports = [ ./gitea.nix ./n8n.nix + ./ntfy.nix ./outline.nix ./postgres.nix ./traefik.nix diff --git a/hosts/AZ-CLD-1/services/ntfy.nix b/hosts/AZ-CLD-1/services/ntfy.nix new file mode 100644 index 0000000..8842f60 --- /dev/null +++ b/hosts/AZ-CLD-1/services/ntfy.nix @@ -0,0 +1,29 @@ +{config, ...}: { + services.ntfy-sh = { + enable = true; + settings.base-url = "https://ping.az-gruppe.com"; + settings = { + listen-http = ":3033"; + auth-file = "/var/lib/ntfy-sh/user.db"; + auth-default-access = "deny-all"; + }; + }; + + # Traefik configuration specific to littlelink + services.traefik.dynamicConfigOptions.http = { + services.ntfy-sh.loadBalancer.servers = [ + { + url = "http://localhost:3033/"; + } + ]; + + routers.ntfy-sh = { + rule = "Host(`ping.az-gruppe.com`)"; + tls = { + certResolver = "ionos"; + }; + service = "ntfy-sh"; + entrypoints = "websecure"; + }; + }; +}