Compare commits
41
Commits
664487ab9a
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6163eb0396 | ||
|
|
2261e4b792 | ||
|
|
995bdaa973 | ||
|
|
e93d8a43cf | ||
|
|
b4afb529a8 | ||
|
|
4bc670e1e5 | ||
|
|
c1b44e049c | ||
|
|
1aff05b4f2 | ||
|
|
b62212ad0c | ||
|
|
1b3468185b | ||
|
|
72b9eb053d | ||
|
|
a6afe699fb | ||
|
|
1f3c1a7d18 | ||
|
|
9dfa0f5e58 | ||
|
|
8f6e3a58b3 | ||
|
|
1313d962ad | ||
|
|
731b646def | ||
|
|
92eaa865e4 | ||
|
|
fee4090bf6 | ||
|
|
f1184b28da | ||
|
|
a9aa41ff02 | ||
|
|
f8314da86b | ||
|
|
defc576767 | ||
|
|
8474997bc3 | ||
|
|
c16f62fb2a | ||
|
|
ff6e7d5032 | ||
|
|
8fa8cad28c | ||
|
|
3652fe397a | ||
|
|
2da26a2c0c | ||
|
|
203dc0c159 | ||
|
|
b69701dbc2 | ||
|
|
7c45fbe440 | ||
|
|
4322ae8c39 | ||
|
|
7e87b775d0 | ||
|
|
320b61eb37 | ||
|
|
04fcabfe9d | ||
|
|
3064c2db08 | ||
|
|
20d15ab317 | ||
|
|
1ceeca785f | ||
|
|
df77c3ef6f | ||
|
|
64560b37ae |
No files matched your search
@@ -1,7 +1,14 @@
|
|||||||
keys:
|
keys:
|
||||||
- &laptop age1pln9sxy5j93lklqklfwp3qepx7x4cs4y2w63n9y3ykt68qgra5ysqleesg
|
- &laptop age1pln9sxy5j93lklqklfwp3qepx7x4cs4y2w63n9y3ykt68qgra5ysqleesg
|
||||||
|
- &anne age1utkr8d88ezkwwf7aarpgg8ujqa8jmqtrjxvcau7yctjey66sngpqcr8fmx
|
||||||
|
|
||||||
creation_rules:
|
creation_rules:
|
||||||
|
- path_regex: anne-secrets\.yaml$
|
||||||
|
key_groups:
|
||||||
|
- pgp: []
|
||||||
|
age:
|
||||||
|
- *laptop
|
||||||
|
- *anne
|
||||||
- path_regex: secrets\.yaml$
|
- path_regex: secrets\.yaml$
|
||||||
key_groups:
|
key_groups:
|
||||||
- pgp: []
|
- pgp: []
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
gitea:
|
||||||
|
token: ENC[AES256_GCM,data:aufTXSQAmAcwrTOnHauRnK0eEZSa1/2w6JwMn/yrL6BGCFyzRIeQ/Q==,iv:Q+d2efdCyyOb1fE1RV8QY4/QTMPlsbeWT43arb8VQlg=,tag:AlxJy4G+4v9O3T+fAZeizA==,type:str]
|
||||||
|
github:
|
||||||
|
token: ENC[AES256_GCM,data:z5XgwnOBEe7XNKhENNxUkkaToOfWotruLrZU5G8VQtJLP9/OHP3psA==,iv:cg2T0CfeoiVb7z7wm2uqKohKmwoiIGqHjnoLbeGg9/w=,tag:7sSSsVhbsl/pFMIhIjX0SA==,type:str]
|
||||||
|
sops:
|
||||||
|
age:
|
||||||
|
- enc: |
|
||||||
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB1bjZDTDY5SXV2VEg4MVVp
|
||||||
|
U3Y0SFBtZ1hPbDFOdTZMWjZ0QklUOUlJOFg4CktncVJEYjVreEU0Vk0xbzJsMXkx
|
||||||
|
Q29CR083NkVBdkxINTJNS3NITzdxWkUKLS0tIGY3ajlVaUxzanVUZFJRSGhrZGNv
|
||||||
|
TWNQK2F1enpVNXoxcmFWL2tXTWJRRzAK9HVRRGz8MAfNMbZg4M/J61+ahRFm25Mw
|
||||||
|
+27VMOWX2XMQmMsGbR9Et3/8dmWK256yKW+LS/+W/mdK5+wkTmGyKg==
|
||||||
|
-----END AGE ENCRYPTED FILE-----
|
||||||
|
recipient: age1pln9sxy5j93lklqklfwp3qepx7x4cs4y2w63n9y3ykt68qgra5ysqleesg
|
||||||
|
- enc: |
|
||||||
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBrSU1uRnNNYWF4SW5aM3pz
|
||||||
|
emkxbzBwZ05XeG1PTk1saVNyeHlCUUROazFNCmlJZEhDaUtITjVYM1N0UU02QzJH
|
||||||
|
M1ZjYUxmNVN3OEUzb1VuVlhJWFd2cm8KLS0tIEc3TVBJUXpqdkk3SVFHL1V1REN3
|
||||||
|
ZGsvZGc5STljOGZOQks4ZFpJV1dqZ2sK6md/OW6F19AEbYdRp44h1ZWAaH3njBNP
|
||||||
|
XFdWOofCIJUoH6oYEHBe7Xc6g9n4R7fGK12bLDTgnhzOEypiYDlfGQ==
|
||||||
|
-----END AGE ENCRYPTED FILE-----
|
||||||
|
recipient: age1utkr8d88ezkwwf7aarpgg8ujqa8jmqtrjxvcau7yctjey66sngpqcr8fmx
|
||||||
|
lastmodified: "2026-10-21T20:28:26Z"
|
||||||
|
mac: ENC[AES256_GCM,data:Fgr08qaqWx40iT6uprqsFoMcWTibGSvQMVdDbTcaW775F1poZULS1He5/V0HlW0Yu3zJiZgG/4HtoITtyXrF9bW6CtSoRvhZDZ1p7YmF3q+v6WdSR+AoyQui+g8C51C0m6YqQmfbINV/qEUNW0TFsJXJid0dgszV6Z8uO/lKmU8=,iv:QBEV0lvCDgEWsvEQXfQqgVzFKiPRyApT7rbN48zR0/8=,tag:pzc3W6MpvCqC9YRT0iihxA==,type:str]
|
||||||
|
unencrypted_suffix: _unencrypted
|
||||||
|
version: 3.13.3
|
||||||
@@ -39,7 +39,7 @@ created: YYYY-MM-DD
|
|||||||
The workstation uses the community-maintained `github:jacopone/antigravity-nix` flake input, which tracks and bundles the three Antigravity surfaces with regular upstream updates:
|
The workstation uses the community-maintained `github:jacopone/antigravity-nix` flake input, which tracks and bundles the three Antigravity surfaces with regular upstream updates:
|
||||||
- `agy` CLI binary (`google-antigravity-cli`) declared in [`home/dev.nix`](file:///home/kiskaadee/Config/home/dev.nix).
|
- `agy` CLI binary (`google-antigravity-cli`) declared in [`home/dev.nix`](file:///home/kiskaadee/Config/home/dev.nix).
|
||||||
- Antigravity 2.0 Desktop GUI (`google-antigravity`) declared in [`home/desktop.nix`](file:///home/kiskaadee/Config/home/desktop.nix).
|
- Antigravity 2.0 Desktop GUI (`google-antigravity`) declared in [`home/desktop.nix`](file:///home/kiskaadee/Config/home/desktop.nix).
|
||||||
- Antigravity IDE (`google-antigravity-ide`) available from the same flake package set.
|
- Antigravity IDE (`google-antigravity-ide`) declared in [`home/desktop.nix`](file:///home/kiskaadee/Config/home/desktop.nix).
|
||||||
|
|
||||||
Antigravity operates in an interactive development environment with access to:
|
Antigravity operates in an interactive development environment with access to:
|
||||||
- Installed Antigravity tools and editors.
|
- Installed Antigravity tools and editors.
|
||||||
|
|||||||
+10
-1
@@ -13,7 +13,7 @@ The shell environment is modularized:
|
|||||||
- `jump.sh`: Directory navigation and quick jumping.
|
- `jump.sh`: Directory navigation and quick jumping.
|
||||||
- `pdf.sh`: PDF compilation, viewing, and OCR helpers.
|
- `pdf.sh`: PDF compilation, viewing, and OCR helpers.
|
||||||
- `quicklinks.sh`: Shortcuts to primary project directories.
|
- `quicklinks.sh`: Shortcuts to primary project directories.
|
||||||
- `secrets.sh`: SOPS secret retrieval and Wayland clipboard extraction (`gh-token`).
|
- `secrets.sh`: SOPS secret retrieval (`gh-token` clipboard utility, transparent `flarectl` and `hostinger` process wrappers).
|
||||||
- `todo.sh`: Lightweight terminal task tracking.
|
- `todo.sh`: Lightweight terminal task tracking.
|
||||||
- `wayland.sh`: Wayland session environment variables and clipboard helpers.
|
- `wayland.sh`: Wayland session environment variables and clipboard helpers.
|
||||||
|
|
||||||
@@ -39,6 +39,15 @@ The shell environment is modularized:
|
|||||||
| `gl` | `git log --oneline --graph --decorate` | Compact visual commit graph. |
|
| `gl` | `git log --oneline --graph --decorate` | Compact visual commit graph. |
|
||||||
| `ght` | `gh-token` | Copy GitHub repo token from SOPS into Wayland clipboard. |
|
| `ght` | `gh-token` | Copy GitHub repo token from SOPS into Wayland clipboard. |
|
||||||
|
|
||||||
|
### Operator CLI Secret Wrappers (`home/shell/secrets.sh`)
|
||||||
|
| Command / Function | Injected Environment Variables | Source Secret Key (`~/Config/secrets.yaml`) |
|
||||||
|
| :--- | :--- | :--- |
|
||||||
|
| `flarectl` | `CF_API_TOKEN`, `CF_ACCOUNT_ID` | `["cloudflare"]["api_token"]`, `["cloudflare"]["account_id"]` |
|
||||||
|
| `hostinger` | `HOSTINGER_API_TOKEN` | `["hostinger"]["api_token"]` |
|
||||||
|
| `gh-token` (`ght`) | *(Copies directly to Wayland clipboard)* | `["system"]["gh_repo_token"]` (from Homelab `Core`) |
|
||||||
|
|
||||||
|
*Note: Environment variables are set exclusively for the child process lifecycle and do not persist in your interactive shell.*
|
||||||
|
|
||||||
### Directory Navigation Jumps (`home/shell/jump.sh`)
|
### Directory Navigation Jumps (`home/shell/jump.sh`)
|
||||||
| 2-Letter | Word Alias | Target Directory | Description |
|
| 2-Letter | Word Alias | Target Directory | Description |
|
||||||
| :--- | :--- | :--- | :--- |
|
| :--- | :--- | :--- | :--- |
|
||||||
|
|||||||
+65
-11
@@ -32,19 +32,73 @@ graph LR
|
|||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
### Roles & Boundaries
|
### Two-Tier Secrets Architecture
|
||||||
1. **Workstation (`Config`)**:
|
|
||||||
- Holds **zero** declarative system secrets (`sops-nix` is not imported).
|
The infrastructure enforces a strict separation between **Operator Secrets** (workstation) and **Runtime Workload Secrets** (server):
|
||||||
- Provides operator CLI packages (`sops`, `age`, `rbw`) in `home/dev.nix`.
|
|
||||||
- Stores the operator's personal age identity in `~/.config/sops/age/keys.txt`.
|
| Attribute | Workstation Operator Secrets (`Config`) | Server Runtime Secrets (`Core`) |
|
||||||
2. **Server (`Core`)**:
|
| :--- | :--- | :--- |
|
||||||
- Headless consumer running Docker containers, databases, and Traefik.
|
| **Ciphertext File** | `Config/secrets.yaml` | `Core/nixos/secrets.yaml` |
|
||||||
- Decrypts secrets at boot into a secure ramfs (`/run/secrets/`) using `/etc/ssh/ssh_host_ed25519_key`.
|
| **Scope** | Personal operator tokens (Cloudflare, Hostinger, GitHub) | Service runtime credentials (Traefik, DBs, Docker daemons) |
|
||||||
- Unprivileged SSH sessions cannot edit secrets directly on the server.
|
| **Tenancy** | Multi-project across account domains | Scoped strictly to homelab infrastructure workloads |
|
||||||
|
| **Decryption Model** | In-memory on-demand via `sops -d --extract` in shell wrappers | Automated boot-time ramfs mount via `sops-nix` (`/run/secrets/`) |
|
||||||
|
| **Key Identity** | Personal age identity (`~/.config/sops/age/keys.txt`) | Server host SSH key (`/etc/ssh/ssh_host_ed25519_key`) |
|
||||||
|
| **Daemon Overhead** | **Zero** (`sops-nix` module intentionally omitted) | Managed via root systemd units |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 2. Operator Workflow: Authoring & Rotating Secrets
|
## 2. Workstation Operator Secrets (`Config/secrets.yaml`)
|
||||||
|
|
||||||
|
Operator CLI tools (such as `flarectl` and `hostinger`) manage cloud infrastructure across multiple projects. To maintain least-privilege for the server, these credentials are kept on the workstation:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Config/secrets.yaml (encrypted with operator age key)
|
||||||
|
cloudflare:
|
||||||
|
api_token: "..."
|
||||||
|
account_id: "..."
|
||||||
|
|
||||||
|
hostinger:
|
||||||
|
api_token: "..."
|
||||||
|
```
|
||||||
|
|
||||||
|
### Process-Scoped In-Memory Decryption
|
||||||
|
Rather than exporting tokens into global interactive shells or writing plaintext config files to disk, shell wrappers in `home/shell/secrets.sh` extract credentials into the child process environment on demand:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Example: flarectl wrapper in home/shell/secrets.sh
|
||||||
|
flarectl() {
|
||||||
|
local secrets_file="$HOME/Config/secrets.yaml"
|
||||||
|
if [[ -f "$secrets_file" ]] && command -v sops >/dev/null 2>&1; then
|
||||||
|
CF_API_TOKEN=$(sops -d --extract '["cloudflare"]["api_token"]' "$secrets_file" 2>/dev/null) \
|
||||||
|
CF_ACCOUNT_ID=$(sops -d --extract '["cloudflare"]["account_id"]' "$secrets_file" 2>/dev/null) \
|
||||||
|
command flarectl "$@"
|
||||||
|
else
|
||||||
|
command flarectl "$@"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
* **Security**: Decryption occurs strictly in RAM (~17ms overhead).
|
||||||
|
* **Isolation**: The environment variables exist only for the life of `flarectl "$@"` and do not persist in the parent interactive shell.
|
||||||
|
|
||||||
|
### Autonomous Agent Secrets (`Config/anne-secrets.yaml`)
|
||||||
|
To prevent autonomous agents from having access to personal operator tokens (Cloudflare, Hostinger, personal GitHub), agent credentials live in dedicated, firewalled secret files:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Config/anne-secrets.yaml (encrypted for both *laptop and *anne)
|
||||||
|
gitea:
|
||||||
|
token: "..."
|
||||||
|
github:
|
||||||
|
token: "..."
|
||||||
|
```
|
||||||
|
|
||||||
|
* **Multi-Recipient Encryption**: Encrypted for both `*laptop` (`keys.txt`) and `*anne` (`anne_keys.txt`).
|
||||||
|
* **Operator Convenience**: The workstation operator can view and edit `anne-secrets.yaml` seamlessly using `sops anne-secrets.yaml` without switching keys.
|
||||||
|
* **Cryptographic Firewall**: When running in an isolated container or subagent environment with only `anne_keys.txt`, the agent physically cannot decrypt `Config/secrets.yaml`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 3. Homelab Server Runtime Secrets (`Core/nixos/secrets.yaml`)
|
||||||
|
|
||||||
To rotate or add a secret for homelab services:
|
To rotate or add a secret for homelab services:
|
||||||
|
|
||||||
@@ -74,7 +128,7 @@ The server evaluates the new ciphertext, decrypts it into `/run/secrets/`, and r
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 3. Backing Up & Restoring the Operator Age Key
|
## 4. Backing Up & Restoring the Operator Age Key
|
||||||
|
|
||||||
The operator key is your cryptographic identity for managing homelab infrastructure:
|
The operator key is your cryptographic identity for managing homelab infrastructure:
|
||||||
|
|
||||||
|
|||||||
Generated
+109
-43
@@ -8,11 +8,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792567233,
|
"lastModified": 1795331353,
|
||||||
"narHash": "sha256-k77tiEnyeNZMvxM69cn9RV/jiDdwq6x+mB5sOB/2NEw=",
|
"narHash": "sha256-llMfFaxJxf7aMf0NRuKFtmBpDh14q5qnpwiGy/DJsJc=",
|
||||||
"owner": "jacopone",
|
"owner": "jacopone",
|
||||||
"repo": "antigravity-nix",
|
"repo": "antigravity-nix",
|
||||||
"rev": "9676d7761a3d8946359cd5ed6caa021fac6ca978",
|
"rev": "c9f1bae6b80d90c92eed93694bdb5291242fe9a4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -24,16 +24,17 @@
|
|||||||
"dank-greeter": {
|
"dank-greeter": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"dank-qml-common": "dank-qml-common",
|
"dank-qml-common": "dank-qml-common",
|
||||||
|
"dux-qt-base": "dux-qt-base",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792524306,
|
"lastModified": 1795022150,
|
||||||
"narHash": "sha256-b9S8kVbAWgynkuYcKLAittwfUr26jaE3VDlvkhqva1o=",
|
"narHash": "sha256-EINAcQZPXnTzHJNGqFxTMFSv7eT0wxymdg10Pud131E=",
|
||||||
"owner": "AvengeMedia",
|
"owner": "AvengeMedia",
|
||||||
"repo": "dank-greeter",
|
"repo": "dank-greeter",
|
||||||
"rev": "39d3c17ba4349e6ac3af041805132807cd60a056",
|
"rev": "3e4affaf85f91fd98fdb83a27651d2597963e8ae",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -45,11 +46,11 @@
|
|||||||
"dank-qml-common": {
|
"dank-qml-common": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792513666,
|
"lastModified": 1795021255,
|
||||||
"narHash": "sha256-RDqPdPrM5lnwRrfFGLz3IwgTjCV2Ie+nrTD3ldj1t/s=",
|
"narHash": "sha256-fDhHTvIkU+oDuIvdOhG5RyNZSYuxwM3xscLLdxmLVY4=",
|
||||||
"owner": "duxlabs-dev",
|
"owner": "duxlabs-dev",
|
||||||
"repo": "dux-qml-common",
|
"repo": "dux-qml-common",
|
||||||
"rev": "ebf5e6c002da1bdaa4aaa2f319fea7b8507abc42",
|
"rev": "e7c185915fe2555c6e6681711054e6b79f546806",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -61,11 +62,11 @@
|
|||||||
"dank-qml-common_2": {
|
"dank-qml-common_2": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792513666,
|
"lastModified": 1795139913,
|
||||||
"narHash": "sha256-RDqPdPrM5lnwRrfFGLz3IwgTjCV2Ie+nrTD3ldj1t/s=",
|
"narHash": "sha256-RYLCGIA8CuAIsmWUA1y8Ml+5bs8yIFNDQqOjeOlBr6A=",
|
||||||
"owner": "duxlabs-dev",
|
"owner": "duxlabs-dev",
|
||||||
"repo": "dux-qml-common",
|
"repo": "dux-qml-common",
|
||||||
"rev": "ebf5e6c002da1bdaa4aaa2f319fea7b8507abc42",
|
"rev": "e268d71117173d0934dbe773d3e2ed6efe11afda",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -77,11 +78,11 @@
|
|||||||
"dank-qml-common_3": {
|
"dank-qml-common_3": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792513666,
|
"lastModified": 1795211080,
|
||||||
"narHash": "sha256-RDqPdPrM5lnwRrfFGLz3IwgTjCV2Ie+nrTD3ldj1t/s=",
|
"narHash": "sha256-PV5cT7st/9ioV5aHeNP0go7wFfHlKfBYVVRCQ8JkHXg=",
|
||||||
"owner": "duxlabs-dev",
|
"owner": "duxlabs-dev",
|
||||||
"repo": "dux-qml-common",
|
"repo": "dux-qml-common",
|
||||||
"rev": "ebf5e6c002da1bdaa4aaa2f319fea7b8507abc42",
|
"rev": "12f5e4457e0ca14b6a5f9a283ab581ce28c92855",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -93,16 +94,17 @@
|
|||||||
"dankcalendar": {
|
"dankcalendar": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"dank-qml-common": "dank-qml-common_2",
|
"dank-qml-common": "dank-qml-common_2",
|
||||||
|
"dux-qt-base": "dux-qt-base_2",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792544049,
|
"lastModified": 1795331423,
|
||||||
"narHash": "sha256-gEJU03lX5rNNjo8rsmIgrrJfrT8Jgi3GdUnLGlAZKRs=",
|
"narHash": "sha256-kwm++EAyRfrgQAJVLR9LeSGiWbk7ehB64mJG17a4/hY=",
|
||||||
"owner": "AvengeMedia",
|
"owner": "AvengeMedia",
|
||||||
"repo": "dankcalendar",
|
"repo": "dankcalendar",
|
||||||
"rev": "734d20af76c9f2cdf751086456ad43535777c3f8",
|
"rev": "62ee9f656831be30dd3b58384758199a8e904637",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -118,11 +120,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792524211,
|
"lastModified": 1794282582,
|
||||||
"narHash": "sha256-GOnNob/tex//NBchfVXAjzk9Gw4K+GxyVmZBZqx0nLA=",
|
"narHash": "sha256-gZENm8lqgHN4UIg7pceXZEvYRy4UkbnW5cdsz2l1f3E=",
|
||||||
"owner": "AvengeMedia",
|
"owner": "AvengeMedia",
|
||||||
"repo": "danksearch",
|
"repo": "danksearch",
|
||||||
"rev": "9f706cad94f23dd2fd8642a2c06796fa0786e60d",
|
"rev": "a25a7be5626ef4776a1600b1013583cff5ed71f9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -138,11 +140,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792524211,
|
"lastModified": 1794282582,
|
||||||
"narHash": "sha256-GTDomQTBU132DVjqX/o3cZBo9ylUWLvUJ74PSlahgTo=",
|
"narHash": "sha256-7bQCy4e5cgj7ToGZmXjI4ksbmjxzK/Vi/ZUUiSuRhT4=",
|
||||||
"owner": "AvengeMedia",
|
"owner": "AvengeMedia",
|
||||||
"repo": "dgop",
|
"repo": "dgop",
|
||||||
"rev": "43a29526bb651c372c3291eb62c3e0cec3bca6e0",
|
"rev": "d91b45a6e1ef52ab3e7791286615759306477647",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -154,17 +156,18 @@
|
|||||||
"dms": {
|
"dms": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"dank-qml-common": "dank-qml-common_3",
|
"dank-qml-common": "dank-qml-common_3",
|
||||||
|
"dux-qt-base": "dux-qt-base_3",
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792584169,
|
"lastModified": 1795342511,
|
||||||
"narHash": "sha256-Q7gbbFGwhYzhXgfXeIolmDISNBIWwKkP9ww0yJQVAqA=",
|
"narHash": "sha256-9cQ6VogdRRaf40wMBUip/EoufpSLnjNmosrijaYZwus=",
|
||||||
"owner": "AvengeMedia",
|
"owner": "AvengeMedia",
|
||||||
"repo": "DankMaterialShell",
|
"repo": "DankMaterialShell",
|
||||||
"rev": "b81954454a7c6a53ffa6d49d65906aa65694eef1",
|
"rev": "a265f0a1af5dcc78ae691487d94710cca82da62d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -173,6 +176,69 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"dux-qt-base": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"dank-greeter",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1794899417,
|
||||||
|
"narHash": "sha256-E5xQiepbIMlywIAFHGt3c4uBGUysNfdmL/mscCspXrs=",
|
||||||
|
"owner": "duxlabs-dev",
|
||||||
|
"repo": "dux-qt-base",
|
||||||
|
"rev": "8a8c69406e75a797cf400ce151cc735ea2a02af1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "duxlabs-dev",
|
||||||
|
"repo": "dux-qt-base",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dux-qt-base_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"dankcalendar",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1795139910,
|
||||||
|
"narHash": "sha256-JxBwcoR86CfjT92/xQSbbaHn1OxddwtH/iF+u4fUvRw=",
|
||||||
|
"owner": "duxlabs-dev",
|
||||||
|
"repo": "dux-qt-base",
|
||||||
|
"rev": "75d4524dc5e678ca4b64a1f862dd7509ca6852b1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "duxlabs-dev",
|
||||||
|
"repo": "dux-qt-base",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dux-qt-base_3": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"dms",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1795337492,
|
||||||
|
"narHash": "sha256-xGJDFNGgtXujSneISCrN2TxKx2IkTMeFBgTmJIISGfs=",
|
||||||
|
"owner": "duxlabs-dev",
|
||||||
|
"repo": "dux-qt-base",
|
||||||
|
"rev": "0ea003e30fc92c51943ab7660b58d883708e25c2",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "duxlabs-dev",
|
||||||
|
"repo": "dux-qt-base",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -214,11 +280,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792495086,
|
"lastModified": 1795340038,
|
||||||
"narHash": "sha256-TyoYH983Nsc++1scw0SoOEKshPSJWJDxK7tTmuZ974M=",
|
"narHash": "sha256-RtgZbV+4BDtJqMImbiPJri3fmVDbCbrz/B0cuPQUJQY=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "ec80131710bffcdf3b8498cf41f3a0579833b023",
|
"rev": "03885bcd0b477bdecebebc57b213b0f8f0826d51",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -235,11 +301,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792098797,
|
"lastModified": 1794715309,
|
||||||
"narHash": "sha256-u4DIIZgznEGzByxXrxWCXK19VcMtTBmi/M9gZ7Jk9bM=",
|
"narHash": "sha256-awkBBs5ctFKgEYjpNGpi3t/VqF589n5EWfdinRb2gNI=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "640725978b99076e18e069f6e7d2959124584f8f",
|
"rev": "a1293da7dd8e497e08d26173f97e2976b36a31ea",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -251,11 +317,11 @@
|
|||||||
"new-repo": {
|
"new-repo": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792328438,
|
"lastModified": 1792722922,
|
||||||
"narHash": "sha256-KyYt221mst8wSPKToX3uNNWS42Uft/N8s/E2uV85uWE=",
|
"narHash": "sha256-g+6cdwq2KpzFoKKSCA+rN+fczgHPCr+isuwrGRsR4F4=",
|
||||||
"owner": "kiskaadee",
|
"owner": "kiskaadee",
|
||||||
"repo": "new-repo",
|
"repo": "new-repo",
|
||||||
"rev": "06cc3254c0e3c44a8ce8fc68361ee780a4dab9e5",
|
"rev": "e72b46a42e11115d64fa32ac53ddef459cb33d05",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -266,11 +332,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792502884,
|
"lastModified": 1795234589,
|
||||||
"narHash": "sha256-ij8QUxzTOHovLrNOxVRx+RAhGQFOMsJbji0veiatH5k=",
|
"narHash": "sha256-pAEASBc6wof0S58XcSEdZoQ2iFQDkCnZwH+wFLrkd1Q=",
|
||||||
"rev": "02c087f3fe673c9e317f206a627cb6b910336dbe",
|
"rev": "2786a2a72088ecf32aea5b3ec52099e6a7cff78f",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1097682.02c087f3fe67/nixexprs.tar.zst"
|
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1125864.2786a2a72088/nixexprs.tar.zst"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
@@ -314,11 +380,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792522695,
|
"lastModified": 1795333741,
|
||||||
"narHash": "sha256-jTLo+OAKTDjIOEv2YA8xKTkqp1zZ+ZwXjztgXj6E7bk=",
|
"narHash": "sha256-xJaT+L8DeMR0TJjAOlrjGqaRG2AjZrjivQfCtiLRtlY=",
|
||||||
"owner": "0xc000022070",
|
"owner": "0xc000022070",
|
||||||
"repo": "zen-browser-flake",
|
"repo": "zen-browser-flake",
|
||||||
"rev": "bb286c34998a498df925c7a7b4d69aea8c44931c",
|
"rev": "81376950ac382a96b965f9d6f8bf60354ad99c2f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -148,6 +148,9 @@
|
|||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.backupFileExtension = "backup";
|
home-manager.backupFileExtension = "backup";
|
||||||
|
# ~/.ssh/config is kept as a user-owned regular file (see the
|
||||||
|
# de-symlink workaround), so HM hits an occupied .backup path.
|
||||||
|
home-manager.overwriteBackup = true;
|
||||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||||
home-manager.users.kiskaadee = {
|
home-manager.users.kiskaadee = {
|
||||||
imports = [
|
imports = [
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"key": "ctrl+space e",
|
||||||
|
"command": "workbench.action.focusActiveEditorGroup"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+space t",
|
||||||
|
"command": "workbench.action.terminal.focus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+space c",
|
||||||
|
"command": "antigravity.toggleChatFocus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ctrl+space f",
|
||||||
|
"command": "workbench.view.explorer"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"workbench.colorTheme": "GitHub Dark Colorblind (Beta)",
|
||||||
|
"terminal.integrated.fontFamily": "'FiraCode Nerd Font Mono', 'FiraCode Nerd Font', monospace",
|
||||||
|
"editor.fontFamily": "'FiraCode Nerd Font', monospace",
|
||||||
|
"editor.fontLigatures": true,
|
||||||
|
"vim.useSystemClipboard": true,
|
||||||
|
"vim.hlsearch": true,
|
||||||
|
"terminal.integrated.allowChords": true,
|
||||||
|
"terminal.integrated.commandsToSkipShell": [
|
||||||
|
"workbench.action.focusActiveEditorGroup",
|
||||||
|
"workbench.action.terminal.focus",
|
||||||
|
"antigravity.toggleChatFocus",
|
||||||
|
"workbench.view.explorer"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -19,10 +19,15 @@ in
|
|||||||
|
|
||||||
# AI Assistants & Desktop GUI
|
# AI Assistants & Desktop GUI
|
||||||
inputs.antigravity.packages.${pkgs.stdenv.hostPlatform.system}.google-antigravity
|
inputs.antigravity.packages.${pkgs.stdenv.hostPlatform.system}.google-antigravity
|
||||||
|
inputs.antigravity.packages.${pkgs.stdenv.hostPlatform.system}.google-antigravity-ide
|
||||||
|
opencode-desktop
|
||||||
|
|
||||||
# Graphical Applications & Editors
|
# Graphical Applications & Editors
|
||||||
|
anydesk
|
||||||
zed-editor
|
zed-editor
|
||||||
obsidian
|
obsidian
|
||||||
|
kdePackages.okular
|
||||||
|
inkscape
|
||||||
libreoffice
|
libreoffice
|
||||||
nautilus
|
nautilus
|
||||||
yazi
|
yazi
|
||||||
@@ -93,6 +98,10 @@ in
|
|||||||
home.file.".config/niri/config.kdl".source = ./config/niri/config.kdl;
|
home.file.".config/niri/config.kdl".source = ./config/niri/config.kdl;
|
||||||
home.file.".config/niri/custom.kdl".source = ./config/niri/custom.kdl;
|
home.file.".config/niri/custom.kdl".source = ./config/niri/custom.kdl;
|
||||||
|
|
||||||
|
# Declarative configuration files for Antigravity IDE
|
||||||
|
home.file.".antigravity-ide/User/settings.json".source = ./config/antigravity-ide/settings.json;
|
||||||
|
home.file.".antigravity-ide/User/keybindings.json".source = ./config/antigravity-ide/keybindings.json;
|
||||||
|
|
||||||
# Systemd user session target for Niri window manager
|
# Systemd user session target for Niri window manager
|
||||||
|
|
||||||
systemd.user.targets.niri-session = {
|
systemd.user.targets.niri-session = {
|
||||||
|
|||||||
+95
-1
@@ -28,6 +28,63 @@ let
|
|||||||
mainProgram = "cargo-agents";
|
mainProgram = "cargo-agents";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hostinger-cli = pkgs.stdenv.mkDerivation rec {
|
||||||
|
pname = "hostinger-cli";
|
||||||
|
version = "4.1.4";
|
||||||
|
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "https://github.com/hostinger/api-cli/releases/download/v${version}/hostinger-${version}-linux-amd64.tar.gz";
|
||||||
|
hash = "sha256-DGliGk9wuSnf2HbCkQDcEbSv1TWmV9W4Jw7LWqCcj4E=";
|
||||||
|
};
|
||||||
|
|
||||||
|
sourceRoot = ".";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -Dm755 hostinger $out/bin/hostinger
|
||||||
|
install -Dm644 completions/hostinger.bash $out/share/bash-completion/completions/hostinger
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with pkgs.lib; {
|
||||||
|
description = "Official Hostinger API Command Line Interface";
|
||||||
|
homepage = "https://github.com/hostinger/api-cli";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
mainProgram = "hostinger";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
gitea-cli = pkgs.stdenv.mkDerivation rec {
|
||||||
|
pname = "gitea-cli";
|
||||||
|
version = "1.0.0";
|
||||||
|
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "https://gitea.com/gitea/cli/releases/download/v${version}/gitea-cli-${version}-linux-amd64";
|
||||||
|
hash = "sha256-f/q+QV0F380YtJfVe0nIJHZLq5vvCUrPiQyWRZNsM8E=";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontUnpack = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgs.installShellFiles ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -Dm755 $src $out/bin/gt
|
||||||
|
|
||||||
|
# Generate and install shell completions
|
||||||
|
installShellCompletion --cmd gt \
|
||||||
|
--bash <($out/bin/gt completion bash) \
|
||||||
|
--fish <($out/bin/gt completion fish) \
|
||||||
|
--zsh <($out/bin/gt completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with pkgs.lib; {
|
||||||
|
description = "Official command-line tool for Gitea (successor to tea)";
|
||||||
|
homepage = "https://gitea.com/gitea/cli";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
mainProgram = "gt";
|
||||||
|
};
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Neovim CLI & IDE Editor Configuration
|
# Neovim CLI & IDE Editor Configuration
|
||||||
@@ -84,6 +141,8 @@ in
|
|||||||
herdr
|
herdr
|
||||||
graphify
|
graphify
|
||||||
codex
|
codex
|
||||||
|
opencode
|
||||||
|
bubblewrap # Unprivileged sandboxing tool
|
||||||
pi-coding-agent
|
pi-coding-agent
|
||||||
symposium
|
symposium
|
||||||
|
|
||||||
@@ -119,8 +178,10 @@ in
|
|||||||
lemminx
|
lemminx
|
||||||
|
|
||||||
# Cloud CLI, Git Forge & Database Management
|
# Cloud CLI, Git Forge & Database Management
|
||||||
tea # Gitea official CLI client
|
gitea-cli # Gitea official CLI client (gt, successor to tea)
|
||||||
google-cloud-sdk # GCP administration utilities
|
google-cloud-sdk # GCP administration utilities
|
||||||
|
flarectl # Cloudflare official CLI client
|
||||||
|
hostinger-cli # Hostinger official API CLI
|
||||||
turso-cli # Turso libSQL management CLI
|
turso-cli # Turso libSQL management CLI
|
||||||
postgresql # PostgreSQL client utilities (psql, pg_dump)
|
postgresql # PostgreSQL client utilities (psql, pg_dump)
|
||||||
pgcli # Postgres client with auto-completion
|
pgcli # Postgres client with auto-completion
|
||||||
@@ -131,6 +192,7 @@ in
|
|||||||
websocat # WebSocket client
|
websocat # WebSocket client
|
||||||
grpcurl # gRPC command-line tool
|
grpcurl # gRPC command-line tool
|
||||||
bind.dnsutils # DNS lookup tools (dig, nslookup)
|
bind.dnsutils # DNS lookup tools (dig, nslookup)
|
||||||
|
doggo # Modern, human-friendly DNS client with DoH/DoT
|
||||||
openssh # SSH client tools
|
openssh # SSH client tools
|
||||||
sshfs # FUSE-based SSH filesystem mount
|
sshfs # FUSE-based SSH filesystem mount
|
||||||
nmap # Network scanner
|
nmap # Network scanner
|
||||||
@@ -153,6 +215,8 @@ in
|
|||||||
sqlite
|
sqlite
|
||||||
bc
|
bc
|
||||||
qpdf
|
qpdf
|
||||||
|
poppler-utils
|
||||||
|
pandoc
|
||||||
tty-clock
|
tty-clock
|
||||||
curl
|
curl
|
||||||
parallel
|
parallel
|
||||||
@@ -163,4 +227,34 @@ in
|
|||||||
sops # Mozilla SOPS CLI
|
sops # Mozilla SOPS CLI
|
||||||
age # File encryption tool
|
age # File encryption tool
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Background two-way sync for corazoncp shared Google Drive repository
|
||||||
|
systemd.user.services.corazoncp-drive-sync = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Two-way sync between corazoncp/drive and Google Drive";
|
||||||
|
After = [ "network-online.target" "graphical-session.target" ];
|
||||||
|
Wants = [ "network-online.target" ];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
Type = "oneshot";
|
||||||
|
ExecStart = "${pkgs.bash}/bin/bash /home/kiskaadee/Projects/active/corazoncp/drive/sync-drive.sh";
|
||||||
|
Environment = [
|
||||||
|
"PATH=${pkgs.lib.makeBinPath [ pkgs.rclone pkgs.git pkgs.openssh pkgs.libnotify pkgs.util-linux pkgs.findutils pkgs.coreutils ]}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.user.timers.corazoncp-drive-sync = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Poll corazoncp shared Google Drive every 15 minutes";
|
||||||
|
};
|
||||||
|
Timer = {
|
||||||
|
OnBootSec = "2m";
|
||||||
|
OnUnitActiveSec = "15m";
|
||||||
|
Persistent = true;
|
||||||
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "timers.target" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
Executable
+75
@@ -0,0 +1,75 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# 🌐 Cloudflare DDNS Quick Updater for roadtotech.me
|
||||||
|
|
||||||
|
ZONE="roadtotech.me"
|
||||||
|
TARGET_RECORDS=("roadtotech.me" "mail.roadtotech.me")
|
||||||
|
|
||||||
|
# 1. Load Cloudflare credentials via SOPS if not already present in environment
|
||||||
|
if [[ -z "${CF_API_TOKEN:-}" ]]; then
|
||||||
|
secrets_file="${HOME}/Config/secrets.yaml"
|
||||||
|
if [[ -f "${secrets_file}" ]] && command -v sops >/dev/null 2>&1; then
|
||||||
|
CF_API_TOKEN="$(sops -d --extract '["cloudflare"]["api_token"]' "${secrets_file}")"
|
||||||
|
export CF_API_TOKEN
|
||||||
|
CF_ACCOUNT_ID="$(sops -d --extract '["cloudflare"]["account_id"]' "${secrets_file}")"
|
||||||
|
export CF_ACCOUNT_ID
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -z "${CF_API_TOKEN:-}" ]]; then
|
||||||
|
echo "Error: CF_API_TOKEN is not set and could not be extracted from secrets.yaml." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 2. Determine target public WAN IP
|
||||||
|
if [[ -n "${1:-}" ]]; then
|
||||||
|
NEW_IP="$1"
|
||||||
|
echo "Using manually specified IP: ${NEW_IP}"
|
||||||
|
else
|
||||||
|
echo "Detecting current public WAN IP..."
|
||||||
|
NEW_IP="$(curl -s --max-time 5 https://api.ipify.org || curl -s --max-time 5 https://icanhazip.com || true)"
|
||||||
|
NEW_IP="$(echo "${NEW_IP}" | tr -d '[:space:]')"
|
||||||
|
echo "Detected WAN IP: ${NEW_IP}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Validate IPv4 format
|
||||||
|
if [[ ! "${NEW_IP}" =~ ^([0-9]{1,3}\.){3}[0-9]{1,3}$ ]]; then
|
||||||
|
echo "Error: Invalid IPv4 address '${NEW_IP}'" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 3. Query Cloudflare for existing records
|
||||||
|
echo "Fetching active DNS records for ${ZONE}..."
|
||||||
|
DNS_JSON="$(flarectl --json dns list --zone "${ZONE}")"
|
||||||
|
|
||||||
|
# 4. Iterate and update target A records
|
||||||
|
UPDATED=0
|
||||||
|
for RECORD_NAME in "${TARGET_RECORDS[@]}"; do
|
||||||
|
RECORD_INFO="$(echo "${DNS_JSON}" | jq -r --arg name "${RECORD_NAME}" '.[] | select(.Name == $name and .Type == "A")')"
|
||||||
|
|
||||||
|
if [[ -z "${RECORD_INFO}" ]]; then
|
||||||
|
echo "Warning: Record '${RECORD_NAME}' (Type A) not found in zone ${ZONE}." >&2
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
RECORD_ID="$(echo "${RECORD_INFO}" | jq -r '.ID')"
|
||||||
|
CURRENT_IP="$(echo "${RECORD_INFO}" | jq -r '.Content')"
|
||||||
|
|
||||||
|
if [[ "${CURRENT_IP}" == "${NEW_IP}" ]]; then
|
||||||
|
echo "✓ ${RECORD_NAME} is already up to date (${CURRENT_IP})."
|
||||||
|
else
|
||||||
|
echo "Updating ${RECORD_NAME}: ${CURRENT_IP} -> ${NEW_IP}..."
|
||||||
|
flarectl dns update --zone "${ZONE}" --id "${RECORD_ID}" --content "${NEW_IP}"
|
||||||
|
echo "✓ ${RECORD_NAME} updated successfully."
|
||||||
|
UPDATED=1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# 5. Verification
|
||||||
|
if [[ "${UPDATED}" -eq 1 ]]; then
|
||||||
|
echo "Verifying resolution on Cloudflare nameservers..."
|
||||||
|
sleep 2
|
||||||
|
RESOLVED_IP="$(dig @pam.ns.cloudflare.com "${ZONE}" +short | tail -n1)"
|
||||||
|
echo "Authoritative pam.ns.cloudflare.com resolves ${ZONE} -> ${RESOLVED_IP}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Done."
|
||||||
Executable
+177
@@ -0,0 +1,177 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# 🎙️ Whisper Audio Message Transcriber
|
||||||
|
# Fast, local, offline audio transcription using whisper-cpp and ffmpeg.
|
||||||
|
# Optimised for voice messages (.ogg, .opus, .m4a, .mp3, .wav).
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
show_help() {
|
||||||
|
cat << 'EOF'
|
||||||
|
Usage: transcribe [OPTIONS] <audio-file> [audio-file2 ...]
|
||||||
|
|
||||||
|
Transcribes audio recordings into plain text using local whisper.cpp.
|
||||||
|
|
||||||
|
Options:
|
||||||
|
-c, --clip, --clipboard Copy transcription result to Wayland clipboard (wl-copy)
|
||||||
|
-s, --save Save transcript alongside audio file as <filename>.txt
|
||||||
|
-m, --model <name> Whisper model size (default: small, ~488MB)
|
||||||
|
Options: tiny, base, small, medium, large-v3-turbo
|
||||||
|
-l, --lang <code|auto> Spoken language (e.g. en, es, auto; default: auto)
|
||||||
|
-t, --threads <num> Computation threads (default: CPU core count)
|
||||||
|
-q, --quiet Suppress informational messages to stderr
|
||||||
|
-h, --help Show this help message and exit
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
transcribe voice_note.ogg
|
||||||
|
transcribe -c memo.m4a
|
||||||
|
transcribe -s -l es recording.opus
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
MODEL="${TRANSCRIBE_MODEL:-small}"
|
||||||
|
LANG="${TRANSCRIBE_LANG:-auto}"
|
||||||
|
CLIP=0
|
||||||
|
SAVE=0
|
||||||
|
QUIET=0
|
||||||
|
THREADS="$(nproc 2>/dev/null || echo 4)"
|
||||||
|
|
||||||
|
# Parse CLI options
|
||||||
|
while [ $# -gt 0 ]; do
|
||||||
|
case "$1" in
|
||||||
|
-c|--clip|--clipboard)
|
||||||
|
CLIP=1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-s|--save)
|
||||||
|
SAVE=1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-m|--model)
|
||||||
|
if [ $# -lt 2 ]; then
|
||||||
|
echo "Error: --model requires an argument" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
MODEL="$2"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
-l|--lang|--language)
|
||||||
|
if [ $# -lt 2 ]; then
|
||||||
|
echo "Error: --language requires an argument" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
LANG="$2"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
-t|--threads)
|
||||||
|
if [ $# -lt 2 ]; then
|
||||||
|
echo "Error: --threads requires an argument" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
THREADS="$2"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
-q|--quiet)
|
||||||
|
QUIET=1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-h|--help)
|
||||||
|
show_help
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
--)
|
||||||
|
shift
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
-*)
|
||||||
|
echo "Unknown option: $1" >&2
|
||||||
|
show_help
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ $# -lt 1 ]; then
|
||||||
|
echo "Error: No audio files provided." >&2
|
||||||
|
show_help
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
MODEL_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/whisper-cpp/models"
|
||||||
|
MODEL_FILE="$MODEL_DIR/ggml-${MODEL}.bin"
|
||||||
|
|
||||||
|
# Auto-download model on first run if missing
|
||||||
|
if [ ! -f "$MODEL_FILE" ]; then
|
||||||
|
if [ "$QUIET" -eq 0 ]; then
|
||||||
|
echo "Model 'ggml-${MODEL}.bin' not found in $MODEL_DIR." >&2
|
||||||
|
echo "Downloading model '${MODEL}'..." >&2
|
||||||
|
fi
|
||||||
|
mkdir -p "$MODEL_DIR"
|
||||||
|
whisper-cpp-download-ggml-model "$MODEL" "$MODEL_DIR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set up temporary working directory for 16kHz audio normalization
|
||||||
|
TEMP_DIR="$(mktemp -d -t transcribe-XXXXXX)"
|
||||||
|
cleanup() {
|
||||||
|
rm -rf "$TEMP_DIR"
|
||||||
|
}
|
||||||
|
trap cleanup EXIT INT TERM
|
||||||
|
|
||||||
|
ALL_OUTPUT=""
|
||||||
|
|
||||||
|
for input_file in "$@"; do
|
||||||
|
if [ ! -f "$input_file" ]; then
|
||||||
|
echo "Warning: File '$input_file' not found, skipping." >&2
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
TEMP_WAV="$TEMP_DIR/converted_$(basename "$input_file").wav"
|
||||||
|
|
||||||
|
# Normalize audio to 16kHz mono 16-bit PCM WAV (Whisper specification)
|
||||||
|
if ! ffmpeg -hide_banner -loglevel error -y -i "$input_file" -ar 16000 -ac 1 -c:a pcm_s16le "$TEMP_WAV"; then
|
||||||
|
echo "Error: Failed to process audio file '$input_file' with ffmpeg." >&2
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Run whisper-cli
|
||||||
|
RAW_TRANSCRIPT="$(whisper-cli -m "$MODEL_FILE" -f "$TEMP_WAV" -l "$LANG" -t "$THREADS" -nt -np)"
|
||||||
|
|
||||||
|
# Clean transcript: strip leading whitespace from segments
|
||||||
|
CLEAN_TRANSCRIPT="$(echo "$RAW_TRANSCRIPT" | sed -e 's/^[[:space:]]*//' | sed -e '/^[[:space:]]*$/d')"
|
||||||
|
|
||||||
|
# Print to stdout
|
||||||
|
printf "%s\n" "$CLEAN_TRANSCRIPT"
|
||||||
|
|
||||||
|
# Optional: Save next to original audio file
|
||||||
|
if [ "$SAVE" -eq 1 ]; then
|
||||||
|
OUT_TXT="${input_file%.*}.txt"
|
||||||
|
printf "%s\n" "$CLEAN_TRANSCRIPT" > "$OUT_TXT"
|
||||||
|
if [ "$QUIET" -eq 0 ]; then
|
||||||
|
echo "Saved transcript to: $OUT_TXT" >&2
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$ALL_OUTPUT" ]; then
|
||||||
|
ALL_OUTPUT="${ALL_OUTPUT}
|
||||||
|
${CLEAN_TRANSCRIPT}"
|
||||||
|
else
|
||||||
|
ALL_OUTPUT="$CLEAN_TRANSCRIPT"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f "$TEMP_WAV"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Optional: Copy accumulated transcript to clipboard
|
||||||
|
if [ "$CLIP" -eq 1 ] && [ -n "$ALL_OUTPUT" ]; then
|
||||||
|
if command -v wl-copy >/dev/null 2>&1; then
|
||||||
|
printf "%s\n" "$ALL_OUTPUT" | wl-copy
|
||||||
|
if [ "$QUIET" -eq 0 ]; then
|
||||||
|
echo "Copied transcript to clipboard." >&2
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Warning: wl-copy not found, skipping clipboard copy." >&2
|
||||||
|
fi
|
||||||
|
fi
|
||||||
+59
-1
@@ -29,11 +29,44 @@ let
|
|||||||
chmod +x $out/bin/new-repo
|
chmod +x $out/bin/new-repo
|
||||||
patchShebangs $out/bin/new-repo
|
patchShebangs $out/bin/new-repo
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Hermetic packaging for local audio transcription via whisper-cpp
|
||||||
|
transcribeCli = pkgs.writeShellApplication {
|
||||||
|
name = "transcribe";
|
||||||
|
runtimeInputs = with pkgs; [
|
||||||
|
bash
|
||||||
|
coreutils
|
||||||
|
gnused
|
||||||
|
gnugrep
|
||||||
|
ffmpeg-headless
|
||||||
|
whisper-cpp
|
||||||
|
wl-clipboard
|
||||||
|
curl
|
||||||
|
];
|
||||||
|
text = builtins.readFile ./scripts/transcribe.sh;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Quick manual/automation DDNS updater for Cloudflare homelab domain
|
||||||
|
cfDdns = pkgs.writeShellApplication {
|
||||||
|
name = "cf-ddns";
|
||||||
|
runtimeInputs = with pkgs; [
|
||||||
|
bash
|
||||||
|
coreutils
|
||||||
|
curl
|
||||||
|
jq
|
||||||
|
sops
|
||||||
|
flarectl
|
||||||
|
bind.dnsutils
|
||||||
|
];
|
||||||
|
text = builtins.readFile ./scripts/cf-ddns.sh;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = [
|
home.packages = [
|
||||||
tmuxSessionizer
|
tmuxSessionizer
|
||||||
newRepo
|
newRepo
|
||||||
|
transcribeCli
|
||||||
|
cfDdns
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
@@ -125,19 +158,21 @@ in
|
|||||||
enableDefaultConfig = false;
|
enableDefaultConfig = false;
|
||||||
settings = {
|
settings = {
|
||||||
"*" = {
|
"*" = {
|
||||||
User = "kiskaadee";
|
|
||||||
ServerAliveInterval = 15;
|
ServerAliveInterval = 15;
|
||||||
ServerAliveCountMax = 3;
|
ServerAliveCountMax = 3;
|
||||||
};
|
};
|
||||||
laptop = {
|
laptop = {
|
||||||
HostName = "192.168.1.32";
|
HostName = "192.168.1.32";
|
||||||
|
User = "kiskaadee";
|
||||||
Port = 22;
|
Port = 22;
|
||||||
};
|
};
|
||||||
server-local = {
|
server-local = {
|
||||||
|
User = "operator";
|
||||||
HostName = "192.168.1.36";
|
HostName = "192.168.1.36";
|
||||||
Port = 22;
|
Port = 22;
|
||||||
};
|
};
|
||||||
server-remote = {
|
server-remote = {
|
||||||
|
User = "operator";
|
||||||
HostName = "roadtotech.me";
|
HostName = "roadtotech.me";
|
||||||
Port = 2222;
|
Port = 2222;
|
||||||
};
|
};
|
||||||
@@ -146,6 +181,28 @@ in
|
|||||||
Port = 2223;
|
Port = 2223;
|
||||||
User = "git";
|
User = "git";
|
||||||
};
|
};
|
||||||
|
"webos-tv" = {
|
||||||
|
HostName = "192.168.1.11";
|
||||||
|
User = "prisoner";
|
||||||
|
Port = 9922;
|
||||||
|
IdentityFile = "~/.ssh/webos_rsa";
|
||||||
|
HostKeyAlgorithms = "+ssh-rsa";
|
||||||
|
PubkeyAcceptedAlgorithms = "+ssh-rsa";
|
||||||
|
};
|
||||||
|
phone = {
|
||||||
|
HostName = "192.168.1.46";
|
||||||
|
User = "u0_a56";
|
||||||
|
Port = 8022;
|
||||||
|
IdentityFile = "~/.ssh/id_ed25519";
|
||||||
|
IdentitiesOnly = true;
|
||||||
|
};
|
||||||
|
tablet = {
|
||||||
|
HostName = "192.168.1.5";
|
||||||
|
User = "u0_a259";
|
||||||
|
Port = 8022;
|
||||||
|
IdentityFile = "~/.ssh/id_ed25519";
|
||||||
|
IdentitiesOnly = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -207,6 +264,7 @@ in
|
|||||||
check = "~/Config/scripts/test";
|
check = "~/Config/scripts/test";
|
||||||
nfc = "nix flake check -L";
|
nfc = "nix flake check -L";
|
||||||
ff = "fastfetch --logo none";
|
ff = "fastfetch --logo none";
|
||||||
|
p3 = "python3";
|
||||||
|
|
||||||
# System Navigation
|
# System Navigation
|
||||||
".." = "cd ..";
|
".." = "cd ..";
|
||||||
|
|||||||
+2
-12
@@ -2,8 +2,7 @@
|
|||||||
# 🌟 Custom Git Automation & Helper Utilities
|
# 🌟 Custom Git Automation & Helper Utilities
|
||||||
# Sourced in .bashrc to streamline gitignore modifications, commit-push workflows, and new repo setups.
|
# Sourced in .bashrc to streamline gitignore modifications, commit-push workflows, and new repo setups.
|
||||||
|
|
||||||
# 1. gitignore: Quickly appends patterns to the repository's root .gitignore file
|
# 1. gitignore: Quickly appends patterns to the repository's root .gitignore file.
|
||||||
# then automatically commits and pushes the change.
|
|
||||||
gitignore() {
|
gitignore() {
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
echo "Usage: gitignore <pattern> [pattern...]"
|
echo "Usage: gitignore <pattern> [pattern...]"
|
||||||
@@ -30,7 +29,6 @@ gitignore() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
local added_count=0
|
local added_count=0
|
||||||
local commit_msg_list=""
|
|
||||||
|
|
||||||
for pattern in "$@"; do
|
for pattern in "$@"; do
|
||||||
# Check if the pattern is already present in the .gitignore file
|
# Check if the pattern is already present in the .gitignore file
|
||||||
@@ -40,18 +38,10 @@ gitignore() {
|
|||||||
echo "$pattern" >> "$GIT_IGNORE_FILE"
|
echo "$pattern" >> "$GIT_IGNORE_FILE"
|
||||||
echo "Added '$pattern'"
|
echo "Added '$pattern'"
|
||||||
((added_count++))
|
((added_count++))
|
||||||
commit_msg_list+="${pattern}, "
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# If any patterns were added, commit and push them automatically
|
if [ "$added_count" -eq 0 ]; then
|
||||||
if [ $added_count -gt 0 ]; then
|
|
||||||
commit_msg_list="${commit_msg_list%, }"
|
|
||||||
echo "Committing and pushing changes..."
|
|
||||||
git add "$GIT_IGNORE_FILE"
|
|
||||||
git commit -m "Add to .gitignore: $commit_msg_list"
|
|
||||||
git push
|
|
||||||
else
|
|
||||||
echo "No new patterns were added."
|
echo "No new patterns were added."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,11 +19,25 @@ if [[ $- == *i* ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# --- Nix Command Ergonomics ---
|
# --- Nix Command Ergonomics ---
|
||||||
# Ensure `nix flake check` always prints build and verification logs (-L)
|
# Ensure `nix flake check` always prints build and verification logs (-L),
|
||||||
|
# and inject GitHub personal access token via NIX_CONFIG on-demand to prevent API rate limiting.
|
||||||
nix() {
|
nix() {
|
||||||
if [[ "${1:-}" == "flake" && "${2:-}" == "check" && "$*" != *"--log-format"* && "$*" != *"-L"* ]]; then
|
local token=""
|
||||||
command nix flake check -L "${@:3}"
|
if declare -F _get_nix_gh_token >/dev/null 2>&1; then
|
||||||
|
token=$(_get_nix_gh_token)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n "$token" ]]; then
|
||||||
|
if [[ "${1:-}" == "flake" && "${2:-}" == "check" && "$*" != *"--log-format"* && "$*" != *"-L"* ]]; then
|
||||||
|
NIX_CONFIG="access-tokens = github.com=${token}${NIX_CONFIG:+ $NIX_CONFIG}" command nix flake check -L "${@:3}"
|
||||||
|
else
|
||||||
|
NIX_CONFIG="access-tokens = github.com=${token}${NIX_CONFIG:+ $NIX_CONFIG}" command nix "$@"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
command nix "$@"
|
if [[ "${1:-}" == "flake" && "${2:-}" == "check" && "$*" != *"--log-format"* && "$*" != *"-L"* ]]; then
|
||||||
|
command nix flake check -L "${@:3}"
|
||||||
|
else
|
||||||
|
command nix "$@"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -37,3 +37,35 @@ gh-token() {
|
|||||||
|
|
||||||
echo "GitHub repo token copied to clipboard (marked sensitive)."
|
echo "GitHub repo token copied to clipboard (marked sensitive)."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
flarectl() {
|
||||||
|
local secrets_file="$HOME/Config/secrets.yaml"
|
||||||
|
if [[ -f "$secrets_file" ]] && command -v sops >/dev/null 2>&1; then
|
||||||
|
CF_API_TOKEN=$(sops -d --extract '["cloudflare"]["api_token"]' "$secrets_file" 2>/dev/null) \
|
||||||
|
CF_ACCOUNT_ID=$(sops -d --extract '["cloudflare"]["account_id"]' "$secrets_file" 2>/dev/null) \
|
||||||
|
command flarectl "$@"
|
||||||
|
else
|
||||||
|
command flarectl "$@"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
hostinger() {
|
||||||
|
local secrets_file="$HOME/Config/secrets.yaml"
|
||||||
|
if [[ -f "$secrets_file" ]] && command -v sops >/dev/null 2>&1; then
|
||||||
|
HOSTINGER_API_TOKEN=$(sops -d --extract '["hostinger"]["api_token"]' "$secrets_file" 2>/dev/null) \
|
||||||
|
command hostinger "$@"
|
||||||
|
else
|
||||||
|
command hostinger "$@"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# 4. _get_nix_gh_token: Extracts and caches the GitHub repo token in memory for Nix invocations.
|
||||||
|
# Decrypts only on first use and caches in the shell session variable __NIX_GH_TOKEN to avoid repeated SOPS latency.
|
||||||
|
_get_nix_gh_token() {
|
||||||
|
local secrets_file="${CONFIG_SECRETS_FILE:-$HOME/Config/secrets.yaml}"
|
||||||
|
if [[ -z "${__NIX_GH_TOKEN:-}" ]] && [[ -f "$secrets_file" ]] && command -v sops >/dev/null 2>&1; then
|
||||||
|
__NIX_GH_TOKEN=$(sops -d --extract '["github"]["gh_repo_token"]' "$secrets_file" 2>/dev/null) || true
|
||||||
|
fi
|
||||||
|
printf "%s" "${__NIX_GH_TOKEN:-}"
|
||||||
|
}
|
||||||
+32
-20
@@ -1,33 +1,45 @@
|
|||||||
hello: ENC[AES256_GCM,data:aulB/GR/u/GqySd+q1aBxrePQOFEEAsXscaEupirDM6s/AukqZgY8xnvFkHh6g==,iv:uxpXFParhmLfM2Xx27w1dkNb349thKCqh0quSSyz2YM=,tag:NCxAjotLj8+hh57BolC22g==,type:str]
|
hello: ENC[AES256_GCM,data:oSNILLWbmrCgBOtDkn+HR0RyJRkI8HbPLzXyQrz/WO8+ekS0cpW46ybcw7sdzg==,iv:phN/JNw4X0wXdNlZCgZCoB+IW3S2MH0WERWM+ldCWog=,tag:QAmuj3dYOMH9uEWteU5Pgg==,type:str]
|
||||||
example_key: ENC[AES256_GCM,data:7hpuR3XKzFlfphS7+Q==,iv:hGh5O2ZcTbgoUjhR+v7PVV0of/UEhlPygQ4nKNKDtI0=,tag:xaYNdgAOKMPLRcGmBN8y1w==,type:str]
|
example_key: ENC[AES256_GCM,data:RX50AQc6D7bXC5wfAw==,iv:9JeXuChb6OBy/VSOGLtpS/lpo4dQPuH2DHurUW43jT4=,tag:bbQS+CTbFgD7W7H/D41lBQ==,type:str]
|
||||||
#ENC[AES256_GCM,data:UvVLNCE6hFOaH3lVwSmEZg==,iv:CA41pjS7OBbBB50pOZZTneaZPf4ltZKHBFErBLnbB0k=,tag:JWI3Z55fvwwDeU8AgxIVCA==,type:comment]
|
|
||||||
example_array:
|
example_array:
|
||||||
- ENC[AES256_GCM,data:HbEy6B+kG0RM4Sk2jZQ=,iv:ErXJDMLive/nMjuf9VcH5Gf/ANaqN0tUZ/l4TqUUNmQ=,tag:DNB1dDDaZtca7NBnKyfy0w==,type:str]
|
- ENC[AES256_GCM,data:ktZK7gXHOJhwCy9Wm10=,iv:FhC4o1MOBQr6ntaCIHXEkqUuLJ7Wx6iehqQl89L10SI=,tag:6a0H2oWrl06E/g9+PFNBvg==,type:str]
|
||||||
- ENC[AES256_GCM,data:t7pJcpMHXHrpBN2Tsbw=,iv:oGBoUYOzUdJgkDhhWHl2AOe3SgS6t72X6U4hHGii9xA=,tag:+cd2qYlOm2HcIA9jNRhmPQ==,type:str]
|
- ENC[AES256_GCM,data:jmkTYzu8bac5zS6oWtM=,iv:JyJUfCntVrVifHJj/oqMLD7LvxS9X2zP+baD9zzTmVU=,tag:nuG7IR8BY91ONFl/Sc+OgA==,type:str]
|
||||||
example_number: ENC[AES256_GCM,data:f5bxMhzKcp+zNA==,iv:w6OWqOv2V4Po+Gug5Y/jRQGob8bmxJ33FVAlfzWzf0E=,tag:MqSRAlGhM7Bsk4dArO15PA==,type:float]
|
example_number: ENC[AES256_GCM,data:MlZBL1vRuOr6yw==,iv:BfdTRkJfwLFoiemLMsTItGLMQCv7O9mZ48pro+C6Big=,tag:95O4J/ebAEdwlIN1Uw1jEQ==,type:float]
|
||||||
example_booleans:
|
example_booleans:
|
||||||
- ENC[AES256_GCM,data:Tf2Vmw==,iv:xmUsiJtphlbr1lsoQKaTB/xxD6rJBlG696ourk/TI6o=,tag:ZZfNDg2EGcU074Jvdr6ZFg==,type:bool]
|
- ENC[AES256_GCM,data:Zcpsrg==,iv:kHoZxCs1GlGye9lHJzEo7KRtqMwYtj8YbMhWU3gH6yU=,tag:Gi0DLx9Wg3uR/MxiFT/8Nw==,type:bool]
|
||||||
- ENC[AES256_GCM,data:kh6u6Ic=,iv:1MwX7wHbYQupFvrT9YhjnDqAwN4E5DpbpTkbi4SaFCM=,tag:giJUsZva/4DWxSfxbX/V9Q==,type:bool]
|
- ENC[AES256_GCM,data:Jnyq/0A=,iv:4ssfhoW8g4459tewk4BckRx7QwT5+vJsQl4ZgnahgMU=,tag:DaSJyPjpwMWSweigZhZ8DQ==,type:bool]
|
||||||
github:
|
github:
|
||||||
gh_login_token: ENC[AES256_GCM,data:mknMWEQ1rSS++edCm4vvBngeydlo+LYNog9BzUqzqJrei7QbZXEntg==,iv:qG92HY/mRpjztHGqOkKJpRwDzFEFvaRygwFvjsaZeCg=,tag:eRGiRWJVKEqWdnuMk/EWAg==,type:str]
|
gh_login_token: ENC[AES256_GCM,data:z89+EY5q0pWLTvl64heqKZ8iKgd0DeXyNTfnR2R7gsIGun0EaOXjOA==,iv:t+uduJFIIoTCo/QywYcFUSK5AwngS0WuCiSD0Ic6c3U=,tag:nACKzVlZsy3vRJIPDzkxDw==,type:str]
|
||||||
gh_repo_token: ENC[AES256_GCM,data:wilFP5qX49Sg1mHI+6SA75aGDP0tJPAce1WpGQYcJ1TMJ5VdsFooGg==,iv:2mDNyScCd3SAfHf7KcBufQOrsA8M4kGndl4a/9L7iIM=,tag:qR23CkKVpf+AZM5H+giYVQ==,type:str]
|
gh_repo_token: ENC[AES256_GCM,data:STrQMWcGGi4WLnU52sPM3oJDpt7ttxMjGq8BM6JFR98n4He6QFfNaQ==,iv:G1naOIBKYlrDsP6/W867kQlCxZgrCTwx1uZZw+FUuE8=,tag:Z2C8/wmbsMhP5mIdmCoXag==,type:str]
|
||||||
gitea:
|
gitea:
|
||||||
api_token: ENC[AES256_GCM,data:I+53tes93edPIDpI8D2LSs+bhxgNasYt5oWVqzs1sQPnlZcfqPKwvg==,iv:uScK+W19LEWIrdaomTfKWkurXNj7SMMw+3cFMv4tZRo=,tag:6z1dN0YCAnsTsLHSssNuoQ==,type:str]
|
api_token: ENC[AES256_GCM,data:NiafimuiG2nDfcdybyI25NGt6pBfklfVb3G5MWUUhXKKJF3dDV0Ofw==,iv:qMdbxqZfQDvMkxsOEmQ7ZoQ3HTbSlmsRbaaSl/M8F3g=,tag:BIPDKHonpt/VBpLK21Qciw==,type:str]
|
||||||
anne_droid_token: ENC[AES256_GCM,data:RHr/11OMd6PdqTq9dlBSGhcwVyvT/Pxbm9AC3Y13DDCzCitDWTpowg==,iv:Hdd+OioVULvK8PZLEAMW5xAXUNl2KWXZRTItivrf9ys=,tag:LhJEHilX0bUksUBdt1ZiWw==,type:str]
|
|
||||||
login_token: null
|
login_token: null
|
||||||
runner_token: ENC[AES256_GCM,data:QOT+YpsgsY+QWUGv0Y5rY6rYJc8lX63XOng531/zgnbZkCySB5BQHA==,iv:u7KFsHaqDB0P+ss+VW7/P8jrcaCDUqJ9S5AQdKAlLHY=,tag:6PMHlbrG4WssiLx1t/Q+Vg==,type:str]
|
runner_token: ENC[AES256_GCM,data:HrGHKQWCmkb008E5MaZfgcSGm4jVQZMRlOgPRc5V9w49Gzw2glMfeA==,iv:MfZCa4ixTAuIonZX10XVPjkSbWbfXDAbF/bK/E1eDgk=,tag:wsnXWy7kRuDsMSCrQyeHow==,type:str]
|
||||||
|
cloudflare:
|
||||||
|
account_name: ENC[AES256_GCM,data:G8e06ImdcZLV,iv:EOLE38zsrNrShd8jiQ6rsZ4eAFZ7RwZJfTEyw72LUzc=,tag:xo/RQt9MK/0DZL4u4DYkyA==,type:str]
|
||||||
|
glob_api_key: ENC[AES256_GCM,data:sg43YThUiBEXk3S7afzEYLBTGESjDRtJOBHkPmRHqlrtASzxG5KH7cuozmS6k3S8mHCXHA==,iv:NtDW4930mML9vgz+1soXBU95IX8eMP98NVGHIllFRfE=,tag:kSLWY86hLC4k5lxVC0vEaw==,type:str]
|
||||||
|
api_token: ENC[AES256_GCM,data:vlyxVVzZhzEw/3j2sL3lp1BX2TfuzNoV35EXbbxllEv/BAAfGqlQ9uXK2IMtbeXCNoBlhfw=,iv:uiGxP6vg3lXXKHS5EWs9GpXD+sOqgL3vnpA7AjcA4RY=,tag:EFj0hdBICeLuyO7aBIySxA==,type:str]
|
||||||
|
account_id: ENC[AES256_GCM,data:7wLlngvwjIsB2OkDKpdAdigv3zaUjLFklCASDXztBK0=,iv:UDCIqypIC+CiU2l/B1QmibiLVtRlBYfetK6So14nv3E=,tag:UQx+TpW6q2PylBKaXZvGqw==,type:str]
|
||||||
|
hostinger:
|
||||||
|
api_token: ENC[AES256_GCM,data:Q0roDicxp5QrIZUs78/vwx4vZWKHDsY2Ww7W1qN6yvK6TzI5tfx2jaQxKyVMxnAq,iv:7x4oGcjXAr9Jusp/6JjjNr1qBvIrwvLjx1Kv9HoQhWk=,tag:0YwwGplUwy03f1HQh5nywQ==,type:str]
|
||||||
|
openrouter:
|
||||||
|
api_key: ENC[AES256_GCM,data:fSVxJEuFy4xRTHGQMe/GNVRpP9QiHGClVCdTnryv+tgq/2F2CC73X+V93am8Mgdvag0PpQdVULOIIvtacdaX9cTQxcT6QjHlng==,iv:8ia6KPnRbOXiJU8skb9eCTkbtpLWVTGy2B2Y8TuA1cg=,tag:TmSIQggoGoziuuUHX/trFg==,type:str]
|
||||||
|
spaceship:
|
||||||
|
corazoncp-domain:
|
||||||
|
SPACESHIP_API_KEY: ENC[AES256_GCM,data:xgihxuht1d/BlMAUSsmclAaV5U6zrZg=,iv:pCgTh03ZfXuxOtDGTuTXwNJEfOHXIUzcQTh8ufVWb+4=,tag:SjP4ljM0K7rgXryiPJTVBw==,type:str]
|
||||||
|
corazoncp-secret:
|
||||||
|
SPACESHIP_API_SECRET: ENC[AES256_GCM,data:Elxq5OTilc21yhQnfJRFzKoXViKuQjXTWNvqb0t1DCt0VV1PKR66md3Md3LJn+vaP59u/nRWiJoEq5IfoxaoCQ==,iv:bBTj3EQMnB725+wegTxI3+8xhUQmlDbhKANaHjXBy8g=,tag:1f5T2s25PJFihuaYATNomw==,type:str]
|
||||||
sops:
|
sops:
|
||||||
age:
|
age:
|
||||||
- enc: |
|
- enc: |
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAwT2c0Uzk4d1BnM3RKTFVL
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBoTWM4TVJwcGFkcjlTTHUz
|
||||||
UTM3TkxwT1lmQm1QL2NFTUtMMWZhWWtpdnp3CjJ6QmxhQ2dXSE9seGt3MHFSVDht
|
ajR1d053S3VMNEtDVDBVOEZnVnpwRWN5MHkwCk1zTVROcDZodWNBRFFVNzVSUG83
|
||||||
cFkzN0NsK2pla2VKQjBiS2lyYytKTUkKLS0tIHNCMkxhaFFXYlA0bjI1NTZ4NHdn
|
WExNeWRZKzV0eUQvSTJPeEpiaUZYMzAKLS0tIFJibDIyRTJBVnhNWjJPQnJPeCtI
|
||||||
SGVzOXJPbjZVN1JxMys0Rlplc0E0dVEKtVD3Ve5tppzQfMuNuo4Hs/J/OO8/0YzR
|
Z3ZNa0xTUkFoYzdiUWFKMjVlQy9RdG8Kk12VHTYAxeNizQL7fEBkaO5a8gbyHmKr
|
||||||
cjauUtjiE5pYEyfUDnmih/dQiZUOI2h+GrwfpZborTuQ4ahoYLormw==
|
uDRpsV8weLjy6L6ap5sMo0yL5R8Tf0uy+/RXZKw9tU/s+Pu7qleZKA==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
recipient: age1pln9sxy5j93lklqklfwp3qepx7x4cs4y2w63n9y3ykt68qgra5ysqleesg
|
recipient: age1pln9sxy5j93lklqklfwp3qepx7x4cs4y2w63n9y3ykt68qgra5ysqleesg
|
||||||
lastmodified: "2026-10-16T02:06:31Z"
|
lastmodified: "2026-11-02T23:51:21Z"
|
||||||
mac: ENC[AES256_GCM,data:Ergjd6rYKpL2tGqTueCkX1f8gn5xM3xJXO+oc+jTajK/yQiP1m4ZARM9if6FQEd/blrAsyPr+cM3RTeMjUopgYxP5FiizySBaUHqvQdX466wCdIhxwZVxn6bldtsf4okUdTSosxWhs40YRc/fs4SWfFM6bX7nhXhewQR+PY8FTY=,iv:kKLT7XfS8485nxqRLOdbVL9pC6Shj+rdoTJXzZGClqc=,tag:9Pv+zpswCugVxBKfeq8o+g==,type:str]
|
mac: ENC[AES256_GCM,data:XpUN8gKDXjgO8wd3lmzHj5bPK1d29f+K1LPqdpsdGZJ9lCqTPqshHdLrX7QE+uZfrgR+5wOs2Onppn/ZR196T3Ok0nAk4CKp7msHBJS49SF5ld9MEgWOSDwK9EwLsNYNHcMY/ehCaWZpmhsu/y10hYMGousmNKtMrcCGYhBht1E=,iv:u2r5GZfVxJkmxICuOiF7Yh89h7RMwOpmHWHPJnkauy0=,tag:BLyAyskMAuCVs+bZZXiwzA==,type:str]
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.13.3
|
version: 3.13.3
|
||||||
+7
-21
@@ -11,13 +11,15 @@
|
|||||||
# Allow installation of unfree packages
|
# Allow installation of unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# Temporary upstream fix: correct stale pnpmDeps hash in nixpkgs 7fd4004
|
# Upstream fixes & package hash corrections
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
typescript-language-server = prev.typescript-language-server.overrideAttrs (old: {
|
# Temporary upstream fix: AnyDesk vendor re-released 8.1.0 tarball in-place
|
||||||
pnpmDeps = old.pnpmDeps.overrideAttrs (_: {
|
anydesk = prev.anydesk.overrideAttrs (old: {
|
||||||
outputHash = "sha256-xR/EF60lVBsITKgH7wCM2wHM46PFQevD51KfCENSUH4=";
|
src = prev.fetchurl {
|
||||||
});
|
inherit (old.src) url;
|
||||||
|
hash = "sha256-zS5P2eyTHZY7cBW8mQ2Q6M0lXcx9VZZTtpG3Bb6u7IQ=";
|
||||||
|
};
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
@@ -30,22 +32,6 @@
|
|||||||
networking.hostName = "laptop";
|
networking.hostName = "laptop";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
# 🌐 Temporary homelab local DNS override during upstream Dynu DNS outage
|
|
||||||
networking.hosts = {
|
|
||||||
"192.168.1.36" = [
|
|
||||||
"roadtotech.me"
|
|
||||||
"gitea.roadtotech.me"
|
|
||||||
"dashboard.roadtotech.me"
|
|
||||||
"docs.roadtotech.me"
|
|
||||||
"mail.roadtotech.me"
|
|
||||||
"mermaid.roadtotech.me"
|
|
||||||
"jellyfin.roadtotech.me"
|
|
||||||
"armonia.roadtotech.me"
|
|
||||||
"demos.roadtotech.me"
|
|
||||||
"learning.roadtotech.me"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# 🛡️ Dynamic Firewall for Trusted Home Wi-Fi
|
# 🛡️ Dynamic Firewall for Trusted Home Wi-Fi
|
||||||
# Automatically marks the Wi-Fi interface as fully trusted (accepting all incoming ports)
|
# Automatically marks the Wi-Fi interface as fully trusted (accepting all incoming ports)
|
||||||
# ONLY when connected to the trusted home Wi-Fi network ("VICTORIA"), removing the friction of
|
# ONLY when connected to the trusted home Wi-Fi network ("VICTORIA"), removing the friction of
|
||||||
|
|||||||
+7
-4
@@ -7,8 +7,8 @@
|
|||||||
# Graphical Compositor (Niri window manager)
|
# Graphical Compositor (Niri window manager)
|
||||||
programs.niri.enable = true;
|
programs.niri.enable = true;
|
||||||
|
|
||||||
# DankMaterialShell (DMS) graphical helper/shell daemon
|
# DankMaterialShell / Dux shell daemon
|
||||||
programs.dms-shell = {
|
programs.dux-shell = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.dms.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
package = inputs.dms.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
@@ -69,6 +69,9 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Wayland execution flags for Electron / Chromium applications
|
# Wayland & Desktop Integration session flags
|
||||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
environment.sessionVariables = {
|
||||||
|
NIXOS_OZONE_WL = "1";
|
||||||
|
QT_QPA_PLATFORMTHEME = "xdgdesktopportal";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
+6
-1
@@ -45,7 +45,12 @@
|
|||||||
|
|
||||||
hardware.sane = {
|
hardware.sane = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraBackends = [ pkgs.epsonscan2 ];
|
extraBackends = [
|
||||||
|
(pkgs.epsonscan2.override {
|
||||||
|
withNonFreePlugins = true;
|
||||||
|
})
|
||||||
|
pkgs.sane-airscan
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# 🐳 Virtualisation / Docker container daemon
|
# 🐳 Virtualisation / Docker container daemon
|
||||||
|
|||||||
Reference in new issue
Block a user