mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-12 15:42:39 +02:00
feat: troubleshooting agenix
This commit is contained in:
@@ -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
|
1. Clone this repo and run `nixos-rebuild switch` to deploy it, all the secrets will be decrypted
|
||||||
automatically via the host private key.
|
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
|
## Other Replacements
|
||||||
|
|
||||||
- [ragenix](https://github.com/yaxitech/ragenix): A Rust reimplementation of agenix.
|
- [ragenix](https://github.com/yaxitech/ragenix): A Rust reimplementation of agenix.
|
||||||
|
|||||||
@@ -10,6 +10,12 @@
|
|||||||
agenix.darwinModules.default
|
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 = [
|
environment.systemPackages = [
|
||||||
agenix.packages."${pkgs.system}".default
|
agenix.packages."${pkgs.system}".default
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user