Compare commits

...
27 Commits
Author SHA1 Message Date
kiskaadee 6163eb0396 feat(home): add systemd user timer for corazoncp-drive sync
- Add systemd.user.services.corazoncp-drive-sync running drive/sync-drive.sh with explicit PATH (rclone, git, openssh, libnotify, util-linux, findutils, coreutils)
- Add systemd.user.timers.corazoncp-drive-sync polling every 15m (Persistent=true) so syncs survive reboots and catch up after sleep
2026-11-26 21:41:53 -05:00
kiskaadee 2261e4b792 feat(hardware): enable epsonscan2 non-free plugins and sane-airscan
- Override pkgs.epsonscan2 with withNonFreePlugins = true in hardware.sane.extraBackends to provide closed-source network scanning transport for Epson EcoTank / L-series.
- Add pkgs.sane-airscan to enable standard eSCL and WSD driverless discovery in SANE frontends.
- Resolves network connection timeout and communication error loops over LAN/Wi-Fi.
2026-11-26 14:52:40 -05:00
kiskaadee 995bdaa973 feat(ssh): add phone host alias for Termux SFTP/SSH 2026-11-22 17:52:32 -05:00
kiskaadee e93d8a43cf feat(ssh): add tablet host alias for Termux SFTP/SSH 2026-11-22 16:09:06 -05:00
kiskaadee b4afb529a8 chore(flake): bump flake inputs and dependencies
- antigravity: update App to 2.34.0, IDE to 2.8.0, CLI to 1.5.14
- dms: update DankMaterialShell with cc v2300 paged layout, screenshot settings, and dux-qt-base 0.4.73
- dank-greeter / dankcalendar: sync animation tokens, icon theme tracking, and interval ladders
- home-manager: incorporate fontconfig collision fix, starship TTY suppression, and module updates
- nixpkgs: roll nixos-unstable channel forward (+6,315 commits)
- zen-browser: bump zen-beta to 1.24.3b and multiplex Sine mod queries
2026-11-22 13:52:33 -05:00
kiskaadee 4bc670e1e5 fix(ssh): specify operator user for server-local and server-remote 2026-11-19 13:48:42 -05:00
kiskaadee c1b44e049c fix(home-manager): allow overwriting stale SSH config backups
- Enable home-manager.overwriteBackup alongside backupFileExtension so activation no longer aborts on an occupied ~/.ssh/config.backup path.
- Document why this is needed: ~/.ssh/config is kept as a user-owned regular file by the de-symlink workaround, so Home Manager must back it up on every generation change.
2026-11-17 12:04:42 -05:00
kiskaadee 1aff05b4f2 fix(system/core): remote stale opencode overlay 2026-11-16 10:07:51 -05:00
kiskaadee b62212ad0c chore(flake): update inputs and drop dankcalendar vendorHash override
- flake.lock: update nixpkgs, home-manager, dms, dank-greeter, dankcalendar, danksearch, dgop, antigravity-nix, and zen-browser-flake (plus transitive dux-qml-common and new dux-qt-base inputs)

- system/desktop.nix: remove temporary vendorHash override on programs.dank-calendar.package now that upstream dankcalendar (e17333c) includes the matching hash
2026-11-16 06:45:14 -05:00
kiskaadee 1b3468185b fix(ssh): remove default kiskaadee user from wildcard host
- Remove User = "kiskaadee" from programs.ssh.settings."*" so server-local and server-remote do not assume kiskaadee
- Set User = "kiskaadee" explicitly on programs.ssh.settings.laptop
2026-11-16 06:41:54 -05:00
kiskaadee 72b9eb053d feat(ssh): add webos-tv host to home-manager ssh settings 2026-11-15 00:13:13 -05:00
kiskaadee a6afe699fb feat(shell): add p3 alias and remove auto-commit from gitignore()
- Add `p3 = "python3";` to `programs.bash.shellAliases` in `home/shell.nix` for quick Python 3 invocation

- Remove automatic `git add`, `git commit`, and `git push` from `gitignore()` in `home/shell/git.sh` so it only appends new patterns to `.gitignore`
2026-11-14 21:36:42 -05:00
kiskaadee 1f3c1a7d18 fix(desktop): route Qt platform theme to xdg-desktop-portal 2026-11-10 14:43:13 -05:00
kiskaadee 9dfa0f5e58 feat(desktop): add kdePackages.okular PDF reader 2026-11-10 09:56:11 -05:00
kiskaadee 8f6e3a58b3 chore(deps): update flake inputs 2026-11-07 11:11:00 -05:00
kiskaadee 1313d962ad feat(home/desktop): add anydesk and inkscape 2026-11-05 16:13:17 -05:00
kiskaadee 731b646def fix(system/core): correct anydesk and opencode source hashes and drop obsolete lsp overlay 2026-11-05 16:05:35 -05:00
kiskaadee 92eaa865e4 chore(flake): update inputs lockfile 2026-11-05 15:47:59 -05:00
kiskaadee fee4090bf6 chore(flake): update inputs and fix upstream dankcalendar vendorHash 2026-11-04 07:10:56 -05:00
kiskaadee f1184b28da feat(home/shell): inject SOPS GitHub token into Nix on-demand 2026-11-04 05:54:24 -05:00
kiskaadee a9aa41ff02 feat(secrets): include corazoncp credentials 2026-11-03 23:12:11 -05:00
kiskaadee f8314da86b feat(dev): package gitea-cli (gt) and replace legacy tea 2026-11-03 23:04:51 -05:00
kiskaadee defc576767 feat(home/shell): add cf-ddns Cloudflare DDNS update utility 2026-10-30 01:58:17 -05:00
kiskaadee 8474997bc3 feat(home/desktop): configure Antigravity IDE fonts and tmux-style navigation
- Add declarative settings.json with FiraCode Nerd Font and Vim mode
- Add declarative keybindings.json with Ctrl+Space tmux-style leader chords:
  e: focus editor, t: focus terminal, c: focus agent chat, f: focus explorer
- Link configuration files via Home Manager in home/desktop.nix
2026-10-29 00:02:41 -05:00
kiskaadee c16f62fb2a refactor(system/desktop): rename programs.dms-shell to programs.dux-shell 2026-10-28 20:55:09 -05:00
kiskaadee ff6e7d5032 feat(home/desktop): add Antigravity IDE package
- Add google-antigravity-ide to graphical applications in home/desktop.nix

- Update docs/reference/antigravity.md to reflect active declaration
2026-10-28 18:48:23 -05:00
kiskaadee 8fa8cad28c chore(flake): update inputs
- antigravity: bump cli to 1.4.9, ide to 2.6.0, app to 2.28.0
- dms & companions: update dms to 2dd237a, dank-greeter to 0f5de05, dankcalendar to c83ee86, danksearch to ca21648, dgop to acc7b1c, dux-qml-common to 1d1a12d
- zen-browser: bump twilight to 1.25t
- home-manager: update to 095fef2
- nixpkgs: update to 31ecbaca (26.11pre1103272)
2026-10-28 16:38:36 -05:00
16 changed files with 388 additions and 71 deletions

No files matched your search

+1 -1
View File
@@ -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:
- `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 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:
- Installed Antigravity tools and editors.
Generated
+106 -40
View File
@@ -8,11 +8,11 @@
]
},
"locked": {
"lastModified": 1792653625,
"narHash": "sha256-JF5uTZCXse4JurE3WsJmpOxZ8QlmJKr+sd5U7DTD9Sw=",
"lastModified": 1795331353,
"narHash": "sha256-llMfFaxJxf7aMf0NRuKFtmBpDh14q5qnpwiGy/DJsJc=",
"owner": "jacopone",
"repo": "antigravity-nix",
"rev": "0e46037bbdb746b531c4d58bf6339032731d2db2",
"rev": "c9f1bae6b80d90c92eed93694bdb5291242fe9a4",
"type": "github"
},
"original": {
@@ -24,16 +24,17 @@
"dank-greeter": {
"inputs": {
"dank-qml-common": "dank-qml-common",
"dux-qt-base": "dux-qt-base",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1792683863,
"narHash": "sha256-S+1g1tKn2QorHHjJA0lMYZUYPWlQkeQ93dLxiafeW8E=",
"lastModified": 1795022150,
"narHash": "sha256-EINAcQZPXnTzHJNGqFxTMFSv7eT0wxymdg10Pud131E=",
"owner": "AvengeMedia",
"repo": "dank-greeter",
"rev": "4034ba1f5035ce384b322e8b2865495dad3cbb93",
"rev": "3e4affaf85f91fd98fdb83a27651d2597963e8ae",
"type": "github"
},
"original": {
@@ -45,11 +46,11 @@
"dank-qml-common": {
"flake": false,
"locked": {
"lastModified": 1792513666,
"narHash": "sha256-RDqPdPrM5lnwRrfFGLz3IwgTjCV2Ie+nrTD3ldj1t/s=",
"lastModified": 1795021255,
"narHash": "sha256-fDhHTvIkU+oDuIvdOhG5RyNZSYuxwM3xscLLdxmLVY4=",
"owner": "duxlabs-dev",
"repo": "dux-qml-common",
"rev": "ebf5e6c002da1bdaa4aaa2f319fea7b8507abc42",
"rev": "e7c185915fe2555c6e6681711054e6b79f546806",
"type": "github"
},
"original": {
@@ -61,11 +62,11 @@
"dank-qml-common_2": {
"flake": false,
"locked": {
"lastModified": 1792694928,
"narHash": "sha256-jb+Ns8c4kw2a9z9bes/9D+fWhG8pmD8NVurFbRMk7G4=",
"lastModified": 1795139913,
"narHash": "sha256-RYLCGIA8CuAIsmWUA1y8Ml+5bs8yIFNDQqOjeOlBr6A=",
"owner": "duxlabs-dev",
"repo": "dux-qml-common",
"rev": "802b4b127b482d85921e464ccc7cd629294b47e3",
"rev": "e268d71117173d0934dbe773d3e2ed6efe11afda",
"type": "github"
},
"original": {
@@ -77,11 +78,11 @@
"dank-qml-common_3": {
"flake": false,
"locked": {
"lastModified": 1792696287,
"narHash": "sha256-htrNweCLuw+3TQA2Vm7b4ETCuypIx85Vb3jt6k/DdBw=",
"lastModified": 1795211080,
"narHash": "sha256-PV5cT7st/9ioV5aHeNP0go7wFfHlKfBYVVRCQ8JkHXg=",
"owner": "duxlabs-dev",
"repo": "dux-qml-common",
"rev": "abd63f1d329cbffd33ad0d28420944353bbf50ed",
"rev": "12f5e4457e0ca14b6a5f9a283ab581ce28c92855",
"type": "github"
},
"original": {
@@ -93,16 +94,17 @@
"dankcalendar": {
"inputs": {
"dank-qml-common": "dank-qml-common_2",
"dux-qt-base": "dux-qt-base_2",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1792695118,
"narHash": "sha256-Dx4Jt9kSBiKFsH2mmDPIIhaOe2Ku1pVeIhHHbnh4Cxk=",
"lastModified": 1795331423,
"narHash": "sha256-kwm++EAyRfrgQAJVLR9LeSGiWbk7ehB64mJG17a4/hY=",
"owner": "AvengeMedia",
"repo": "dankcalendar",
"rev": "e7123fc6583877637fe94eb3436c3f09cb90b466",
"rev": "62ee9f656831be30dd3b58384758199a8e904637",
"type": "github"
},
"original": {
@@ -118,11 +120,11 @@
]
},
"locked": {
"lastModified": 1792684013,
"narHash": "sha256-JRiqnNHPyXhZiR/RuFksCrX0768S+PVsSOmux6a2lYU=",
"lastModified": 1794282582,
"narHash": "sha256-gZENm8lqgHN4UIg7pceXZEvYRy4UkbnW5cdsz2l1f3E=",
"owner": "AvengeMedia",
"repo": "danksearch",
"rev": "646b0e046f4c806de9501892b9c38fd11612092e",
"rev": "a25a7be5626ef4776a1600b1013583cff5ed71f9",
"type": "github"
},
"original": {
@@ -138,11 +140,11 @@
]
},
"locked": {
"lastModified": 1792684000,
"narHash": "sha256-b2Wn6ySG7aqvi/6hF1t+DWpQzg0qA9rixrKIGe9IQ+Q=",
"lastModified": 1794282582,
"narHash": "sha256-7bQCy4e5cgj7ToGZmXjI4ksbmjxzK/Vi/ZUUiSuRhT4=",
"owner": "AvengeMedia",
"repo": "dgop",
"rev": "c1dbfaf3d2fab4fb602ef564da9462d3a1482712",
"rev": "d91b45a6e1ef52ab3e7791286615759306477647",
"type": "github"
},
"original": {
@@ -154,17 +156,18 @@
"dms": {
"inputs": {
"dank-qml-common": "dank-qml-common_3",
"dux-qt-base": "dux-qt-base_3",
"flake-compat": "flake-compat",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1792734127,
"narHash": "sha256-iX1jdtofZqrPZ1zKmjTQXlHkNN4g7CiGCnh2dplHHv4=",
"lastModified": 1795342511,
"narHash": "sha256-9cQ6VogdRRaf40wMBUip/EoufpSLnjNmosrijaYZwus=",
"owner": "AvengeMedia",
"repo": "DankMaterialShell",
"rev": "c7692f830c556e1c3a5bbec594ec83acc57bf903",
"rev": "a265f0a1af5dcc78ae691487d94710cca82da62d",
"type": "github"
},
"original": {
@@ -173,6 +176,69 @@
"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": false,
"locked": {
@@ -214,11 +280,11 @@
]
},
"locked": {
"lastModified": 1792703141,
"narHash": "sha256-3X34FaSeMJXMx8CK/BN6sZ9knwNauuiJXQhLM+bQQuI=",
"lastModified": 1795340038,
"narHash": "sha256-RtgZbV+4BDtJqMImbiPJri3fmVDbCbrz/B0cuPQUJQY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "6750249c69969d09d952efaf3fab88a2bdac7ec6",
"rev": "03885bcd0b477bdecebebc57b213b0f8f0826d51",
"type": "github"
},
"original": {
@@ -235,11 +301,11 @@
]
},
"locked": {
"lastModified": 1792098797,
"narHash": "sha256-u4DIIZgznEGzByxXrxWCXK19VcMtTBmi/M9gZ7Jk9bM=",
"lastModified": 1794715309,
"narHash": "sha256-awkBBs5ctFKgEYjpNGpi3t/VqF589n5EWfdinRb2gNI=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "640725978b99076e18e069f6e7d2959124584f8f",
"rev": "a1293da7dd8e497e08d26173f97e2976b36a31ea",
"type": "github"
},
"original": {
@@ -266,11 +332,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1792773339,
"narHash": "sha256-17eNBI5Khe4JZaRkL5hRGPWf8MZ6qv+bWAr4V8YeKBw=",
"rev": "3ec636362e1816bc2f0888fa0fa2c69f1bc9e504",
"lastModified": 1795234589,
"narHash": "sha256-pAEASBc6wof0S58XcSEdZoQ2iFQDkCnZwH+wFLrkd1Q=",
"rev": "2786a2a72088ecf32aea5b3ec52099e6a7cff78f",
"type": "tarball",
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1100280.3ec636362e18/nixexprs.tar.zst"
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1125864.2786a2a72088/nixexprs.tar.zst"
},
"original": {
"type": "tarball",
@@ -314,11 +380,11 @@
]
},
"locked": {
"lastModified": 1792595242,
"narHash": "sha256-kH/E0uJDslOgYcnmU+c0cm6HrUjsEtvZQKZtuQ1+uvo=",
"lastModified": 1795333741,
"narHash": "sha256-xJaT+L8DeMR0TJjAOlrjGqaRG2AjZrjivQfCtiLRtlY=",
"owner": "0xc000022070",
"repo": "zen-browser-flake",
"rev": "f19490ac889eabb05bdb7e8dcb85225ee75bd87b",
"rev": "81376950ac382a96b965f9d6f8bf60354ad99c2f",
"type": "github"
},
"original": {
+3
View File
@@ -148,6 +148,9 @@
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
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.users.kiskaadee = {
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"
}
]
+15
View File
@@ -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"
]
}
+8
View File
@@ -19,11 +19,15 @@ in
# AI Assistants & Desktop GUI
inputs.antigravity.packages.${pkgs.stdenv.hostPlatform.system}.google-antigravity
inputs.antigravity.packages.${pkgs.stdenv.hostPlatform.system}.google-antigravity-ide
opencode-desktop
# Graphical Applications & Editors
anydesk
zed-editor
obsidian
kdePackages.okular
inkscape
libreoffice
nautilus
yazi
@@ -94,6 +98,10 @@ in
home.file.".config/niri/config.kdl".source = ./config/niri/config.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.targets.niri-session = {
+63 -1
View File
@@ -53,6 +53,38 @@ let
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
{
# Neovim CLI & IDE Editor Configuration
@@ -146,7 +178,7 @@ in
lemminx
# 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
flarectl # Cloudflare official CLI client
hostinger-cli # Hostinger official API CLI
@@ -195,4 +227,34 @@ in
sops # Mozilla SOPS CLI
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" ];
};
};
}
+75
View File
@@ -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."
+42 -1
View File
@@ -45,12 +45,28 @@ let
];
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
{
home.packages = [
tmuxSessionizer
newRepo
transcribeCli
cfDdns
];
programs = {
@@ -142,19 +158,21 @@ in
enableDefaultConfig = false;
settings = {
"*" = {
User = "kiskaadee";
ServerAliveInterval = 15;
ServerAliveCountMax = 3;
};
laptop = {
HostName = "192.168.1.32";
User = "kiskaadee";
Port = 22;
};
server-local = {
User = "operator";
HostName = "192.168.1.36";
Port = 22;
};
server-remote = {
User = "operator";
HostName = "roadtotech.me";
Port = 2222;
};
@@ -163,6 +181,28 @@ in
Port = 2223;
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;
};
};
};
@@ -224,6 +264,7 @@ in
check = "~/Config/scripts/test";
nfc = "nix flake check -L";
ff = "fastfetch --logo none";
p3 = "python3";
# System Navigation
".." = "cd ..";
+2 -12
View File
@@ -2,8 +2,7 @@
# 🌟 Custom Git Automation & Helper Utilities
# 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
# then automatically commits and pushes the change.
# 1. gitignore: Quickly appends patterns to the repository's root .gitignore file.
gitignore() {
if [ $# -eq 0 ]; then
echo "Usage: gitignore <pattern> [pattern...]"
@@ -30,7 +29,6 @@ gitignore() {
fi
local added_count=0
local commit_msg_list=""
for pattern in "$@"; do
# Check if the pattern is already present in the .gitignore file
@@ -40,18 +38,10 @@ gitignore() {
echo "$pattern" >> "$GIT_IGNORE_FILE"
echo "Added '$pattern'"
((added_count++))
commit_msg_list+="${pattern}, "
fi
done
# If any patterns were added, commit and push them automatically
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
if [ "$added_count" -eq 0 ]; then
echo "No new patterns were added."
fi
}
+18 -4
View File
@@ -19,11 +19,25 @@ if [[ $- == *i* ]]; then
fi
# --- 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() {
if [[ "${1:-}" == "flake" && "${2:-}" == "check" && "$*" != *"--log-format"* && "$*" != *"-L"* ]]; then
command nix flake check -L "${@:3}"
local token=""
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
command nix "$@"
if [[ "${1:-}" == "flake" && "${2:-}" == "check" && "$*" != *"--log-format"* && "$*" != *"-L"* ]]; then
command nix flake check -L "${@:3}"
else
command nix "$@"
fi
fi
}
+10
View File
@@ -59,3 +59,13 @@ hostinger() {
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:-}"
}
+7 -2
View File
@@ -23,6 +23,11 @@ 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:
age:
- enc: |
@@ -34,7 +39,7 @@ sops:
uDRpsV8weLjy6L6ap5sMo0yL5R8Tf0uy+/RXZKw9tU/s+Pu7qleZKA==
-----END AGE ENCRYPTED FILE-----
recipient: age1pln9sxy5j93lklqklfwp3qepx7x4cs4y2w63n9y3ykt68qgra5ysqleesg
lastmodified: "2026-10-22T23:07:41Z"
mac: ENC[AES256_GCM,data:Ue8EGCpWicK1ImQbjjAZ5PNxcIy1LRQQwOe3gq+g13Olwd+4/7ZCBi2/g9hGR6m9AHTDSscphQK97c/QFbwEnpc3SS5wgT9yP5MJ/uIYfyJPnkm11uPeYED/RZJJ+TEd2MEIlHAQCEhP+ZxNgcym5DaFECdsHFdKqvkZzV//kKI=,iv:/nGKZL3HMPY15pGh+P7Yv3Z24xQDLO+mH+PDmKO9tmk=,tag:D3nhdRiH5YikAyEjs6q6UA==,type:str]
lastmodified: "2026-11-02T23:51:21Z"
mac: ENC[AES256_GCM,data:XpUN8gKDXjgO8wd3lmzHj5bPK1d29f+K1LPqdpsdGZJ9lCqTPqshHdLrX7QE+uZfrgR+5wOs2Onppn/ZR196T3Ok0nAk4CKp7msHBJS49SF5ld9MEgWOSDwK9EwLsNYNHcMY/ehCaWZpmhsu/y10hYMGousmNKtMrcCGYhBht1E=,iv:u2r5GZfVxJkmxICuOiF7Yh89h7RMwOpmHWHPJnkauy0=,tag:BLyAyskMAuCVs+bZZXiwzA==,type:str]
unencrypted_suffix: _unencrypted
version: 3.13.3
+7 -5
View File
@@ -11,13 +11,15 @@
# Allow installation of unfree packages
nixpkgs.config.allowUnfree = true;
# Temporary upstream fix: correct stale pnpmDeps hash in nixpkgs 7fd4004
# Upstream fixes & package hash corrections
nixpkgs.overlays = [
(final: prev: {
typescript-language-server = prev.typescript-language-server.overrideAttrs (old: {
pnpmDeps = old.pnpmDeps.overrideAttrs (_: {
outputHash = "sha256-xR/EF60lVBsITKgH7wCM2wHM46PFQevD51KfCENSUH4=";
});
# Temporary upstream fix: AnyDesk vendor re-released 8.1.0 tarball in-place
anydesk = prev.anydesk.overrideAttrs (old: {
src = prev.fetchurl {
inherit (old.src) url;
hash = "sha256-zS5P2eyTHZY7cBW8mQ2Q6M0lXcx9VZZTtpG3Bb6u7IQ=";
};
});
})
];
+7 -4
View File
@@ -7,8 +7,8 @@
# Graphical Compositor (Niri window manager)
programs.niri.enable = true;
# DankMaterialShell (DMS) graphical helper/shell daemon
programs.dms-shell = {
# DankMaterialShell / Dux shell daemon
programs.dux-shell = {
enable = true;
package = inputs.dms.packages.${pkgs.stdenv.hostPlatform.system}.default;
systemd.enable = true;
@@ -69,6 +69,9 @@
};
};
# Wayland execution flags for Electron / Chromium applications
environment.sessionVariables.NIXOS_OZONE_WL = "1";
# Wayland & Desktop Integration session flags
environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
QT_QPA_PLATFORMTHEME = "xdgdesktopportal";
};
}
+6 -1
View File
@@ -45,7 +45,12 @@
hardware.sane = {
enable = true;
extraBackends = [ pkgs.epsonscan2 ];
extraBackends = [
(pkgs.epsonscan2.override {
withNonFreePlugins = true;
})
pkgs.sane-airscan
];
};
# 🐳 Virtualisation / Docker container daemon