From 1bc86850570489c3a810c9c4192b1c56205b54ab Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Mon, 9 Mar 2026 19:12:44 -0700 Subject: send max priority notifications to my phone --- flake.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index e0bf9d1..3807c8e 100644 --- a/flake.nix +++ b/flake.nix @@ -48,7 +48,11 @@ spontaneityHost = spontaneity.config.monorepo.vars.orgHost; - secretsPath = affinity.config.home-manager.sops.defaultSymlinkPath; + userName = spontaneity.config.monorepo.vars.userName; + + internetName = spontaneity.config.monorepo.vars.internetName; + + secretsPath = affinity.config.home-manager.users."${userName}".sops.defaultSymlinkPath; ntfyFile = affinity.config.monorepo.vars.ntfySecret; @@ -288,7 +292,7 @@ ${pre-commit-check.shellHook} git config branch.main.mergeoptions "--no-ff" alias gprune='git branch --merged | grep -v -E "^\*|main|master|dev" | xargs -r git branch -d' alias serve='cd result; python3 -m http.server 10005' -alias build='nix build .#website && curl -u "ret2pop:$(grep ADMIN_PASSWORD "${secretsPath}/${ntfyFile}" | cut -d "\"" -f 2)" -d "Website build done!" https://ntfy.ret2pop.net' +alias build='nix build .#website && curl -H "Priority: max" -u "${internetName}:$(grep ADMIN_PASSWORD "${secretsPath}/${ntfyFile}" | cut -d "\"" -f 2)" -d "Website build done!" https://ntfy.ret2pop.net/ci-build' ''; buildInputs = [ deadnix -- cgit v1.3