Compare commits

Author SHA1 Message Date
ari 6fbdcf44cf cleaner cli + pkg update 2026-10-15 17:04:05 -04:00
ari 58e0705aca reversed the ingress 2026-10-15 15:56:38 -04:00
ari 39ffdfa219 secret fixes 2026-10-15 13:55:17 -04:00
ari 0388875455 ddclient for cloudflare 2026-10-13 20:15:16 -04:00
ari 8a253f82c9 migrating immich 2026-10-13 19:52:54 -04:00
ari cd48b65656 migrating immich 2026-10-13 19:52:27 -04:00
ari 41968e63d2 refactoring rmote actions 2026-10-11 21:28:17 -04:00
ari 8ca671c89b fixing up remote 2026-10-11 01:53:43 -04:00
ari 6094b9dc93 reboots 2026-10-11 00:39:24 -04:00
ari 52c2aac9df fixed davinci 2026-10-11 00:17:06 -04:00
ari 42b8cf4e4f upgrades and hhstream 2026-10-10 22:30:01 -04:00
ari 206f353b77 global update day!! 2026-10-09 15:17:47 -04:00
ari adf0e990ce more logo 2026-10-03 01:01:42 -04:00
ari 17b14b33e5 making sure files will cause a restart 2026-10-03 00:57:28 -04:00
ari c4056e45cb gitea landing page 2026-10-03 00:16:55 -04:00
ari 4d1a269e00 buildbot + caddy 22 2026-10-02 14:43:37 -04:00
ari 34607e944b nicer template 2026-10-01 16:11:14 -04:00
ari e063c3cfea push rules + omarchy 2026-10-01 14:17:36 -04:00
ari a7c1b1cc0c public gitea + nixarchy work 2026-10-01 13:45:17 -04:00
ari 8bd66c9975 nitw-gc 2026-09-30 15:58:41 -04:00
ari 3dfc1643e6 using new gitea 2026-09-30 14:42:32 -04:00
ari 2f281b354a gitea container 2026-09-30 14:40:26 -04:00
ari eb213e56e5 gitea container 2026-09-30 13:31:15 -04:00
ari 35b66f5435 gitea container work 2026-09-30 11:22:38 -04:00
ari aa81ecdb3d agent eyes + clean up of jellyfin + more eyes on crashes 2026-09-29 16:54:05 -04:00
ari d514939e37 adding more logging for crashes + hermes + bye niri gestures 2026-09-29 12:41:34 -04:00
ari 4f396d93c4 new dns routing 2026-09-29 11:23:25 -04:00
ari 045702e909 dns refactor 2026-09-26 02:41:43 -04:00
ari 09e2e03423 single file for dns 2026-09-26 01:47:42 -04:00
ari 309b61b985 clean up 2026-09-26 00:48:52 -04:00
ari 0737f21ccb clean up of secrets and a better namespace for delta 2026-09-25 16:06:01 -04:00
ari 11f1207418 pkgs/delta: fix RPATH and set interpreter
The patchelf package ships a setup hook that runs 'patchelf --shrink-rpath' on every ELF during fixup, which rewrites DT_RPATH as DT_RUNPATH. RUNPATH is not inherited by the bundled libs, so libXau.so.6 and friends were not found. Set dontPatchELF to keep the RPATH, and set the interpreter to the NixOS glibc instead of relying on /lib64.
2026-09-25 15:10:04 -04:00
ari b615811418 using rootdir properly 2026-09-25 14:59:18 -04:00
ari 193d65d367 pkgs: add delta (Zed Industries' AI-native editor)
Delta ships a self-contained tarball with no stable download URL (the release API returns a short-lived signed R2 link), so src is a fixed-output derivation that resolves the API at build time. Patch the interpreter/RPATH, add the dlopen'd graphics libs (libglvnd, vulkan-loader, wayland) via a wrapper, and set XKB_CONFIG_ROOT for the bundled libxkbcommon.

Registered in the core/lib overlays, exposed as a flake package, and installed on fwbook.
2026-09-25 14:58:58 -04:00
ari b5bde292d2 refactoring hosts too big 2026-09-25 14:51:13 -04:00
ari da102d5b47 forggotten flake.lock commit 🦾 2026-09-25 10:26:08 -04:00
ari 507d603ef0 clean up of ds4 (using my fork of it instead) + update scripts!!! 2026-09-25 10:25:13 -04:00
ari fd5bb0af6e bindings 2026-09-24 16:16:40 -04:00
ari 09606a2c11 qts 2026-09-23 13:55:41 -04:00
ari 34f02c2412 styling 2026-09-23 12:19:53 -04:00
ari f1e71fa1e9 configured portainer 2026-09-22 22:21:12 -04:00
ari e4b3455dd5 configured portainer 2026-09-22 15:31:18 -04:00
ari a33f1284dc portainer management 2026-09-22 15:17:35 -04:00
ari cbba7075a7 fixing ip routing for tailscale outside 2026-09-22 14:29:50 -04:00
ari 060d427d04 version bump + bind fixes 2026-09-22 13:33:02 -04:00
ari 7d10ad7d61 fixing some minor things 2026-09-22 11:13:58 -04:00
ari 217b122c67 buzz working 2026-09-22 09:58:48 -04:00
ari 8ef626a16b dns games for buzz 2026-09-21 16:19:43 -04:00
ari dd6d071c34 buzz ssl 2026-09-21 14:38:16 -04:00
ari 6411069dbc buzz update 2026-09-21 13:35:49 -04:00
ari f1d907a438 bye ssh notify and hi buzz 2026-09-21 12:32:13 -04:00
ari 9b79667d94 rename via skygqts 2026-09-21 11:30:24 -04:00
ari f8444b1549 dns + keybinding consolidation 2026-09-21 10:52:32 -04:00
ari df46627173 some security patches + buzz updates 2026-09-20 20:55:17 -04:00
ari 7a3d64e645 clean up 2026-09-20 20:32:33 -04:00
ari 8cb5978f3a fixing podmand virt 2026-09-20 20:20:25 -04:00
ari beb83f21b3 buz support 2026-09-20 20:13:39 -04:00
ari 5d727c26cd suspend fixes 2026-09-20 17:16:04 -04:00
ari aecd272994 clean up 2026-09-18 21:17:11 -04:00
ari 2563492fa4 new ds4 from custom fork 2026-09-18 21:10:19 -04:00
ari a781b759f4 refactor of ssh-notify 2026-09-18 16:34:31 -04:00
ari 466080ead9 host update for df and ssh 2026-09-18 16:15:06 -04:00
ari f2d3bf213d newer ds4 2026-09-18 16:14:45 -04:00
ari 6fcd46ebd4 better keybindings 2026-09-18 16:14:30 -04:00
ari 3e03999b9e speak-selection v2 + hermenux home 2026-09-18 14:16:32 -04:00
ari c63a3e34e9 speak-selection v2 + hermenux home 2026-09-18 14:02:54 -04:00
ari 12fe9c4603 better keybindings 2026-09-18 12:09:50 -04:00
ari 4b1b3f76e5 updated niri configs 2026-09-17 15:46:53 -04:00
ari 7c2fccf064 normalize config for niri 2026-09-17 15:10:36 -04:00
ari e32d61fb03 back to niri 2026-09-17 13:36:08 -04:00
ari 92b2bf7f31 using official grok now 2026-09-17 12:16:43 -04:00
ari f2f79d8a4d undo macvlan 2026-09-17 09:58:35 -04:00
ari a7b9273296 new static ip and merge approach 2026-09-16 22:02:04 -04:00
ari 2cc0e92481 better keybindings 2026-09-16 21:50:19 -04:00
ari 136d6294c3 hermenix 2026-09-16 16:19:34 -04:00
ari 7b46766d0c autostart restart 2026-09-16 16:19:16 -04:00
ari 7cd2b2ca20 macvlan 2026-09-16 16:18:25 -04:00
ari b014fa5cea tvbox volume controls + hermes vm + removing deprecation warnings 2026-09-15 15:19:33 -04:00
ari 68b2f88282 tvos states and names + hermes vm 2026-09-15 14:28:50 -04:00
ari a89641769b tvos - disable autosleep and wake on hdmi 2026-09-15 13:04:00 -04:00
ari 9824f0474e fixing airpods for the millionth time 2026-09-15 12:16:57 -04:00
ari 34cbfb9137 tts keybindings 2026-09-15 12:16:40 -04:00
ari a05e166e1a resolved hdmi issues on tvbox 2026-09-14 10:24:37 -04:00
ari 288e822f39 bigboxes now build 2026-09-12 19:13:43 -04:00
ari ce2e4a4558 v0 of the first tvos 2026-09-12 19:02:24 -04:00
ari 33597a432c carousel apps 2026-09-12 15:51:36 -04:00
ari c3350c5c27 updates all around 2026-09-11 16:22:22 -04:00
ari 9c3359c503 clean up & correct cache for cuda 2026-09-11 10:03:14 -04:00
ari 9b71237fdf fixing screenshare for the millionth time 2026-09-10 12:43:17 -04:00
ari 501f38b90f bindings 2026-09-09 17:37:48 -04:00
ari 8f9ba18f0a extra work for fws1 2026-09-09 16:56:40 -04:00
ari a80df5aec2 working install anywhere 2026-09-09 16:13:10 -04:00
ari a5cf4fcd00 trying nix anywhere 2026-09-09 14:48:56 -04:00
ari 76e396cd43 centralized hypr & noctalia config control + added fws1 correct hardware 2026-09-09 12:56:26 -04:00
ari bdfcb9e814 clean up & consoldiation of custom pkgs from flakes & herdr 2026-09-09 11:46:46 -04:00
ari 6229440107 single lua 2026-09-08 16:26:22 -04:00
ari c366379b50 glrouter update 2026-09-08 16:22:01 -04:00
ari ef2e77b4eb initial work on hyprland for fws1 2026-09-08 16:21:14 -04:00
ari ed9d512d09 slim down 2026-09-08 16:06:49 -04:00
ari c626e3d657 shrink and minimize 2026-09-08 14:37:47 -04:00
ari 0b0a2214f4 pi clock & hyprland clean ups & skyg clean ups:
- Added the pi clock settings
- cleaned up some of the fwbook lua
- skyg build iso out file -- is now named
2026-09-08 10:25:28 -04:00
ari 8dae12d16b live run of hypr on fwdesk 2026-09-05 14:01:38 -04:00
ari 787b785582 initial auto start for fwdesk 2026-09-04 20:43:14 -04:00
ari e5e73e6232 consolidation 2026-09-04 16:22:48 -04:00
ari 3c828efadd clean up pi setup 2026-09-04 02:23:34 -04:00
ari dca14c1a78 pi2 2026-09-03 23:18:08 -04:00
ari f2f6ce0ec1 sdcard image for pi 2026-09-02 14:22:53 -04:00
ari be306f2e30 bigbox2: fixed incorrect boot image + added overrides for cache dump 2026-09-02 14:22:29 -04:00
ari 6dd651d156 bigbox2 as cache machine approach #1 2026-09-02 13:37:09 -04:00
ari 4535f9eb91 added pi host 2026-09-02 13:34:36 -04:00
ari ce02e46386 more scale and emulation 2026-09-02 13:34:11 -04:00
ari 2b040019ca clean up 2026-09-02 13:33:36 -04:00
ari 838924d13e final tweaks to the overview 2026-09-01 16:57:58 -04:00
ari ad28d4171c added counts 2026-08-31 16:53:11 -04:00
ari e01cb293ea gif bg 2026-08-31 16:42:19 -04:00
ari a166b32c9b clean up monitors and bindings 2026-08-31 14:32:12 -04:00
ari 9c08a9943a added monitors to overview 2026-08-31 14:18:30 -04:00
ari 765ddd8525 carousel for overiview 2026-08-31 14:13:18 -04:00
ari 9031fae5e3 carousel for overiview 2026-08-31 14:02:42 -04:00
ari 60afd11cda window cycle 2026-08-31 13:47:27 -04:00
ari 3aa8a8a455 cleaning up code 2026-08-31 13:39:12 -04:00
ari d67694df9c fixing seection 2026-08-31 13:38:27 -04:00
ari 6f5cbba667 fixing selection 2026-08-31 13:38:21 -04:00
ari fdca7d8d9d quickshell overview starting work 2026-08-31 11:22:54 -04:00
ari 3c86efa4ff clean up & hyprland experiments
- Cleaned up docs
- removed hyprglass
- added various ways to do scroll view
2026-08-28 12:58:27 -04:00
ari c304803fda portainer management 2026-08-27 16:49:24 -04:00
ari 2a2bdd0b4b moving minipc2 services to nix 2026-08-27 15:15:06 -04:00
ari a9aaae3da9 openwrt refactor & apply rules 2026-08-27 13:09:38 -04:00
ari c1c17ec8e6 openwrt fixes 2026-08-27 12:09:26 -04:00
ari 027552a3db hyprland setup 2026-08-27 11:47:21 -04:00
ari 96efbd3bc9 openwrt fixes 2026-08-26 16:55:31 -04:00
ari e3866d75a9 better openwrt sub lan control 2026-08-26 16:31:48 -04:00
ari 07d5bffef2 hyprland fixes 2026-08-26 16:31:26 -04:00
ari d116e2b6ef hyprglass & remote builder setup 2026-08-26 10:46:12 -04:00
ari 54ddb589dc remote builder for fwdesk 2026-08-26 10:32:25 -04:00
ari 9640fada3e fixing some ssh bs 2026-08-26 10:29:15 -04:00
ari e8233a852a noctalia commands work 2026-08-26 10:15:32 -04:00
ari 0b210da0c7 noctalia 2026-08-25 22:28:21 -04:00
ari 0efe1cac36 now vertical scroll 2026-08-25 22:07:52 -04:00
ari 47aee53fe1 better controls 2026-08-25 22:03:55 -04:00
ari 1460fd44c8 docs 2026-08-25 18:09:06 -04:00
ari 5391643d65 hyprland in lua 2026-08-25 18:08:55 -04:00
ari 9d9a890877 bringing back hyprland 2026-08-25 17:04:33 -04:00
ari aa41228d27 fixing hibernation 2026-08-25 12:19:57 -04:00
ari 030241bd06 packing a new version of ollama manually for qwen3.8:27b 2026-08-16 17:14:00 -04:00
ari 016790882a fixing scraling issues for niri 2026-08-16 16:37:09 -04:00
ari bcb91347de latest clean up for comfyui 2026-08-14 21:21:12 -04:00
ari fa84c7cdab linking 2026-08-13 10:31:52 -04:00
ari 33539144d8 nix for hermes 2026-08-13 10:30:48 -04:00
ari e900bb4dfe fwdesk changes 2026-08-12 19:52:47 -04:00
ari 92d10f3f09 colibri 2026-08-07 17:08:22 -04:00
ari c5150ee9d3 dms 2026-08-07 12:37:46 -04:00
ari d090ebaad8 ds4 glm support 2026-08-06 10:00:18 -04:00
ari 4cc2123eff buzz + update ds4 2026-08-05 16:42:57 -04:00
ari d48198e199 latest 2026-08-05 15:59:22 -04:00
ari df2540c6b7 trying new lib 2026-07-28 22:31:03 -04:00
ari d0409058ed forwarding touch inputs 2026-07-28 16:21:57 -04:00
ari 572447c6a4 more clean up of fusuma 2026-07-28 14:55:45 -04:00
ari 24574f6a01 adding better support for niri+zed 2026-07-28 14:52:30 -04:00
ari 318d6ed286 clean up of touchegg 2026-07-28 14:39:07 -04:00
ari 7b8e1971a0 by fusuma 2026-07-28 14:03:54 -04:00
ari ad0f2e5459 simpler fusuma 2026-07-28 13:43:20 -04:00
ari 464477cfe7 updated niri settings 2026-07-28 13:18:43 -04:00
ari 923d151442 helper commands + hermes refactor 2026-07-20 20:36:18 -04:00
ari 3dbd75bbca parallel execution 2026-07-19 15:02:14 -04:00
ari e5c264d3ab compose fix + boot all script 2026-07-19 09:26:06 -04:00
ari 0fa5c3bc68 ssh libnotify forward 2026-07-19 09:25:55 -04:00
ari 26bcf95f30 ssh libnotify forward 2026-07-19 09:14:01 -04:00
ari 7a0a9e6091 added max settings to ssh 2026-07-18 19:50:11 -04:00
ari 916799509c latest container work 2026-07-17 20:27:21 -04:00
ari 29f6186c5c cleaup 2026-07-16 21:34:12 -04:00
ari 8525f5a9b4 bleuh 2026-07-16 21:32:52 -04:00
ari 7d0d567dbe claude desktop 2026-07-16 20:35:21 -04:00
ari 3d20e0f709 fixing containers 2026-07-15 17:46:01 -04:00
ari cf5c2ca6e5 just making flox & claude permanant now 2026-07-14 19:29:06 -04:00
ari ed6eee18b8 initial work on iu + more compose refactoring 2026-07-14 13:12:17 -04:00
ari 1e8cf01461 initial work on iu + more compose refactoring 2026-07-13 22:25:23 -04:00
ari 4f716499c9 hernes & vnc 2026-07-13 22:16:48 -04:00
ari 75634c8df5 nah systemd 2026-07-11 23:19:09 -04:00
ari 09480a73da systemd service for niri touchscreen 2026-07-11 22:50:10 -04:00
ari e2c46226f7 readme update + working niri-touchscreen-gestures 2026-07-11 22:45:33 -04:00
ari f29efa11bb getting temp under control 2026-07-11 22:25:31 -04:00
ari a70b6a4d3d now it works 2026-07-11 22:25:26 -04:00
ari 10958450ba getting temp under control 2026-07-11 19:48:23 -04:00
ari 9077f7e0a7 initial work on touchscreen adapter 2026-07-11 13:29:00 -04:00
ari a0b4f8ec43 tweaks for niri and touchscreens 2026-07-10 23:03:33 -04:00
ari ef98a966e7 git fix 2026-07-09 18:11:57 -04:00
ari 6d27231791 update 2026-07-09 17:48:06 -04:00
ari 43594489dd libinput 2026-07-09 16:55:12 -04:00
ari 896d7480c1 autoupdates 2026-07-09 01:02:10 -04:00
ari 6eb90819f0 niri dms 2026-07-08 22:23:21 -04:00
ari c82088b35a cleaner volumes 2026-07-08 22:22:43 -04:00
ari 2e940cc2c8 using container systemd services 2026-07-08 22:15:13 -04:00
ari b611ac0252 working minipc2 2026-07-08 09:18:04 -04:00
ari 5242850fbc missing defaults 2026-07-01 18:07:52 -04:00
ari 3cb0b970bf ds4 server 2026-07-01 18:06:52 -04:00
ari 7d4c0457ba ds4 works 2026-06-30 16:34:27 -04:00
ari e68b8f8fb5 it builds 2026-06-30 14:21:17 -04:00
ari 634d1024d7 initial work on ds4 2026-06-30 13:36:10 -04:00
ari fed3a620cd hermes 2026-06-29 12:14:30 -04:00
ari a9eaaafa93 working hermes in a docker container 2026-06-29 10:14:41 -04:00
ari f8874f6e15 better cleaner containers 2026-06-29 09:57:40 -04:00
ari 4bd849e534 better cleaner containers 2026-06-28 16:05:54 -04:00
ari d9b984db7f better cleaner containers 2026-06-28 15:55:16 -04:00
ari 3aa7119bed guidlines & restart on env change 2026-06-28 15:35:11 -04:00
ari cf2f221a94 container framework + initial work on signal-cli + hermes 2026-06-28 15:30:15 -04:00
ari 50ef9c7238 signal 2026-06-26 16:59:18 -04:00
ari fa362b1206 updated secrets 2026-06-26 16:59:11 -04:00
ari 3869e8a395 added signal daemon 2026-06-26 16:58:39 -04:00
ari 7dc6b080ee phase 1 2026-06-26 16:41:24 -04:00
ari 566240b9ca bye claw 2026-06-26 16:10:58 -04:00
ari d9cacefa0f added manual secrets 2026-06-26 16:07:47 -04:00
ari 672657c111 libtranslate 2026-06-26 15:10:04 -04:00
ari c466ea2537 check flaks 2026-06-24 22:10:52 -04:00
ari 519e8941f9 check flakes 2026-06-24 22:10:46 -04:00
ari 6745839c30 stable state 2026-06-21 00:14:56 -04:00
ari c031fc7ae1 current build 2026-06-21 00:11:14 -04:00
ari 842ac07091 updated greeter for fwdesl 2026-06-20 23:47:01 -04:00
ari 206929be45 fuck you 2026-06-20 22:15:52 -04:00
ari e2a837be6d hermes 2026-06-20 22:07:46 -04:00
ari d2ecf27d23 grok cli 2026-06-08 16:47:19 -04:00
ari f57d957faf starting to play with hermes 2026-06-08 09:57:45 -04:00
ari 5f08c7aae3 added general context for agents 2026-06-08 09:57:24 -04:00
ari e295fc3a42 ✊ damn robot sounds 2026-06-04 16:04:32 -04:00
ari 6cfb4e18dc clean up help 2026-06-04 13:11:16 -04:00
ari 859dd057be fixing stupid airpods 2026-06-03 15:45:20 -04:00
ari 47929714fb tidy 2026-06-01 23:00:29 -04:00
ari acafdbbdd2 Certbot+DNS+flake upadte 2026-06-01 13:32:35 -04:00
ari b23ab9be23 updated secrets enum 2026-05-25 17:01:44 -04:00
ari 205ad0dd5b updated secrets enum 2026-05-25 15:37:38 -04:00
ari d3b711046c better cli 2026-05-25 15:31:00 -04:00
ari 53cbaf603a disabled internal dns for now 2026-05-24 18:11:36 -04:00
ari 6b0e974e77 openwrt refactor + chromium 2026-05-24 17:34:38 -04:00
ari a5a18e846e gitignore 2026-05-24 11:46:16 -04:00
ari ebd21748ab better diff 2026-05-23 22:19:21 -04:00
ari 81fdf4eff6 openwrt skyg command 2026-05-23 15:47:01 -04:00
ari 720940ec7a openwrt skyg command 2026-05-23 15:26:20 -04:00
ari f00bd35281 forgotten flake commit 2026-05-23 15:25:51 -04:00
ari 77601c69da clean up of printer stuff & flatpaks 2026-05-23 15:25:27 -04:00
ari 633996af1f initial work on dns resolver + openwrt mgmt 2026-05-23 15:11:36 -04:00
ari 0614d7ff04 initial work on dns resolver + openwrt mgmt 2026-05-23 15:11:25 -04:00
ari b51257e5e1 secrets and safety 2026-05-22 15:03:32 -04:00
ari 3f32eab1f3 readme 2026-05-22 12:16:45 -04:00
ari 60048c2da0 fixing up btrfs fs storage hogging 2026-05-13 10:23:52 -04:00
ari e0bbedbd73 work screen 2026-05-12 12:47:39 -04:00
ari 62c04b656d dms 2026-05-06 13:47:40 -04:00
ari 6696423533 noctalia 2026-05-06 12:59:32 -04:00
ari 1f580ca6d9 noctalia 2026-05-06 12:59:27 -04:00
ari 092811d179 cleaning out dead code 2026-04-29 09:24:17 -04:00
ari cce7a201de cleaning out dead code 2026-04-28 17:36:07 -04:00
ari c94b2923e8 latest clean up for fwbook sleep 2026-04-28 17:30:29 -04:00
ari 2514d9935e clean up pam 2026-04-27 18:14:46 -04:00
ari 571c702f21 cleaning up pam 2026-04-27 18:12:15 -04:00
ari c808597e1f configs 2026-04-27 17:56:53 -04:00
ari 3417b956f9 clean up dms 2026-04-27 17:10:25 -04:00
ari 4ceea18238 clean up dms 2026-04-27 17:08:24 -04:00
ari 56ae419d48 clean up dms 2026-04-27 17:08:21 -04:00
ari 8684099c82 clean up dms 2026-04-27 17:06:27 -04:00
ari 7ca1c1fb74 goodbye gdm 2026-04-27 16:53:25 -04:00
ari bdfe294001 added rfignore airplane model 2026-04-27 16:25:18 -04:00
ari 763722579e updated stable 2026-04-27 16:24:10 -04:00
ari cf6ce232c2 updated stable 2026-04-27 13:40:42 -04:00
ari f469ac8a45 nix index 2026-04-27 12:53:08 -04:00
ari 4966737c9b updated dms 2026-04-27 12:41:55 -04:00
ari b3a963a9ab notifications 2026-04-16 09:05:02 -04:00
ari 431174cd19 better comfy 2026-04-15 21:45:40 -04:00
ari bdc74bc4d2 by hypr & hi davinci 2026-04-15 20:39:57 -04:00
ari 0665aa310b long cmds notif 2026-04-15 19:40:27 -04:00
ari de4530784f working comfyui 2026-04-15 13:34:20 -04:00
ari 92df288796 comfyui 2026-04-15 12:57:46 -04:00
ari 0c8f136b14 better ccli 2026-04-14 19:16:38 -04:00
ari 11893ae742 added local hm job 2026-04-14 18:58:45 -04:00
ari 0b34a3cf11 split out home-manager 2026-04-14 18:50:11 -04:00
ari 2d956525cc formatting and hooks 2026-04-13 16:39:18 -04:00
ari 7d5ddd9013 ports for comfy 2026-04-12 12:07:06 -04:00
ari ea9ad5992e updated fwdesk 2026-04-12 01:19:22 -04:00
ari 58c132e12c updated fwdesk 2026-04-12 01:17:50 -04:00
ari bb9c6ee461 updated 2026-04-09 22:23:49 -04:00
ari 4c2597e7a0 latest 2026-04-03 15:46:38 -04:00
ari 2abfdb4981 working 2026-03-24 13:39:22 -04:00
ari 1562ccbe9f mounts 2026-03-22 22:29:34 -04:00
ari bda67abdfa remote builds 2026-03-22 22:26:22 -04:00
ari fd5c5e9a77 remote builds 2026-03-22 22:24:44 -04:00
ari 95a90109db mounts 2026-03-22 21:32:59 -04:00
ari d67dbd92d0 latest 2026-03-21 22:26:09 -04:00
ari c24749e281 small upgrade for determinate 2026-03-21 21:01:10 -04:00
ari 90294fca22 small upgrade 2026-03-21 20:59:28 -04:00
ari b04d948f82 small upgrade 2026-03-21 20:58:34 -04:00
ari 580387c43b accounting for latst changes 2026-03-21 17:09:27 -04:00
ari 205c1984f0 bigbox2 2026-03-17 12:00:34 -04:00
ari 497d27a452 bigbox2 2026-03-17 11:59:04 -04:00
ari 1ad7ba2f06 bigbox2 2026-03-17 11:56:07 -04:00
ari 43e89e4e8f bigbox2 2026-03-17 11:54:24 -04:00
ari 0260328de7 bigbox2 2026-03-17 11:47:24 -04:00
ari 0821ae41ca bigbox2 2026-03-17 11:17:41 -04:00
ari 99cdaafb60 bigbox2 2026-03-17 11:02:03 -04:00
ari 653f18a8b1 bigbox2 2026-03-17 11:01:32 -04:00
ari 0c54b088d1 bigbox2 2026-03-17 11:01:14 -04:00
ari 6717974b6e bigbox2 2026-03-17 07:45:46 -04:00
ari 975b3ae911 helper command 2026-03-16 21:25:18 -04:00
ari 02b0558138 iso builder 2026-03-16 21:23:03 -04:00
ari bd25df72fe iso builder 2026-03-16 19:06:41 -04:00
ari e28f5814c4 bigbox2 2026-03-16 18:56:26 -04:00
ari 1b862188c4 bigbox2 2026-03-16 18:24:06 -04:00
ari 097fe6f7b0 added llms 2026-03-02 11:13:44 -05:00
ari e7ec498838 tts 2026-02-28 16:43:53 -05:00
ari 109676b64b latest keybinds 2026-02-28 16:28:07 -05:00
ari ec4226adaa volume controls 2026-02-19 15:13:03 -05:00
ari d58e41170b printers + binds 2026-02-19 15:04:02 -05:00
ari 11fb9e7115 added printers to shared configs 2026-02-19 14:41:41 -05:00
ari 4b14861434 updated 2026-02-19 14:37:13 -05:00
ari 278b054383 doubling down on dank 2026-02-05 13:43:00 -05:00
ari c2adce47b8 latest 2026-02-04 15:01:10 -05:00
ari f3d4eeedd6 updated 2026-01-27 12:34:55 -05:00
ari d52ed122e7 updated 2026-01-26 16:47:31 -05:00
ari f055291110 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2026-01-26 11:11:15 -05:00
ari 09bd58bbc3 latest 2026-01-26 11:11:03 -05:00
ari 583d4e963b Merge branch 'main' of github.com:asosnovsky/nixos-setup 2026-01-16 14:27:43 -05:00
ari 8f9cd180d3 added quickemu 2026-01-16 14:26:56 -05:00
ari 20d22067c9 finally ollama works on the fwdesk 2026-01-13 00:07:00 -05:00
ari 720f60a04c clean up 2026-01-02 10:55:27 -05:00
ari b7ec976381 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2026-01-02 10:39:13 -05:00
ari 78c7115e5c niri keybinds 2026-01-02 10:39:07 -05:00
ari a980713fdf Merge branch 'main' of github.com:asosnovsky/nixos-setup 2026-01-02 10:37:33 -05:00
ari 67c2023bfe host back up 2026-01-01 16:10:27 -05:00
ari b5ec1e383f host back up 2026-01-01 16:05:09 -05:00
ari 1cb62df487 latest 2026-01-01 16:02:35 -05:00
ari 1f9965f60a Merge branch 'main' of github.com:asosnovsky/nixos-setup 2026-01-01 14:54:41 -05:00
ari 7e847dd4ab niri keybinds 2026-01-01 14:53:57 -05:00
ari 2363932b32 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2026-01-01 14:47:32 -05:00
ari a76b32203a desktop 2026-01-01 14:47:27 -05:00
ari 9db1c6a20a key binds 2026-01-01 14:46:41 -05:00
ari 5fb796d528 stable place 2026-01-01 11:01:45 -05:00
ari 711f4b71af Merge branch 'main' of github.com:asosnovsky/nixos-setup 2025-12-31 14:44:47 -05:00
ari ca67bcd0c6 stable place 2025-12-31 14:38:31 -05:00
ari bf643c6db2 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2025-12-25 15:30:03 -05:00
ari c447725291 latet 2025-12-25 15:29:52 -05:00
ari 5632f1fbe5 stable place 2025-12-22 16:59:39 -05:00
ari f1613955f7 updated 2025-12-16 09:50:09 -05:00
ari bccb61ec27 nicer niri stuff 2025-12-04 11:26:23 -05:00
ari 4ce108247e Merge branch 'main' of github.com:asosnovsky/nixos-setup 2025-12-04 10:55:25 -05:00
ari 0e40b878c8 upgrade to 25.11 2025-12-04 10:55:20 -05:00
ari 6d147c89ed added mod tab 2025-12-03 22:33:39 -05:00
ari 438fcd413e clean up 2025-11-26 09:42:02 -05:00
ari cec42ccf0a latest 2025-11-24 09:06:02 -05:00
ari 205d3a44c6 clean up 2025-11-13 10:45:03 -05:00
ari 2b4ad5c063 always on 2025-11-13 10:41:42 -05:00
ari fcc191a9e1 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2025-11-13 10:33:26 -05:00
ari e81c53b57a hyprland 2025-11-13 10:33:21 -05:00
ari d399df52b1 stylix 2025-11-13 10:29:24 -05:00
ari e7e05d1b15 stylix 2025-11-13 10:10:06 -05:00
ari 05f6e6e97b latest 2025-11-13 10:02:49 -05:00
ari 9db6cb9ce8 hyprland 2025-11-11 23:45:27 -05:00
ari c4537da49f file manager 2025-11-06 16:27:47 -05:00
ari 5341bc074a clean up 2025-11-06 15:43:59 -05:00
ari 4ca0aecae4 latest 2025-11-04 21:33:59 -05:00
ari 4b5d9628ad added ports for tabby & ollama 2025-10-23 11:43:06 -04:00
ari 423a154cad added ports for tabby & ollama 2025-10-23 11:42:53 -04:00
ari 192700f1df Merge branch 'main' of github.com:asosnovsky/nixos-setup 2025-10-23 11:10:22 -04:00
ari ec59fb2188 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2025-10-23 11:09:58 -04:00
ari 36bb9b0b45 added data drive 2025-10-23 11:09:48 -04:00
ari 6d9821a67b just using nu scripts 2025-10-21 16:17:00 -04:00
ari f1e5830181 clean up 2025-10-20 16:59:47 -04:00
ari 1e7fe353df working desktop 2025-10-20 16:56:59 -04:00
ari a5f54e20e3 :wMerge branch 'main' of https://github.com/asosnovsky/nixos-setup 2025-10-20 18:03:37 +00:00
ari 3c600ebde7 boot 2025-10-20 14:03:26 -04:00
ari da9a803d7c added hardware 2025-10-19 20:39:00 +00:00
ari 6ccc807307 typo 2025-10-19 16:37:21 -04:00
ari d1b0240fa8 fwdesk 2025-10-19 16:33:15 -04:00
ari d2edc667bc fwbook 2025-10-19 16:29:37 -04:00
ari f7a365d9cb switched to zen 2025-10-19 16:22:07 -04:00
ari 0b29dbe571 kde connect 2025-10-09 02:27:59 -04:00
ari 42a38f5215 stable place 2025-10-06 10:44:34 -04:00
ari 751f0b90c8 stable place 2025-10-04 14:32:40 -04:00
ari efa74d4e94 dns resolved 2025-10-01 17:16:46 -04:00
ari 1d051809ab stable place 2025-10-01 16:18:41 -04:00
ari 1260da169a fuck? 2025-09-21 13:56:53 -04:00
ari fd89da4def clean up 2025-09-21 13:52:49 -04:00
ari 9f6ffaab98 clean up 2025-09-18 12:46:12 -04:00
ari 57d6c968d9 latest niri 2025-09-18 12:21:53 -04:00
ari 3be8e198df keeping kde portal 2025-09-10 12:43:50 -04:00
ari e77ae23ec1 updated 2025-09-10 09:16:00 -04:00
ari ab14c33a84 resolved a lot of system deps 2025-09-04 11:47:55 -04:00
ari a58d9719b3 Tue 26 Aug 2025 03:19:30 PM EDT 2025-08-26 15:19:30 -04:00
ari 45c476cace Tue 26 Aug 2025 03:17:26 PM EDT 2025-08-26 15:17:26 -04:00
ari 3fde3cc15a Fri 22 Aug 2025 04:52:41 PM EDT 2025-08-22 16:52:41 -04:00
ari e81a66f6e6 Prettier wayvar 2025-08-22 16:28:38 -04:00
ari 6a21e907fd clean up 2025-08-21 22:01:25 -04:00
ari e67a7556ea Wed 20 Aug 2025 04:53:26 PM EDT 2025-08-20 16:53:26 -04:00
ari aca463ecfe more messing around wuth systemd 2025-08-19 11:23:39 -04:00
ari 3958b7ad2c cursor 2025-08-15 14:24:14 -04:00
ari fc9b9aed42 using determinate nix 2025-08-15 13:49:51 -04:00
ari a0be6ce65d Wed 13 Aug 2025 03:08:23 PM EDT 2025-08-13 15:08:23 -04:00
ari 19a79e1e97 Wed 13 Aug 2025 03:03:03 PM EDT 2025-08-13 15:03:03 -04:00
ari 3dfd267dbf Mon 11 Aug 2025 11:23:57 PM EDT 2025-08-11 23:23:57 -04:00
ari 8acbfef789 Mon 11 Aug 2025 11:21:19 PM EDT 2025-08-11 23:21:19 -04:00
ari 1abff11fdc clean up 2025-08-11 13:12:49 -04:00
ari 1bbbe129d8 migration to just 2025-08-06 14:44:24 -04:00
ari 3eebd1a2dc sherlock 2025-08-05 11:03:29 -04:00
ari 78cbd6d92c sherlock 2025-08-05 11:03:12 -04:00
ari 9b6f4905c1 refactor 2025-08-05 07:51:25 -04:00
ari ae505657a0 gitea 2025-08-04 12:05:27 -04:00
ari 671d5e8043 gitea 2025-08-04 11:24:08 -04:00
ari db27724200 stable place 2025-08-03 16:05:39 -04:00
ari d15fca922a stable place 2025-08-02 00:49:24 -04:00
ari 59206710dc special bg service 2025-08-02 00:15:54 -04:00
ari e220e249aa playing around with tilling & niri 2025-08-02 00:09:26 -04:00
ari 0dc1199ae9 clean up 2025-07-29 13:58:56 -04:00
ari 2afcdabfc9 extra aliases 2025-07-29 09:30:29 -04:00
ari 5d08d22397 wl-copy 2025-07-29 09:25:05 -04:00
ari d17c09cca1 fing around with niri 2025-07-29 09:03:54 -04:00
ari e9827cbc55 fing around with niri 2025-07-29 00:08:01 -04:00
ari 5dff13db1e skyg utils 2025-07-28 09:57:20 -04:00
ari 320d63216e niri 2025-07-28 09:35:13 -04:00
ari 3188c6ecbb updating latest hypr 2025-07-24 11:31:55 -04:00
ari 0bc7802fcd hyprland 2025-07-23 16:09:04 -04:00
ari dc4810173b clean up 2025-07-21 17:01:00 -04:00
ari 97b25460c9 bigbox links 2025-07-21 16:54:44 -04:00
ari 8933bfdc4a my tiler configs 2025-07-11 20:34:17 -04:00
ari d967909967 latest work 2025-07-08 12:34:31 -04:00
ari 0298e6d916 latest work 2025-07-08 12:34:25 -04:00
ari 46ba35ac70 updated 2025-07-02 19:55:12 -04:00
ari 6c12b2d3c5 niri 2025-06-26 11:18:26 -04:00
ari fcb144021b niri 2025-06-25 17:48:23 -04:00
ari 9c4c5f1861 More niri support 2025-06-23 11:53:55 -04:00
ari 353a0a21bf tiler options 2025-06-22 11:16:02 -04:00
ari 71b3ed920c trayscale 2025-06-16 12:10:48 -04:00
ari 85900d3945 rdp & sunshine for bigbox 2025-06-14 17:08:44 -04:00
ari dacbe3cb7d split out lib-gestures 2025-06-12 10:39:08 -04:00
ari a37d446084 using better utils 2025-06-08 15:08:06 -04:00
ari 648dec5efe using official cosmic 2025-06-04 22:17:01 -04:00
ari 49e2e0d9a7 more k3s nvidia stuff 2025-06-01 21:05:05 -04:00
ari 3c79236780 latst 2025-05-30 23:26:29 -04:00
ari 5167fd426e sys update 2025-05-24 11:59:12 -04:00
ari d10680b777 os update 2025-05-13 22:06:21 -04:00
ari 6208b89f2d latest 2025-05-13 21:51:55 -04:00
ari 5d20840c83 using nushell 2025-05-13 12:57:41 -04:00
ari 02ed56067b popshell 2025-05-11 11:39:06 -04:00
ari 52e651247a clean up 2025-05-10 16:58:00 -04:00
ari 752713b51d fixed up key bindings for gnome 2025-05-10 15:11:57 -04:00
ari 1a51be857a updated snapper 2025-05-02 19:18:46 -04:00
ari ae78af527c latest 2025-05-02 18:45:34 -04:00
ari 20464d7350 Merge branch 'main' into btrfs 2025-05-02 17:46:20 -04:00
ari 11fe0e5016 latest 2025-05-02 17:20:07 -04:00
ari 0ca156c81b shortcuts for cosmic 2025-05-02 15:45:49 -04:00
ari ebdfaef831 gnome module 2025-05-02 13:45:57 -04:00
ari b4218bdd7d gnome module 2025-05-02 13:34:51 -04:00
ari d6943e12cf enabled gnome & fixed up permissions for k3s 2025-04-24 11:11:16 -04:00
ari 88971ca755 added nh 2025-04-21 21:57:29 -04:00
ari d5f21d9b75 update vpn script 2025-04-21 21:40:52 -04:00
ari 799c336f8c prompt 2025-04-14 21:40:25 -04:00
ari fc37656e67 updated versions 2025-04-12 21:58:20 -04:00
ari 16c1fd005b emoji selector 2025-04-08 10:44:30 -04:00
ari 57717b3020 k3s on minipc3 2025-04-07 22:39:02 -04:00
ari 462538a5c6 added minipc3 2025-04-07 22:06:48 -04:00
ari f4867ec09c latest 2025-04-07 21:52:39 -04:00
ari 231f14a9b8 latest work 2025-04-06 16:47:14 -04:00
ari b887e81d07 latest 2025-04-03 14:52:44 -04:00
ari 31c285b75b iphone 2025-04-01 16:57:44 -04:00
ari 6daf5245cb Clean up 2025-04-01 09:51:32 -04:00
ari 11ee8b4525 work stuff 2025-03-28 14:48:30 -04:00
ari b7a30008f7 Updated flakes 2025-03-22 18:56:21 -04:00
ari 5cddc183c8 Consolidated imports 2025-03-22 18:20:22 -04:00
ari 7bc513e6e9 disable k3s for now 2025-03-22 16:24:38 -04:00
ari 035008fde5 Using cosmic greeter 2025-03-21 09:08:18 -04:00
ari 7eaf98dba6 stable 2025-03-20 22:03:19 -04:00
ari 60f5801a4e latest 2025-03-19 14:08:04 -04:00
ari bb53a89e1c Bye bye KDE & hello offline builds
- Offline caches will no longer fail builds
- Not using KDE anymore
- Power management for COSMIC
2025-03-18 09:47:31 -04:00
ari b304e94c8c pritunl 2025-03-13 10:10:17 -04:00
ari 056ca7813f pritunl 2025-03-13 09:58:22 -04:00
ari 2aa4721c55 updated version 2025-03-05 13:39:35 -05:00
ari b7192ca61f docker compose fix 2025-02-25 22:04:33 -05:00
ari 14d73e8498 port fix ups 2025-02-25 09:39:00 -05:00
ari 629d0fa261 k3s 2025-02-21 21:09:26 -05:00
ari 73a084fccd K3s 2025-02-17 21:49:20 -05:00
ari 3d540c6952 Added k3s-configs 2025-02-16 15:21:13 -05:00
ari 57910774fc Added libinput as a deps 2025-02-13 13:25:35 -05:00
ari 030ef2e500 clean up & steam server 2025-02-11 21:05:28 -05:00
ari 991bb94ce2 clean up & steam server 2025-01-31 20:53:40 -05:00
ari a48f0a58b8 Steam remotes 2025-01-30 22:51:19 -05:00
ari 951535bf5f Clean up 2025-01-29 22:32:35 -05:00
ari 4a610d2979 Clean up & fixing ollama service 2025-01-25 09:50:28 -05:00
ari 4fdc7a368a Wayland is working on KDE!!! 2025-01-23 12:26:16 -05:00
ari a40ed1ecaa Trying wayland kde again 2025-01-21 11:26:57 -05:00
ari 9b1c3b4f1c working cosmic 2025-01-20 11:56:09 -05:00
ari 9d4dac7cb2 split out pipewire from sound 2025-01-18 10:26:09 -05:00
506 changed files with 25232 additions and 3067 deletions

No files matched your search

+1
View File
@@ -0,0 +1 @@
AGENTS.md
+5 -1
View File
@@ -1,2 +1,6 @@
use flake
if ! has nix_direnv_version || ! nix_direnv_version 3.1.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.1.0/direnvrc" "sha256-yMJ2OVMzrFaDPn7q8nCBZFRYpL/f0RcHzhmw/i6btJM="
fi
nix_direnv_manual_reload
use flake
+23 -2
View File
@@ -1,5 +1,7 @@
*.AppImage
.pytest_cache
# Devenv
.devenv*
devenv.local.nix
@@ -8,12 +10,12 @@ devenv.local.nix
# tmp
tmp
result.diff
.claude-nixos-setup
# direnv
.direnv
# pre-commit
.pre-commit-config.yaml
# nix build
result
@@ -21,3 +23,22 @@ results
diffs
.locks
result.diff
.tmp
build
# Rust build artifacts
target
# DOC are WIP
docs
# worktrees
.branches
# agents
.commandcode
.delta
.claude
.mnt
.pi
+1
View File
@@ -0,0 +1 @@
/nix/store/8wpcklj1m0cp057gvc6ksvkc6znlipd5-pre-commit-config.json
-6
View File
@@ -1,6 +0,0 @@
{
"recommendations": [
"pinage404.nix-extension-pack",
"b4dm4n.nixpkgs-fmt"
]
}
-5
View File
@@ -1,5 +0,0 @@
{
"nix.enableLanguageServer": true,
"nix.serverPath": "nixd",
}
+29
View File
@@ -0,0 +1,29 @@
{
"show_completions_on_input": true,
"languages": {
"QML": {
"colorize_brackets": true,
"inlay_hints": {
"show_background": true,
"enabled": true
},
"show_whitespaces": "all",
"show_completions_on_input": true,
"always_treat_brackets_as_autoclosed": true,
"format_on_save": "on",
"language_servers": ["qmljs"]
}
},
"lsp": {
"qmljs": {
"enable_lsp_tasks": true,
"binary": {
"path": "qmlls",
"arguments": ["-E"]
},
"initialization_options": {
"buildDir": "."
}
}
}
}
+18
View File
@@ -0,0 +1,18 @@
# Agent Instructions
**MANDATORY FIRST ACTION:** Read [`GUIDELINES.md`](GUIDELINES.md) in full before
doing anything in this repository. It is the single source of truth for agent
behavior here.
Key non-negotiable rules from that file:
- **Always present a plan first** and wait for user approval before making any
changes — no matter how small the task.
- **Never run builds, system switches, or remote installs** (`nixos-rebuild`,
`nh os`, `skyg os`, `skyg remote install`, `nixos-anywhere`, `nix build`,
`nix flake check`, etc.) — zero exceptions, even if asked.
- Never edit `flake.lock`, `*.hardware-configuration.nix`, or anything in
`secrets/`.
- Never add `imports = [...]` to host files.
- Never commit or create branches unless explicitly asked.
- Also read [`.agents/Agent.md`](.agents/Agent.md) for full repository context.
Symlink
+1
View File
@@ -0,0 +1 @@
AGENTS.md
+253
View File
@@ -0,0 +1,253 @@
# Agent Guidelines — nixos-setup
Rules and best practices for any AI agent working in this repository.
Read this file before making any changes.
---
## Mandatory First Step — Always Present a Plan
Before making **any** change to this repository, you MUST present a short plan to the user and wait for their approval. This applies to every task, no matter how small.
Your plan must include:
1. **What** you intend to change (files, options, packages)
2. **Why** the change is needed
3. **How** you will do it (which files you will edit, in what order)
4. **What you will NOT do** (e.g., "I will not run any builds")
Only after the user approves the plan may you proceed with edits.
---
## Hard Rules — Never Break These
### ❌ NEVER run builds or system switches — ZERO EXCEPTIONS
**DO NOT RUN ANY OF THESE COMMANDS AT ANY TIME, FOR ANY REASON:**
```
nixos-rebuild switch / test / build / dry-build
nh os switch / test / build
skyg os switch / test / build
skyg remote switch / test / build / boot / install
skyg hm switch / build
nix build
docker/podman build
nixos-anywhere
```
The only exception is lightweight operations like
```
nh os switch --dry
nix flake check
```
**Why:**
- These commands take 20–40+ minutes
- They consume significant CPU/RAM on the user's machine
- They can block the user from their own work
- They can break the live system if something is wrong
- The user MUST control when and what gets built
**Your job:** Make correct edits to source files. The user validates and runs builds themselves.
**Even if the user says "go ahead":** Do NOT run these. Your role is to write good Nix, not execute it.
### ❌ NEVER run `skyg remote install` or nixos-anywhere — ZERO EXCEPTIONS
This wipes every disk in `hosts/<profile>.disko.nix`. A second run is as destructive as the first.
Always make the user run it. Do not invoke it, even with `--force-wipe`, even if asked.
### ❌ NEVER edit `flake.lock` by hand
This file is managed exclusively by `nix flake update`. Editing it manually will corrupt
the lock file and break all builds.
### ❌ NEVER edit `*.hardware-configuration.nix` files
These are generated by `nixos-generate-config` and reflect the physical hardware. Edits
will be overwritten on the next hardware scan and can render a system unbootable.
### ❌ NEVER touch secrets
Do not read, write, or delete files in `secrets/`. Encrypted `.age` files must only be
managed with `agenix` via the `skyg secrets` commands. Do not modify `secrets.nix` unless
the user explicitly asks and explains the full context.
### ❌ NEVER add `imports = [...]` to host files
Host files (`hosts/<hostname>.nix`) do not use `imports`. All modules are composed through
the `makeNixOs` call in `flake.nix` via `modules/main.nix`. Adding imports to a host file
breaks the composition model.
### ❌ NEVER modify `GUIDELINES.md` unless explicitly requested by the user
You must **live and die by these rules** and hold yourself accountable to them.
These are not suggestions — they are non-negotiable.
### ❌ NEVER edit files inside `hosts/*/hardware-configuration/`
These are generated by `nixos-generate-config` and split into `boot.nix` / `file-system.nix`.
They reflect physical hardware — edits will be overwritten and can render a system unbootable.
The `# Clanker ! Do not modify this file!` header is not a suggestion.
### ❌ NEVER add top-level config to a host's `default.nix` that belongs in a sub-file
Every host folder follows a standard layout. Put config in the file that matches its scope:
| Config type | File |
| --------------------- | ------------------------- |
| Hardware / firmware | `hardware.nix` |
| Systemd / boot loader | `systemd.nix` |
| Packages | `packages.nix` |
| Networking / firewall | `networking.nix` |
| Services (few) | `services.nix` |
| Services (many) | `services/<name>.nix` |
| Home-manager | `home/default.nix` |
| Generated hardware | `hardware-configuration/` |
Don't dump unrelated options into `default.nix` — split them into the right file.
### KEEP EVERYTHING CONCISE, shorter concise comments are preferable, less jargon and more common words.
---
## Safe Operations
These are always safe to perform without asking:
- Reading any `.nix`, `.md`, or config file
- Editing host files (`hosts/<hostname>.nix`) to add/remove packages or options
- Editing module files in `modules/`
- `ABOUTME.md` should be seen as the 'living memory' of a folder, it should contain general information about what's in the folder and capture decisions made at the time of development the features.
- **Keep ABOUTME.md current:** whenever you add, remove, or rename files, options, commands, or behaviour in a folder, check that folder's `ABOUTME.md` still matches reality and update it as part of the same change. If you discover an existing `ABOUTME.md` that is stale (dead file/option/command references, missing entries, wrong paths), fix it in the same way.
- Adding new packages to `pkgs/`
- Editing configs in `configs/`
---
## When In Doubt
If you are unsure whether a command is safe, **assume it is NOT SAFE and don't run it.**
Instead: describe what you would do and ask the user for permission.
---
## NixOS Conventions in This Repo
### Option Namespace
All custom options live under `skyg.*`. Never introduce options under any other top-level
namespace. Check `modules/lib.nix` for the full `skyg.*` structure.
```nix
# Correct
skyg.nixos.desktop.enable = true;
skyg.nixos.server.services.comfyui.enable = true;
# Wrong — do not invent new top-level attrs
myOptions.desktop.enable = true;
```
### Enable/Disable Pattern
All modules follow `lib.mkIf cfg.enable { ... }`. Always gate config behind an `enable`
option. Default should be `false` unless the feature is universally required.
### Host File Structure
Each host is a folder under `hosts/<hostname>/`. The folder must contain at minimum
a `default.nix`. Split larger hosts into focused files:
```
hosts/<hostname>/
├── default.nix # skyg options, top-level settings, display manager
├── hardware.nix # Host-specific hardware (fwupd, kernel params, firmware)
├── systemd.nix # Boot loader, systemd targets/services, tmp, swap
├── packages.nix # environment.systemPackages (extract when > ~10 packages)
├── services.nix # Flat service configs (when < ~3 services)
├── services/
│ ├── default.nix # imports all service files
│ ├── <service>.nix # One file per service (when > ~3 services)
├── networking.nix # Firewall, Tailscale, NFS mounts, hosts
├── home/
│ └── default.nix # home-manager users.<name> block
└── hardware-configuration/ # Generated — DO NOT TOUCH
├── default.nix
├── boot.nix
└── file-system.nix
```
### Host Files vs Shared Modules
- **Host-specific** (one machine only): goes in `hosts/<hostname>.nix`
- **Shared** (multiple hosts): goes in the appropriate `modules/nixos/` or `modules/core/` submodule
- When in doubt, keep it in the host file and extract later if reuse emerges
### Package Placement
- Packages needed on all desktops → `modules/nixos/desktop/default.nix` (non-slim mode)
- Packages for one host only → `environment.systemPackages` in the host file
- Custom/third-party packages not in nixpkgs → `pkgs/<name>/default.nix` with an overlay in `modules/core/default.nix`
### Home Manager
Home Manager config lives inside `home-manager.users.<name>` blocks. Do not mix
system-level and HM-level options. The HM entry point is `modules/home/default.nix`.
### Greeter
Both desktop hosts (`fwbook`, `hl-fwdesk`) use DankMaterialShell greeter via:
```nix
services.displayManager.dms-greeter = {
enable = true;
compositor.name = "niri";
configHome = "/home/<username>";
};
```
Do not configure `services.greetd` manually on these hosts — the DMS module handles it.
---
## Navigation Tips
| Question | Where to look |
| ---------------------------------------- | --------------------------------------------- |
| What hosts exist? | `hosts/` + `docs/hosts/README.md` |
| What does a `skyg.*` option do? | `modules/` — find the defining `.nix` file |
| What flake inputs are available? | Top of `flake.nix` |
| What binary caches are configured? | `modules/core/nix-substituters.nix` |
| What secrets exist? | `secrets.nix` (lists files + authorized keys) |
| What custom packages exist? | `pkgs/` |
| Full API reference | `docs/modules/README.md` |
| Host details (ports, services, hardware) | `docs/hosts/README.md` |
---
## Validation Without Building
If you want to verify syntax **without triggering a build**, these are safe:
```bash
# Check Nix expression syntax only (fast, safe, no eval)
nix-instantiate --parse <file>.nix
```
**But even these are optional.** The user will validate by running `nh os switch` themselves.
**Golden rule:** When in doubt, don't run anything. Just describe your changes.
---
## Commit / Branch / Git Policy
- Do NOT commit changes or create branches unless the user explicitly asks
- Do NOT `git add`, `git commit`, or `git push` autonomously
- You may run `git add` **only** if required for a Nix evaluation (e.g., new files must be tracked for flakes)
- Describe what you changed in your final message so the user can review before committing
+177 -1
View File
@@ -1,3 +1,179 @@
# NixOS System Configurations
The following is my Nix configurations. More Docs TBD
My comprehensive Nix configurations for managing multiple hosts, including local machines and remote servers.
## Repository Layout
```
nixos-setup/
├── bin/ # `skyg` CLI
│ ├── skyg # Bash shim → NuShell command modules in bin/lib/
│ ├── check-flake-versions # Shim for `skyg flake check-versions`
│ ├── temp-monitor # NuShell CPU/GPU temperature logger (see TEMP_MONITOR_README.md)
│ └── lib/ # NuShell command modules (os, remote, secrets, ca, pkgs, flake, build, render, hm)
├── configs/ # Application-specific configurations (incl. configs/pki TLS certs)
├── pkgs/ # Custom packages (buzz-desktop, colibri, delta-editor, niri-touchscreen-gestures, superset-desktop)
├── hosts/ # One folder per host (fwbook, hl-*, iso) + generated hardware configs
├── modules/ # Reusable NixOS and Home Manager modules
│ ├── core/ # Core system modules
│ ├── home/ # Home Manager modules
│ ├── nixos/ # NixOS-specific modules
│ └── *.nix # Utility modules (lib, skyg-utils, internal-networking, etc.)
├── openwrt-routers/ # OpenWrt router configs (glmain)
├── docs/ # Documentation
├── flake.nix # Nix flake definition
├── flake.lock # Locked dependency versions
└── README.md # This file
```
## Using This Flake
To use the custom packages in your own NixOS/Home Manager configuration:
```nix
{
inputs.nixos-setup.url = "github:skykanin/nixos-setup";
outputs = { self, nixpkgs, nixos-setup, ... }:
let
system = "x86_64-linux";
pkgs = nixos-setup.lib.pkgs.${system};
in {
environment.systemPackages = with pkgs; [
niri-touchscreen-gestures
];
};
}
```
You can also import `nixos-setup.lib` to reuse `makeNixOs`, `makeHomeManagerUsers`, `makeIso`, `makeSdImage`, and other utilities.
See [`pkgs/ABOUTME.md`](pkgs/ABOUTME.md) for details on each package.
## Quick Start
The `skyg` script is your main interface for managing these configurations. It's located in `bin/skyg` and uses NuShell. Run `skyg` with no arguments to list subcommands, or `skyg <subcommand> --help` for details.
### Available Commands
#### Local System (`skyg os`)
- **`skyg os <action>`** - Run a local NixOS rebuild. Actions: `test`, `dry-activate`, `run`, `switch`, `build`, `boot`
- **`skyg os rollback`** - Roll back to the previous generation
- **`--build-host <host>`** - Build on a remote builder (e.g. `skyg os switch --build-host fwdesk`)
#### Remote Deployments (`skyg remote`)
- **`skyg remote <command> <target>`** - Deploy to a remote machine
Supported remote commands: `test`, `dry-activate`, `run`, `switch`, `build`, `boot`
Example: `skyg remote switch bigbox1` deploys using the `hl-bigbox1` profile to `root@bigbox1.lab.internal`
- **`skyg remote install <target>`** - Fresh-install a remote host via nixos-anywhere, using `hosts/hl-<target>.disko.nix`. Always wipes the disks in that file. Aborts if the disko file is missing, if the host already boots NixOS from disk (unless `--force-wipe`), or if you don't type the short hostname to confirm.
- **`skyg remote status <target>`** - Check status of a single remote host
- **`skyg remote status --all`** - Check status of all remote hosts (generation, pending reboot, needs rebuild)
- **`skyg remote boot-all`** - Boot all remote hosts (skips the current machine, checks online status first)
- **`skyg remote reboot-pending`** - Find every remote with a pending reboot (its booted system differs from its current system) and reboot them. Lists the affected hosts and asks for confirmation, then reboots them one at a time, waiting for each to come back online and sending a desktop notification when it does.
#### Flake Management (`skyg flake`)
- **`skyg flake update [input]`** - Update all flakes, or a specific input (e.g. `skyg flake update nixpkgs`). Displays the diff of `flake.lock` after updating.
- **`skyg flake check`** - Run `nix flake check --no-build`
- **`skyg flake check-versions`** - Verify NixOS release version consistency across flake inputs
#### Building Images and Routers (`skyg build`)
- **`skyg build image <iso|pi1|pi2>`** - Build a bootable image: ISO (`iso`) or Pi SD card image (`pi1`, `pi2`)
- **`skyg build openwrt [router]`** - Deploy an OpenWrt router config (default: `glmain`). Add `--dry-run` to render configs to `.tmp/` without touching the router.
#### Home Manager (`skyg hm`)
- **`skyg hm switch [profile]`** - Apply home-manager configuration (default: `ari`)
- **`skyg hm build [profile]`** - Build home-manager configuration
Example: `skyg hm switch ari` or `skyg hm switch`
#### Secrets (`skyg secrets`)
- **`skyg secrets list`** - List known secret names
- **`skyg secrets show <secret>`** - Decrypt a secret to `.tmp/unencrypted-<secret>`
- **`skyg secrets edit <secret> [--yaml]`** - Encrypt a working copy back into the secret
- **`skyg secrets compare <secret>`** - Diff the working copy against the stored secret
#### Lab CA (`skyg ca`)
- **`skyg ca init`** - Generate the lab root CA: key → `secrets/lab-ca-key.age`, cert → `configs/pki/lab-ca.crt`
- **`skyg ca issue <domain> --for <host>`** - Mint a TLS leaf cert signed by the lab CA: cert → `configs/pki/<domain>.crt`, key → `secrets/<name>-tls-key.age`
#### Custom Packages (`skyg pkgs`)
- **`skyg pkgs update --all`** - Auto-detect the latest version for all packages that have `update.sh`
- **`skyg pkgs update <pkg>`** - Auto-detect the latest version for a single package
- **`skyg pkgs update <pkg> <version>`** - Bump a package to an explicit version
#### Other
- **`skyg profiles`** - List all available local profiles
- **`skyg profiles --only_remote`** - List only remote profiles (prefixed with `hl-`)
- **`skyg render html-tpl <file>`** - Render a Gitea `.tmpl` and serve it on `127.0.0.1` for preview. Foreground — Ctrl+C to stop.
## Usage Examples
```bash
# Check available profiles
skyg profiles
# Build and switch to new configuration
skyg os build
skyg os switch
# Test configuration before switching
skyg os test
# Update dependencies
skyg flake update nixpkgs
# Deploy to a remote server
skyg remote switch bigbox1
# Rollback if something goes wrong
skyg os rollback
# Apply home-manager changes
skyg hm switch
```
### Using Custom Packages
All packages from `pkgs/` are available in your configuration as `pkgs.<name>` thanks to the overlay.
Example:
```nix
environment.systemPackages = with pkgs; [ niri-touchscreen-gestures ];
```
See [`pkgs/ABOUTME.md`](pkgs/ABOUTME.md) for details on each package.
## Managing Secrets
Secrets are encrypted using [agenix](https://github.com/ryantm/agenix) and stored in `secrets/`.
### Adding a Host to Secrets
1. **Get the host's SSH public key**: `cat /etc/ssh/ssh_host_ed25519_key.pub`
2. **Add to `secrets.nix`**: Create a variable with the key and add it to each secret's `publicKeys` list
3. **Re-encrypt**: for each affected secret run `skyg secrets show <name>` then `skyg secrets edit <name>` to re-encrypt it against the updated key set
For more details, see `secrets/ABOUTME.md`.
## Host Profiles
Available profiles include:
- **Local**: `fwbook` (Framework laptop)
- **Remote**: `hl-bigbox1`, `hl-bigbox2`, `hl-fwdesk`, `hl-fws1`, `hl-minipc1`, `hl-minipc2`, `hl-minipc3`, `hl-pi1`, `hl-pi2`, `hl-terra1`
- **ISO**: `iso` (bootable image)
All profiles automatically have access to the custom packages from the `pkgs/` directory.
+61
View File
@@ -0,0 +1,61 @@
# bin/
The `skyg` CLI — the single entry point for all system management tasks in this repo.
## Structure
```
bin/
├── skyg # Bash shim: exec nu --commands "use lib/cmds.nu *; skyg $*"
├── check-flake-versions # Bash shim for `skyg flake check-versions`
├── temp-monitor # NuShell script: collect CPU/GPU temps to CSV + optional graph
├── TEMP_MONITOR_README.md # Usage docs for temp-monitor
└── lib/
├── cmds.nu # Dispatcher + bare `skyg` + `skyg profiles` + deprecated aliases
├── os.nu # `skyg os` (local NixOS rebuild/switch/rollback)
├── remote.nu # `skyg remote *` (deploy, install, boot-all, status, reboot-pending)
├── secrets.nu # `skyg secrets list/show/edit/compare`
├── ca.nu # `skyg ca init/issue`
├── pkgs.nu # `skyg pkgs update`
├── flake.nu # `skyg flake update/check/check-versions`
├── build.nu # `skyg build image/openwrt`
├── render.nu # `skyg render html-tpl`
├── hm.nu # `skyg hm <action>`
├── helpers.nu # Shared helpers: REPO_ROOT const + internal functions
├── profile.nu # Profile helpers and tab-completion data
├── types.nu # Tab-completion completer functions
└── remote.utils.nu # Remote-specific helpers (boot info, wait-for-host, notify)
```
## Key Commands
| Command | Description |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `skyg os switch` | Rebuild and switch local system |
| `skyg os rollback` | Roll back to previous generation |
| `skyg remote switch <host>` | Deploy to a remote host |
| `skyg remote install <host>` | Fresh-install a remote host via nixos-anywhere, using `hosts/<profile>.disko.nix`. Always wipes the disks in that file. Aborts if the file is missing, if the host already boots NixOS from disk (unless `--force-wipe`), or if you do not type the short hostname. |
| `skyg remote status <host>` | Check status of a single remote host |
| `skyg remote status --all` | Check status of all remote hosts |
| `skyg remote boot-all` | Boot all remote hosts |
| `skyg remote reboot-pending` | Reboot every remote host with a pending reboot (`booted-system` != `current-system`). Lists them, asks for confirmation, then reboots one at a time, waiting for each to come back online and sending a desktop notification when it does. |
| `skyg hm switch` | Apply Home Manager config |
| `skyg flake update [input]` | Update flake inputs |
| `skyg flake check` | Run `nix flake check --no-build` |
| `skyg flake check-versions` | Verify NixOS release version consistency in flake.nix |
| `skyg build image iso\|pi1\|pi2` | Build bootable image — ISO (`iso`) or Pi SD card image (`pi1`, `pi2`) |
| `skyg build openwrt [router]` | Deploy OpenWrt config |
| `skyg profiles` | List valid local/remote profiles |
| `skyg secrets list` | List known secret names |
| `skyg secrets show <secret>` | Decrypt a secret to `.tmp/unencrypted-<secret>` |
| `skyg secrets edit <secret> [--yaml]` | Encrypt a working copy back into the secret |
| `skyg secrets compare <secret>` | Diff the working copy against the stored secret |
| `skyg ca init` | Generate the lab root CA: key → `secrets/lab-ca-key.age`, cert → `configs/pki/lab-ca.crt` (see `configs/pki/ABOUTME.md`) |
| `skyg ca issue <domain> --for <host>` | Mint a TLS leaf cert signed by the lab CA: cert → `configs/pki/<domain>.crt`, key → `secrets/<name>-tls-key.age`. Auto-registers missing `secrets.nix` entries. |
| `skyg pkgs update [--all\|<pkg>]` | Update one or all custom packages |
| `skyg render html-tpl <file>` | Render a Gitea `.tmpl` and serve it on `127.0.0.1` for preview. Foreground — Ctrl+C to stop. `<file>` tab-completes from `**/*.tmpl`. |
## Agent Note
> **Never invoke `skyg` commands that trigger builds or switches.**
> Only the user runs these. Edits to `cmds.nu` / `remote.nu` are safe if the user asks for CLI changes.
+101
View File
@@ -0,0 +1,101 @@
# Temperature Monitor Script
A nushell script for monitoring your laptop's CPU/GPU temperatures, storing them with timestamps, and visualizing them as a graph.
## Features
- **Real-time monitoring**: Collects temperature readings at configurable intervals
- **Persistent storage**: Saves all readings to a CSV file with timestamps
- **Multiple sources**: Tries multiple methods to read temperature data (lm_sensors, acpi, sysfs)
- **ASCII graphs**: Displays temperature data as an ASCII bar graph
- **Flexible configuration**: Customize duration, interval, and output location
## Requirements
The script automatically detects and uses available tools. It will try these in order:
1. `sensors` (from `lm_sensors`) - **Recommended** - Most reliable
2. `acpi` - Fallback option
3. `/sys/class/thermal/thermal_zone0/temp` - Linux sysfs fallback
On NixOS, you can add these to your environment with:
```nix
environment.systemPackages = with pkgs; [
lm_sensors
acpi
];
```
## Usage
### Basic usage (60-second collection with 2-second intervals)
```bash
./bin/temp-monitor
```
### Collect for 5 minutes with 5-second intervals
```bash
./bin/temp-monitor --duration 300 --interval 5
```
### Collect and display graph
```bash
./bin/temp-monitor --duration 60 --graph
```
### Custom output file location
```bash
./bin/temp-monitor --output ~/my-temps.csv --duration 120 --graph
```
### View stored data
```bash
cat ~/.cache/temp-data.csv
```
## Command-line Options
- `--duration <seconds>` - How long to collect data (default: 60)
- `--interval <seconds>` - Seconds between readings (default: 2)
- `--output <path>` - CSV file location (default: ~/.cache/temp-data.csv)
- `--graph` - Display ASCII graph after collection completes
## Output Format
The script stores data in CSV format with columns:
```
timestamp,cpu_temp,gpu_temp,max_temp
2024-07-11 14:30:45,65.5,N/A,65.5
2024-07-11 14:30:47,66.2,N/A,66.2
```
## Graph Example
```
2024-07-11 14:30:45: ████████████ 65.5°C
2024-07-11 14:30:47: ██████████████ 66.2°C
2024-07-11 14:30:49: ████████████████ 68.1°C
Min: 65.5°C | Max: 68.1°C | Range: 2.6°C
```
## Tips
- Run multiple instances with different `--output` files to track different time periods
- Use cron to collect continuous background data: `*/5 * * * * ~/nixos-setup/bin/temp-monitor --duration 1 --interval 1`
- High temperatures may indicate a need for thermal paste replacement or fan cleaning
- The graph is great for spotting thermal throttling or fan ramp-ups during workloads
## Troubleshooting
**No temperature readings (showing "N/A")**:
- Check if `sensors` is installed and working: `sensors`
- Check thermal zone: `cat /sys/class/thermal/thermal_zone0/temp`
- Run `sudo sensors-detect` to configure lm_sensors on first use
**Permission denied reading temperatures**:
- Some systems require sudo for detailed sensor access
- Try: `sudo ./bin/temp-monitor`
**CSV file grows too large**:
- Archive old data: `mv ~/.cache/temp-data.csv ~/.cache/temp-data-$(date +%s).csv`
- Or use `--output` with a date-stamped filename
-22
View File
@@ -1,22 +0,0 @@
#!/bin/sh
mkdir -p results
nix flake show --json | jq -r -c '.nixosConfigurations | keys[]' | while read i; do
echo "[[SKYG]] Building current $i"
sudo nixos-rebuild build --flake .#$i
rm -f results/$i-result
mv result results/$i-result
done
nix flake update
rm -f diffs
mkdir diffs
nix flake show --json | jq -r -c '.nixosConfigurations | keys[]' | while read i; do
echo "[[SKYG]] Building new $i"
sudo nixos-rebuild build --flake .#$i
rm -f results/$i-result-post
mv result results/$i-result-post
nvd diff results/$i-result results/$i-result-post > diffs/$i
done
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
LIB="$SCRIPT_DIR/lib/cmds.nu"
exec nu --commands "use \"$LIB\" *; skyg flake check-versions"
-52
View File
@@ -1,52 +0,0 @@
#!/bin/sh
# Bootstrap
set -e
ROOT_FOLDER=$(realpath $0 | xargs dirname)
. $ROOT_FOLDER/common.sh
# Bootstrap
# export NIX_SSHOPTS="-o RequestTTY=force"
target=${1}
target_host=root@$target.lab.internal
profile=hl-$target
valid_profiles=$(nix flake show --json 2> /dev/null | jq -r -c '.nixosConfigurations | keys[]' | grep "hl")
function print_valid_targets {
echo "valid targets:"
while IFS= read -r line; do
echo $line | sed -r 's/.*hl-/ - /g'
done <<< "$valid_profiles"
}
if [ -z $target ]; then
echo "must specify a target!"
print_valid_targets
exit 1
fi
if echo "$valid_profiles" | grep -qFx "$profile"; then
echo "Using [$profile]"
else
echo "Invalid target! '$profile'"
print_valid_targets
exit 1
fi
function run {
remote_cmd=${1}
echo -e "$BOLD$remote_cmd$NC on $YELLOW$target_host with $profile through $build_host$NC"
runcmd="nixos-rebuild --target-host $target_host --use-remote-sudo $remote_cmd --flake .#$profile"
echo -e "$BLUE$runcmd$NC"
$runcmd
}
cmd=${2}
case $cmd in
"test" | "dry-activate" | "run" | "switch" | "build") run $cmd;;
*)
echo "invalid command"
exit 1
;;
esac
-9
View File
@@ -1,9 +0,0 @@
#!/bin/sh
## Colors
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
NC='\033[0m'
BOLD='\033[1m'
BLUE_BOLD='\033[1;34m'
YELLOW_BOLD='\033[1;33m'
+35
View File
@@ -0,0 +1,35 @@
use types.nu *
use helpers.nu *
# Build a bootable image: ISO, or Pi SD card image (fully-baked, no on-device rebuild)
export def "skyg build image" [target: string@image-targets] {
cd $REPO_ROOT
let spec = (match $target {
"iso" => { config: "iso", out: "iso", attr: "isoImage" }
"pi1" => { config: "hl-pi1", out: "sd-image", attr: "sdImage" }
"pi2" => { config: "hl-pi2", out: "sd-image", attr: "sdImage" }
_ => { error make { msg: $"Unknown image target '($target)'. Expected: iso, pi1, pi2" } }
})
let imageBuildTime = date now | format date "%Y.%m.%d_%H_%M_%S"
let rootOutputFolder = $REPO_ROOT | path join "build" $spec.config
let outPutFolder = $rootOutputFolder | path join $imageBuildTime
rm -rf $rootOutputFolder
mkdir $rootOutputFolder
nix build $"#nixosConfigurations.($spec.config).config.system.build.($spec.attr)" -o $outPutFolder
printf $outPutFolder
}
# Deploy OpenWrt router configuration
export def "skyg build openwrt" [
router?: string@router-names,
--dry-run # Render configs to .tmp/openwrt-<router>/ without touching the router
] {
cd $REPO_ROOT
let router = $router | default "glmain"
let decrypted_file = skyg secrets show $"($router).json"
if $dry_run {
^cat $decrypted_file | nix run .#openwrt-($router)-dry-run -- ($router)
} else {
^cat $decrypted_file | nix run .#openwrt-($router)
}
}
+73
View File
@@ -0,0 +1,73 @@
use types.nu *
use helpers.nu *
# Generate the lab root CA: key encrypted to secrets/lab-ca-key.age,
# public cert written to configs/pki/lab-ca.crt. Run once, before `ca issue`.
export def "skyg ca init" [
--days: int = 3650 # CA lifetime in days
] {
cd $REPO_ROOT
let cert = "configs/pki/lab-ca.crt"
let key_secret = "secrets/lab-ca-key.age"
if ($cert | path exists) {
error make {msg: $"($cert) already exists — refusing to overwrite the CA. Delete it manually to rotate."}
}
ensure-secret-entry $key_secret ["ari"]
mkdir .tmp configs/pki
let tmp_key = ".tmp/lab-ca-key.pem"
(openssl req -x509 -newkey rsa:4096 -sha256 -days $days -nodes
-keyout $tmp_key -out $cert
-subj "/CN=Skyg Lab CA"
-addext "basicConstraints=critical,CA:TRUE"
-addext "keyUsage=critical,keyCertSign,cRLSign")
^cat $tmp_key | agenix -e $key_secret
rm -f $tmp_key
print $"✅ CA cert: ($cert) — commit this"
print $"✅ CA key encrypted: ($key_secret)"
print "Next: skyg ca issue <domain> --for <host>"
}
# Issue a TLS cert for a domain, signed by the lab CA.
# Writes configs/pki/<domain>.crt; encrypts the key to secrets/<name>-tls-key.age.
export def "skyg ca issue" [
domain: string # e.g. buzz.app.internal
--for: string@ca-recipients # secrets.nix key name allowed to decrypt the leaf key (e.g. minipc1)
--days: int = 825 # leaf lifetime (825 = browser max)
--name: string # secret slug override (default: first DNS label)
] {
cd $REPO_ROOT
let ca_cert = "configs/pki/lab-ca.crt"
let ca_key_secret = "secrets/lab-ca-key.age"
if not ($ca_cert | path exists) {
error make {msg: "No CA found — run `skyg ca init` first"}
}
let key_names = (^cat secrets.nix | parse --regex '(\w+) = "ssh-' | get capture0)
if ($for not-in $key_names) {
error make {msg: $"Unknown recipient '($for)'. Known: ($key_names | str join ', ')"}
}
let slug = $name | default ($domain | split row "." | first)
let secret = $"secrets/($slug)-tls-key.age"
let cert = $"configs/pki/($domain).crt"
if ($cert | path exists) {
error make {msg: $"($cert) already exists — delete it manually to re-issue."}
}
ensure-secret-entry $secret ["ari" $for]
mkdir .tmp configs/pki
let ca_key = ".tmp/lab-ca-key.pem"
agenix -d $ca_key_secret | save -f $ca_key
let leaf_key = $".tmp/($slug)-tls-key.pem"
let csr = $".tmp/($slug).csr"
let ext = $".tmp/($slug)-ext.cnf"
$"basicConstraints=critical,CA:FALSE\nkeyUsage=critical,digitalSignature,keyEncipherment\nextendedKeyUsage=serverAuth\nsubjectAltName=DNS:($domain)\n" | save -f $ext
(openssl req -newkey rsa:2048 -nodes
-keyout $leaf_key -out $csr
-subj $"/CN=($domain)")
(openssl x509 -req -in $csr
-CA $ca_cert -CAkey $ca_key -CAcreateserial
-out $cert -days $days -sha256 -extfile $ext)
^cat $leaf_key | agenix -e $secret
rm -f $ca_key $leaf_key $csr $ext
print $"✅ Cert: ($cert) — commit this"
print $"✅ Key encrypted: ($secret)"
print $"Wire it up: age.secrets.($slug)-tls-key.file = ../($secret);"
}
+89
View File
@@ -0,0 +1,89 @@
use types.nu *
use profile.nu *
use helpers.nu *
export use remote.nu *
export use os.nu *
export use secrets.nu *
export use ca.nu *
export use pkgs.nu *
export use flake.nu *
export use build.nu *
export use render.nu *
export use hm.nu *
export def skyg [] {
print $REPO_ROOT
let subcmds = (help commands |
where name starts-with "skyg " |
each {|c| $c.name | split row " " | get 1 } |
uniq | str join ', ')
print $"Subcommands: ($subcmds)"
print "Run: skyg <subcommand> --help"
}
export def "skyg profiles" [only_remote: bool = false] {
if $only_remote {
valid_remote_profiles | print
} else {
valid_profiles | print
}
}
# --- Deprecated aliases (backward compatibility) ---
export def "skyg decrypt" [secret: string@secret-names] {
print $"(ansi yellow)Deprecated: use `skyg secrets show` instead(ansi reset)"
skyg secrets show $secret
}
export def "skyg encrypt" [
secret: string@secret-names,
source?: string,
--yaml
] {
print $"(ansi yellow)Deprecated: use `skyg secrets edit` instead(ansi reset)"
skyg secrets edit $secret $source --yaml=$yaml
}
export def "skyg compare-secret" [secret: string@secret-names] {
print $"(ansi yellow)Deprecated: use `skyg secrets compare` instead(ansi reset)"
skyg secrets compare $secret
}
export def "skyg secrets" [] {
print $"(ansi yellow)Deprecated: use `skyg secrets list` instead(ansi reset)"
skyg secrets list
}
export def "skyg rollback" [] {
print $"(ansi yellow)Deprecated: use `skyg os rollback` instead(ansi reset)"
skyg os rollback
}
export def "skyg update" [input_name?: string] {
print $"(ansi yellow)Deprecated: use `skyg flake update` instead(ansi reset)"
skyg flake update $input_name
}
export def "skyg check" [] {
print $"(ansi yellow)Deprecated: use `skyg flake check` instead(ansi reset)"
skyg flake check
}
export def "skyg check-flake-versions" [] {
print $"(ansi yellow)Deprecated: use `skyg flake check-versions` instead(ansi reset)"
skyg flake check-versions
}
export def "skyg build-image" [target: string] {
print $"(ansi yellow)Deprecated: use `skyg build image` instead(ansi reset)"
skyg build image $target
}
export def "skyg openwrt" [
router?: string,
--dry-run
] {
print $"(ansi yellow)Deprecated: use `skyg build openwrt` instead(ansi reset)"
skyg build openwrt $router --dry-run=$dry_run
}
+57
View File
@@ -0,0 +1,57 @@
use types.nu *
use helpers.nu *
# update some flakes
export def "skyg flake update" [input_name?: string@flake-inputs] {
cd $REPO_ROOT
if $input_name == null {
print "Updating all flakes..."
nix flake update | print
} else {
print $"Updating flake: ($input_name)"
nix flake update $input_name | print
}
git diff flake.lock | print
}
# Run nix flake check
export def "skyg flake check" [] {
nix flake check --no-build
}
# Validate that all versioned flake inputs use the same NixOS release
export def "skyg flake check-versions" [] {
let flake = "flake.nix"
if not ($flake | path exists) {
print "check-versions: flake.nix not found, skipping"
return
}
# Only scan url lines to avoid false positives from embedded script strings
let url_lines = (open $flake | lines | enumerate | where { |row|
($row.item | str contains "url") and ($row.item =~ 'release-\d+\.\d+')
})
let versions = ($url_lines
| each {|row| $row.item | parse --regex '.*release-(?P<version>\d+\.\d+).*' | get version }
| flatten
| uniq)
if ($versions | length) <= 1 {
print "check-versions: OK"
return
}
print "check-versions: mismatched NixOS release versions in flake.nix:"
print ""
for version in $versions {
print $" release-($version):"
$url_lines | where {|row| $row.item | str contains $"release-($version)" } | each { |row|
print $" line ($row.index + 1): ($row.item | str trim)"
}
}
print ""
print "All versioned inputs (home-manager, stylix, etc.) must use the same NixOS release."
error make {msg: "Mismatched NixOS release versions"}
}
+36
View File
@@ -0,0 +1,36 @@
export const REPO_ROOT = path self | path dirname | path dirname | path dirname
# Insert a secrets.nix entry for the given secret path if missing.
export def ensure-secret-entry [secret_path: string, recipients: list<string>] {
let file = "secrets.nix"
# Read via external cat — `open` type-guessing on .nix files is unreliable.
let content = (^cat $file)
if ($content | str contains $secret_path) {
return
}
let entry = $' "($secret_path)".publicKeys = [ ($recipients | str join " ") ];'
let lines = ($content | lines)
# Insert before the final top-level closing brace.
let closing = ($lines | enumerate | where item == "}" | last)
if $closing == null {
error make {msg: $"Could not find the final '}' in ($file) — refusing to edit"}
}
let new_lines = ($lines | insert $closing.index $entry)
($new_lines | str join "\n") + "\n" | save -f $file
print $"📝 Registered ($secret_path) in secrets.nix — review with git diff"
}
# Render a Gitea-style Go template to a standalone HTML file for local preview.
# Swaps the base/head + base/footer includes for a minimal shell and drops any
# remaining {{ ... }} directives so the page opens in a plain browser.
export def render-html-tpl [src: string, out: string] {
let head = '<!DOCTYPE html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Template preview</title><style>html,body{margin:0;background:#f6f8fa;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#1f2328;}</style></head><body>'
let foot = '</body></html>'
# Read via external cat — `open` is aliased to xdg-open in some Nu configs.
^cat $src
| str replace -a '{{template "base/head" .}}' $head
| str replace -a '{{template "base/footer" .}}' $foot
| str replace -a -r '\{\{[^}]*\}\}' ''
| save -f $out
}
+13
View File
@@ -0,0 +1,13 @@
use types.nu *
use profile.nu *
use helpers.nu *
# Home Manager operations
export def "skyg hm" [
action: string@hm-actions,
profile: string@valid_profiles = "ari",
] {
cd $REPO_ROOT
$"Running home-manager ($action) for profile ($profile)" | print
home-manager $action --flake $".#($profile)"
}
+22
View File
@@ -0,0 +1,22 @@
use types.nu *
use profile.nu *
use helpers.nu *
# Build local os
export def "skyg os" [
cmd: string@os-actions,
--build-host: string@remote_targets = "",
] {
cd $REPO_ROOT
mut runcmd = $"nh os ($cmd)"
if $build_host != "" {
$runcmd = $"($runcmd) --build-host ($build_host).lab.internal"
}
$runcmd | print
bash -c $runcmd
}
# rollback configuration
export def "skyg os rollback" [] {
sudo nixos-rebuild switch --rollback
}
+67
View File
@@ -0,0 +1,67 @@
use types.nu *
use helpers.nu *
# Update one or all packages. With a version, bumps explicitly.
# Without a version, auto-detects the latest from upstream.
#
# skyg pkgs update --all
# skyg pkgs update buzz-desktop
# skyg pkgs update buzz-desktop 0.6.0
export def "skyg pkgs update" [
pkg_name?: string@updatable-pkgs # Package to update (omit with --all)
version?: string # Explicit version (omit for auto-detect)
--all # Update all packages that have update.sh
] {
cd $REPO_ROOT
if $all and $version != null {
error make {msg: "Cannot use --all with a specific version. Run without --all to bump a single package."}
}
let targets = if $all {
updatable-pkgs
} else if $pkg_name != null {
[$pkg_name]
} else {
error make {msg: "Specify a package name or use --all to update all packages"}
}
if ($targets | length) == 0 {
print "No updatable packages found (no pkgs/*/update.sh scripts)"
return
}
print $"Updating ($targets | length) package\(s): ($targets | str join ', ')"
print ""
for pkg in $targets {
let update_script = $"pkgs/($pkg)/update.sh"
if not ($update_script | path exists) {
print $"⚠️ Skipping ($pkg) — no update.sh"
continue
}
print $"=== ($pkg) ==="
cd $"pkgs/($pkg)"
try {
if $version != null {
bash $"update.sh ($version)" | print
} else {
bash "update.sh" | print
}
} catch { |e|
print $"❌ Failed to update ($pkg): ($e)"
}
cd $REPO_ROOT
print ""
}
print ""
if $version != null {
print "Bump complete. Review with:"
git --no-pager diff pkgs/ | print
} else {
print "All updates complete. Review with:"
git --no-pager diff pkgs/ | print
}
}
+20
View File
@@ -0,0 +1,20 @@
const REPO_ROOT = path self | path dirname | path dirname | path dirname
export def valid_profiles [] {
cd $REPO_ROOT
nix eval .#nixosConfigurations --apply 'builtins.attrNames' --json err> /dev/null
| from json
}
export def valid_remote_profiles [] {
valid_profiles | where {|p| $p | str starts-with "hl-" }
}
export def remote_targets [] {
valid_remote_profiles | each {|p| $p | str replace "hl-" "" }
}
export def is-valid-profile [name: string, on_remote: bool = false] {
let pool = if $on_remote { valid_remote_profiles } else { valid_profiles }
($pool | where {|p| $p == $name} | length) == 1
}
+354
View File
@@ -0,0 +1,354 @@
use types.nu *
use profile.nu *
use helpers.nu *
use remote.utils.nu *
# Deploy to remote machine
export def "skyg remote" [
cmd: string@os-actions,
target: string@remote_targets = "",
--build-host: string@remote_targets = "", # Optional remote builder host (e.g. builder.lab.internal)
] {
cd $REPO_ROOT
mut target_host = $"root@($target).lab.internal"
mut profile = $"hl-($target)"
if not (is-valid-profile $profile true) {
print $"Invalid Remote Profile '(ansi green_bold)($target)(ansi reset)', please select one of:"
return (remote_targets)
}
$"Using [(ansi green_bold)($profile)(ansi reset)]" | print
$"($cmd) on ($target_host) with ($profile)" | print
mut runcmd = $"nh os ($cmd) --no-nom --target-host ($target_host) --ask .#($profile)"
if $build_host != "" {
$runcmd = $"($runcmd) --build-host ($build_host).lab.internal"
}
$runcmd | print
bash -c $runcmd
}
# Fresh-install a remote machine via nixos-anywhere, using its disko config.
# Always reformats every disk in the disko file — a second run is as destructive as the first.
# Missing disko file, live disk OS (without --force-wipe), or mistyped hostname all abort.
export def "skyg remote install" [
target: string@remote_targets,
--force-wipe, # wipe even if the host already runs NixOS from disk
] {
cd $REPO_ROOT
let target_host = $"root@($target).lab.internal"
let profile = $"hl-($target)"
if not (is-valid-profile $profile true) {
print $"Invalid Remote Profile '(ansi green_bold)($target)(ansi reset)', please select one of:"
return (remote_targets)
}
let disko_file = $"hosts/($profile).disko.nix"
if not ($disko_file | path exists) {
error make {msg: $"Missing disko config: ($disko_file). Refusing to install ($profile) without a disko layout."}
}
print ""
print $"(ansi red_bold)WARNING: this WIPES every disk listed in ($disko_file).(ansi reset)"
print "This is not a switch. Use `skyg remote switch` / `skyg remote boot` to update an installed host."
print ""
print "Disks in the disko file:"
let disks = (
open $disko_file
| lines
| where {|l| ($l | str contains "device") and ($l | str contains "=") }
| each {|l| $l | str trim }
)
for line in $disks {
print $" ($line)"
}
print ""
let ssh = $"ssh -o BatchMode=yes -o ConnectTimeout=5 -o StrictHostKeyChecking=accept-new ($target_host)"
let root_fstype = (try {
bash -c $"($ssh) 'findmnt -n -o FSTYPE /' 2>/dev/null" | str trim
} catch { "" })
if $root_fstype == "" {
print $"(ansi yellow)Could not SSH to ($target_host) to check for a live OS.(ansi reset)"
} else {
print $"Remote / fstype: ($root_fstype)"
let installer_fs = ["overlay" "tmpfs" "squashfs"]
if not ($root_fstype in $installer_fs) {
if not $force_wipe {
error make {msg: $"($target_host) already boots from disk (root fstype ($root_fstype)). Refusing to wipe. Use `skyg remote switch ($target)` to update, or pass --force-wipe to reinstall."}
}
print $"(ansi yellow)--force-wipe set: proceeding against a live disk OS.(ansi reset)"
} else {
print "Remote looks like an installer live image (ok to install)."
}
}
let confirm = input $"Type ($target) to continue: " | str trim
if $confirm != $target {
error make {msg: $"Aborted: typed '($confirm)', expected '($target)'."}
}
$"Installing [(ansi green_bold)($profile)(ansi reset)] on ($target_host) via nixos-anywhere, using ($disko_file)" | print
let runcmd = $"nix run github:nix-community/nixos-anywhere -- --flake .#($profile) ($target_host)"
$runcmd | print
let bash_path = which bash | get 0.path
with-env { SHELL: $bash_path } {
bash -c $runcmd
}
}
# Boot all remote hosts except the current machine (fwbook)
# Checks online status first, runs `skyg remote boot --build-host fwdesk <host>` for each online host,
# and writes a summary report to .tmp/boot-report.txt
export def "skyg remote boot-all" [] {
cd $REPO_ROOT
mkdir .tmp
let current_host = "fwbook"
let report_file = ".tmp/boot-report.txt"
# Discover remote targets from the flake (same logic as skyg remote)
let all_hosts = remote_targets | where {|h| $h != $current_host }
print $"Found ($all_hosts | length) candidate hosts excluding ($current_host)"
mut successes = []
mut failures = []
mut skipped = []
# Phase 1: sequential SSH reachability checks (fast)
mut online_hosts = []
for host in $all_hosts {
print $"\n=== Checking ($host) ==="
let target = $"root@($host).lab.internal"
let is_online = (try {
bash -c $"ssh -o BatchMode=yes -o ConnectTimeout=3 -o StrictHostKeyChecking=accept-new ($target) 'true' >/dev/null 2>&1"
true
} catch { false })
if not $is_online {
print $"(ansi yellow)OFFLINE(ansi reset): ($host)"
$skipped = ($skipped | append $host)
} else {
print $"(ansi green)ONLINE(ansi reset): ($host)"
$online_hosts = ($online_hosts | append $host)
}
}
# Phase 2: run boots in parallel (2 concurrent) without interactive prompts
if ($online_hosts | length) > 0 {
print "
Starting parallel boots (concurrency: 2)..."
let boot_results = ($online_hosts | par-each --threads 1 { |host|
let target_host = $"root@($host).lab.internal"
let profile = $"hl-($host)"
let runcmd = $"nh os boot --target-host ($target_host) .#($profile)"
print $runcmd
let ok = (try {
bash -c $runcmd
true
} catch {
false
})
{host: $host, success: $ok}
})
for r in $boot_results {
if $r.success {
$successes = ($successes | append $r.host)
print $"(ansi green)SUCCESS(ansi reset): ($r.host)"
} else {
$failures = ($failures | append $r.host)
print $"(ansi red)FAILED(ansi reset): ($r.host)"
}
}
}
# Write report
let timestamp = date now | format date "%Y-%m-%d %H:%M:%S"
let report = $"Boot Report - ($timestamp)
Total hosts considered: ($all_hosts | length)
Skipped offline: ($skipped | length) - ($skipped | str join ', ')
Successful: ($successes | length) - ($successes | str join ', ')
Failed: ($failures | length) - ($failures | str join ', ')
Details:
Online & Booted: ($successes | str join ', ')
Offline: ($skipped | str join ', ')
Failed: ($failures | str join ', ')
"
$report | save -f $report_file
print $"
Report written to ($report_file)"
print $report
}
export def "skyg remote status" [
target?: string@remote_targets,
--all # Check status of all remote hosts
] {
if $all {
skyg remote status-all
} else if $target != null {
get-remote-boot-info $target
} else {
error make {msg: "Specify a target host or use --all"}
}
}
# Check status of all remotes: generation, pending reboot, needs rebuild
export def "skyg remote status-all" [] {
cd $REPO_ROOT
mkdir .tmp
let current_host = "fwbook"
let report_file = ".tmp/status-report.txt"
let all_hosts = remote_targets | where {|h| $h != $current_host }
print $"Checking status for ($all_hosts | length) remotes..."
let results = ($all_hosts | par-each { |host|
let info = get-remote-boot-info $host
# Print each host's status as one block, as soon as it finishes.
let booted = (if ($info.booted | is-empty) { "-" } else { $info.booted | path basename })
let current = (if ($info.current | is-empty) { "-" } else { $info.current | path basename })
let reboot_line = if $info.reboot_pending { $"(ansi yellow)REBOOT PENDING(ansi reset)\n" } else { "" }
let build_line = if $info.needs_build { $"(ansi red)NEEDS NEW BUILD(ansi reset)" } else { $"(ansi green)UP TO DATE(ansi reset)" }
print $"($host) | Booted: ($booted) | Current: ($current)"
$info
})
return ($results | select host status reboot_pending needs_build)
}
# Reboot every remote host that is pending a reboot (booted-system != current-system).
# Detects pending hosts, lists them, asks for confirmation, then reboots each one at a
# time, waiting for it to come back online and sending a desktop notification when it does.
export def "skyg remote reboot-pending" [] {
cd $REPO_ROOT
mkdir .tmp
let current_host = "fwbook"
let report_file = ".tmp/reboot-pending-report.txt"
let all_hosts = remote_targets | where {|h| $h != $current_host }
print $"Checking ($all_hosts | length) remotes for pending reboots..."
# Phase 1: find hosts that are online and pending a reboot
mut pending = []
mut offline = []
mut up_to_date = []
for host in $all_hosts {
let target = $"root@($host).lab.internal"
let online = (try {
bash -c $"ssh -o BatchMode=yes -o ConnectTimeout=3 -o StrictHostKeyChecking=accept-new ($target) 'true' >/dev/null 2>&1"
true
} catch { false })
if not $online {
print $"(ansi yellow)OFFLINE(ansi reset): ($host)"
$offline = ($offline | append $host)
continue
}
let info = (try {
let booted = bash -c $"ssh -o BatchMode=yes ($target) 'readlink /run/booted-system' 2>/dev/null" | str trim
let current = bash -c $"ssh -o BatchMode=yes ($target) 'readlink /run/current-system' 2>/dev/null" | str trim
{booted: $booted, current: $current, pending: ($booted != $current)}
} catch {
{booted: "", current: "", pending: false}
})
if $info.pending {
print $"(ansi blue)REBOOT PENDING(ansi reset): ($host) booted=($info.booted | path basename) current=($info.current | path basename)"
$pending = ($pending | append $host)
} else {
print $"(ansi green)UP TO DATE(ansi reset): ($host)"
$up_to_date = ($up_to_date | append $host)
}
}
if ($pending | length) == 0 {
print ""
print "No remotes are pending a reboot."
return
}
# Phase 2: confirm before rebooting anything
print ""
print $"(ansi yellow_bold)($pending | length) remote\(s\) pending a reboot:(ansi reset)"
for host in $pending {
print $" - ($host)"
}
print ""
let confirm = (input $"Reboot these ($pending | length) host\(s\)? [y/N]: " | str trim | str downcase)
if not ($confirm in ["y" "yes"]) {
print "Aborted — no hosts were rebooted."
return
}
# Phase 3: reboot each pending host one at a time, waiting for it to come back
mut rebooted = []
mut failed = []
for host in $pending {
let target = $"root@($host).lab.internal"
print $"\n=== Rebooting ($host) ==="
# Capture the boot id so we can confirm the host actually rebooted.
let boot_id_before = (try {
bash -c $"ssh -o BatchMode=yes ($target) 'cat /proc/sys/kernel/random/boot_id' 2>/dev/null" | str trim
} catch { "" })
let runcmd = $"ssh -o BatchMode=yes -o ConnectTimeout=5 ($target) 'systemctl reboot'"
print $runcmd
# The SSH connection drops as the host shuts down, so a non-zero exit is
# expected here and does not mean the reboot failed.
try {
bash -c $"($runcmd) 2>/dev/null"
} catch { }
print $"Waiting for ($host) to shut down..."
let went_down = (wait-for-host $target false 90)
if not $went_down {
print $"(ansi yellow)($host) did not go offline within 90s — continuing to wait for it to come back.(ansi reset)"
}
print $"Waiting for ($host) to come back online..."
let came_up = (wait-for-host $target true 300)
if $came_up {
let boot_id_after = (try {
bash -c $"ssh -o BatchMode=yes ($target) 'cat /proc/sys/kernel/random/boot_id' 2>/dev/null" | str trim
} catch { "" })
let confirmed = ($boot_id_before != "" and $boot_id_after != "" and $boot_id_before != $boot_id_after)
if $confirmed {
print $"(ansi green)($host) is back online (reboot confirmed)(ansi reset)"
} else {
print $"(ansi green)($host) is back online(ansi reset)"
}
notify $"✅ ($host) rebooted" "Back online and reachable"
$rebooted = ($rebooted | append $host)
} else {
print $"(ansi red)($host) did not come back online within 300s(ansi reset)"
notify $"❌ ($host) did not come back" "Still unreachable after 300s"
$failed = ($failed | append $host)
}
}
# Write report
let timestamp = date now | format date "%Y-%m-%d %H:%M:%S"
let report = $"Reboot-Pending Report - ($timestamp)
Total hosts considered: ($all_hosts | length)
Pending reboot: ($pending | length) - ($pending | str join ', ')
Rebooted: ($rebooted | length) - ($rebooted | str join ', ')
Failed to return: ($failed | length) - ($failed | str join ', ')
Offline: ($offline | length) - ($offline | str join ', ')
Up to date: ($up_to_date | length) - ($up_to_date | str join ', ')
"
$report | save -f $report_file
print $"
Report written to ($report_file)"
print $report
}
+60
View File
@@ -0,0 +1,60 @@
use types.nu *
use profile.nu *
export def get-remote-boot-info [ host: string@remote_targets ] {
let target = $"root@($host).lab.internal"
let is_online = (try {
bash -c $"ssh -o BatchMode=yes -o ConnectTimeout=3 ($target) 'true' >/dev/null 2>&1"
true
} catch { false })
if (not $is_online) {
return {host: $host, status: "offline", booted: "", current: "", reboot_pending: false, needs_build: false, local_toplevel: ""}
}
return (try {
# Fetch remote system paths and the local toplevel concurrently.
let fetched = (["remote" "local"] | par-each {|what|
if $what == "remote" {
bash -c $"ssh ($target) 'readlink /run/booted-system; readlink /run/current-system' 2>/dev/null" | lines
} else {
try {
bash -c $"nix eval --raw '.#nixosConfigurations.hl-($host).config.system.build.toplevel.outPath' 2>/dev/null || true" | str trim
} catch { "" }
}
})
let booted = ($fetched.0 | get 0? | default "")
let current = ($fetched.0 | get 1? | default "")
let local_toplevel = $fetched.1
let reboot_pending = ($booted != $current)
let needs_build = if $local_toplevel == "" { "unknown" } else { $local_toplevel != $current }
{host: $host, status: "online", booted: $booted, current: $current, reboot_pending: $reboot_pending, needs_build: $needs_build, local_toplevel: $local_toplevel}
} catch {
{host: $host, status: "error", booted: "", current: "", reboot_pending: false, needs_build: false, local_toplevel: ""}
})
}
# Poll SSH until the host reaches the desired reachability, or the timeout elapses.
def wait-for-host [target: string, want_online: bool, timeout: int] {
let deadline = (date now) + ($timeout * 1sec)
while (date now) < $deadline {
let online = (try {
bash -c $"ssh -o BatchMode=yes -o ConnectTimeout=3 ($target) 'true' >/dev/null 2>&1"
true
} catch { false })
if $online == $want_online {
return true
}
sleep 3sec
}
false
}
# Send a desktop notification if notify-send is available; never fail the caller.
def notify [title: string, body: string] {
try {
^notify-send $title $body
} catch { }
}
+27
View File
@@ -0,0 +1,27 @@
use types.nu *
use helpers.nu *
# Render a Gitea HTML template and serve it locally for preview.
# Runs in the foreground — Ctrl+C to stop. Wrap it in nohup yourself to detach.
export def "skyg render html-tpl" [
file: string@html-tpl-files # Template to render (e.g. hosts/hl-minipc1/services/gitea-home.tmpl)
--port: int = 8787 # Port for the local preview server
] {
cd $REPO_ROOT
let src = ($file | path expand)
if not ($src | path exists) {
error make {msg: $"Template not found: ($file)"}
}
let out_dir = ".tmp/render-html-tpl"
mkdir $out_dir
let name = ($src | path basename | str replace -r '\.tmpl$' '')
let out = $"($out_dir)/($name).html"
render-html-tpl $src $out
print $"Rendered ($file) -> ($out)"
print $"Preview: http://127.0.0.1:($port)/($name).html"
print "Press Ctrl+C to stop."
^python3 -m http.server $port --bind 127.0.0.1 --directory $out_dir
}
+86
View File
@@ -0,0 +1,86 @@
use types.nu *
use helpers.nu *
# List all secret names
export def "skyg secrets list" [] {
secret-names
}
# Decrypt a secret from secrets/ folder
export def "skyg secrets show" [secret: string@secret-names] {
cd $REPO_ROOT
let src = $"secrets/($secret).age"
if not ($src | path exists) {
error make {msg: $"Secret not found: ($src)"}
}
mkdir .tmp
let dest = $".tmp/unencrypted-($secret)"
agenix -d $src | save -f $dest
print $"Decrypted to ($dest)"
return $dest
}
# Encrypt a file to secrets/ folder (re-encrypts using agenix)
# --yaml Validate the content as YAML (via yq) before encrypting
export def "skyg secrets edit" [
secret: string@secret-names,
source?: string,
--yaml # Validate the content as YAML (via yq) before encrypting
] {
cd $REPO_ROOT
let src = $source | default $".tmp/unencrypted-($secret)"
if not ($src | path exists) {
let encrypted = $"secrets/($secret).age"
if ($encrypted | path exists) {
agenix -d $encrypted | save -f $src
} else {
touch $src
}
}
vi $src
if $yaml {
# `complete` captures stdout/stderr/exit_code; `try/catch` guards a missing yq
let lint = (
try {
yq e '.' $src | complete
} catch { null }
)
if $lint == null {
print $"❌ Could not run yq — is it on PATH? Add 'yq' to the devShell in flake.nix."
return
}
if $lint.exit_code != 0 {
print $"❌ YAML validation failed for ($src):"
print ($lint.stderr | str trim)
print $"Fix the syntax, then re-run: skyg secrets edit ($secret) --yaml"
return
}
print $"✅ YAML valid: ($src)"
}
let dest = $"secrets/($secret).age"
cat $src | agenix -e $dest
print $"Encrypted ($dest)"
return $dest
}
# Compare unencrypted local version with encrypted version of a secret
export def "skyg secrets compare" [secret: string@secret-names] {
cd $REPO_ROOT
let unencrypted = $".tmp/unencrypted-($secret)"
let encrypted = $"secrets/($secret).age"
let temp_decrypted = $"/tmp/skyg-compare-($secret)-($env.USER)-(random uuid)"
agenix -d $encrypted | save -f $temp_decrypted
print $"Comparing ($unencrypted) with decrypted ($encrypted)"
try {
print $"diff -u $(unencrypted) $(temp_decrypted)"
diff -u $unencrypted $temp_decrypted | print
} catch {
print "Files are identical"
}
rm -f $temp_decrypted
}
+61
View File
@@ -0,0 +1,61 @@
const REPO_ROOT = path self | path dirname | path dirname | path dirname
export def hm-actions [] {
["switch", "build"]
}
export def os-actions [] {
[
"test"
"dry-activate"
"run"
"switch"
"build"
"boot"
]
}
export def image-targets [] {
["iso", "pi1", "pi2"]
}
export def secret-names [] {
cd $REPO_ROOT
glob secrets/*.age | each {|f| $f | path basename | str replace ".age" "" }
}
export def updatable-pkgs [] {
cd $REPO_ROOT
glob "pkgs/*/update.sh"
| each {|f| $f | path dirname | path basename }
}
# Gitea HTML templates, for `skyg render html-tpl` tab-completion.
export def html-tpl-files [] {
cd $REPO_ROOT
glob "**/*.tmpl"
| each {|f| $f | path relative-to $REPO_ROOT }
| sort
}
# Flake input names from flake.nix
export def flake-inputs [] {
cd $REPO_ROOT
open flake.nix
| lines
| where {|l| $l =~ '^\s+\w+\.url\s*=' }
| each {|l| $l | str trim | split row "." | first }
| uniq
}
# OpenWrt router names from openwrt-routers/*.nix
export def router-names [] {
cd $REPO_ROOT
glob openwrt-routers/*.nix | each {|f| $f | path basename | str replace ".nix" "" }
}
# CA recipient names from secrets.nix
export def ca-recipients [] {
cd $REPO_ROOT
^cat secrets.nix | parse --regex '(\w+) = "ssh-' | get capture0
}
+3 -146
View File
@@ -1,147 +1,4 @@
#!/usr/bin/env bash
set -e
# Bootstrap
set -e
ROOT_FOLDER=$(realpath $0 | xargs dirname | xargs dirname)
. $ROOT_FOLDER/bin/extra/common.sh
# Bootstrap
MENAME=$(basename $0)
LOCKS_FOLDER=/tmp/skyg/$ROOT_FOLDER/.tmp/.locks
LOCK_FILE=$LOCKS_FOLDER/.built_via_skg
mkdir -p $LOCKS_FOLDER
function lock() {
touch $LOCK_FILE
}
function unlock() {
rm -f $LOCK_FILE
}
function run-build() {
: Run nixos build and emits difference
:
unlock
echo "sudo nixos-rebuild build --flake ."
sudo nixos-rebuild build --flake .
lock
run-diff
}
function run-switch() {
: Runs nixos switch and ensures that we actually saw a build\'s difference
:
if [ ! -f $LOCK_FILE ]; then
run-build
echo "Do you want to continue? (y/N)"
read -r answer
if [[ $answer =~ ^[yY]$ ]]; then
echo "Continuing..."
else
echo "Exiting."
exit 1
fi
fi
sudo nixos-rebuild switch --flake .
unlock
}
function run-rollback() {
: Rolls back to last configuration
:
sudo nixos-rebuild switch --rollback
}
function run-update() {
: Updates a single flake and runs update
: Usage: skyg update {name-of-input}
input_name=${1}
if [ ! -z $input_name ]; then
cmd="nix flake lock --update-input $input_name"
else
cmd="nix flake update"
fi
echo $cmd
$cmd
}
function run-diff() {
: Diff results to current system
:
echo -e "Running ${YELLOW_BOLD}nvd${NC}"
sudo nvd diff /run/current-system result | sed "s/^/\t│ /"
echo "press any key to continue "
read
echo -e "\t└──${NC}DONE ${BLUE_BOLD}nvd${NC}"
echo -e "Running ${YELLOW_BOLD}diff${NC}"
diff --color=always -r /run/current-system result > result.diff
cat result.diff | sed "s/^/\t│ /"
echo -e "\t└──${NC}DONE ${BLUE_BOLD}diff${NC} @ ${pwd}/result.diff"
}
function run-remote-deploy() {
: Builds locally the system and deploys to an external system
: Usage: skyg remote-deploy {target} {cmd}
target=${1}
cmd=${2}
$ROOT_FOLDER/bin/extra/build-remote-nixos ${target} ${cmd}
}
function run-build-all() {
: Builds all remote and local configurations
: Usage: skyg build-all
mkdir -p results
nix flake show --json | jq -r -c '.nixosConfigurations | keys[]' | while read i; do
echo "[[SKYG]] Building current $i"
sudo nixos-rebuild build --flake .#$i
rm -f results/$i-result
mv result results/$i-result
done
nix flake update
rm -f diffs
mkdir diffs
nix flake show --json | jq -r -c '.nixosConfigurations | keys[]' | while read i; do
echo "[[SKYG]] Building new $i"
sudo nixos-rebuild build --flake .#$i
rm -f results/$i-result-post
mv result results/$i-result-post
nvd diff results/$i-result results/$i-result-post > diffs/$i
done
}
function list_run_functions() {
declare -F | awk '$3 ~ /^run-/{sub("run-", "", $3); print $3}'
}
all_functions=$(list_run_functions)
for f in ${all_functions[@]}; do
if [ "$1" == "$f" ]; then
echo -e "Running ${BLUE_BOLD}$1${NC}"
run-$1 ${@:2}
ecode=$(echo $?)
echo -e "\t└──${NC}DONE ${BLUE_BOLD}$1${NC}"
exit $ecode
fi
done
echo -e "Invalid Command '$1' please select one of${NC}"
for function_name in $all_functions; do
start_line=$(grep -n -m 1 "function run-$function_name" "${BASH_SOURCE[0]}" | cut -d: -f1)
end_line=$(awk "NR > $start_line && /^}/ {print NR; exit}" "${BASH_SOURCE[0]}")
function_body=$(sed -n "${start_line},${end_line}p" "${BASH_SOURCE[0]}")
description=$(echo "$function_body" | sed -n '/^\s*:/,/^\s*[^:]/p' | sed 's/^\s*:\s*/ │ /')
echo -e "$BOLD\r$MENAME \`${function_name}\`$NC\n${description}\n └──────────\n"
done
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
LIB="$SCRIPT_DIR/lib/cmds.nu"
exec nu --commands "use \"$LIB\" *; skyg $*"
+202
View File
@@ -0,0 +1,202 @@
#!/usr/bin/env nu
# Temperature monitoring script for laptop
# Collects CPU/GPU temperatures, stores them with timestamps, and displays a graph
def main [
--duration: int = 60 # Duration to collect data in seconds (default: 60)
--interval: int = 2 # Interval between readings in seconds (default: 2)
--output: string = "~/.cache/temp-data.csv" # Output file for temperature data
--graph # Show graph at the end
--show-graph # Just show graph from existing data (don't collect)
] {
let data_file = ($output | path expand)
if $show_graph {
show-graph $data_file
return
}
let cache_dir = ($data_file | path dirname)
# Create cache directory if it doesn't exist
if not ($cache_dir | path exists) {
mkdir $cache_dir
}
# Initialize or append to CSV file with headers if empty
if not ($data_file | path exists) or (open $data_file | is-empty) {
"timestamp,cpu_temp,gpu_temp,max_temp" | save -f $data_file
}
print $"🌡️ Temperature Monitor - Collecting data for ($duration)s with ($interval)s intervals..."
print $"📊 Data will be saved to: ($data_file)\n"
let iterations = (($duration / $interval) | math round)
for i in 1..$iterations {
let timestamp = (date now | format date '%Y-%m-%d %H:%M:%S')
# Get temperature reading
let temp_info = (get-temperature)
let cpu_temp = $temp_info.cpu
let gpu_temp = $temp_info.gpu
let max_temp = (
if ($cpu_temp != "N/A") and ($gpu_temp != "N/A") {
[($cpu_temp | into float) ($gpu_temp | into float)] | math max
} else if ($cpu_temp != "N/A") {
$cpu_temp | into float
} else if ($gpu_temp != "N/A") {
$gpu_temp | into float
} else {
"N/A"
}
)
let row = $"($timestamp),($cpu_temp),($gpu_temp),($max_temp)"
# Append to CSV file
let content = (open $data_file --raw)
($content | str trim) + "\n" + $row | save -f $data_file
print $"✓ ($timestamp) | CPU: ($cpu_temp)°C | GPU: ($gpu_temp)°C | Max: ($max_temp)°C"
if $i < $iterations {
sleep ($interval | into duration -u sec)
}
}
print $"\n✅ Data collection complete!"
# Always show the graph at the end
show-graph $data_file
print $"📁 Data saved to: ($data_file)"
}
def get-temperature [] {
# Try lm_sensors first (most reliable)
if (which sensors | is-not-empty) {
get-temp-sensors
} else if (which acpi | is-not-empty) {
get-temp-acpi
} else if ("/sys/class/thermal/thermal_zone0/temp" | path exists) {
get-temp-sysfs
} else {
{ cpu: "N/A", gpu: "N/A" }
}
}
def get-temp-sensors [] {
try {
# Try to get CPU temp from k10temp (AMD)
let cpu_temp = (
try {
sensors k10temp-pci-00c3 | grep "Tctl" | grep -oE "[0-9]+\\.[0-9]+" | head -1
} catch {
# Fallback: look in all sensors output
sensors | grep -i "Tctl\|Package" | head -1 | grep -oE "[0-9]+\\.[0-9]+" | head -1
}
)
# Try to get GPU temp from amdgpu
let gpu_temp = (
try {
sensors amdgpu-pci-c100 | grep "edge" | grep -oE "[0-9]+\\.[0-9]+" | head -1
} catch {
"N/A"
}
)
{ cpu: $cpu_temp, gpu: $gpu_temp }
} catch {
{ cpu: "N/A", gpu: "N/A" }
}
}
def get-temp-acpi [] {
try {
let temp = (acpi -t | head -1 | grep -oE "[0-9]+\\.[0-9]+" | first)
{ cpu: $temp, gpu: "N/A" }
} catch {
{ cpu: "N/A", gpu: "N/A" }
}
}
def get-temp-sysfs [] {
try {
let raw_temp = (open /sys/class/thermal/thermal_zone0/temp | str trim | into float)
let temp = ($raw_temp / 1000)
{ cpu: $temp, gpu: "N/A" }
} catch {
{ cpu: "N/A", gpu: "N/A" }
}
}
def show-graph [file: string] {
print "\n📈 Temperature Graph:\n"
try {
# Read the CSV file as a regular table
let data = (open $file)
# Filter out rows where max_temp is not a number
let temps = (
$data
| where { $in.max_temp != "N/A" }
| select timestamp max_temp
| rename time temp
| each { |row|
{
time: $row.time
temp: ($row.temp | into float)
}
}
)
if ($temps | is-empty) {
print "No valid temperature data to display."
return
}
# Find min/max for scaling
let min_temp = ($temps | get temp | math min)
let max_temp = ($temps | get temp | math max)
let temp_range = ($max_temp - $min_temp)
let graph_height = 20
# Create simple ASCII graph
let graph = (
$temps
| each { |item|
let normalized = (
if ($temp_range == 0) {
0.5
} else {
(($item.temp - $min_temp) / $temp_range)
}
)
let bar_height = (($normalized * $graph_height) | math round)
let bar = (
if $bar_height > 0 {
0..<$bar_height | each { "█" } | str join ""
} else {
"."
}
)
let time_only = ($item.time | str substring 11..19)
$"($time_only): ($bar) ($item.temp)°C"
}
| str join "\n"
)
print $graph
print $"\nMin: ($min_temp | math round -p 1)°C | Max: ($max_temp | math round -p 1)°C | Range: ($temp_range | math round -p 1)°C"
} catch { |err|
print $"Error displaying graph: ($err)"
}
}
main
+39
View File
@@ -0,0 +1,39 @@
# configs/
Application configuration files that are symlinked into `~/.config/` via
`system.userActivationScripts` (using `skygUtils.makeHyperlinkScriptToConfigs`
from `modules/skyg-utils.nix`).
Most entries link `~/.config/<name>` -> `configs/<name>`. Some are host-scoped
and live under `configs/<hostName>/` — e.g. the Hyprland module links
`~/.config/hypr` -> `configs/<hostName>/hypr` (defaulting to the machine's
hostName). `makeHyperlinkScriptToConfigs` takes an optional `targetPath` for
these cases where the source subdir and `~/.config` target differ.
## Contents
| Path | Description |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `niri/` | Niri Wayland compositor config (legacy shared location — will be removed after hosts migrate to `<hostName>/niri/`) |
| `fwbook/niri/` | Niri config for `fwbook`; linked to `~/.config/niri` by the `skyg.nixos.desktop.tiler.niri` module (mirrors the hyprland pattern) |
| `fwbook/hypr/` | Hyprland config for `fwbook` (scrolling layout; Omarchy/nixarchy shell — noctalia binds+rules parked in `conf/noctalia/`); linked to `~/.config/hypr` |
| `fwbook/omarchy/` | Omarchy (nixarchy) shell config for `fwbook` (`shell.json`, plugins, backgrounds); linked to `~/.config/omarchy` by `hosts/fwbook/packages.nix` |
| `hl-fwdesk/hypr/` | Hyprland config for `hl-fwdesk` (Steam console); **baked into the build** via `mountAsSource`, linked to `~/.config/hypr` |
| `hl-pi1/hypr/` | Hyprland config for `hl-pi1` (clock box); linked to `~/.config/hypr` |
| `hl-fws1/hypr/` | Hyprland config for `hl-fws1` (remote slim desktop); **baked into the build** via `mountAsSource`, linked to `~/.config/hypr` |
| `hl-pi1/quickshell/` | Quickshell configs for `hl-pi1` (full-screen clock + calendar); linked to `~/.config/quickshell` |
| `fwbook/quickshell/` | Quickshell configs for `fwbook` (scrolling overview); linked to `~/.config/quickshell` |
| `extra.nu` | Extra NuShell config sourced at shell startup |
| `fwbook.knsv` | fwbook-specific Kanshi display profile |
| `hypr-types/hl.lua` | Shared EmmyLua type stubs for the `hl` global; each host's Hyprland `.luarc.json` points here via `workspace.library` |
| `pki/` | Public certs of the lab internal CA (`lab-ca.crt` + issued leaves), managed by `skyg ca`; **not** symlinked to `~/.config` — see `pki/ABOUTME.md` |
## Notes
- Changes here take effect on next login or when the activation script runs
- These are **not** NixOS options — they are plain config files managed as repo content
- The symlink mechanism is defined in `modules/skyg-utils.nix`
- Hosts can embed their config in the build by setting
`configLink.mountAsSource = true`; the dir is then read from the flake's
store path (`skyg.rootDir`) instead of the live `~/nixos-setup/configs`
checkout. See `modules/nixos/desktop/tiler/hyprland.nix`.
+11
View File
@@ -0,0 +1,11 @@
def rocm-monitor [cacheFile: string = "/tmp/rocm-monitor.jsonl", timeout: duration = 1sec] {
if ($cacheFile | path exists) {
rm $cacheFile
}
loop {
clear
rocm-smi --showmemuse --showuse --json | save --append $cacheFile
tail -n1 $cacheFile | from json --objects | flatten | print
sleep $timeout
}
}
Binary file not shown.
+6
View File
@@ -0,0 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"workspace.library": ["../../hypr-types"],
"diagnostics.globals": ["hl"],
"runtime.version": "Lua 5.4"
}
+13
View File
@@ -0,0 +1,13 @@
{
"languages": {
"Lua": {
"formatter": {
"external": {
"command": "stylua",
"arguments": ["-"]
}
},
"format_on_save": "on"
}
}
}
+121
View File
@@ -0,0 +1,121 @@
# configs/fwbook/hypr/
Host-specific Hyprland configuration for `fwbook`. Symlinked to `~/.config/hypr`
by the `skyg.nixos.desktop.tiler.hyprland` module, which defaults its
`configName` to the machine hostName (`configs/${hostName}/hypr`).
## Why it lives here (and not configs/hypr)
The Hyprland module links `configs/<configName>/hypr` -> `~/.config/hypr`, with
`configName` defaulting to the hostName. Keeping the config under
`configs/fwbook/` lets each host own its own Hyprland tweaks (monitors, etc.)
without stepping on other machines. The old shared `configs/hypr/` (waybar +
hyprpanel) was removed when this replaced it.
## Config format: Lua
Written in **Lua** (`hyprland.lua`), not hyprlang. Hyprland 0.55+ deprecated
hyprlang in favor of Lua, and reads `~/.config/hypr/hyprland.lua`. Files are
split under `conf/` and pulled in with `require()`.
> The folder is named `conf`, not `hyprland.d`, because Hyprland's `require()`
> treats `.` as a path separator — `require("hyprland.d/env")` would resolve to
> `hyprland/d/env`.
## Design
- **Layout:** Hyprland's native `scrolling` layout (0.54+), no plugins required.
This mirrors niri's scrollable-tiling model. See `conf/general.lua`.
- **Shell:** the Omarchy (nixarchy) shell, launched as `omarchy-launch-shell` in
`conf/autostart.lua` via `hl.on("hyprland.start", ...)`. Launched with
`setpriv --ambient-caps -all` to drop capabilities inherited from the
compositor; without it, D-Bus calls inside quickshell-based apps fail silently
(hyprwm/Hyprland#14844). There is intentionally no waybar/hyprpanel. Noctalia's
binds and window rule are parked in `conf/noctalia/` (not required by
`hyprland.lua`); see `hosts/fwbook/packages.nix` for the shell package wiring.
`conf/omarchy/` maps the same keys to the Omarchy shell's commands
(`omarchy-menu` / `omarchy-shell`).
- **Keybinds:** `conf/keybindings.lua` mirrors `configs/niri/shared/binds.kdl`
and `configs/niri/dms/binds.kdl` as closely as Hyprland allows. `Mod+Alt+E`
opens this file in Zed (`zeditor`), mirroring niri's `Mod+Alt+E` ->
`shared/binds.kdl`. Windows are moved around with `Mod+Ctrl+arrows`
(`Mod+Ctrl+Left/Right` move in a direction, `Mod+Ctrl+Up/Down` move to a
workspace), and the `Mod+Shift` media/volume binds mirror niri's "Basic Sound
Control" block. Hyprland groups/tabs are intentionally unused.
- **Overview:** A standalone Quickshell config (`configs/fwbook/quickshell/overview/`,
symlinked to `~/.config/quickshell/overview` by the
`skyg.nixos.desktop.tiler.quickshell` module) provides a niri-like scrolling
overview — a vertical stack of workspace rows, each a horizontal strip of
that workspace's windows with live screencopy previews. It runs as its own
`qs -c overview` daemon (autostarted in `conf/autostart.lua`), toggled over
Quickshell's IPC (`qs -c overview ipc call overview toggle`) from `Mod+Tab`
(`conf/keybindings.lua`) and a 4-finger swipe up/down (`conf/inputs.lua`).
Arrow keys move the selection, Enter focuses + closes, Esc cancels, `M`
cycles to the next monitor, 1-9 jump straight to a monitor by index. See
`configs/fwbook/quickshell/ABOUTME.md` for the QML implementation.
## Files
```
hypr/
├── hyprland.lua # entry point; require()s conf/*.lua in order
├── screen-record.sh # wf-recorder toggle (bound to Mod+R)
├── speak-selection.nu # piper TTS of primary selection (bound to Mod+M); press again to stop; --cache reuses audio
├── xdph.conf # xdph screencopy workaround (force_shm); hyprlang, read by xdph itself
├── .luarc.json # lua-language-server config (library = ../../hypr-types)
├── dms/ # DMS-auto-generated Hyprland overrides (colors/layout/windowrules);
│ # not loaded by default — require() them from hyprland.lua to enable
└── conf/
├── env.lua # cursor size + Wayland/Qt/Electron env hints (hl.env)
├── general.lua # scrolling layout, gaps/border/rounding (hl.config)
├── animations.lua # workspaces slide = "slidevert" (niri-like); only the `workspaces`
│ # leaf overridden — other styles: slide, fade, slidefade, slidefadevert
├── monitors.lua # hl.monitor per display (from configs/niri/.../outputs.kdl)
├── inputs.lua # touchpad tap + natural scroll, kb us, hl.gesture (incl. Mod+swipe workspace-to-monitor)
├── window-rules.lua # hl.window_rule floats for small dialogs/utilities
├── keybindings.lua # niri binds, scrolling dispatchers (hl.bind/hl.dsp); Mod+Tab toggles the Quickshell overview; Mod+Ctrl moves windows, Mod+Shift is media/volume
├── autostart.lua # Omarchy (nixarchy) shell + Quickshell overview via setpriv (hl.on hyprland.start; drops compositor caps)
├── omarchy/ # Omarchy shell binds (index/binds.lua) — same keys as
│ # noctalia, mapped to omarchy-menu / omarchy-shell
└── noctalia/ # parked noctalia binds + window rule (index/binds/window.lua);
# not required by hyprland.lua while the Omarchy shell runs
```
## Bindings without a clean 1:1 niri mapping
- `Mod+Shift+H` (show-hotkey-overlay) — no native Hyprland equivalent; left commented.
- `Mod+Escape` (toggle-keyboard-shortcuts-inhibit) — no native equivalent; omitted.
- `Mod+C` (center-column) — Hyprland runs the `focus current` scrolling dispatch.
- `Mod+Ctrl+F` (reset-window-height) — the scrolling layout has no per-window
height reset, so it maps to `layout "fit active"` (resets the focused column
to full width).
- `Mod+Tab` (toggle-overview) — the Quickshell scrolling overview (see above);
previously a pure-Lua wofi picker, then the ScrollOverview plugin, and
`cyclenext` before that.
## Touchpad gestures (niri parity)
niri's 3-finger swipes are mirrored in `conf/inputs.lua`:
- **Horizontal** → `scroll_move` (scroll through columns along the tape)
- **Vertical** → `workspace` (switch workspaces up/down)
- **Mod + swipe (any direction)** → move the whole workspace to the monitor in
that direction (`hyprctl dispatch movecurrentworkspacetomonitor`), mirroring
niri's `Mod+TouchpadScroll*` binds. Swipe direction maps to the same monitor
direction (up→up, down→down, left→left, right→right).
- **4-finger up/down** → open/close the Quickshell scrolling overview (see
Overview above). `hl.gesture` is a discrete trigger, so there's no
swipe-progress animation.
> The gesture action is `scroll_move` (underscore), not `scrollmove`. The
> `mods = "SUPER"` mask is what lets the Mod + swipe variants coexist with the
> plain swipes. Both require a Hyprland new enough to expose configurable Lua
> gestures (0.55+). The older `scrollmove` name and the `scrollmove` action do
> not exist — they error with "unknown action".
## Behavior deltas from the old hyprlang config
- `Ctrl+Alt+Delete` runs `uwsm stop` (not the `exit` dispatcher). The Hyprland
wiki warns UWSM users that `exit` breaks the ordered shutdown sequence.
- `Mod+Shift+-/=` (window height) uses a fixed pixel delta instead of a percent,
since the Lua `window.resize` dispatcher takes pixels, not `%`.
+28
View File
@@ -0,0 +1,28 @@
-- =========================
-- Animations
-- =========================
-- Animation to Mimic Niri's up/down slide for workspaces
hl.animation({
leaf = "workspaces",
enabled = true,
speed = 2,
bezier = "default",
style = "slidevert",
})
hl.animation({
leaf = "windows",
enabled = true,
speed = 5,
bezier = "default",
style = "slidefade 60%",
})
hl.animation({
leaf = "windowsMove",
enabled = true,
speed = 5,
bezier = "default",
style = "slidefade 80%",
})
+11
View File
@@ -0,0 +1,11 @@
-- =========================
-- Autostart
-- =========================
local function autostart()
-- hl.exec_cmd("setpriv --ambient-caps -all -- noctalia")
hl.exec_cmd("setpriv --ambient-caps -all -- omarchy-launch-shell")
hl.exec_cmd("setpriv --ambient-caps -all -- qs -c overview")
hl.exec_cmd("setpriv --ambient-caps -all -- skygqts workspace-manager")
end
hl.on("hyprland.start", autostart)
hl.bind("SUPER + SHIFT + A", autostart)
+107
View File
@@ -0,0 +1,107 @@
-- =========================
-- Environment
-- =========================
-- Mirrors the environment block in configs/niri/shared/general.kdl.
hl.env("XCURSOR_SIZE", "24")
hl.env("XCURSOR_THEME", "oreo_spark_orange_bordered_cursors")
hl.env("HYPRCURSOR_SIZE", "24")
hl.env("HYPRCURSOR_THEME", "")
-- No HYPRCURSOR_THEME set: no hyprcursor themes are installed, so Hyprland
-- falls back to XCursor (XCURSOR_THEME) rather than showing its built-in default.
hl.env("NIXOS_OZONE_WL", "1")
hl.env("QT_QPA_PLATFORM", "wayland")
hl.env("QT_WAYLAND_DISABLE_WINDOWDECORATION", "1")
hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto")
---@param s string
---@return string
local function escape_pattern(s)
return (s:gsub("([%.%-%+%[%]%(%)%$%^%%%?%*])", "%%%1"))
end
---@param url string
---@return fun(w: HL.Window): boolean
local function make_target_validation_for_chromium_apps(url)
local host = url:match("^https?://([^/:]+)")
local host_pattern = escape_pattern(host)
---@param w HL.Window
---@return boolean
return function(w)
if not w.class then
return false
end
return w.class:match("^chrome%-" .. host_pattern)
end
end
---Focus an already-tagged window if one exists.
---@param tag string
---@return boolean
local function attempt_to_switch_to_existing(tag)
local existing = hl.get_windows({ tag = tag })
if existing and #existing > 0 then
hl.dispatch(hl.dsp.focus({ window = existing[1] }))
return true
end
return false
end
---@param tag string
---@param cmd string
---@param is_target_window fun(w: HL.Window): boolean
---@return fun()
local function make_commandable(tag, cmd, is_target_window)
return function()
if attempt_to_switch_to_existing(tag) then
return
end
---@type HL.EventSubscription
local sub
---@type hl.TimerHandle
local timeout
---@param w HL.Window
sub = hl.on("window.open", function(w)
if not is_target_window(w) then
return -- not our window, keep listening
end
sub:remove()
timeout:set_enabled(false)
hl.dispatch(hl.dsp.window.tag({ tag = "+" .. tag, window = w }))
end)
timeout = hl.timer(function()
sub:remove()
end, { timeout = 5000, type = "oneshot" })
hl.dispatch(hl.dsp.exec_cmd(cmd))
end
end
---@param name string
---@param url string
---@return fun()
local function web_app(name, url)
local tag = "skyg-" .. name
local is_target_window = make_target_validation_for_chromium_apps(url)
return make_commandable(
tag,
string.format("chromium --app=%s --new-window", url),
is_target_window
)
end
---@type table<string, fun()>
CarouselApps = CarouselApps or {}
CarouselApps.netflix = web_app("Netflix", "https://www.netflix.com/browse")
CarouselApps.youtube = web_app("YouTube", "https://www.youtube.com")
CarouselApps.jellyfin = web_app("Jellyfin", "http://bigbox1.lab.internal:8096")
CarouselApps.paramountplus = web_app("paramountplus", "https://www.paramountplus.com")
CarouselApps.primevideo = web_app("primevideo", "https://www.primevideo.com")
CarouselApps.chromium = make_commandable("skyg-chromium", "chromium", function(w)
return w.class == "chromium-browser"
end)
+39
View File
@@ -0,0 +1,39 @@
-- =========================
-- General / Layout
-- =========================
hl.config({
general = {
gaps_in = 0,
gaps_out = 0,
border_size = 2,
layout = "scrolling",
resize_on_border = true,
col = {
active_border = "rgb(00e5ff)",
inactive_border = "rgb(6a5acd)",
},
},
decoration = {
rounding = 8,
active_opacity = 1.0,
inactive_opacity = 0.9,
},
scrolling = {
fullscreen_on_one_column = true,
follow_focus = true,
focus_fit_method = 1,
},
cursor = {
sync_gsettings_theme = true,
enable_hyprcursor = true,
},
misc = {
disable_hyprland_logo = true,
focus_on_activate = true,
},
})
+65
View File
@@ -0,0 +1,65 @@
-- =========================
-- Input
-- =========================
hl.config({
input = {
kb_layout = "us",
follow_mouse = 1,
touchpad = {
natural_scroll = true,
disable_while_typing = true,
},
},
})
hl.gesture({ fingers = 3, direction = "horizontal", action = "scroll_move" })
hl.gesture({ fingers = 3, direction = "vertical", action = "workspace" })
-- Mod + 3-finger swipe: move the whole workspace to the monitor in that
-- direction (mirrors niri's Mod+TouchpadScroll* binds).
hl.gesture({
fingers = 3,
direction = "up",
mods = "SUPER",
action = function()
hl.exec_cmd("hyprctl dispatch movecurrentworkspacetomonitor u")
end,
})
hl.gesture({
fingers = 3,
direction = "down",
mods = "SUPER",
action = function()
hl.exec_cmd("hyprctl dispatch movecurrentworkspacetomonitor d")
end,
})
hl.gesture({
fingers = 3,
direction = "left",
mods = "SUPER",
action = function()
hl.exec_cmd("hyprctl dispatch movecurrentworkspacetomonitor l")
end,
})
hl.gesture({
fingers = 3,
direction = "right",
mods = "SUPER",
action = function()
hl.exec_cmd("hyprctl dispatch movecurrentworkspacetomonitor r")
end,
})
hl.gesture({
fingers = 4,
direction = "up",
action = function()
hl.exec_cmd("qs -c overview ipc call overview open")
end,
})
hl.gesture({
fingers = 4,
direction = "down",
action = function()
hl.exec_cmd("qs -c overview ipc call overview close")
end,
})
+120
View File
@@ -0,0 +1,120 @@
-- =========================
-- Keybindings
-- =========================
local mod = "SUPER"
-- =========================
-- General / Apps
-- =========================
hl.bind(mod .. " + T", hl.dsp.exec_cmd("ghostty"))
hl.bind(mod .. " + Z", hl.dsp.exec_cmd("flatpak run app.zen_browser.zen"))
hl.bind(mod .. " + B", hl.dsp.exec_cmd("chromium"))
hl.bind(mod .. " + E", hl.dsp.exec_cmd("wofi-emoji"))
hl.bind(mod .. " + ALT + E", hl.dsp.exec_cmd("zeditor ~/.config/hypr/conf/keybindings.lua"))
hl.bind(mod .. " + Q", hl.dsp.window.close())
hl.bind(mod .. " + ALT + N", hl.dsp.exec_cmd("skygqts workspace-manager toggle"))
-- =========================
-- Navigation
-- =========================
hl.bind(mod .. " + left", hl.dsp.focus({ direction = "left" }))
hl.bind(mod .. " + right", hl.dsp.focus({ direction = "right" }))
hl.bind(mod .. " + up", hl.dsp.focus({ workspace = "e-1" }))
hl.bind(mod .. " + down", hl.dsp.focus({ workspace = "e+1" }))
-- for the 4-finger swipe equivalent)
hl.bind(mod .. " + Tab", hl.dsp.exec_cmd("qs -c overview ipc call overview toggle"))
hl.bind(mod .. " + SHIFT + Tab", hl.dsp.focus({ monitor = "+1" }))
-- =========================
-- Window Management
-- =========================
-- Move windows around with Mod+Ctrl+arrows (mirrors niri's Mod+Ctrl binds).
hl.bind(mod .. " + CTRL + right", hl.dsp.window.move({ direction = "right", follow = true }))
hl.bind(mod .. " + CTRL + left", hl.dsp.window.move({ direction = "left", follow = true }))
hl.bind(mod .. " + CTRL + up", hl.dsp.window.move({ workspace = "r-1", follow = true }))
hl.bind(mod .. " + CTRL + down", hl.dsp.window.move({ workspace = "r+1", follow = true }))
hl.bind(mod .. " + F", hl.dsp.window.fullscreen({ mode = "maximized", action = "toggle" }))
hl.bind(mod .. " + SHIFT + F", hl.dsp.window.fullscreen({ mode = "fullscreen", action = "toggle" }))
hl.bind(mod .. " + V", hl.dsp.window.float({ action = "toggle" }))
hl.bind(mod .. " + C", hl.dsp.layout("focus current"))
-- =========================
-- Resizing
-- =========================
hl.bind(mod .. " + minus", hl.dsp.layout("colresize -0.1"))
hl.bind(mod .. " + equal", hl.dsp.layout("colresize +0.1"))
hl.bind(mod .. " + SHIFT + minus", hl.dsp.window.resize({ x = 0, y = -50, relative = true }))
hl.bind(mod .. " + SHIFT + equal", hl.dsp.window.resize({ x = 0, y = 50, relative = true }))
hl.bind(mod .. " + CTRL + F", hl.dsp.layout("fit active"))
-- =========================
-- Screenshots & Recording
-- =========================
hl.bind("Print", hl.dsp.exec_cmd('grim -g "$(slurp)" - | satty -f -'))
hl.bind(mod .. " + P", hl.dsp.exec_cmd('grim -g "$(slurp)" - | satty -f -'))
hl.bind(mod .. " + R", hl.dsp.exec_cmd("~/.config/hypr/screen-record.sh"))
-- =========================
-- Session
-- =========================
-- UWSM: use `uwsm stop` instead of the `exit` dispatcher (ordered shutdown).
hl.bind("CTRL + ALT + Delete", hl.dsp.exec_cmd("uwsm stop"))
-- =========================
-- Monitor Movement
-- =========================
hl.bind(mod .. " + ALT + down", hl.dsp.window.move({ monitor = "d" }))
hl.bind(mod .. " + ALT + left", hl.dsp.window.move({ monitor = "l" }))
hl.bind(mod .. " + ALT + right", hl.dsp.window.move({ monitor = "r" }))
hl.bind(mod .. " + ALT + up", hl.dsp.window.move({ monitor = "u" }))
-- =========================
-- Mouse drag (move / resize windows)
-- =========================
hl.bind(mod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
hl.bind(mod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
-- Clipboard history
hl.bind(
mod .. " + ALT + P",
hl.dsp.exec_cmd('rofi -modi "clipboard:greenclip print" -show clipboard')
)
-- Media & volume (mirrors niri's Mod+Shift block)
hl.bind(mod .. " + SHIFT + right", hl.dsp.exec_cmd("playerctl next"))
hl.bind(mod .. " + SHIFT + left", hl.dsp.exec_cmd("playerctl previous"))
hl.bind(mod .. " + SHIFT + up", hl.dsp.exec_cmd("playerctl volume 0.1+"), { locked = true })
hl.bind(mod .. " + SHIFT + down", hl.dsp.exec_cmd("playerctl volume 0.1-"), { locked = true })
hl.bind(mod .. " + SHIFT + Space", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
hl.bind(
mod .. " + SHIFT + M",
hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"),
{ locked = true }
)
hl.bind(
mod .. " + SHIFT + S",
hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"),
{ locked = true }
)
-- Media & brightness
hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"))
hl.bind(
"XF86AudioRaiseVolume",
hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"),
{ locked = true }
)
hl.bind(
"XF86AudioLowerVolume",
hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"),
{ locked = true }
)
hl.bind(
"XF86AudioMute",
hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"),
{ locked = true }
)
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl set 5%+"), { locked = true })
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl set 5%-"), { locked = true })
hl.bind(mod .. " + M", hl.dsp.exec_cmd("nu ~/.config/hypr/speak-selection.nu"))
+27
View File
@@ -0,0 +1,27 @@
-- =========================
-- Monitors
-- =========================
-- Laptop internal panel
hl.monitor({
output = "eDP-1",
mode = "2256x1504@60",
position = "0x0",
scale = 1.07,
})
-- Home Office
hl.monitor({
output = "desc:Samsung Electric Company S22R35x H4TR604392",
mode = "1920x1080@60",
position = "-1128x-1080",
scale = 1,
})
hl.monitor({
output = "desc:Samsung Electric Company S22R35x H4TR503886",
mode = "1920x1080@60",
position = "792x-1080",
scale = 1,
})
-- Fallback for anything not explicitly configured above
hl.monitor({ output = "", mode = "preferred", position = "auto", scale = "auto" })
@@ -0,0 +1,16 @@
-- =========================
-- Noctalia shell binds
-- =========================
-- Moved out of conf/keybindings.lua. Mirrors configs/niri/noctalia/binds.kdl.
local mod = "SUPER"
-- Window switcher
hl.bind("ALT + TAB", hl.dsp.exec_cmd("noctalia msg window-switcher toggle"))
-- Launcher / control center / settings
hl.bind(mod .. " + Space", hl.dsp.exec_cmd("noctalia msg panel-toggle launcher"))
hl.bind(mod .. " + S", hl.dsp.exec_cmd("noctalia msg panel-toggle control-center"))
hl.bind(mod .. " + comma", hl.dsp.exec_cmd("noctalia msg settings-toggle"))
-- Dismiss all notifications
hl.bind(mod .. " + ALT + L", hl.dsp.exec_cmd("noctalia msg notification-clear-active"))
@@ -0,0 +1,2 @@
require("conf.noctalia.binds")
require("conf.noctalia.window")
@@ -0,0 +1,11 @@
-- =========================
-- Noctalia window rule
-- =========================
-- Moved out of conf/window-rules.lua.
hl.window_rule({
match = { class = "dev.noctalia.Noctalia" },
float = true,
name = "float-noctalia",
center = true,
size = { "(monitor_w*0.5)", "(monitor_h*0.9)" },
})
@@ -0,0 +1,25 @@
-- =========================
-- Omarchy (nixarchy) shell binds
-- =========================
-- Same keys as the parked noctalia binds (conf/noctalia/binds.lua), mapped to
-- the Omarchy shell's commands. The full set is `omarchy-menu toggle <route>`
-- (root, apps, system, theme, background, capture, hardware, share, reminder)
-- and `omarchy-shell shell toggle omarchy.<panel>` (audio, bluetooth, network,
-- monitor, power, clipboard, emojis, ...).
local mod = "SUPER"
-- Launcher / menu (noctalia: panel-toggle launcher)
hl.bind(mod .. " + Space", hl.dsp.exec_cmd("omarchy-menu toggle"))
-- System menu (noctalia: panel-toggle control-center)
hl.bind(mod .. " + S", hl.dsp.exec_cmd("omarchy-menu toggle system"))
-- Theme menu (noctalia: settings-toggle)
hl.bind(mod .. " + comma", hl.dsp.exec_cmd("omarchy-menu toggle theme"))
-- Dismiss all notifications (noctalia: notification-clear-active)
hl.bind(mod .. " + ALT + L", hl.dsp.exec_cmd("omarchy-shell notifications dismissAll"))
-- ALT + TAB (noctalia's window switcher) has no Omarchy equivalent, so it is
-- left out. The shell's own defaults (SUPER + CTRL + A/B/D for audio/bluetooth/
-- monitor, SUPER + ESCAPE for the system menu) are not bound here.
@@ -0,0 +1,6 @@
-- =========================
-- Omarchy (nixarchy) shell
-- =========================
-- Keybinds for the Omarchy shell, mirroring the noctalia binds parked in
-- conf/noctalia/. Required from hyprland.lua.
require("conf.omarchy.binds")
+67
View File
@@ -0,0 +1,67 @@
-- =========================
-- Window Rules
-- =========================
hl.window_rule({
match = { class = "com.mitchellh.ghostty" },
fullscreen = false,
size = { "(monitor_w*0.5)", "(monitor_h)" },
name = "ghostty-init",
})
hl.window_rule({
name = "float-pavucontrol",
match = { class = "org.pulseaudio.pavucontrol" },
float = true,
})
hl.window_rule({
name = "float-hyprland-share-picker",
match = { title = "Select what to share" },
float = true,
stay_focused = true,
})
hl.window_rule({
name = "float-blueman",
match = { class = "^(blueman-manager)$" },
float = true,
})
hl.window_rule({
name = "float-calculator",
match = { class = "^(org.gnome.Calculator)$" },
float = true,
})
hl.window_rule({
name = "float-portal-gtk",
match = { class = "^(xdg-desktop-portal-gtk)$" },
float = true,
})
hl.window_rule({
name = "float-open-file",
match = { title = "^(Open File)$" },
float = true,
})
hl.window_rule({
name = "float-save-file",
match = { title = "^(Save File)$" },
float = true,
})
hl.window_rule({
match = { initial_title = "Slack - Huddle Preview" },
float = true,
name = "float-slack-huddle",
})
hl.window_rule({
match = { class = "com.gabm.satty" },
float = true,
name = "float-satty",
})
hl.window_rule({
match = { float = true },
name = "float-style",
no_screen_share = true,
})
hl.window_rule({
match = { class = "^chrome-.*" },
fullscreen = true,
name = "fulll-chrome",
})
+27
View File
@@ -0,0 +1,27 @@
-- Auto-generated by DMS Matugen hook — do not edit manually.
-- Remove require("dms.colors") from hyprland.lua to override.
hl.config({
general = {
col = {
active_border = "rgb(ff6d00)",
inactive_border = "rgb(a08d85)",
},
},
group = {
col = {
border_active = "rgb(ff6d00)",
border_inactive = "rgb(a08d85)",
border_locked_active = "rgb(f2b8b5)",
border_locked_inactive = "rgb(a08d85)",
},
groupbar = {
col = {
active = "rgb(ff6d00)",
inactive = "rgb(a08d85)",
locked_active = "rgb(f2b8b5)",
locked_inactive = "rgb(a08d85)",
},
},
},
})
+13
View File
@@ -0,0 +1,13 @@
-- Auto-generated by DMS — do not edit manually
hl.config({
general = {
gaps_in = 4,
gaps_out = 4,
border_size = 2,
resize_on_border = false,
},
decoration = {
rounding = 12,
},
})
+14
View File
@@ -0,0 +1,14 @@
-- =========================
-- Hyprland (fwbook)
-- =========================
require("conf/env")
require("conf/general")
require("conf/animations")
require("conf/monitors")
require("conf/inputs")
require("conf/window-rules")
require("conf/keybindings")
require("conf/autostart")
require("conf.omarchy.index")
-- require("conf.noctalia.index")
+32
View File
@@ -0,0 +1,32 @@
#!/bin/sh
set -e
_SCREEN_RECORD_DIR="$HOME/Videos/ScreenRecordings"
mkdir -p "$_SCREEN_RECORD_DIR"
if pgrep -x "wf-recorder" > /dev/null; then
last_cmd=$(pgrep -x "wf-recorder" -a)
filepath="${last_cmd##* -f }"
filepath="${filepath%% *}"
pgrep -x "wf-recorder" && pkill -INT -x wf-recorder
notify-send -h string:wf-recorder:record -t 5000 "Finished Recording. Saved at $filepath."
echo $filepath | xclip -selection clipboard
exit 0
fi
dims=$(slurp)
notify-send -h string:wf-recorder:record -t 1000 "Recording in:" "<span color='#90a4f4' font='26px'><i><b>3</b></i></span>"
sleep 1
notify-send -h string:wf-recorder:record -t 1000 "Recording in:" "<span color='#90a4f4' font='26px'><i><b>2</b></i></span>"
sleep 1
notify-send -h string:wf-recorder:record -t 950 "Recording in:" "<span color='#90a4f4' font='26px'><i><b>1</b></i></span>"
sleep 1
dateTime=$(date +%Y-%m-%d-%H_%M_%S)
wf-recorder --bframes max_b_frames -g "${dims}" -f $_SCREEN_RECORD_DIR/$dateTime.mp4
+141
View File
@@ -0,0 +1,141 @@
#!/usr/bin/env nu
let piperFolder = $env.HOME | path join ".local/share/piper"
let piperSoundCacheFolder = $env.HOME | path join ".local/share/piper-cache"
let modelName = "en_US-hfc_female-medium"
def pidfile [] {
$"($env.XDG_RUNTIME_DIR? | default "/tmp")/hypr-speak.pid"
}
def pid-alive [pid: int] {
(^kill -0 $pid | complete).exit_code == 0
}
def kill-tree [pid: int] {
let kids = (^pgrep -P $pid | complete)
if $kids.exit_code == 0 {
for kid in ($kids.stdout | lines) {
let kid = $kid | str trim
if not ($kid | is-empty) {
kill-tree ($kid | into int)
}
}
}
let _ = (^kill -KILL $pid | complete)
}
def terminate-last [file: string] {
if ($file | path exists) {
let old = (
try {
open --raw $file | str trim | into int
} catch { null }
)
rm --force $file
if $old != null and (pid-alive $old) {
kill-tree $old
return true
}
}
return false
}
# Show a failure notification. Works with `complete` results
# ({exit_code, stderr, ...}) and `catch` error records.
def notify-error [context: string, err: record] {
let exit = $err | get -o exit_code
let detail = if $exit != null {
let stderr = $err | get -o stderr | default ""
if ($stderr | is-empty) { $"exit ($exit)" } else { $"exit ($exit): ($stderr | str trim | lines | last)" }
} else {
$err.msg
}
let reply = notify-send -i dialog-error -A Yes="Copy to Clipboard" $"piper failed ($context)" $detail
if $reply == "Yes" {
($err | get -o stderr | default "") | ^xclip
}
}
def get-text [] {
let paste = (^wl-paste --primary | complete)
if $paste.exit_code != 0 {
notify-send -i dialog-warning "Piper" "No text, make sure to copy something to clipboard"
return
}
return ($paste.stdout
| str replace --all --regex '[\n\t]' ' '
| str replace --all --regex "[^0-9A-Za-z .,!?'-]" ''
| str replace --all --regex ' +' ' '
| str trim)
}
# returns true if failed
def run-tts [text: string, cache_file: string] {
^mkdir -p $piperSoundCacheFolder
let res = (
$text
| ^piper -m $modelName --data-dir $piperFolder --output-file $cache_file
| complete
)
if $res.exit_code != 0 {
notify-error "piper" $res
rm --force $cache_file
return true
}
return false
}
def run-tts-pipeline [use_cache: bool, cache_file: string, text: string] {
try {
notify-send -i dialog-information $"Piper `($modelName)`" $"Text: ($text)"
# skip piper when the audio is already cached
if not ($use_cache and ($cache_file | path exists)) {
if (run-tts $text $cache_file) {
return
}
}
if (play-file $cache_file) {
return
}
} catch {|err| notify-error "unexpected" $err }
# no caching → don't leave the audio file behind
if not $use_cache {
rm --force $cache_file
}
}
# returns true if failed
def play-file [cache_file: string] {
let res = (^ffplay -nodisp -autoexit $cache_file | complete)
if $res.exit_code != 0 {
notify-error "ffplay" $res
return true
}
return false
}
def main [--cache] {
let file = (pidfile)
if (terminate-last $file) {
notify-send -i dialog-information "Piper" "Stopped"
return
}
let text = get-text
if ($text | is-empty) {
notify-send -i dialog-warning "Piper" "No text, make sure to copy something to clipboard"
return
}
# cache key includes the model so different voices don't collide
let text_sha = $"($modelName)|($text)" | hash sha256
let cache_file = $piperSoundCacheFolder | path join $"($text_sha).wav"
$"($nu.pid)" | save --force $file
run-tts-pipeline $cache $cache_file $text
rm --force $file
}
+21
View File
@@ -0,0 +1,21 @@
# =========================
# xdg-desktop-portal-hyprland (fwbook)
# =========================
# Read by xdph itself from ~/.config/hypr/xdph.conf (hyprlang format, not Lua),
# so it is not require()'d from hyprland.lua. This directory is symlinked to
# ~/.config/hypr by the skyg hyprland module.
#
# force_shm: skip DMA-BUF buffer negotiation for screencast. xdph fails modifier
# fixation on this machine ("DMA-BUF fixation failed after 2 attempts") and tears
# the stream down; Chromium then reopens a ScreenCast session, which re-shows the
# output picker. Capture already ended up on SHM via the fallback path anyway, so
# image quality is unchanged -- this just avoids the failing negotiation and the
# teardown it causes.
#
# Deliberately NOT setting screencopy:allow_token_by_default -- it would auto-grant
# restore tokens to any app that asks, letting it silently re-capture later. Tick
# "allow restore token" in the picker instead.
screencopy {
force_shm = true
}
+1
View File
@@ -0,0 +1 @@
*backup*
+24
View File
@@ -0,0 +1,24 @@
// =========================
// Niri Configuration
// =========================
// Shared configuration for multiple shell environments
// =========================
// Shared Configuration
// =========================
// General purpose configuration shared across all setups
include "shared/index.kdl"
// =========================
// Desktop Environment Selection
// =========================
// Uncomment ONE of the following to use that environment:
// For DankMaterialShell (DMS)
// include "dms/index.kdl"
include "noctalia/index.kdl"
//include "dms/binds.kdl"
include "dms/outputs.kdl"
+10
View File
@@ -0,0 +1,10 @@
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
recent-windows {
highlight {
corner-radius 12
}
}
+35
View File
@@ -0,0 +1,35 @@
// =========================
// DMS-Specific Keybindings
// =========================
// Configuration and integrations specific to DankMaterialShell
binds {
// =========================
// DMS Launcher & Spotlight
// =========================
Mod+Space { spawn "dms" "ipc" "spotlight" "toggle"; }
// =========================
// DMS Integration
// =========================
Print { spawn "sh" "-c" "dms screenshot --stdout | satty -f -"; }
Mod+P { spawn "sh" "-c" "dms screenshot --stdout | satty -f -"; }
Alt+Ctrl+Delete hotkey-overlay-title="Task Manager: Toggle" { spawn "dms" "ipc" "call" "processlist" "toggle"; }
Mod+Alt+L hotkey-overlay-title="Notifications: Clear" { spawn "dms" "ipc" "notifications" "dismissAllPopups"; }
Mod+Alt+K hotkey-overlay-title="Notifications: Toggle" { spawn "dms" "ipc" "call" "notifications" "toggle"; }
// Mod+Alt+N hotkey-overlay-title="Workspace: Rename" { spawn "dms" "ipc" "workspace-rename" "toggle"; }
Mod+Alt+P hotkey-overlay-title="Clipboard: Toggle" { spawn "dms" "ipc" "call" "clipboard" "toggle"; }
Mod+Shift+Space hotkey-overlay-title="PlayerCtrl: Toggle" { spawn "playerctl" "play-pause"; }
// =========================
// DMS Media & Brightness
// =========================
Mod+Shift+Up hotkey-overlay-title="PlayerCtrl: Volume Up" { spawn "dms" "ipc" "audio" "increment" "1"; }
Mod+Shift+Down hotkey-overlay-title="PlayerCtrl: Volume Down" { spawn "dms" "ipc" "audio" "decrement" "1"; }
XF86AudioRaiseVolume allow-when-locked=true { spawn "dms" "ipc" "audio" "increment" "1"; }
XF86AudioLowerVolume allow-when-locked=true { spawn "dms" "ipc" "audio" "decrement" "1"; }
XF86AudioMute allow-when-locked=true { spawn "dms" "ipc" "call" "audio" "mute"; }
XF86AudioMicMute allow-when-locked=true { spawn "dms" "ipc" "call" "audio" "micmute"; }
XF86MonBrightnessUp allow-when-locked=true { spawn "dms" "ipc" "call" "brightness" "increment" "10" ""; }
XF86MonBrightnessDown allow-when-locked=true { spawn "dms" "ipc" "call" "brightness" "decrement" "10" ""; }
}
+39
View File
@@ -0,0 +1,39 @@
// ! Auto-generated file. Do not edit directly.
// Remove `include "dms/colors.kdl"` from your config to override.
layout {
background-color "transparent"
focus-ring {
active-color "#ff6d00"
inactive-color "#a08d85"
urgent-color "#f2b8b5"
}
border {
active-color "#ff6d00"
inactive-color "#a08d85"
urgent-color "#f2b8b5"
}
shadow {
color "#00000070"
}
tab-indicator {
active-color "#ff6d00"
inactive-color "#a08d85"
urgent-color "#f2b8b5"
}
insert-hint {
color "#ff6d0080"
}
}
recent-windows {
highlight {
active-color "#3e2723"
urgent-color "#f2b8b5"
}
}
+10
View File
@@ -0,0 +1,10 @@
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
cursor {
xcursor-theme "Adwaita"
xcursor-size 24
hide-when-typing
}
+6
View File
@@ -0,0 +1,6 @@
// =========================
// DMS Configuration Index
// =========================
// Configuration specific to DankMaterialShell (DMS)
include "./binds.kdl"
+23
View File
@@ -0,0 +1,23 @@
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
layout {
gaps 4
border {
width 2
}
focus-ring {
width 2
}
}
window-rule {
geometry-corner-radius 12
clip-to-geometry true
tiled-state true
draw-border-with-background false
}
+24
View File
@@ -0,0 +1,24 @@
// Auto-generated by DMS - do not edit manually
output "DP-9" {
mode "1920x1080@74.973"
scale 1
position x=0 y=0
}
output "eDP-1" {
mode "2880x1920@120.000"
scale 2
position x=1253 y=1080
focus-at-startup
layout {
always-center-single-column
}
}
output "DP-10" {
mode "1920x1080@74.973"
scale 1
position x=1920 y=0
}
@@ -0,0 +1,55 @@
// Auto-generated by DMS - do not edit manually
output "DP-9" {
mode "1920x1080@74.973"
scale 1
position x=0 y=0
}
output "Samsung Electric Company S22R35x H4TR604392" {
mode "1920x1080@60.000"
scale 1
position x=106 y=0
}
output "eDP-1" {
mode "2256x1504@59.999"
scale 1
position x=859 y=1080
}
output "DP-10" {
mode "1920x1080@74.973"
scale 1
position x=1920 y=0
}
output "Samsung Electric Company S22R35x H4TR503886" {
mode "1920x1080@60.000"
scale 1
position x=2026 y=0
}
output "PNP(GWD) ARZOPA \\x15\\xd9F\\x1675US0000" {
mode "1920x1080@60.000"
scale 1
transform "normal"
position x=2860 y=1080
}
output "DP-2" {
mode "1920x1080@60.000"
scale 1
position x=3115 y=1504
}
output "Dell Inc. DELL SE3223Q 1WDWKK3" {
scale 2
position x=4780 y=0
}
output "Dell Inc. DELL SE3223Q 1TRXKK3" {
scale 2
position x=6700 y=0
}
@@ -0,0 +1,55 @@
// Auto-generated by DMS - do not edit manually
output "DP-9" {
mode "1920x1080@74.973"
scale 1
position x=0 y=0
}
output "Samsung Electric Company S22R35x H4TR604392" {
mode "1920x1080@60.000"
scale 1
position x=106 y=0
}
output "eDP-1" {
mode "2256x1504@59.999"
scale 1
position x=859 y=1080
}
output "DP-10" {
mode "1920x1080@74.973"
scale 1
position x=1920 y=0
}
output "Samsung Electric Company S22R35x H4TR503886" {
mode "1920x1080@60.000"
scale 1
position x=2026 y=0
}
output "PNP(GWD) ARZOPA \\x15\\xd9F\\x1675US0000" {
mode "1920x1080@60.000"
scale 1
transform "normal"
position x=2860 y=1080
}
output "DP-2" {
mode "1920x1080@60.000"
scale 1
position x=3115 y=1504
}
output "Dell Inc. DELL SE3223Q 1WDWKK3" {
scale 2
position x=4780 y=0
}
output "Dell Inc. DELL SE3223Q 1TRXKK3" {
scale 2
position x=6700 y=0
}
Whitespace-only changes.
+9
View File
@@ -0,0 +1,9 @@
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
layer-rule {
match namespace="dms:blurwallpaper"
place-within-backdrop true
}
+10
View File
@@ -0,0 +1,10 @@
binds {
ALT+Tab { spawn "noctalia" "msg" "window-switcher" "toggle"; }
Mod+Space { spawn "noctalia" "msg" "panel-toggle" "launcher"; }
Mod+S { spawn "noctalia" "msg" "panel-toggle" "control-center"; }
Mod+comma { spawn "noctalia" "msg" "settings-toggle"; }
Mod+Alt+L hotkey-overlay-title="Notifications: Clear" { spawn "noctalia" "msg" "notification-clear-active"; }
Mod+P { spawn "sh" "-c" "grim -g \"$(slurp)\" - | satty -f -"; }
}
+2
View File
@@ -0,0 +1,2 @@
include "./binds.kdl"
include "./startup.kdl"
+1
View File
@@ -0,0 +1 @@
spawn-at-startup "noctalia"
+32
View File
@@ -0,0 +1,32 @@
#!/bin/sh
set -e
_SCREEN_RECORD_DIR="$HOME/Videos/ScreenRecordings"
mkdir -p "$_SCREEN_RECORD_DIR"
if pgrep -x "wf-recorder" > /dev/null; then
last_cmd=$(pgrep -x "wf-recorder" -a)
filepath="${last_cmd##* -f }"
filepath="${filepath%% *}"
pgrep -x "wf-recorder" && pkill -INT -x wf-recorder
notify-send -h string:wf-recorder:record -t 5000 "Finished Recording. Saved at $filepath."
echo $filepath | xclip -selection clipboard
exit 0
fi
dims=$(slurp)
notify-send -h string:wf-recorder:record -t 1000 "Recording in:" "<span color='#90a4f4' font='26px'><i><b>3</b></i></span>"
sleep 1
notify-send -h string:wf-recorder:record -t 1000 "Recording in:" "<span color='#90a4f4' font='26px'><i><b>2</b></i></span>"
sleep 1
notify-send -h string:wf-recorder:record -t 950 "Recording in:" "<span color='#90a4f4' font='26px'><i><b>1</b></i></span>"
sleep 1
dateTime=$(date +%Y-%m-%d-%H_%M_%S)
wf-recorder --bframes max_b_frames -g "${dims}" -f $_SCREEN_RECORD_DIR/$dateTime.mp4
+10
View File
@@ -0,0 +1,10 @@
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
recent-windows {
highlight {
corner-radius 12
}
}
+94
View File
@@ -0,0 +1,94 @@
// =========================
// Shared Keybindings
// =========================
// Common keybindings across all desktop environments
binds {
// =========================
// General
// =========================
Mod+Shift+H { show-hotkey-overlay; }
Mod+T { spawn "ghostty"; }
Mod+A { spawn "ghostty" "-e" "pi"; }
Mod+Z { spawn "flatpak" "run" "app.zen_browser.zen"; }
Mod+B { spawn "chromium"; }
Mod+E { spawn "wofi-emoji"; }
Mod+Alt+E { spawn-sh "zeditor ~/.config/niri/shared/binds.kdl"; }
Mod+Q { close-window; }
Mod+Alt+N hotkey-overlay-title="Workspace: Rename" { spawn "skygqts" "workspace-manager" "rename"; }
// =========================
// Navigation
// =========================
Mod+Left { focus-column-left; }
Mod+Down { focus-workspace-down; }
Mod+Up { focus-workspace-up; }
Mod+Right { focus-column-right; }
Mod+Tab hotkey-overlay-title="Workspace: Rename" { spawn "skygqts" "workspace-manager" "windows"; }
Mod+Shift+Tab { focus-monitor-next; }
// =========================
// Window Management
// =========================
Mod+Ctrl+Right { swap-window-right; }
Mod+Ctrl+Left { swap-window-left; }
Mod+Ctrl+Up { move-window-to-workspace-up; }
Mod+Ctrl+Down { move-window-to-workspace-down; }
Mod+F { maximize-column; }
Mod+Shift+F { fullscreen-window; }
Mod+Ctrl+F { reset-window-height; }
Mod+V { toggle-window-floating; }
Mod+C { center-column; }
// =========================
// Basic Sound Control
// =========================
Mod+Shift+Right hotkey-overlay-title="PlayerCtrl: Next" { spawn "playerctl" "next"; }
Mod+Shift+Left hotkey-overlay-title="PlayerCtrl: Previous" { spawn "playerctl" "previous"; }
Mod+Shift+Up allow-when-locked=true { spawn "playerctl" "volume" "0.1+"; }
Mod+Shift+Down allow-when-locked=true { spawn "playerctl" "volume" "0.1-"; }
Mod+Shift+Space allow-when-locked=true { spawn "playerctl" "play-pause"; }
Mod+Shift+M allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
Mod+Shift+S allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%+"; }
XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%-"; }
XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "set" "5%+"; }
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "set" "5%-"; }
// =========================
// Resizing
// =========================
Mod+Minus { set-column-width "-10%"; }
Mod+Equal { set-column-width "+10%"; }
Mod+Shift+Minus { set-window-height "-10%"; }
Mod+Shift+Equal { set-window-height "+10%"; }
// =========================
// Screenshots & Recording
// =========================
Mod+R { spawn "/home/ari/.config/niri/screen-record.sh"; }
Mod+M { spawn "nu" "/home/ari/.config/hypr/speak-selection.nu"; }
// =========================
// Misc
// =========================
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
// =========================
// Monitor Movement
// =========================
Mod+Alt+Down hotkey-overlay-title="Move to Monitor Down" { move-column-to-monitor-down; }
Mod+Alt+Left hotkey-overlay-title="Move to Monitor Left" { move-column-to-monitor-left; }
Mod+Alt+Right hotkey-overlay-title="Move to Monitor Right" { move-column-to-monitor-right; }
Mod+Alt+Up hotkey-overlay-title="Move to Monitor Up" { move-column-to-monitor-up; }
Mod+TouchpadScrollUp hotkey-overlay-title="Move Workspace to Monitor Down" { move-workspace-to-monitor-down; }
Mod+TouchpadScrollRight hotkey-overlay-title="Move Workspace to Monitor Left" { move-workspace-to-monitor-left; }
Mod+TouchpadScrollLeft hotkey-overlay-title="Move Workspace to Monitor Right" { move-workspace-to-monitor-right; }
Mod+TouchpadScrollDown hotkey-overlay-title="Move Workspace to Monitor Up" { move-workspace-to-monitor-up; }
}
+40
View File
@@ -0,0 +1,40 @@
// Liquid Glass color scheme — vibrant cyan/teal, purple, and pink accents
// with a frosted-glass feel. The transparent background lets the wallpaper
// show through for the full glass effect.
layout {
background-color "transparent"
focus-ring {
active-color "#00e5ff" // glowing cyan
inactive-color "#6a5acd" // muted slate purple
urgent-color "#ff69b4" // hot pink
}
border {
active-color "#00e5ffcc" // cyan with ~80% opacity for glassy glow
inactive-color "#6a5acd88" // slate purple, more transparent
urgent-color "#ff69b4cc" // hot pink with glow
}
shadow {
color "#000000b0" // deeper shadow for depth
}
tab-indicator {
active-color "#00e5ff"
inactive-color "#6a5acd"
urgent-color "#ff69b4"
}
insert-hint {
color "#00e5ff80" // cyan insert hint
}
}
recent-windows {
highlight {
active-color "#1a1a2e" // deep navy
urgent-color "#ff69b4"
}
}
+10
View File
@@ -0,0 +1,10 @@
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
cursor {
xcursor-theme "Adwaita"
xcursor-size 24
hide-when-typing
}
+68
View File
@@ -0,0 +1,68 @@
// =========================
// DMS General Configuration
// =========================
// https://github.com/YaLTeR/niri/wiki/Configuration:-Input
input {
touchpad {
tap
natural-scroll
}
// Absolute map for the built-in panel (scale 1.5). Without this, touch
// can miss windows when logical/physical sizes diverge.
touch {
map-to-output "eDP-1"
}
}
overview {
backdrop-color "#1a1a2e" // deep navy to complement the glass palette
}
environment {
QT_QPA_PLATFORM "wayland"
QT_WAYLAND_DISABLE_WINDOWDECORATION "1"
NIXOS_OZONE_WL "1"
DISPLAY ":0"
ELECTRON_OZONE_PLATFORM_HINT "auto"
}
// =========================
// Screenshots
// =========================
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
// =========================
// System Events
// =========================
switch-events {
lid-close { spawn "notify-send" "The laptop lid is closed!"; }
lid-open { spawn "notify-send" "The laptop lid is open!"; }
}
hotkey-overlay {
skip-at-startup
}
gestures {
dnd-edge-view-scroll {
trigger-width 30
delay-ms 100
max-speed 1500
}
dnd-edge-workspace-switch {
trigger-height 50
delay-ms 100
max-speed 1500
}
hot-corners {
off
}
}
debug {
honor-xdg-activation-with-invalid-serial
}
+15
View File
@@ -0,0 +1,15 @@
// =========================
// Shared Configuration Index
// =========================
// General purpose configuration shared across all DM setups
include "./general.kdl"
include "./outputs.kdl"
include "./cursor.kdl"
include "./colors.kdl"
include "./layout.kdl"
include "./alttab.kdl"
include "./wpblur.kdl"
include "./windowrules.kdl"
include "./binds.kdl"
include "./startup.kdl"
+17
View File
@@ -0,0 +1,17 @@
layout {
gaps 1
border {
width 2
}
focus-ring {
width 4
}
}
window-rule {
geometry-corner-radius 4
clip-to-geometry true
tiled-state true
draw-border-with-background false
}
+61
View File
@@ -0,0 +1,61 @@
// Laptop Monitor
output "eDP-1" {
mode "2256x1504@59.999"
scale 1.5
position x=859 y=1080
}
// Work Monitor
output "Ancor Communications Inc ASUS VE278 E5LMTF016849" {
mode "1920x1080@60.000"
scale 1
position x=1027 y=0
}
output "DP-9" {
mode "1920x1080@74.973"
scale 1
position x=0 y=0
}
output "Samsung Electric Company S22R35x H4TR604392" {
mode "1920x1080@60.000"
scale 1
position x=106 y=0
}
output "DP-10" {
mode "1920x1080@74.973"
scale 1
position x=1920 y=0
}
output "Samsung Electric Company S22R35x H4TR503886" {
mode "1920x1080@60.000"
scale 1
position x=2026 y=0
}
output "PNP(GWD) ARZOPA \\x15\\xd9F\\x1675US0000" {
mode "1920x1080@60.000"
scale 1
transform "normal"
position x=2860 y=1080
}
output "DP-2" {
mode "1920x1080@60.000"
scale 1
position x=3115 y=1504
}
output "Dell Inc. DELL SE3223Q 1WDWKK3" {
scale 2
position x=4780 y=0
}
output "Dell Inc. DELL SE3223Q 1TRXKK3" {
scale 2
position x=6700 y=0
}
+5
View File
@@ -0,0 +1,5 @@
spawn-at-startup "/home/ari/.config/niri/startup.sh"
binds {
Mod+Shift+A { spawn "/home/ari/.config/niri/startup.sh"; }
}
@@ -0,0 +1,94 @@
// DMS Window Rules - Managed by DankMaterialShell
// Do not edit manually - changes may be overwritten
// @id=dms_rule_0 @name=
window-rule {
match app-id="^signal$"
open-focused true
}
window-rule {
match app-id="zoom"
open-floating true
open-focused true
default-column-width { proportion 0.75; }
default-window-height { proportion 0.8; }
}
// @id=dms_rule_1 @name=
window-rule {
match app-id="org.pipewire.Helvum"
open-floating true
open-focused true
default-column-width { proportion 0.75; }
default-window-height { proportion 0.8; }
}
// @id=dms_rule_2 @name=Slack Huddle Rules
window-rule {
match app-id="Slack" title="$Huddle:.*"
open-floating true
open-focused true
default-column-width { proportion 0.25; }
default-window-height { proportion 0.5; }
}
// @id=dms_rule_3 @name=
window-rule {
match app-id="remote-viewer"
open-maximized true
open-fullscreen true
open-focused true
}
// @id=dms_rule_4 @name=
window-rule {
match is-active=false
opacity 0.92 // more translucent for the glass depth effect
}
// @id=dms_rule_5 @name=
window-rule {
match is-urgent=true
open-focused true
}
// @id=dms_rule_6 @name=
window-rule {
match app-id="satty"
open-floating true
open-focused true
default-column-width { proportion 0.75; }
default-window-height { proportion 0.75; }
min-width 800
min-height 400
}
// @id=dms_rule_7 @name=
window-rule {
match app-id="org.shotcut.Shotcut"
opacity 0.95
open-maximized true
open-focused true
}
// @id=dms_rule_8 @name=
window-rule {
match app-id="Sparrow"
block-out-from "screen-capture"
focus-ring { active-color "#f00f"; }
}
// @id=dms_rule_9 @name=
window-rule {
match app-id="Sparrow" title="Bitwarden" is-focused=false
opacity 0.45
}
// @id=dms_rule_10 @name=
window-rule {
match app-id="^com.slack.Slack$"
clip-to-geometry true
border { active-color "#0f0f"; }
}
+9
View File
@@ -0,0 +1,9 @@
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
layer-rule {
match namespace="dms:blurwallpaper"
place-within-backdrop true
}
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
skygqts workspace-manager &
notify-send "Autostarted ran!"
+1
View File
@@ -0,0 +1 @@
plugins/
+18
View File
@@ -0,0 +1,18 @@
{
"mError": "#bf616a",
"mHover": "#5e81ac",
"mOnError": "#2e3440",
"mOnHover": "#2e3440",
"mOnPrimary": "#2e3440",
"mOnSecondary": "#2e3440",
"mOnSurface": "#eceff4",
"mOnSurfaceVariant": "#d8dee9",
"mOnTertiary": "#2e3440",
"mOutline": "#505a70",
"mPrimary": "#8fbcbb",
"mSecondary": "#88c0d0",
"mShadow": "#2e3440",
"mSurface": "#2e3440",
"mSurfaceVariant": "#3b4252",
"mTertiary": "#5e81ac"
}
+56
View File
@@ -0,0 +1,56 @@
{
"sources": [
{
"enabled": true,
"name": "Noctalia Plugins",
"url": "https://github.com/noctalia-dev/noctalia-plugins"
}
],
"states": {
"ip-monitor": {
"enabled": true,
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
},
"kde-connect": {
"enabled": true,
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
},
"kubectl-ctx": {
"enabled": true,
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
},
"monitor-layout": {
"enabled": true,
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
},
"niri-animation-picker": {
"enabled": true,
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
},
"niri-workspaces": {
"enabled": true,
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
},
"privacy-indicator": {
"enabled": true,
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
},
"screen-recorder": {
"enabled": true,
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
},
"screen-toolkit": {
"enabled": true,
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
},
"vscode-provider": {
"enabled": true,
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
},
"zed-provider": {
"enabled": true,
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
}
},
"version": 2
}
+881
View File
@@ -0,0 +1,881 @@
{
"appLauncher": {
"autoPasteClipboard": false,
"clipboardWatchImageCommand": "wl-paste --type image --watch cliphist store",
"clipboardWatchTextCommand": "wl-paste --type text --watch cliphist store",
"clipboardWrapText": true,
"customLaunchPrefix": "",
"customLaunchPrefixEnabled": false,
"density": "default",
"enableClipPreview": true,
"enableClipboardChips": true,
"enableClipboardHistory": false,
"enableClipboardSmartIcons": true,
"enableSessionSearch": true,
"enableSettingsSearch": true,
"enableWindowsSearch": true,
"iconMode": "tabler",
"ignoreMouseInput": false,
"overviewLayer": false,
"pinnedApps": [],
"position": "center",
"screenshotAnnotationTool": "",
"showCategories": true,
"showIconBackground": false,
"sortByMostUsed": true,
"terminalCommand": "alacritty -e",
"viewMode": "grid"
},
"audio": {
"mprisBlacklist": [],
"preferredPlayer": "",
"spectrumFrameRate": 30,
"spectrumMirrored": true,
"visualizerType": "linear",
"volumeFeedback": false,
"volumeFeedbackSoundFile": "",
"volumeOverdrive": false,
"volumeStep": 5
},
"bar": {
"autoHideDelay": 500,
"autoShowDelay": 150,
"backgroundOpacity": 0.93,
"barType": "simple",
"capsuleColorKey": "none",
"capsuleOpacity": 1,
"contentPadding": 2,
"density": "default",
"displayMode": "always_visible",
"enableExclusionZoneInset": true,
"fontScale": 1,
"frameRadius": 12,
"frameThickness": 8,
"hideOnOverview": false,
"marginHorizontal": 4,
"marginVertical": 4,
"middleClickAction": "none",
"middleClickCommand": "",
"middleClickFollowMouse": false,
"monitors": [],
"mouseWheelAction": "none",
"mouseWheelWrap": true,
"outerCorners": true,
"position": "top",
"reverseScroll": false,
"rightClickAction": "controlCenter",
"rightClickCommand": "",
"rightClickFollowMouse": true,
"screenOverrides": [],
"showCapsule": true,
"showOnWorkspaceSwitch": true,
"showOutline": false,
"useSeparateOpacity": false,
"widgetSpacing": 6,
"widgets": {
"center": [
{
"characterCount": 10,
"colorizeIcons": true,
"emptyColor": "error",
"enableScrollWheel": true,
"focusedColor": "primary",
"followFocusedScreen": true,
"fontWeight": "bold",
"groupedBorderOpacity": 1,
"hideUnoccupied": true,
"iconScale": 0.8,
"id": "Workspace",
"labelMode": "name",
"occupiedColor": "secondary",
"pillSize": 0.6,
"showApplications": true,
"showApplicationsHover": true,
"showBadge": true,
"showLabelsOnlyWhenOccupied": true,
"unfocusedIconsOpacity": 1
}
],
"left": [
{
"colorizeSystemIcon": "none",
"colorizeSystemText": "none",
"customIconPath": "",
"enableColorization": false,
"icon": "rocket",
"iconColor": "none",
"id": "Launcher",
"useDistroLogo": false
},
{
"clockColor": "none",
"customFont": "",
"formatHorizontal": "HH:mm ddd, MMM dd",
"formatVertical": "HH mm - dd MM",
"id": "Clock",
"tooltipFormat": "HH:mm ddd, MMM dd",
"useCustomFont": false
},
{
"compactMode": true,
"diskPath": "/",
"iconColor": "none",
"id": "SystemMonitor",
"showCpuCores": false,
"showCpuFreq": false,
"showCpuTemp": true,
"showCpuUsage": true,
"showDiskAvailable": false,
"showDiskUsage": false,
"showDiskUsageAsPercent": false,
"showGpuTemp": false,
"showLoadAverage": false,
"showMemoryAsPercent": false,
"showMemoryUsage": true,
"showNetworkStats": false,
"showSwapUsage": false,
"textColor": "none",
"useMonospaceFont": true,
"usePadding": false
},
{
"colorizeIcons": false,
"hideMode": "hidden",
"id": "ActiveWindow",
"maxWidth": 145,
"scrollingMode": "hover",
"showIcon": true,
"showText": true,
"textColor": "none",
"useFixedWidth": false
},
{
"compactMode": false,
"hideMode": "hidden",
"hideWhenIdle": false,
"id": "MediaMini",
"maxWidth": 145,
"panelShowAlbumArt": true,
"scrollingMode": "hover",
"showAlbumArt": true,
"showArtistFirst": true,
"showProgressRing": true,
"showVisualizer": false,
"textColor": "none",
"useFixedWidth": false,
"visualizerType": "linear"
}
],
"right": [
{
"blacklist": [],
"chevronColor": "none",
"colorizeIcons": false,
"drawerEnabled": true,
"hidePassive": false,
"id": "Tray",
"pinned": [
"systray_3155",
"You have 21 notifications",
"Bluetooth Enabled",
"systray_2900",
"Bluetooth Active"
]
},
{
"hideWhenZero": false,
"hideWhenZeroUnread": false,
"iconColor": "none",
"id": "NotificationHistory",
"showUnreadBadge": true,
"unreadBadgeColor": "primary"
},
{
"deviceNativePath": "__default__",
"displayMode": "graphic-clean",
"hideIfIdle": false,
"hideIfNotDetected": true,
"id": "Battery",
"showNoctaliaPerformance": false,
"showPowerProfiles": false
},
{
"displayMode": "onhover",
"iconColor": "none",
"id": "Volume",
"middleClickCommand": "pwvucontrol || pavucontrol",
"textColor": "none"
},
{
"applyToAllMonitors": false,
"displayMode": "onhover",
"iconColor": "none",
"id": "Brightness",
"textColor": "none"
},
{
"colorizeDistroLogo": false,
"colorizeSystemIcon": "none",
"colorizeSystemText": "none",
"customIconPath": "",
"enableColorization": false,
"icon": "noctalia",
"id": "ControlCenter",
"useDistroLogo": false
},
{
"defaultSettings": {
"animationsFolder": "~/.config/niri/animations",
"iconColor": "none",
"targetFile": "~/.config/niri/config.kdl"
},
"id": "plugin:niri-animation-picker"
},
{
"defaultSettings": {
"iconColor": "none",
"kubeconfigPath": "",
"panelHeight": 680,
"panelWidth": 620,
"pollInterval": 60,
"showErrorBadge": true,
"terminal": ""
},
"id": "plugin:kubectl-ctx"
},
{
"defaultSettings": {
"errorIcon": "alert-circle",
"iconColor": "primary",
"loadingIcon": "loader",
"refreshInterval": 300,
"successIcon": "network"
},
"id": "plugin:ip-monitor"
},
{
"defaultSettings": {
"audioCodec": "opus",
"audioSource": "default_output",
"colorRange": "limited",
"copyToClipboard": false,
"customReplayDuration": "30",
"directory": "",
"filenamePattern": "recording_yyyyMMdd_HHmmss",
"frameRate": "60",
"hideInactive": false,
"iconColor": "none",
"quality": "very_high",
"replayDuration": "30",
"replayEnabled": false,
"replayStorage": "ram",
"resolution": "original",
"restorePortalSession": false,
"showCursor": true,
"videoCodec": "h264",
"videoSource": "portal"
},
"id": "plugin:screen-recorder"
},
{
"defaultSettings": {
"colorHistory": [],
"detectedCompositor": "",
"detectedRecorder": "",
"filenameFormat": "",
"installedLangs": ["eng"],
"paletteColors": [],
"screenshotPath": "",
"selectedOcrLang": "eng",
"transAvailable": false,
"videoPath": ""
},
"id": "plugin:screen-toolkit"
},
{
"defaultSettings": {
"activeColor": "primary",
"camFilterRegex": "",
"enableToast": true,
"hideInactive": false,
"iconSpacing": 4,
"inactiveColor": "none",
"micFilterRegex": "",
"removeMargins": false
},
"id": "plugin:privacy-indicator"
},
{
"defaultSettings": {},
"id": "plugin:kde-connect"
},
{
"defaultSettings": {
"backend": "auto",
"gridSize": 40,
"hyprctlCommand": "hyprctl",
"iconColor": "primary",
"snapToGrid": true,
"swayCommand": "swaymsg"
},
"id": "plugin:monitor-layout"
}
]
}
},
"brightness": {
"backlightDeviceMappings": [],
"brightnessStep": 5,
"enableDdcSupport": false,
"enforceMinimum": true
},
"calendar": {
"cards": [
{
"enabled": true,
"id": "calendar-header-card"
},
{
"enabled": true,
"id": "calendar-month-card"
},
{
"enabled": true,
"id": "weather-card"
}
]
},
"colorSchemes": {
"darkMode": true,
"generationMethod": "tonal-spot",
"manualSunrise": "06:30",
"manualSunset": "18:30",
"monitorForColors": "",
"predefinedScheme": "Nord",
"schedulingMode": "off",
"syncGsettings": true,
"useWallpaperColors": false
},
"controlCenter": {
"cards": [
{
"enabled": true,
"id": "profile-card"
},
{
"enabled": true,
"id": "shortcuts-card"
},
{
"enabled": true,
"id": "audio-card"
},
{
"enabled": false,
"id": "brightness-card"
},
{
"enabled": true,
"id": "weather-card"
},
{
"enabled": true,
"id": "media-sysmon-card"
}
],
"diskPath": "/",
"position": "close_to_bar_button",
"shortcuts": {
"left": [
{
"id": "Network"
},
{
"id": "Bluetooth"
},
{
"id": "WallpaperSelector"
},
{
"id": "NoctaliaPerformance"
}
],
"right": [
{
"id": "Notifications"
},
{
"id": "PowerProfile"
},
{
"id": "KeepAwake"
},
{
"id": "NightLight"
}
]
}
},
"desktopWidgets": {
"enabled": true,
"gridSnap": true,
"gridSnapScale": false,
"monitorWidgets": [
{
"name": "DP-12",
"widgets": []
},
{
"name": "eDP-1",
"widgets": [
{
"clockColor": "none",
"clockStyle": "digital",
"customFont": "",
"format": "HH:mm\\nd MMMM yyyy",
"id": "Clock",
"roundedCorners": true,
"scale": 2.8436704465093623,
"showBackground": true,
"useCustomFont": false,
"x": 900,
"y": 600
},
{
"id": "Weather",
"roundedCorners": true,
"scale": 1.7840230578796779,
"showBackground": true,
"x": 250,
"y": 50
},
{
"diskPath": "/",
"id": "SystemStat",
"layout": "bottom",
"roundedCorners": true,
"scale": 1.2637287322956703,
"showBackground": true,
"statType": "CPU",
"x": 975,
"y": 400
},
{
"colorName": "primary",
"height": 72,
"hideWhenIdle": false,
"id": "AudioVisualizer",
"roundedCorners": true,
"scale": 2.0591870326523494,
"showBackground": true,
"visualizerType": "linear",
"width": 320,
"x": 1075,
"y": 50
},
{
"diskPath": "/",
"id": "SystemStat",
"layout": "bottom",
"roundedCorners": true,
"scale": 1.2577993473075955,
"showBackground": true,
"statType": "Memory",
"x": 1125,
"y": 1050
},
{
"diskPath": "/",
"id": "SystemStat",
"layout": "bottom",
"roundedCorners": true,
"scale": 1.2633420332747087,
"showBackground": true,
"statType": "Network",
"x": 725,
"y": 50
},
{
"diskPath": "/",
"id": "SystemStat",
"layout": "bottom",
"roundedCorners": true,
"scale": 1.29053986441566,
"showBackground": true,
"statType": "GPU",
"x": 700,
"y": 1050
},
{
"diskPath": "/mnt/Data",
"id": "SystemStat",
"layout": "side",
"roundedCorners": true,
"scale": 1.0167569575749935,
"showBackground": true,
"statType": "Disk",
"x": 1725,
"y": 750
},
{
"diskPath": "/home",
"id": "SystemStat",
"layout": "side",
"roundedCorners": true,
"scale": 1,
"showBackground": true,
"statType": "Disk",
"x": 1725,
"y": 600
}
]
}
],
"overviewEnabled": true
},
"dock": {
"animationSpeed": 1,
"backgroundOpacity": 1,
"colorizeIcons": false,
"deadOpacity": 0.6,
"displayMode": "auto_hide",
"dockType": "floating",
"enabled": true,
"floatingRatio": 1,
"groupApps": true,
"groupClickAction": "cycle",
"groupContextMenuMode": "extended",
"groupIndicatorStyle": "dots",
"inactiveIndicators": true,
"indicatorColor": "primary",
"indicatorOpacity": 0.6,
"indicatorThickness": 6,
"launcherIcon": "",
"launcherIconColor": "none",
"launcherPosition": "end",
"launcherUseDistroLogo": false,
"monitors": [],
"onlySameOutput": true,
"pinnedApps": [],
"pinnedStatic": true,
"position": "bottom",
"showDockIndicator": true,
"showLauncherIcon": false,
"sitOnFrame": false,
"size": 1.53
},
"general": {
"allowPanelsOnScreenWithoutBar": true,
"allowPasswordWithFprintd": false,
"animationDisabled": false,
"animationSpeed": 1,
"autoStartAuth": false,
"avatarImage": "/home/ari/.face",
"boxRadiusRatio": 1,
"clockFormat": "hh\\nmm",
"clockStyle": "custom",
"compactLockScreen": false,
"dimmerOpacity": 0.2,
"enableBlurBehind": true,
"enableLockScreenCountdown": true,
"enableLockScreenMediaControls": false,
"enableShadows": true,
"forceBlackScreenCorners": false,
"iRadiusRatio": 1,
"keybinds": {
"keyDown": ["Down"],
"keyEnter": ["Return", "Enter"],
"keyEscape": ["Esc"],
"keyLeft": ["Left"],
"keyRemove": ["Del"],
"keyRight": ["Right"],
"keyUp": ["Up"]
},
"language": "",
"lockOnSuspend": true,
"lockScreenAnimations": false,
"lockScreenBlur": 0,
"lockScreenCountdownDuration": 10000,
"lockScreenMonitors": [],
"lockScreenTint": 0,
"passwordChars": false,
"radiusRatio": 1,
"reverseScroll": false,
"scaleRatio": 1,
"screenRadiusRatio": 1,
"shadowDirection": "bottom_right",
"shadowOffsetX": 2,
"shadowOffsetY": 3,
"showChangelogOnStartup": true,
"showHibernateOnLockScreen": false,
"showScreenCorners": false,
"showSessionButtonsOnLockScreen": true,
"smoothScrollEnabled": true,
"telemetryEnabled": true
},
"hooks": {
"colorGeneration": "",
"darkModeChange": "",
"enabled": true,
"performanceModeDisabled": "",
"performanceModeEnabled": "",
"screenLock": "",
"screenUnlock": "",
"session": "",
"startup": "",
"wallpaperChange": ""
},
"idle": {
"customCommands": "[]",
"enabled": true,
"fadeDuration": 5,
"lockCommand": "",
"lockTimeout": 660,
"resumeLockCommand": "",
"resumeScreenOffCommand": "",
"resumeSuspendCommand": "",
"screenOffCommand": "",
"screenOffTimeout": 600,
"suspendCommand": "",
"suspendTimeout": 1800
},
"location": {
"analogClockInCalendar": false,
"autoLocate": true,
"firstDayOfWeek": -1,
"hideWeatherCityName": false,
"hideWeatherTimezone": false,
"name": "Markham",
"showCalendarEvents": true,
"showCalendarWeather": true,
"showWeekNumberInCalendar": false,
"use12hourFormat": false,
"useFahrenheit": false,
"weatherEnabled": true,
"weatherShowEffects": true,
"weatherTaliaMascotAlways": true
},
"network": {
"bluetoothAutoConnect": true,
"bluetoothDetailsViewMode": "grid",
"bluetoothHideUnnamedDevices": false,
"bluetoothRssiPollIntervalMs": 60000,
"bluetoothRssiPollingEnabled": false,
"disableDiscoverability": false,
"networkPanelView": "wifi",
"wifiDetailsViewMode": "grid"
},
"nightLight": {
"autoSchedule": true,
"dayTemp": "6500",
"enabled": false,
"forced": false,
"manualSunrise": "06:30",
"manualSunset": "18:30",
"nightTemp": "4000"
},
"noctaliaPerformance": {
"disableDesktopWidgets": true,
"disableWallpaper": true
},
"notifications": {
"backgroundOpacity": 1,
"clearDismissed": true,
"criticalUrgencyDuration": 15,
"density": "compact",
"enableBatteryToast": true,
"enableKeyboardLayoutToast": true,
"enableMarkdown": true,
"enableMediaToast": true,
"enabled": true,
"location": "top_right",
"lowUrgencyDuration": 3,
"monitors": [],
"normalUrgencyDuration": 8,
"overlayLayer": true,
"respectExpireTimeout": true,
"saveToHistory": {
"critical": true,
"low": true,
"normal": true
},
"sounds": {
"criticalSoundFile": "",
"enabled": true,
"excludedApps": "discord,firefox,chrome,chromium,edge",
"lowSoundFile": "",
"normalSoundFile": "",
"separateSounds": true,
"volume": 0.27
}
},
"osd": {
"autoHideMs": 2000,
"backgroundOpacity": 1,
"enabled": true,
"enabledTypes": [0, 1, 2],
"location": "top_right",
"monitors": [],
"overlayLayer": true
},
"plugins": {
"autoUpdate": false,
"notifyUpdates": true
},
"sessionMenu": {
"countdownDuration": 10000,
"enableCountdown": true,
"largeButtonsLayout": "single-row",
"largeButtonsStyle": true,
"position": "center",
"powerOptions": [
{
"action": "lock",
"command": "",
"countdownEnabled": true,
"enabled": true,
"keybind": "1"
},
{
"action": "suspend",
"command": "",
"countdownEnabled": true,
"enabled": true,
"keybind": "2"
},
{
"action": "hibernate",
"command": "",
"countdownEnabled": true,
"enabled": true,
"keybind": "3"
},
{
"action": "reboot",
"command": "",
"countdownEnabled": true,
"enabled": true,
"keybind": "4"
},
{
"action": "logout",
"command": "",
"countdownEnabled": true,
"enabled": true,
"keybind": "5"
},
{
"action": "shutdown",
"command": "",
"countdownEnabled": true,
"enabled": true,
"keybind": "6"
},
{
"action": "rebootToUefi",
"command": "",
"countdownEnabled": true,
"enabled": true,
"keybind": "7"
},
{
"action": "userspaceReboot",
"command": "",
"countdownEnabled": true,
"enabled": false,
"keybind": ""
}
],
"showHeader": true,
"showKeybinds": true
},
"settingsVersion": 59,
"systemMonitor": {
"batteryCriticalThreshold": 5,
"batteryWarningThreshold": 20,
"cpuCriticalThreshold": 90,
"cpuWarningThreshold": 80,
"criticalColor": "",
"diskAvailCriticalThreshold": 10,
"diskAvailWarningThreshold": 20,
"diskCriticalThreshold": 90,
"diskWarningThreshold": 80,
"enableDgpuMonitoring": true,
"externalMonitor": "resources || missioncenter || jdsystemmonitor || corestats || system-monitoring-center || gnome-system-monitor || plasma-systemmonitor || mate-system-monitor || ukui-system-monitor || deepin-system-monitor || pantheon-system-monitor",
"gpuCriticalThreshold": 90,
"gpuWarningThreshold": 80,
"memCriticalThreshold": 90,
"memWarningThreshold": 80,
"swapCriticalThreshold": 90,
"swapWarningThreshold": 80,
"tempCriticalThreshold": 90,
"tempWarningThreshold": 80,
"useCustomColors": false,
"warningColor": ""
},
"templates": {
"activeTemplates": [],
"enableUserTheming": false
},
"ui": {
"boxBorderEnabled": false,
"fontDefault": "DejaVu Sans",
"fontDefaultScale": 1,
"fontFixed": "monospace",
"fontFixedScale": 1,
"panelBackgroundOpacity": 0.93,
"panelsAttachedToBar": true,
"scrollbarAlwaysVisible": true,
"settingsPanelMode": "attached",
"settingsPanelSideBarCardStyle": false,
"tooltipsEnabled": true,
"translucentWidgets": false
},
"wallpaper": {
"automationEnabled": false,
"directory": "/home/ari/Pictures/Wallpapers",
"enableMultiMonitorDirectories": false,
"enabled": true,
"favorites": [],
"fillColor": "#000000",
"fillMode": "crop",
"hideWallpaperFilenames": false,
"linkLightAndDarkWallpapers": true,
"monitorDirectories": [],
"overviewBlur": 0.4,
"overviewEnabled": true,
"overviewTint": 0.6,
"panelPosition": "center",
"randomIntervalSec": 300,
"setWallpaperOnAllMonitors": true,
"showHiddenFiles": false,
"skipStartupTransition": true,
"solidColor": "#1a1a2e",
"sortOrder": "name",
"transitionDuration": 0,
"transitionEdgeSmoothness": 0.05,
"transitionType": [
"fade",
"disc",
"stripes",
"wipe",
"pixelate",
"honeycomb"
],
"useOriginalImages": true,
"useSolidColor": false,
"useWallhaven": false,
"viewMode": "single",
"wallhavenApiKey": "",
"wallhavenCategories": "111",
"wallhavenOrder": "desc",
"wallhavenPurity": "100",
"wallhavenQuery": "",
"wallhavenRatios": "",
"wallhavenResolutionHeight": "",
"wallhavenResolutionMode": "atleast",
"wallhavenResolutionWidth": "",
"wallhavenSorting": "relevance",
"wallpaperChangeMode": "random"
}
}
+3
View File
@@ -0,0 +1,3 @@
# Third-party plugin checkouts stay local (own .git, omarchy-plugin-update).
# shell.json still lists enabled plugin ids; install/clone into plugins/ yourself.
plugins/
+30
View File
@@ -0,0 +1,30 @@
# configs/fwbook/omarchy/
Host-specific Omarchy (nixarchy) shell config for `fwbook`.
Symlinked to `~/.config/omarchy` by `hosts/fwbook/packages.nix`
(`system.userActivationScripts.omarchyConfig`), same pattern as hypr/noctalia.
## Layout
| Path | Notes |
| --- | --- |
| `shell.json` | Bar layout, idle timings, enabled plugins. No `omarchy.system-update` widget (its 6h poll is a no-op on NixOS). |
| `shell.toml` | Font base size for the shell. |
| `defaults/` | Defaults the shell writes (e.g. `agent`). |
| `backgrounds/` | User wallpapers / live-wallpaper sources. |
| `plugins/` | **Not tracked** (gitignored). Third-party checkouts with their own `.git` so `omarchy-plugin-update` still works. `shell.json` lists enabled ids; clone/install into this dir on each machine. |
Runtime state stays under `~/.local/state/omarchy/` (clipboard, toggles, etc.) — not here.
## Plugins currently in use (local only)
| id | source |
| --- | --- |
| `tenzin.live-wallpaper` | https://github.com/yesheytenzin/live-wallpaper |
| `io.github.ehlxr.advanced-workspaces` | https://github.com/ehlxr/advanced-workspaces |
## Package wiring
Shell binary + `OMARCHY_PATH` live in `hosts/fwbook/packages.nix`.
Launch is `omarchy-launch-shell` from `configs/fwbook/hypr/conf/autostart.lua`.
No nixarchy NixOS/HM modules.
Whitespace-only changes.
Binary file not shown.

After

Width:  |  Height:  |  Size: 659 KiB

Binary file not shown.
+1
View File
@@ -0,0 +1 @@
nord
+1
View File
@@ -0,0 +1 @@
pi
+70
View File
@@ -0,0 +1,70 @@
{
"bar": {
"centerAnchor": "omarchy.clock",
"layout": {
"center": [
{
"id": "omarchy.indicators"
},
{
"format": "dddd HH:mm",
"formatAlt": "d MMMM 'W'ww yyyy",
"id": "omarchy.clock",
"verticalFormat": "HH\n—\nmm"
},
{
"id": "omarchy.keyboard-layout"
},
{
"id": "omarchy.weather"
}
],
"left": [
{
"id": "omarchy.menu"
},
{
"id": "omarchy.workspaces"
},
{
"id": "io.github.ehlxr.advanced-workspaces"
}
],
"right": [
{
"id": "omarchy.tray"
},
{
"id": "omarchy.agents"
},
{
"id": "omarchy.bluetooth"
},
{
"id": "omarchy.network"
},
{
"id": "omarchy.audio"
},
{
"id": "omarchy.monitor"
},
{
"id": "omarchy.power"
}
]
},
"position": "top",
"transparent": false
},
"idle": {
"lock": 300,
"screensaver": 150
},
"plugins": [
{
"id": "tenzin.live-wallpaper"
}
],
"version": 1
}
Loaded 100 of 506 files, more files were not shown because too many files have changed in this diff. Show more