feat: troubleshooting agenix

This commit is contained in:
Ryan Yin
2024-11-12 16:31:57 +08:00
parent 7429aab2aa
commit dd8259ed85
2 changed files with 25 additions and 0 deletions

View File

@@ -176,6 +176,25 @@ the `age.secrets.<name>.path` argument, which defaults to `/etc/secrets`.
1. Clone this repo and run `nixos-rebuild switch` to deploy it, all the secrets will be decrypted
automatically via the host private key.
## Troubleshooting
### 1. Nix-Darwin Module
Check logs:
```bash
tail -n 100 /Library/Logs/org.nixos.activate-agenix.stderr.log
tail -n 100 /Library/Logs/org.nixos.activate-agenix.stdout.log
```
### 2. NixOS Module
Check logs:
```
journalctl | grep -5 agenix
```
## Other Replacements
- [ragenix](https://github.com/yaxitech/ragenix): A Rust reimplementation of agenix.

View File

@@ -10,6 +10,12 @@
agenix.darwinModules.default
];
# enable logs for debugging
launchd.daemons."activate-agenix".serviceConfig = {
StandardErrorPath = "/Library/Logs/org.nixos.activate-agenix.stderr.log";
StandardOutPath = "/Library/Logs/org.nixos.activate-agenix.stdout.log";
};
environment.systemPackages = [
agenix.packages."${pkgs.system}".default
];