My NixOS configs
  • Nix 74.4%
  • TypeScript 12.7%
  • Crystal 8.9%
  • Ruby 1.6%
  • Shell 1.4%
  • Other 1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hermes Agent 0d11d5b16d
All checks were successful
Build Images / build (push) Successful in 1m8s
Check / check (push) Successful in 3m48s
Deploy / trigger-freun-dev (push) Successful in 52s
ci-deploy: grant the trigger user polkit access to nixos-upgrade (#26)
Run #316 (`ci: validate deploy key and run ssh -T before deploy`) showed the deploy key itself is now fine — `ssh -T` connected and the forced command ran — but the trigger script's `systemctl start --wait nixos-upgrade.service` was denied:

```
Failed to start nixos-upgrade.service: Access denied as the requested operation requires interactive authentication. However, interactive authentication has not been enabled by the calling program.
```

The forced command runs as the non-interactive `ci-deploy` user, so polkit checks the start request and denies it without a rule. This PR adds a `security.polkit.extraConfig` rule inside `modules/ci-deploy.nix` allowing exactly the `ci-deploy` user to start exactly `nixos-upgrade.service` (polkit is already enabled on freun-dev for the netbird rules; this only adds the scoped rule).

Verified: `nix eval` + full `nix build` of `nixosConfigurations.freun-dev.config.system.build.toplevel`; the merged `security.polkit.extraConfig` contains both the netbird rules and the new nixos-upgrade rule; polkit.enable = true.
Reviewed-on: #26
2026-09-28 01:26:44 +03:00
.forgejo/workflows ci: validate deploy key and run ssh -T before deploy 2026-09-28 01:11:24 +03:00
.zed don't build apu on target 2026-03-07 12:35:56 +02:00
modules ci-deploy: grant the trigger user polkit access to nixos-upgrade (#26) 2026-09-28 01:26:44 +03:00
scripts Squash merge feat/dendritic-refactor into main 2026-09-19 12:19:56 +03:00
secrets hermes: add allowed user 2026-09-27 01:13:26 +03:00
.envrc add devshell 2025-02-08 15:38:51 +02:00
.gitignore turny: fix SPI/GPIO config for newer kernels 2026-07-05 12:21:03 +03:00
.sops.yaml hermes: bind-mount rendered env file instead of symlinked dir 2026-09-26 02:15:34 +03:00
AGENTS.md docs: apply requires --on for deploy targets 2026-09-26 23:36:19 +03:00
flake.lock opencode: pin opencode-pty via a flake input 2026-09-26 10:00:06 +03:00
flake.nix opencode: pin opencode-pty via a flake input 2026-09-26 10:00:06 +03:00
README.md test 2026-09-21 19:04:29 +03:00

My NixOS Configurations

check workflow status build images workflow status

test