Compare commits

...

2 Commits

Author SHA1 Message Date
John Lancaster
2687c755a3 readme update 2024-12-29 13:59:37 -06:00
John Lancaster
f6c72142ef sops-ad 2024-12-29 13:59:31 -06:00
2 changed files with 22 additions and 0 deletions

View File

@@ -15,6 +15,8 @@
- Multiple dev versions - Multiple dev versions
- Multiple config directories - Multiple config directories
- Debugger must work - Debugger must work
- Observation - telegraf/promtail
- Utility - portainer, watchtower
## Usage ## Usage
@@ -36,3 +38,22 @@ Activated with `.devenv/state/venv/bin/activate`. Used in VSCode for type hints,
- `python -m ipykernel install --user --name devenv --display-name "Python (devenv)"` - `python -m ipykernel install --user --name devenv --display-name "Python (devenv)"`
- Run jupyter notebook on the side with a `uv run jupyter notebook` command - Run jupyter notebook on the side with a `uv run jupyter notebook` command
- Use the link with the token to connect the jupyter notebook kernel to it - Use the link with the token to connect the jupyter notebook kernel to it
## Mechanics
### SSH Connection
SSH keys are pre-authorized from `secrets/authorized_keys` which contains the public keys for desktop, laptop, and phone.
### SOPS
- `secrets/secrets.yaml` contains the encrypted keys.
- There needs to be a `~/.config/sops/age/keys.txt` file with the age secret key. This file has to be manually placed.
- `sops.yaml` indicates to SOPS that the yaml file is encrypted with that secret key.
- `sops-ad` is a convenience script for editing the secrets.yaml file.
## Setup
`secrets/secrets.yaml` needs to have
- `telegraf_influx_token`

View File

@@ -8,5 +8,6 @@
'') '')
(pkgs.writeShellScriptBin "ads" "nix develop --no-pure-eval $(readlink -f /etc/nixos)") (pkgs.writeShellScriptBin "ads" "nix develop --no-pure-eval $(readlink -f /etc/nixos)")
(pkgs.writeShellScriptBin "link-nix" "${builtins.readFile ./link-nix.sh}") (pkgs.writeShellScriptBin "link-nix" "${builtins.readFile ./link-nix.sh}")
(pkgs.writeShellScriptBin "sops-ad" "sops $(readlink -f /etc/nixos)/secrets/secrets.yaml")
]; ];
} }