Compare commits

...
65 Commits
Author SHA1 Message Date
jashton ac241fe497 nixos: gen 80 @ lilac — 2026-09-29 13:47 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-29 13:47:40 -06:00
jashton be2ec252ee nixos: gen 79 @ lilac — 2026-09-29 13:43 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-29 13:43:19 -06:00
jashton d585007aaa nixos: gen 78 @ lilac — 2026-09-29 10:15 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-29 10:15:37 -06:00
jashton 42a34d981a nixos: gen 77 @ lilac — 2026-09-25 08:11 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-25 08:11:54 -06:00
jashton 60e64aad63 nixos: gen 76 @ lilac — 2026-09-24 14:51 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-24 14:51:04 -06:00
jashton e1eb76bb8c nixos: gen 75 @ lilac — 2026-09-24 14:16 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-24 14:16:06 -06:00
jashton c5dab4f100 nixos: gen 74 @ lilac — 2026-09-24 14:13 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-24 14:13:18 -06:00
jashton 1ff13c496d nixos: gen 73 @ lilac — 2026-09-24 14:09 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-24 14:09:24 -06:00
jashton c786683558 nixos: gen 72 @ lilac — 2026-09-24 09:50 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-24 09:50:42 -06:00
jashton baa8eb7d90 nixos: gen 71 @ lilac — 2026-09-24 09:47 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-24 09:47:03 -06:00
jashton 427de24789 nixos: gen 70 @ lilac — 2026-09-22 16:23 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-22 16:23:50 -06:00
jashton 366b135a49 nixos: gen 69 @ lilac — 2026-09-22 16:10 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-22 16:10:27 -06:00
jashton cb48f0ea99 fix systemd client service 2026-09-22 16:04:33 -06:00
jashton a4b5fa30df designated lilac as server/listener, violet as client 2026-09-22 15:59:33 -06:00
jashton a5c7fc2126 nixos: gen 68 @ lilac — 2026-09-22 15:58 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-22 15:58:24 -06:00
jashton 31abeb305c nixos: gen 67 @ lilac — 2026-09-22 15:42 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-22 15:42:38 -06:00
jashton b1b6a6c395 nixos: gen 67 @ lilac — 2026-09-22 15:39 26.05.20260918.cf9d2fb (Yarara) ----- IP over bluetooth for seamless LAN-Mouse 2026-09-22 15:39:56 -06:00
jashton f99928c954 nixos: gen 66 @ lilac — 2026-09-22 13:35 26.05.20260918.cf9d2fb (Yarara) ----- configuring opencode to use on-device AI 2026-09-22 13:35:10 -06:00
jashton 284a084ca5 nixos: gen 65 @ lilac — 2026-09-21 18:47 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-21 18:47:38 -06:00
jashton 33adf967e3 nixos: gen 64 @ lilac — 2026-09-21 09:09 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-21 09:10:02 -06:00
jashton cea4b70f83 nixos: gen 64 @ lilac — 2026-09-21 09:06 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-21 09:06:13 -06:00
jashton 92fe2a5a18 nixos: gen 64 @ lilac — 2026-09-20 02:34 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-20 02:34:59 -06:00
jashton da6e625f87 nixos: gen 63 @ lilac — 2026-09-20 02:20 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-20 02:24:09 -06:00
jashton 0ed1b19d50 nixos: gen 62 @ lilac — 2026-09-20 02:10 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-20 02:10:41 -06:00
jashton 03c32ccd43 nixos: gen 61 @ lilac — 2026-09-20 01:26 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-20 01:27:24 -06:00
jashton 6dba7591c9 nixos: gen 60 @ lilac — 2026-09-20 00:05 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-20 00:05:28 -06:00
jashton c5575b29e2 nixos: gen 59 @ lilac — 2026-09-19 22:57 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-19 23:01:04 -06:00
jashton 3a03af88ac nixos: gen 59 @ lilac — 2026-09-19 22:54 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-19 22:54:57 -06:00
jashton 926a9ce8d2 nixos: gen 58 @ lilac — 2026-09-18 23:31 26.05.20260918.cf9d2fb (Yarara) ----- 2026-09-18 23:33:29 -06:00
jashton 0947526230 nixos: gen 57 @ lilac — 2026-09-18 23:04 26.05.20260917.ecc58f3 (Yarara) ----- 2026-09-18 23:05:03 -06:00
jashton dc03ffb1ab nixos: gen 54 @ lilac — 2026-09-18 21:17 26.05.20260814.02e0898 (Yarara) ----- 2026-09-18 21:18:39 -06:00
jashton 0751404d41 nixos: gen 53 @ lilac — 2026-09-18 21:14 26.05.20260814.02e0898 (Yarara) ----- 2026-09-18 21:14:08 -06:00
jashton 8878543aeb nixos: gen 52 @ lilac — 2026-09-18 20:58 26.05.20260814.02e0898 (Yarara) ----- 2026-09-18 21:04:39 -06:00
jashton a17047a67a nixos: gen 51 @ lilac — 2026-09-18 20:14 26.05.20260814.02e0898 (Yarara) ----- 2026-09-18 20:15:39 -06:00
jashton 8c6c7c8495 nixos: gen 50 @ lilac — 2026-09-18 20:09 26.05.20260814.02e0898 (Yarara) ----- 2026-09-18 20:09:03 -06:00
jashton c586a863f6 nixos: gen 49 @ lilac — 2026-09-18 10:24 26.05.20260814.02e0898 (Yarara) ----- 2026-09-18 10:24:10 -06:00
jashton f524723d98 nixos: gen 48 @ lilac — 2026-09-18 10:18 26.05.20260814.02e0898 (Yarara) ----- 2026-09-18 10:18:52 -06:00
jashton 46362c1949 nixos: gen 47 @ lilac — 2026-09-18 10:13 26.05.20260814.02e0898 (Yarara) ----- 2026-09-18 10:14:01 -06:00
jashton cd1e5d7408 nixos: gen 46 @ lilac — 2026-09-18 08:21 26.05.20260814.02e0898 (Yarara) ----- 2026-09-18 08:21:46 -06:00
jashton 77178d0b6e nixos: gen 45 @ lilac — 2026-09-18 08:18 26.05.20260814.02e0898 (Yarara) ----- refactoring nvim.nix and adding better java integration 2026-09-18 08:18:18 -06:00
jashton b85e10aa25 nixos: gen 44 @ lilac — 2026-09-18 03:15 26.05.20260814.02e0898 (Yarara) ----- 2026-09-18 03:15:34 -06:00
jashton 0a0d297033 nixos: gen 43 @ lilac — 2026-09-17 15:15 26.05.20260814.02e0898 (Yarara) ----- 2026-09-17 15:15:45 -06:00
jashton e3779c9f6b nixos: gen 42 @ lilac — 2026-09-17 15:12 26.05.20260814.02e0898 (Yarara) ----- 2026-09-17 15:12:53 -06:00
jashton 7409f22d66 nixos: gen 41 @ lilac — 2026-09-17 15:11 26.05.20260814.02e0898 (Yarara) ----- 2026-09-17 15:11:04 -06:00
jashton 0d19a8c4ef nixos: gen 40 @ lilac — 2026-09-17 15:08 26.05.20260814.02e0898 (Yarara) ----- 2026-09-17 15:08:43 -06:00
jashton e4ad117b70 nixos: gen 39 @ lilac — 2026-09-17 15:01 26.05.20260814.02e0898 (Yarara) ----- 2026-09-17 15:01:48 -06:00
jashton 476a277371 nixos: gen 38 @ lilac — 2026-09-17 14:58 26.05.20260814.02e0898 (Yarara) ----- 2026-09-17 14:58:28 -06:00
jashton f84f7556fb nixos: gen 37 @ lilac — 2026-09-17 14:54 26.05.20260814.02e0898 (Yarara) ----- 2026-09-17 14:54:52 -06:00
jashton 17f1150298 nixos: gen 36 @ lilac — 2026-09-17 14:14 26.05.20260814.02e0898 (Yarara) ----- 2026-09-17 14:14:16 -06:00
jashton 72032bda82 nixos: gen 35 @ lilac — 2026-09-17 11:12 26.05.20260814.02e0898 (Yarara) ----- 2026-09-17 11:12:15 -06:00
jashton 4bb350b262 nixos: gen 34 @ lilac — 2026-09-13 13:04 26.05.20260814.02e0898 (Yarara) ----- 2026-09-13 13:04:27 -06:00
jashton c374ecbd36 nixos: gen 33 @ lilac — 2026-09-12 19:06 26.05.20260814.02e0898 (Yarara) ----- 2026-09-12 19:06:55 -06:00
jashton 44712feab0 nixos: gen 32 @ lilac — 2026-09-11 18:21 26.05.20260814.02e0898 (Yarara) ----- 2026-09-11 18:21:49 -06:00
jashton eb5381bf68 nixos: gen 31 @ lilac — 2026-09-11 18:18 26.05.20260814.02e0898 (Yarara) ----- 2026-09-11 18:19:12 -06:00
jashton 61fc2f1898 nixos: gen 250 @ violet — 2026-09-05 02:57 26.05.20260814.02e0898 (Yarara) ----- 2026-09-05 02:57:34 -06:00
jashton 76a4fd0708 nixos: gen 249 @ violet — 2026-09-05 02:40 26.05.20260814.02e0898 (Yarara) ----- 2026-09-05 02:40:51 -06:00
jashton 5c48a495c2 nixos: gen 248 @ violet — 2026-09-05 02:11 26.05.20260814.02e0898 (Yarara) ----- 2026-09-05 02:11:26 -06:00
jashton b4b0832e3b nixos: gen 247 @ violet — 2026-09-05 02:05 26.05.20260814.02e0898 (Yarara) ----- 2026-09-05 02:05:30 -06:00
jashton 6cd7d5ba59 nixos: gen 30 @ lilac — 2026-09-04 16:44 26.05.20260814.02e0898 (Yarara) ----- 2026-09-04 16:44:23 -06:00
jashton c743bb8318 nixos: gen 29 @ lilac — 2026-09-04 13:00 26.05.20260814.02e0898 (Yarara) ----- adding u of u printers 2026-09-04 13:00:34 -06:00
jashton 0831239cef nixos: gen 28 @ lilac — 2026-09-02 23:35 26.05.20260814.02e0898 (Yarara) ----- 2026-09-02 23:35:39 -06:00
jashton b2f9f3a46d nixos: gen 27 @ lilac — 2026-09-02 23:23 26.05.20260814.02e0898 (Yarara) ----- 2026-09-02 23:23:48 -06:00
jashton eef6ee42bb nixos: gen 26 @ lilac — 2026-09-02 23:12 26.05.20260814.02e0898 (Yarara) ----- background blur on terminal 2026-09-02 23:12:52 -06:00
jashton 8a60192e87 nixos: gen 25 @ lilac — 2026-09-02 23:08 26.05.20260814.02e0898 (Yarara) ----- 2026-09-02 23:09:48 -06:00
jashton f8b0574512 nixos: gen 24 @ lilac — 2026-09-02 23:06 26.05.20260814.02e0898 (Yarara) ----- 2026-09-02 23:06:39 -06:00
22 changed files with 819 additions and 129 deletions
+17
View File
@@ -0,0 +1,17 @@
{
"permissions": {
"allow": [
"Read(//home/jashton/.local/state/nix/profiles/**)",
"Read(//nix/var/nix/profiles/**)",
"Read(//nix/store/**)",
"Bash(systemctl --user show-environment)",
"Bash(nix eval *)",
"Bash(nix-instantiate --parse /home/jashton/.dotfiles/home/jashton.nix)",
"Bash(git -C /home/jashton/.dotfiles status)",
"Bash(git -C /home/jashton/.dotfiles log -3 --stat)",
"Bash(gh api *)",
"Bash(nix-store -q --references /nix/store/256vhj20yfbajhvdm3cpaxradb4pi1ac-ollama-0.34.0)",
"Bash(nix-store -q --references /nix/store/pxgnnjm1p1zlavx8i2wjdmz484lq4k8v-ollama-0.34.0)"
]
}
}
+131
View File
@@ -0,0 +1,131 @@
# .dotfiles
NixOS + Home Manager configuration for jashton's machines, built as a single flake.
## NixOS Flakes Structure
```
.
├── flake.nix / flake.lock Inputs + the 3 nixosConfigurations (violet, lilac, lavender)
├── hosts/<name>/ Per-machine entrypoint + hardware.nix
├── system/ Shared NixOS (system-level) configuration
├── home/ Home Manager configuration for user "jashton"
├── secrets/ + .sops.yaml sops-nix encrypted secrets
└── ports.registry State file written by the find-open-port script
```
**`flake.nix`** pins `nixpkgs` to `nixos-26.05` (plus an `nixpkgs-unstable` follower), and pulls in `home-manager`, `sops-nix`, `niri` (compositor), `wvkbd-src` (on-screen keyboard source), the DankMaterialShell trio (`dms`, `dms-plugin-registry`, `danksearch`), and `nixos-hardware`. Its `outputs` define three `nixosConfigurations`, one per host — each wires up the niri/dms-plugin-registry/sops-nix NixOS modules and a `home-manager.users.jashton` block importing `home/jashton.nix` (plus the `danksearch` home module).
**`hosts/`** — one directory per machine, each with `default.nix` (hostname + host-specific services/hardware tweaks, imports `../../system`) and `hardware.nix` (generated hardware scan):
- `violet` — imports the ThinkPad-specific security module (`system/security/thinkpad.nix`), disables lid-switch suspend, has (disabled) TLP power-profile tuning, and enables `input-remapper`.
- `lilac` — Framework laptop (Intel Core Ultra series 3, via `nixos-hardware`), fingerprint reader + Thunderbolt/bolt + Intel graphics acceleration.
- `lavender` — minimal host, just graphics enablement.
- Both `violet`/`lilac` open a Thunderbolt-networking point-to-point link (`thunderbolt0`, ports 4242).
**`system/`** — shared NixOS config imported by every host, split by concern:
- `packages.nix` — system-wide packages, unfree allowed, plus a hand-written `unix` script (`sudo nixos-rebuild switch`, then auto-commits/pushes the dotfiles repo on success) and Steam setup.
- `core/` — `boot.nix` (systemd-boot, `uinput` module), `audio.nix` (PipeWire/Bluetooth tuning), `env.nix` (zsh + oh-my-zsh, Nerd Font, flakes enabled, shell aliases), `locale.nix` (Denver/en_US), `power.nix` (deep sleep).
- `security/` — `sops.nix` (age-via-SSH-host-key secrets), `sudo.nix` (passwordless `tlp` for jashton), `systemd.nix`, `thinkpad.nix` (fprintd), `users.nix` (user/group defs).
- `network/` — NetworkManager + firewall, plus `pi-hole.nix` (a Pi-hole container run via Podman `oci-containers`).
- `services/` — currently an empty placeholder module (compositor/greeter services are declared per-host instead, see `hosts/violet/default.nix`).
- `virtualisation/` — Podman (with Docker compat), Waydroid, VirtualBox, libvirtd.
**`home/`** — Home Manager config for `jashton`:
- `jashton.nix` — top-level user config: session vars, SSH client config (aliases for `lavender`/`violet`/`lilac`/`heliotrope`), the `lan-mouse` user service, workspace directory scaffolding (`~/dev`, `~/school`, etc.), a `custom_wvkbd` package override (builds `wvkbd` from `wvkbd-src` against the `.custom.h` files below), and a set of hand-written shell tools installed as packages: `jroot`/`jbuild`/`jrun`/`jtest`/`jclean` (Java project tooling — see below), `fkill` (interactive `pkill` by name), `find-open-port` (dev-port registry in `ports.registry`).
- `programs/` — `default.nix` imports `alacritty.nix` (terminal theme/font), `git.nix` (identity + ignores), `nvim.nix` (full Neovim config: LSP, completion, Java/jdtls + DAP debugging — see Keybinds). `keymap.custom.h`, `layout.custom.h`, `config.custom.h` (+ `.bak` backups) are C source overrides for wvkbd's `mobintl` on-screen-keyboard layout, spliced into the `custom_wvkbd` build in `jashton.nix`.
- `desktop/` — `default.nix` imports `niri.nix` (the niri compositor config, touch-gesture daemon, and on-screen-keyboard launcher — see Keybinds); `wvkbd.nix` is currently an empty stub.
**`secrets/secrets.yaml`** + **`.sops.yaml`** — sops-encrypted secrets (currently Vaultwarden client id/secret), decrypted at activation time using each host's SSH host key as the age identity.
## Keybinds
### Niri (compositor, `home/desktop/niri.nix`)
`Mod` is niri's default modifier (Super/Windows key).
| Bind | Action |
|---|---|
| `Mod+Return` | Spawn Alacritty |
| `Mod+Space` | Toggle DMS spotlight launcher |
| `Mod+F` | Fullscreen focused window |
| `Mod+V` | Toggle floating for focused window |
| `Mod+X` | Close focused window |
| `Mod+H` / `Mod+L` | Focus column left / right |
| `Mod+J` / `Mod+K` | Focus window down / up |
| `Mod+Shift+H` / `Mod+Shift+L` | Move column left / right |
| `Mod+Shift+J` / `Mod+Shift+K` | Move column to workspace down / up |
| `Mod+U` / `Mod+N` | Focus workspace up / down |
| `Mod+Shift+P` | Toggle overview |
| `Mod+P` | Toggle the on-screen keyboard (signals `wvkbd-mobintl`) |
| `Mod+Shift+E` | Quit niri |
| `Print` | Screenshot (interactive) |
| `Ctrl+Print` | Screenshot whole screen |
| `XF86AudioRaiseVolume` / `XF86AudioLowerVolume` | Volume ±5% |
| `XF86AudioMute` | Toggle mute |
| `XF86MonBrightnessUp` / `XF86MonBrightnessDown` | Brightness ±5 (via `dms ipc call brightness`) |
### Touchscreen gestures (`lisgd`, launched at niri startup, `home/desktop/niri.nix`)
| Gesture | Action |
|---|---|
| 3-finger swipe left → right | Focus column left |
| 3-finger swipe right → left | Focus column right |
| 3-finger swipe up → down | Focus workspace up |
| 3-finger swipe down → up | Focus workspace down |
| 4-finger swipe down → up | Toggle DMS spotlight |
| 1-finger swipe down → up, starting from the bottom edge | Toggle the on-screen keyboard |
| 1-finger swipe up → down, starting from the top edge | Maximize window to edges |
### On-screen keyboard (custom `wvkbd-mobintl` build, `home/programs/{layout,config,keymap}.custom.h`)
- Toggle show/hide: `Mod+P` or the bottom-edge swipe gesture above (both send `SIGRTMIN` to `wvkbd-mobintl`).
- The "⌨" key (`NextLayer`) cycles keyboard layers: `Full ⇄ Special` in portrait, `Landscape ⇄ LandscapeSpecial` in landscape.
- `Abc` (in the `Special` layer) returns to the base layer.
- `Cmp` (Compose) + a letter opens that letter's accent/diacritic picker (e.g. `Cmp` then `e` → é/è/ê/ë/ē…).
- The `q` key doubles as a shortcut into the emoji layer.
- Alternate script layouts exist in the layout source (Cyrillic, Arabic, Persian, Greek, Georgian, Hebrew) but are not wired into the active `layers[]` cycle — only `Full`/`Special` (portrait) and `Landscape`/`LandscapeSpecial` (landscape) are reachable from the running config.
### Neovim (`home/programs/nvim.nix`, leader = `<Space>`)
General:
| Bind | Action |
|---|---|
| `<leader>w` | Write file |
| `<leader>q` | Quit |
| `<leader>wq` | Write and quit |
| `<leader>x` | `chmod +x` the current file |
| `Q` | Disabled (no-op) |
| `o` / `O` | Open a line below/above, stay in normal mode |
| `jj` (insert mode) | Escape to normal mode |
Completion (insert mode, nvim-cmp):
| Bind | Action |
|---|---|
| `<C-Space>` | Trigger completion |
| `<CR>` | Confirm selection |
| `<C-n>` / `<C-p>` | Next / previous item |
Java LSP (buffer-local, active once `jdtls` attaches to a `.java` file):
| Bind | Action |
|---|---|
| `gd` | Go to definition |
| `gr` | Find references |
| `K` | Hover docs |
| `<leader>rn` | Rename symbol |
| `<leader>ca` | Code action |
| `<leader>f` | Format buffer |
| `<leader>oi` | Organize imports |
Debugging (nvim-dap / nvim-dap-ui, global):
| Bind | Action |
|---|---|
| `<leader>db` | Toggle breakpoint |
| `<leader>dB` | Conditional breakpoint (prompts for condition) |
| `<leader>dc` | Continue / start session (prompts for a config if none is running) |
| `<leader>dn` | Step over |
| `<leader>di` | Step into |
| `<leader>du` | Step out |
| `<leader>dr` | Toggle the debug REPL |
| `<leader>dq` | Terminate session |
| `<leader>de` (normal + visual) | Evaluate expression under cursor / selection |
### Other applications
- **Alacritty** (`home/programs/alacritty.nix`) — only theme/font/window settings are configured; keybindings are Alacritty's unmodified defaults.
- Everything else installed (LibreWolf, Thunderbird, Discord, VLC, Zathura, etc.) is installed via `home.packages`/`environment.systemPackages` with no keybind customization in this repo — they run with upstream defaults.
- `input-remapper` is enabled on `violet` (`hosts/violet/default.nix`) but has no remapping profile committed in this repo.
Generated
+121 -28
View File
@@ -1,38 +1,129 @@
{
"nodes": {
"danksearch": {
"dank-greeter": {
"inputs": {
"dank-qml-common": "dank-qml-common",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1789701749,
"narHash": "sha256-vVJUgNEUa+trNXZFK7DGmuV9HMz4GMiA+f+de6k51hw=",
"owner": "AvengeMedia",
"repo": "dank-greeter",
"rev": "c792f1e13287fed01b1bf1a80654553019f3e0cb",
"type": "github"
},
"original": {
"owner": "AvengeMedia",
"repo": "dank-greeter",
"type": "github"
}
},
"dank-qml-common": {
"flake": false,
"locked": {
"lastModified": 1789701545,
"narHash": "sha256-aNZwXDlF1NMIrMtPL3ZtDg5Q8LZY62DjnpPRoe2453g=",
"owner": "AvengeMedia",
"repo": "dank-qml-common",
"rev": "55d3897192f47692b7961812d94ad18004fa0ad8",
"type": "github"
},
"original": {
"owner": "AvengeMedia",
"repo": "dank-qml-common",
"type": "github"
}
},
"dank-qml-common_2": {
"flake": false,
"locked": {
"lastModified": 1789755182,
"narHash": "sha256-47BBqvpzKSKo65gRnGirwulJ/c6N3Dg+vEfErwXTu58=",
"owner": "AvengeMedia",
"repo": "dank-qml-common",
"rev": "ff99ec8a93c4a52d792e7020575540582f249ea9",
"type": "github"
},
"original": {
"owner": "AvengeMedia",
"repo": "dank-qml-common",
"type": "github"
}
},
"dank-qml-common_3": {
"flake": false,
"locked": {
"lastModified": 1788376015,
"narHash": "sha256-/tT8rTznLADndTwLBzdgzzgfJH1ZhYQibYo5v/F8U+U=",
"owner": "AvengeMedia",
"repo": "dank-qml-common",
"rev": "26396ce432d6c71c3f5367438f96f4a8d667e160",
"type": "github"
},
"original": {
"owner": "AvengeMedia",
"repo": "dank-qml-common",
"type": "github"
}
},
"dankcalendar": {
"inputs": {
"dank-qml-common": "dank-qml-common_2",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1789758001,
"narHash": "sha256-9mkKoWExAmPdKT5VEK5oW7XFs6wTaDtqXa8OUOS2UKk=",
"owner": "AvengeMedia",
"repo": "dankcalendar",
"rev": "feebbb5de09e57467c6bf3e97ec9366af8ad5c6b",
"type": "github"
},
"original": {
"owner": "AvengeMedia",
"repo": "dankcalendar",
"type": "github"
}
},
"dgop": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1786198506,
"narHash": "sha256-u4tdLMzKCV2R0wn4eFtk4LKH0RmzzCkxeYqCYs/P3eg=",
"lastModified": 1789657958,
"narHash": "sha256-0zWMFcxLZEVPzCRe5yDgPlPHBNgw3MMq78MAUvGNu/4=",
"owner": "AvengeMedia",
"repo": "danksearch",
"rev": "632c2909bb1bb534b574c22c1347de0e6521e58a",
"repo": "dgop",
"rev": "56a43ff5b8c6b14c5a7c190a69eec43f2297d76b",
"type": "github"
},
"original": {
"owner": "AvengeMedia",
"repo": "danksearch",
"repo": "dgop",
"type": "github"
}
},
"dms": {
"inputs": {
"dank-qml-common": "dank-qml-common_3",
"flake-compat": "flake-compat",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1785111455,
"narHash": "sha256-aTNuC9NDBnYAeEtFsleeUwmGX3AZlKOutbl+LQRPkmQ=",
"lastModified": 1789657660,
"narHash": "sha256-NPYX33iiXo6aBwh7umfJzeZQBedupOG7pk5z171ID3s=",
"owner": "AvengeMedia",
"repo": "DankMaterialShell",
"rev": "069ddab041c738236a8910e4c39b65d9628d3018",
"rev": "2db7646fe3ab47fddfdb8723f2da07d61a0d47ac",
"type": "github"
},
"original": {
@@ -49,11 +140,11 @@
]
},
"locked": {
"lastModified": 1786847024,
"narHash": "sha256-d1vE3V5zzLQPCAGy6HQd6EFh4eG30KdTMUON4ZizTPY=",
"lastModified": 1789789500,
"narHash": "sha256-rBndooJeUIgPQewnYn31dx1yrk/fhAsKN8A3q4KcbGs=",
"owner": "AvengeMedia",
"repo": "dms-plugin-registry",
"rev": "2cde930aa2d735c3d1dac10096bb7d317a15aaa6",
"rev": "f50a3779a1e20b80e9148181f5f9f053664c4b74",
"type": "github"
},
"original": {
@@ -85,11 +176,11 @@
]
},
"locked": {
"lastModified": 1785119570,
"narHash": "sha256-Rgs2xKnGLFWQscxUaXX07oyZeuMDOHEbqDOsgliLFGM=",
"lastModified": 1789267039,
"narHash": "sha256-LWiBv9yAYFi2LPbUhDGHPGKYskJQjj2fw12OlyO1uQo=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "d4fd24667c8cbef124bb70a20380cab75ec8474d",
"rev": "ec172013fa62135f58fb58dd17ae9651e8f39727",
"type": "github"
},
"original": {
@@ -162,11 +253,11 @@
]
},
"locked": {
"lastModified": 1786867632,
"narHash": "sha256-ez+ubZlA1RtdjCB18a6zJ9M4u8qoPDy08EcnsW5M3Xw=",
"lastModified": 1789752250,
"narHash": "sha256-q0J27mJDfd4BM9a7KcMVbcRmqyU+goQwudbMIu66qsg=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "ff17823245ab9ff7bcae6acf950bd89cba82c38c",
"rev": "b2d7d02644f0002535a3bb51a73780945cdc7ba4",
"type": "github"
},
"original": {
@@ -210,11 +301,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1786862985,
"narHash": "sha256-FBJRXmbGXiSUDvYEbfLYRkckayyZ6SK1UEqhCrIZ2Cs=",
"lastModified": 1789684949,
"narHash": "sha256-ZKhUe/2IJUq1JhKxKMu8rbkgSGmPP2ZCqlIPn40aGCM=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "e5bdc4a41d4c072fe1e3787eaa0320a384741d44",
"rev": "e554fab72f81915600f3f449b786fd9af40439a5",
"type": "github"
},
"original": {
@@ -226,11 +317,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1786711500,
"narHash": "sha256-QvnceIGTBeDvDd9oCn+GvdsnkquliuwbVgpiRH68qaQ=",
"lastModified": 1789749394,
"narHash": "sha256-cFTsMQz8Hzn8MT49oaeLSHg62tE86NykugCWkeM2ypk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "02e08985a27c65ffd33d434eeb2e660a2e4dc84d",
"rev": "cf9d2fb3e50fa1cd5114c47505ea9177f7ff5f49",
"type": "github"
},
"original": {
@@ -242,7 +333,9 @@
},
"root": {
"inputs": {
"danksearch": "danksearch",
"dank-greeter": "dank-greeter",
"dankcalendar": "dankcalendar",
"dgop": "dgop",
"dms": "dms",
"dms-plugin-registry": "dms-plugin-registry",
"home-manager": "home-manager",
@@ -261,11 +354,11 @@
]
},
"locked": {
"lastModified": 1786629091,
"narHash": "sha256-gkig4nPi1CWc4Z50GBsjE4ygSE7hMpl/TwID2an2Cck=",
"lastModified": 1789691124,
"narHash": "sha256-k+I+R6uwHX3VcJ7326qLV6vCahZUgsVl+i8sSU/Stxk=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "a8627b21b9107c5711c96b84f32a9a4b3d45295f",
"rev": "1e73e8f7176d65e1b55e324de099bbfff4b2c574",
"type": "github"
},
"original": {
+31 -9
View File
@@ -27,13 +27,23 @@
inputs.nixpkgs.follows = "nixpkgs";
};
dms-plugin-registry = {
url = "github:AvengeMedia/dms-plugin-registry";
dgop = {
url = "github:AvengeMedia/dgop";
inputs.nixpkgs.follows = "nixpkgs";
};
danksearch = {
url = "github:AvengeMedia/danksearch";
dank-greeter = {
url = "github:AvengeMedia/dank-greeter";
inputs.nixpkgs.follows = "nixpkgs";
};
dankcalendar = {
url = "github:AvengeMedia/dankcalendar";
inputs.nixpkgs.follows = "nixpkgs";
};
dms-plugin-registry = {
url = "github:AvengeMedia/dms-plugin-registry";
inputs.nixpkgs.follows = "nixpkgs";
};
@@ -43,7 +53,7 @@
};
};
outputs = { nixpkgs, home-manager, sops-nix, niri, dms, dms-plugin-registry, danksearch, wvkbd-src, nixos-hardware, ... }@inputs: {
outputs = { nixpkgs, home-manager, sops-nix, niri, dms, dgop, dank-greeter, dankcalendar, dms-plugin-registry, wvkbd-src, nixos-hardware, ... }@inputs: {
nixosConfigurations = {
violet = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
@@ -53,6 +63,9 @@
./hosts/violet/default.nix
niri.nixosModules.niri
dms.nixosModules.default
dank-greeter.nixosModules.default
dms-plugin-registry.nixosModules.default
sops-nix.nixosModules.sops
@@ -65,7 +78,8 @@
home-manager.users.jashton = {
imports = [
./home/jashton.nix
danksearch.homeModules.default
dankcalendar.homeModules.default
];
};
}
@@ -81,8 +95,11 @@
niri.nixosModules.niri
dms-plugin-registry.nixosModules.default
dms.nixosModules.default
dank-greeter.nixosModules.default
sops-nix.nixosModules.sops
nixos-hardware.nixosModules.framework-intel-core-ultra-series3
nixos-hardware.nixosModules.framework-intel-core-ultra-series3
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
@@ -92,7 +109,8 @@
home-manager.users.jashton = {
imports = [
./home/jashton.nix
danksearch.homeModules.default
dankcalendar.homeModules.default
];
};
}
@@ -107,6 +125,9 @@
./hosts/lavender/default.nix
niri.nixosModules.niri
dms.nixosModules.default
dank-greeter.nixosModules.default
dms-plugin-registry.nixosModules.default
sops-nix.nixosModules.sops
@@ -118,7 +139,8 @@
home-manager.users.jashton = {
imports = [
./home/jashton.nix
danksearch.homeModules.default
dankcalendar.homeModules.default
];
};
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 566 KiB

+20 -9
View File
@@ -14,7 +14,8 @@ let
-g "3,UD,*,*,P,niri msg action focus-workspace-up && sleep 0.4" \
-g "3,DU,*,*,P,niri msg action focus-workspace-down && sleep 0.4" \
-g "4,DU,*,*,P,dms ipc spotlight toggle && sleep 0.4" \
-g "1,DU,B,*,pkill -u jashton -RTMIN wvkbd-mobintl && sleep 0.4"
-g "1,DU,B,*,pkill -u jashton -RTMIN wvkbd-mobintl && sleep 0.4" \
-g "1,UD,T,*,P,niri msg action maximize-window-to-edges && sleep 0.4"
fi
'';
@@ -36,15 +37,17 @@ let
in
{
xdg.portal = {
enable = true;
# Use gtk or kde based on your preferred file picker dialog
config.niri = {
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ]; # or "kde"
default = [ "gnome" "gtk" ];
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ];
};
# Ensure the GTK portal is installed
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
extraPortals = [
pkgs.xdg-desktop-portal-gnome
pkgs.xdg-desktop-portal-gtk
];
};
#programs.niri.enable = true;
@@ -94,6 +97,7 @@ in
Mod+K { focus-window-up; }
Mod+L { focus-column-right; }
Mod+N { focus-workspace-down; }
Mod+V { toggle-window-floating; }
Mod+P { spawn "pkill" "-RTMIN" "wvkbd-mobintl"; }
Mod+Return { spawn "alacritty"; }
Mod+Shift+E { quit; }
@@ -112,7 +116,6 @@ in
XF86MonBrightnessDown { spawn "dms" "ipc" "call" "brightness" "decrement" "5" ""; }
XF86MonBrightnessUp { spawn "dms" "ipc" "call" "brightness" "increment" "5" ""; }
}
spawn-at-startup "dms" "run"
spawn-at-startup "/nix/store/b1kxyzg5r6644mcmjh8jwsb8rinqzsw8-launch-wvkbd/bin/launch-wvkbd"
spawn-at-startup "/nix/store/l9k161qcs6ypzzbicjhkn8b203r610j6-launch-lisgd/bin/launch-lisgd"
window-rule {
@@ -121,6 +124,14 @@ in
clip-to-geometry true
}
window-rule {
match app-id="^Alacritty$"
background-effect {
blur true
}
}
overview {
backdrop-color "#987CA7"
}
@@ -133,7 +144,7 @@ in
include "/home/jashton/.config/niri/dms/outputs.kdl"
include "/home/jashton/.config/niri/dms/binds.kdl"
spawn-at-startup "steam"
include "/home/jashton/.config/niri/dms/cursor.kdl"
include "/home/jashton/.config/niri/dms/windowrules.kdl"
'';
}
+192 -13
View File
@@ -37,23 +37,34 @@ in
GTK_IM_MODULE = "wayland"; # Forces GTK apps to use Wayland text-input protocols
QT_IM_MODULE = "wayland"; # Forces Qt apps to use Wayland text-input protocols
TEXT_INPUT_PRESENT = "1"; # Explicitly signals virtual keyboard capability to the shell
JAVA_HOME = "${pkgs.jdk21.home}";
};
home.sessionPath = [
"$HOME/.cargo/bin"
];
home.packages = with pkgs; [
android-tools
antigravity
asciinema
claude-code
discord
eclipses.eclipse-java
ffmpeg
gemini-cli
kicad
libreoffice
opencode
librewolf
pdftk
picom
prismlauncher
scrot
signal-desktop
spotify
thunderbird
tor
tor-browser
vlc
wtype
xwayland-satellite
@@ -62,22 +73,156 @@ in
custom_wvkbd
(pkgs.writeShellScriptBin "find-open-port" ''
if [ -z "$1" ]; then
echo "Please provide an application name, project directory, or other identifier."
echo " Usage: find-open-port $HOME/dev/some-project"
echo " Usage: find-open-port some-app"
(pkgs.writeShellScriptBin "jroot" ''
d="$PWD"
while [ "$d" != "/" ]; do
if [ -f "$d/.classpath" ]; then printf '%s\n' "$d"; exit 0; fi
d="$(dirname "$d")"
done
echo "jroot: no .classpath found at or above $PWD" >&2
exit 1
'')
(pkgs.writeShellScriptBin "jbuild" ''
set -euo pipefail
if [ $# -lt 1 ]; then
echo "usage: jbuild <package.MainClass> [args...]" >&2
exit 1
fi
APP_NAME=$1
REGISTRY_FILE=$HOME/.dotfiles/ports.registry
ROOT="$(jroot)"
cd "$ROOT"
mkdir -p bin
# Set the target directory, defaulting to the current directory (.) if $1 is empty
TARGET_DIR="$1"
SOURCES_FILE="SOURCES"
# Fix the find command to safely search the target directory
find "$TARGET_DIR" -name '*.java' > "$SOURCES_FILE"
if [ ! -s "$SOURCES_FILE" ]; then
# Fix the error message to reference the directory, not the output text file
echo "jbuild: no .java files found under $TARGET_DIR" >&2
exit 1
fi
# Source roots for every top-level package (assignments/assign04 -> package assign04, etc.).
# Needed so javac can resolve cross-package imports (eg. assign04 -> timing) and
# transitively compile whatever those imports require, even though TARGET_DIR only
# covers one subtree.
SOURCEPATH="assignments:labs:timing:playground:src"
javac -g --release 21 -encoding UTF-8 -d bin -cp "lib/*" -sourcepath "$SOURCEPATH" @"$SOURCES_FILE"
'')
(pkgs.writeShellScriptBin "jclean" ''
set -euo pipefail
ROOT="$(jroot)"
rm -rf "$ROOT/bin"
echo "cleaned $ROOT/bin"
'')
(pkgs.writeShellScriptBin "jrun" ''
set -euo pipefail
if [ $# -lt 3 ]; then
echo "usage: jrun <folder> <package> <MainClass> [args...]" >&2
exit 1
fi
ROOT="$(jroot)"
cd "$ROOT"
jbuild "$1"
MAIN="$2.$3"
shift 3
java -cp "bin:lib/*" "$MAIN" "$@"
'')
(pkgs.writeShellScriptBin "jtest" ''
set -euo pipefail
if [ "$#" -lt 1 ]; then
echo "usage: jtest <package.MainClass> [args...]"
exit 1
fi
# sort -V so 1.10.2 beats 1.9.0; plain tail -n1 sorts those the wrong way.
JUNIT="$(ls -1 "$HOME"/dev/jars/junit-platform-console-standalone-*.jar 2>/dev/null | sort -V | tail -n1 || true)"
if [ -z "$JUNIT" ]; then
echo "jtest: no junit-platform-console-standalone jar in ~/dev/jars" >&2
exit 1
fi
# --debug suspends the test JVM on start and waits for nvim-dap to attach
# on :5005 (see the "Attach to jtest" config in nvim.nix), so breakpoints
# set before running jtest --debug are hit from the very first test.
DEBUG_ARGS=()
if [[ "$1" = "debug" ]]; then
DEBUG_ARGS=(-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005)
shift
echo "jtest: waiting for debugger to attach on 127.0.0.1:5005..." >&2
fi
ROOT="$(jroot)"
cd "$ROOT"
jbuild "$1"
if [ $# -eq 0 ]; then
exec java "''${DEBUG_ARGS[@]}" -jar "$JUNIT" execute --class-path "bin:lib/*" --scan-class-path --details=tree
fi
ARGS=""
for pkg in "$@"; do
ARGS="$ARGS --select-package $pkg"
done
exec java "''${DEBUG_ARGS[@]}" -jar "$JUNIT" execute --class-path "bin:lib/*" $ARGS --details=tree
'')
(pkgs.writeShellScriptBin "fkill" ''
set -eu
if [ $# -lt 1 ]; then
echo "usage: fkill <process-name>" >&2
echo "eg. fkill firefox" >&2
exit 1
fi
PROGRAM="$1"
if ! pgrep -x -- "$PROGRAM" >/dev/null 2>&1; then
echo "fkill: no process named '$PROGRAM'" >&2
exit 1
fi
pgrep -a -x -- "$PROGRAM"
printf 'Kill these? [y/N] '
read -r reply
case "$reply" in
[yY]*) pkill -x -- "$PROGRAM" ;;
*) echo "aborted" ;;
esac
'')
(pkgs.writeShellScriptBin "find-open-port" ''
set -u
if [ $# -lt 1 ]; then
echo "Please provide an application name, project directory, or other identifier."
echo ' Usage: find-open-port $HOME/dev/some-project'
echo " Usage: find-open-port some-app"
exit 1
fi
APP_NAME="$1"
REGISTRY_FILE="$HOME/.dotfiles/ports.registry"
MIN_PORT=8000
MAX_PORT=8999
MAX_RETRIES=50
mkdir -p "$(dirname "$REGISTRY_FILE")"
if [ -f "$REGISTRY_FILE" ] && grep -q "^$APP_NAME : " "$REGISTRY_FILE"; then
echo "Already registered:"
grep "^$APP_NAME : " "$REGISTRY_FILE"
exit 0
fi
echo "Searching for available port between $MIN_PORT and $MAX_PORT for $APP_NAME..."
for ((i=1; i<=MAX_RETRIES; i++)); do
@@ -123,14 +268,49 @@ in
Service = {
# The --daemon flag ensures it runs silently in the background without opening the GUI
ExecStart = "${pkgs.lan-mouse}/bin/lan-mouse --daemon";
Restart = "on-failure";
RestartSec = "5";
};
};
programs.opencode = {
enable = true;
settings = {
provider = {
ollama = {
npm = "@ai-sdk/openai-compatible";
name = "Ollama (Local)";
options = {
baseURL = "http://localhost:11434/v1";
};
models = {
"qwen3-coder-next:q4_K_M" = {
name = "Qwen3 Coder Next";
};
"qwen3.6:35b-a3b-q4_K_M" = {
name = "Qwen3.6 35B Thinker";
};
};
};
};
};
};
programs.ssh = {
enable = true;
matchBlocks = {
enableDefaultConfig = false;
settings = {
"*" = {
forwardAgent = false;
addKeysToAgent = "no";
compression = false;
serverAliveInterval = 0;
serverAliveCountMax = 3;
hashKnownHosts = false;
userKnownHostsFile = "~/.ssh/known_hosts";
controlMaster = "no";
controlPath = "~/.ssh/master-%r@%n:%p";
controlPersist = "no";
};
"heliotrope" = {
hostname = "100.77.235.110";
};
@@ -148,4 +328,3 @@ in
home.stateVersion = "26.05"; # DO NOT CHANGE
}
+1 -1
View File
@@ -23,7 +23,7 @@
draw_bold_text_with_bright_colors = true;
primary = {
background = "#1e1f21"; # Carbon Black
background = "#080808"; # Carbon Black
foreground = "#8d739c"; # Vintage Lavender 1
};
+1 -1
View File
@@ -1173,7 +1173,7 @@ static struct key keys_landscape_special[] = {
{";", ":", 1.0, Code, KEY_SEMICOLON, .scheme = 1},
{"'", "\"", 1.0, Code, KEY_APOSTROPHE, .scheme = 1},
{",", "<", 1.0, Code, KEY_COMMA, .scheme = 1},
{".", ">", 1.0, Code, KEY_SLASH, .scheme = 1},
{".", ">", 1.0, Code, KEY_DOT, .scheme = 1},
{"/", "?", 1.0, Code, KEY_SLASH, .scheme = 1},
{"", "", 0.0, EndRow},
+123 -15
View File
@@ -1,5 +1,8 @@
{ config, pkgs, ... }:
let
javaDebug = pkgs.vscode-extensions.vscjava.vscode-java-debug;
in
{
programs.neovim = {
enable = true;
@@ -27,9 +30,8 @@
vim.opt.updatetime = 50
vim.opt.foldmethod = "indent"
vim.opt.foldlevel = 99
vim.g.mapleader = " "
vim.keymap.set("n", "<leader>", ":")
vim.keymap.set("n", "<leader>w", "<cmd>w<CR>", { silent = true })
vim.keymap.set("n", "<leader>q", "<cmd>q<CR>", { silent = true })
vim.keymap.set("n", "<leader>wq", "<cmd>wq<CR>", { silent = true })
@@ -67,7 +69,7 @@
})
require("lualine").setup({
ons = { theme = "auto" },
options = { theme = "auto" },
})
require("neocord").setup({
@@ -86,7 +88,17 @@
},
})
-- Java indentation must match Eclipse's formatter, not your 2-space default.
-- nvim-treesitter no longer exposes a configs module; highlighting is
-- started per buffer. Indent is deliberately left alone so treesitter
-- doesn't fight the Eclipse-matching tab settings below.
vim.api.nvim_create_autocmd("FileType", {
pattern = { "java", "xml", "nix", "lua", "rs" },
callback = function(args)
pcall(vim.treesitter.start, args.buf)
end,
})
-- Java indentation must match Eclipse's formatter, not the 2-space default.
vim.api.nvim_create_autocmd("FileType", {
pattern = "java",
callback = function()
@@ -117,24 +129,68 @@
local capabilities = require("cmp_nvim_lsp").default_capabilities()
-- .project and .classpath come first so a repo containing several
-- assignments resolves to the assignment, not the repo root.
local root_markers = { ".project", ".classpath", "pom.xml", "build.gradle", ".git" }
-- rustaceanvim auto-starts rust-analyzer on FileType rust, picking it up
-- from PATH -- so per-project rust-analyzer pins (e.g. from a project's
-- flake devShell/direnv) are used automatically without extra config here.
vim.g.rustaceanvim = {
server = {
capabilities = capabilities,
on_attach = function(_, bufnr)
local map = function(k, f) vim.keymap.set("n", k, f, { buffer = bufnr, silent = true }) end
map("gd", vim.lsp.buf.definition)
map("gr", vim.lsp.buf.references)
map("K", vim.lsp.buf.hover)
map("<leader>rn", vim.lsp.buf.rename)
map("<leader>ca", vim.lsp.buf.code_action)
map("<leader>f", function() vim.lsp.buf.format({ async = true }) end)
end,
},
}
local bundles = vim.fn.glob(
"${javaDebug}/share/vscode/extensions/vscjava.vscode-java-debug/server/com.microsoft.java.debug.plugin-*.jar",
true, true)
if #bundles == 0 then
vim.notify("java-debug bundle not found - Java debugging disabled", vim.log.levels.WARN)
end
local java_home = os.getenv("JAVA_HOME")
if not java_home then
local javac = vim.fn.exepath("javac")
if javac ~= "" then
java_home = vim.fn.fnamemodify(vim.fn.resolve(javac), ":h:h")
end
end
if not java_home then
vim.notify("No JAVA_HOME and no javac on PATH - jdtls will guess a runtime", vim.log.levels.WARN)
end
if not java_home then
vim.notify("JAVA_HOME unset - jdtls will guess a runtime", vim.log.levels.WARN)
end
-- Eclipse metadata wins over build files, build files over .git, and the
-- file's own directory is the last resort so bare folders still attach.
local function find_project_root()
local setup = require("jdtls.setup")
return setup.find_root({ ".project", ".classpath" })
or setup.find_root({ "pom.xml", "build.gradle", "build.gradle.kts" })
or setup.find_root({ ".git" })
or vim.fn.expand("%:p:h")
end
local dap_configured = false
local function start_jdtls()
local jdtls = require("jdtls")
local root_dir = require("jdtls.setup").find_root(root_markers)
if not root_dir or root_dir == "" then return end
local root_dir = find_project_root()
local project_name = vim.fn.fnamemodify(root_dir, ":p:h:t")
.. "-" .. vim.fn.sha256(root_dir):sub(1, 8)
local workspace = vim.fn.stdpath("cache") .. "/jdtls-workspaces/" .. project_name
local java_settings = {
configuration = {
updateBuildConfiguration = "interactive",
runtimes = {
{ name = "JavaSE-21", path = os.getenv("JAVA_HOME"), default = true },
},
updateBuildConfiguration = "automatic",
},
-- Keep a stray pom.xml from overriding the Eclipse project model.
-- Flip these on if a course actually requires Maven or Gradle.
@@ -142,10 +198,20 @@
maven = { enabled = false },
gradle = { enabled = false },
},
project = {
outputPath = "bin",
referencedLibraries = { "lib/**/*.jar" },
},
signatureHelp = { enabled = true },
eclipse = { downloadSources = true },
}
if java_home then
java_settings.configuration.runtimes = {
{ name = "JavaSE-21", path = java_home, default = true },
}
end
-- If the repo carries an exported Eclipse formatter profile, use it verbatim.
local formatter = root_dir .. "/.settings/eclipse-formatter.xml"
if vim.uv.fs_stat(formatter) then
@@ -157,8 +223,14 @@
root_dir = root_dir,
capabilities = capabilities,
settings = { java = java_settings },
init_options = { bundles = {} },
init_options = { bundles = bundles },
on_attach = function(_, bufnr)
require("jdtls").setup_dap({ hotcodereplace = "auto" })
if not dap_configured then
dap_configured = true
require("jdtls.dap").setup_dap_main_class_configs()
end
local map = function(k, f) vim.keymap.set("n", k, f, { buffer = bufnr, silent = true }) end
map("gd", vim.lsp.buf.definition)
map("gr", vim.lsp.buf.references)
@@ -175,6 +247,37 @@
pattern = "java",
callback = start_jdtls,
})
local dap, dapui = require("dap"), require("dapui")
dapui.setup()
require("nvim-dap-virtual-text").setup()
-- `jtest --debug` suspends the test JVM waiting on :5005; this lets
-- <leader>dc attach to it directly from the config picker.
dap.configurations.java = dap.configurations.java or {}
table.insert(dap.configurations.java, {
type = "java",
request = "attach",
name = "Attach to jtest (:5005)",
hostName = "127.0.0.1",
port = 5005,
})
dap.listeners.after.event_initialized["dapui"] = function() dapui.open() end
dap.listeners.before.event_terminated["dapui"] = function() dapui.close() end
dap.listeners.before.event_exited["dapui"] = function() dapui.close() end
vim.keymap.set("n", "<leader>db", dap.toggle_breakpoint)
vim.keymap.set("n", "<leader>dB", function()
dap.set_breakpoint(vim.fn.input("Condition: "))
end)
vim.keymap.set("n", "<leader>dc", dap.continue)
vim.keymap.set("n", "<leader>dn", dap.step_over)
vim.keymap.set("n", "<leader>di", dap.step_into)
vim.keymap.set("n", "<leader>du", dap.step_out)
vim.keymap.set("n", "<leader>dr", dap.repl.toggle)
vim.keymap.set("n", "<leader>dq", dap.terminate)
vim.keymap.set({ "n", "v" }, "<leader>de", function() dapui.eval() end)
'';
plugins = with pkgs.vimPlugins; [
@@ -187,13 +290,18 @@
{ plugin = gitsigns-nvim; }
{ plugin = nvim-jdtls; }
{ plugin = nvim-dap; }
{ plugin = nvim-dap-ui; }
{ plugin = nvim-nio; }
{ plugin = nvim-dap-virtual-text; }
{ plugin = nvim-cmp; }
{ plugin = cmp-nvim-lsp; }
{ plugin = cmp-buffer; }
{ plugin = cmp-path; }
{ plugin = luasnip; }
{ plugin = cmp_luasnip; }
{ plugin = (nvim-treesitter.withPlugins (p: [ p.java p.xml p.nix p.lua ])); }
{ plugin = rustaceanvim; }
{ plugin = (nvim-treesitter.withPlugins (p: [ p.java p.xml p.nix p.lua p.rust ])); }
];
};
}
+43 -7
View File
@@ -1,5 +1,11 @@
{ config, pkgs, ... }:
{ config, pkgs, inputs, ... }:
let
unstable = import inputs.nixpkgs-unstable {
system = pkgs.stdenv.hostPlatform.system;
config.allowUnfree = true;
};
in
{
imports = [
./hardware.nix
@@ -16,30 +22,60 @@
environment.systemPackages = with pkgs; [
framework-tool
# GPU compute diagnostics
clinfo
vulkan-tools
intel-gpu-tools
# Vulkan-accelerated llama.cpp CLI/server for manual/advanced use
(llama-cpp.override { vulkanSupport = true; })
];
boot.kernelModules = [ "thunderbolt-net" ];
boot.kernelModules = [ "bnep" ];
networking.interfaces.thunderbolt0.ipv4.addresses = [{
networking.interfaces.bnep0.ipv4.addresses = [{
address = "10.0.0.1";
prefixLength = 24;
}];
networking.firewall.interfaces."thunderbolt0".allowedUDPPorts = [ 4242 ];
networking.firewall.interfaces."bnep0".allowedUDPPorts = [ 4242 ];
systemd = {
services = {
# 1. Start the listening server profile
bt-pan-server = {
description = "Bluetooth PAN GN Server";
after = [ "bluetooth.service" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.bluez-tools}/bin/bt-network -s nap bnep";
Restart = "always";
RestartSec = 5;
};
};
};
};
hardware.graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
intel-media-driver # Hardware acceleration
intel-media-driver # Hardware acceleration
intel-vaapi-driver
vpl-gpu-rt # Video processing runtime
vpl-gpu-rt # Video processing runtime
intel-compute-runtime # OpenCL + Level Zero GPU compute (Arc iGPU)
];
extraPackages32 = with pkgs.pkgsi686Linux; [
intel-media-driver
];
};
services.power-profiles-daemon.enable = true;
services.power-profiles-daemon.enable = true;
services.thermald.enable = true;
services.ollama = {
enable = true;
package = unstable.ollama-vulkan;
};
}
+30 -4
View File
@@ -9,19 +9,45 @@
networking.hostName = "violet";
services.power-profiles-daemon.enable = false;
services.power-profiles-daemon.enable = true;
services.hardware.bolt.enable = true;
services.logind = {
settings = {
Login.HandleLidSwitch = "ignore";
Login.lidSwitchDocked = "ignore";
Login.lidSwitchExternalPower = "ignore";
};
};
services.input-remapper.enable = true;
system.stateVersion = "26.05";
boot.kernelModules = [ "thunderbolt-net" ];
boot.kernelModules = [ "bnep" ];
networking.interfaces.thunderbolt0.ipv4.addresses = [{
networking.interfaces.bnep0.ipv4.addresses = [{
address = "10.0.0.2";
prefixLength = 24;
}];
networking.firewall.interfaces."thunderbolt0".allowedUDPPorts = [ 4242 ];
networking.firewall.interfaces."bnep0".allowedUDPPorts = [ 4242 ];
systemd = {
services = {
bt-pan-client = {
description = "Bluetooth PAN Client Connection to Device A";
after = [ "bluetooth.service" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
# Replace XX:XX:XX:XX:XX:XX with Device B's actual Bluetooth MAC Address
ExecStartPre = "${pkgs.bluez}/bin/bluetoothctl trust 84:D1:C1:A9:EE:52";
ExecStart = "${pkgs.bluez-tools}/bin/bt-network -c 84:D1:C1:A9:EE:52 bnep";
Restart = "always";
RestartSec = 10; # Retry every 10 seconds if Device B goes out of range
};
};
};
};
services.tlp = {
enable = false;
+1 -14
View File
@@ -60,19 +60,6 @@
sensor.iio.enable = true;
graphics.enable = true;
bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Experimental = true;
KernelExperimental = true;
ControllerMode = "dual";
Enable = "Source,Sink,Media,Socket";
};
};
};
bluetooth.enable = true;
};
}
+2 -2
View File
@@ -5,6 +5,6 @@
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelModules = [ "uinput" ];
system.nixos.label = "niri-v.1.2";
environment.pathsToLink = [ "/libexec" ];
system.nixos.label = "niri-v.1.3";
environment.pathsToLink = [ "/libexec" "/share/xdg-desktop-portal" "/share/xdg-desktop-portal/portals" ];
}
+2
View File
@@ -8,4 +8,6 @@
./locale.nix
./power.nix
];
hardware.flipperzero.enable = true;
}
+6
View File
@@ -43,6 +43,12 @@
];
};
shellInit = ''
if [ -f "/etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh" ]; then
. "/etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh"
fi
'';
interactiveShellInit = ''
if [ -f "/run/secrets/vaultwarden_clientid" ]; then
export BW_CLIENTID=$(cat /run/secrets/vaultwarden_clientid)
+5
View File
@@ -17,6 +17,11 @@
};
};
hardware.bluetooth = {
powerOnBoot = true;
settings.General.Enable = "Source,Sink,Media,Socket,Network";
};
boot.extraModprobeConfig = ''
options iwlwifi power_save=0
'';
+19
View File
@@ -0,0 +1,19 @@
{ config, pkgs, ... }:
{
services.tor = {
enable = true;
client = {
socksListenAddresses = [ { addr = "127.0.0.1"; port = 9050; } ];
};
};
services.privoxy = {
enable = true;
enableTor = true;
};
environment.systemPackages = with pkgs; [
torsocks
];
}
+26 -5
View File
@@ -1,5 +1,11 @@
{ config, pkgs, ... }:
{ config, pkgs, inputs, ... }:
let
unstable = import inputs.nixpkgs-unstable {
system = pkgs.stdenv.hostPlatform.system;
config.allowUnfree = true;
};
in
{
nixpkgs.config.allowUnfree = true;
@@ -7,15 +13,21 @@
acpi
age
alacritty
bluez
bluez-tools
bitwarden-cli
btop
dbus
dconf
deskflow
direnv
fastfetch
firefox
gemini-cli
gimp
git
github-cli
gnome-calculator
(google-chrome.override {
commandLineArgs = [
"--disable-pinch"
@@ -30,13 +42,19 @@
keepassxc
lan-mouse
libnotify
macchanger
makeDBusConf
mypy
nautilus
networkmanagerapplet
nitrogen
ollama
nix-direnv
unstable.ollama
pasystray
pkg-config
playerctl
pulseaudioFull
python3
rclone
rnote
rustdesk
@@ -47,12 +65,14 @@
unrar
unzip
upower
usbutils
v4l-utils
vim
wget
wl-clipboard
xclip
xournalpp
zip
(pkgs.writeShellScriptBin "unix" ''
set -u
@@ -63,6 +83,7 @@
trap "rm -f '$ERRFILE'" EXIT
echo "Building NixOS..."
cd $DOTFILES && git stage -A
sudo nixos-rebuild switch --flake "$DOTFILES#$HOST" 2>&1 | tee "$ERRFILE"
STATUS=''${PIPESTATUS[0]}
@@ -95,14 +116,14 @@
'')
];
programs.firefox.enable = true;
programs.thunar.enable = true;
programs.direnv.enable = true;
programs.direnv.nix-direnv.enable = true;
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
gamescopeSession.enable = true; # Useful for rendering Palworld at downscaled 1080p
gamescopeSession.enable = true;
};
}
-2
View File
@@ -8,8 +8,6 @@
./users.nix
];
systemd.user.services.niri-flake-polkit.enable = false;
security = {
pam.services.swaylock = {};
polkit.enable = true;
+1 -1
View File
@@ -9,7 +9,7 @@
isNormalUser = true;
description = "Josh Ashton";
group = "jashton";
extraGroups = [ "networkmanager" "wheel" "tss" "video" "audio" "input" ];
extraGroups = [ "networkmanager" "wheel" "tss" "video" "audio" "input" "render" "adbuser" "dialout" "tty" ];
shell = pkgs.zsh;
};
+47 -18
View File
@@ -3,29 +3,18 @@
let
# Instantiate the unstable package set for your system architecture
unstable = import inputs.nixpkgs-unstable {
system = pkgs.system;
system = pkgs.stdenv.hostPlatform.system;
config.allowUnfree = true;
};
in
{
imports = [
inputs.dms.nixosModules.greeter
inputs.dankcalendar.nixosModules.default
];
programs.niri = {
enable = true;
# Tell the Niri module to use the unstable package directly from the niri-flake
package = inputs.niri.packages.${pkgs.system}.niri-unstable;
};
programs.dsearch.enable = true;
programs.dank-material-shell.greeter = {
enable = true;
compositor.name = "niri";
configHome = "/home/jashton";
package = inputs.niri.packages.${pkgs.stdenv.hostPlatform.system}.niri-unstable;
};
programs.dms-shell = {
@@ -37,7 +26,7 @@ in
enableCalendarEvents = true;
systemd = {
enable = false;
enable = true;
restartIfChanged = true;
};
@@ -46,10 +35,25 @@ in
plugins = {
developerUtilities.enable = true;
batteryPlus.enable = true;
mediaDownloader.enable = true;
dankBatteryAlerts.enable = true;
dmsThemeSync.enable = true;
dmsPass.enable = true;
};
};
programs.dms-greeter = {
enable = true;
compositor.name = "niri";
configHome = "/home/jashton";
};
programs.dank-calendar.enable = true;
systemd = {
user = {
services = {
niri-flake-polkit.enable = true;
};
};
};
@@ -73,7 +77,7 @@ in
displayManager = {
autoLogin = {
enable = true;
enable = false;
user = "jashton";
};
@@ -86,4 +90,29 @@ in
gnome.gnome-keyring.enable = true;
blueman.enable = true;
};
hardware.printers.ensurePrinters = [
{
name = "Marriott_Library_BW";
location = "Knowledge Commons Level 2";
description = "UofU B&W Print Queue";
deviceUri = "lpd://pharossys-ps1.ucard.utah.edu/kcq-1";
model = "drv:///sample.drv/generic.ppd";
ppdOptions = {
PageSize = "Letter";
Duplex = "DuplexNoTumble";
};
}
{
name = "Marriott_Library_Color";
location = "Knowledge Commons Level 2";
description = "UofU Color Print Queue";
deviceUri = "lpd://pharossys-ps1.ucard.utah.edu/kcq-7";
model = "drv:///sample.drv/generic.ppd";
ppdOptions = {
PageSize = "Letter";
Duplex = "DuplexNoTumble";
};
}
];
}