Compare commits

..
23 Commits
Author SHA1 Message Date
jashton 0b810b69fc nixos: gen 138 @ lilac — 2026-11-19 12:08 26.05.20261105.c56a87d (Yarara) ----- 2026-11-19 12:08:56 -07:00
jashton 7808846a91 nixos: gen 137 @ lilac — 2026-11-15 09:53 26.05.20261105.c56a87d (Yarara) ----- 2026-11-15 09:53:59 -07:00
jashton 403e7ae136 nixos: gen 136 @ lilac — 2026-11-11 08:57 26.05.20261105.c56a87d (Yarara) ----- 2026-11-11 09:38:51 -07:00
jashton f18e0a1123 nixos: gen 135 @ lilac — 2026-11-09 22:28 26.05.20261105.c56a87d (Yarara) ----- 2026-11-09 22:28:56 -07:00
jashton a19e1477f2 nixos: gen 134 @ lilac — 2026-11-08 16:09 26.05.20261105.c56a87d (Yarara) ----- 2026-11-08 16:10:32 -07:00
jashton 0a536c33fc nixos: gen 133 @ lilac — 2026-11-06 20:32 26.05.20261105.c56a87d (Yarara) ----- 2026-11-06 20:33:27 -07:00
jashton 4114212d41 nixos: gen 132 @ lilac — 2026-11-06 19:01 26.05.20261105.c56a87d (Yarara) ----- 2026-11-06 19:01:05 -07:00
jashton 99b50d56dd nixos: gen 131 @ lilac — 2026-11-06 18:57 26.05.20261105.c56a87d (Yarara) ----- 2026-11-06 18:57:22 -07:00
jashton 5c7e367fde nixos: gen 130 @ lilac — 2026-11-06 18:42 26.05.20261105.c56a87d (Yarara) ----- 2026-11-06 18:43:43 -07:00
jashton 47ae8f7bf9 nixos: gen 129 @ lilac — 2026-11-06 16:10 26.05.20261105.c56a87d (Yarara) ----- 2026-11-06 16:10:22 -07:00
jashton 3b00583072 nixos: gen 128 @ lilac — 2026-11-06 16:04 26.05.20261105.c56a87d (Yarara) ----- 2026-11-06 16:04:05 -07:00
jashton 12bd952ece nixos: gen 127 @ lilac — 2026-11-06 14:53 26.05.20261105.c56a87d (Yarara) ----- update to dux 2.1 2026-11-06 14:54:24 -07:00
jashton f8852dfee3 nixos: gen 126 @ lilac — 2026-11-06 14:39 26.05.20261105.c56a87d (Yarara) ----- 2026-11-06 14:39:13 -07:00
jashton fa746ca9cb nixos: gen 126 @ lilac — 2026-11-06 14:28 26.05.20261105.c56a87d (Yarara) ----- 2026-11-06 14:28:46 -07:00
jashton d30ff2443d nixos: gen 126 @ lilac — 2026-11-06 13:56 26.05.20261105.c56a87d (Yarara) ----- 2026-11-06 13:56:23 -07:00
jashton f66e32be92 nixos: gen 125 @ lilac — 2026-11-06 13:46 26.05.20261105.c56a87d (Yarara) ----- 2026-11-06 13:47:34 -07:00
jashton 410242d8e4 nixos: gen 124 @ lilac — 2026-11-06 09:23 26.05.20261031.fa13731 (Yarara) ----- 2026-11-06 09:24:04 -07:00
jashton 184249a3d8 nixos: gen 123 @ lilac — 2026-11-06 09:15 26.05.20261031.fa13731 (Yarara) ----- 2026-11-06 09:15:15 -07:00
jashton ec4272ea68 nixos: gen 122 @ lilac — 2026-11-06 09:01 26.05.20261031.fa13731 (Yarara) ----- 2026-11-06 09:01:45 -07:00
jashton 666f948dbd nixos: gen 121 @ lilac — 2026-11-05 21:40 26.05.20261031.fa13731 (Yarara) ----- 2026-11-05 21:40:49 -07:00
jashton 51979322ec nixos: gen 120 @ lilac — 2026-11-05 18:41 26.05.20261031.fa13731 (Yarara) ----- 2026-11-05 18:41:49 -07:00
jashton cd6fb4d0a9 nixos: gen 120 @ lilac — 2026-11-05 14:30 26.05.20261031.fa13731 (Yarara) ----- 2026-11-05 14:31:14 -07:00
jashton 77c1f6e3dc nixos: gen 119 @ lilac — 2026-11-05 13:44 26.05.20261031.fa13731 (Yarara) ----- 2026-11-05 13:44:28 -07:00
9 changed files with 497 additions and 173 deletions
+58
View File
@@ -0,0 +1,58 @@
# .dotfiles
NixOS + Home Manager dotfiles repo. Single flake (`flake.nix`) with three per-host configurations, sops-nix secrets, and DMS/niri desktop stack.
## Structure
```
flake.nix — 3 nixosConfigurations: violet, lilac, lavender
hosts/<name>/ — per-machine entrypoint (default.nix) + hardware.nix
system/ — shared NixOS config (core/*, network/*, security/*, services/, virtualisation/)
home/ — Home Manager user config for jashton
secrets/ — sops-encrypted secrets (.sops.yaml has age key rules)
```
## Apply / rebuild
```
sudo nixos-rebuild switch --flake .#<host>
```
The `unix` script (installed to shell packages) wraps this: it runs the rebuild, auto-commits all changes to the dotfiles repo, and pushes. Skip it with `--no-commit`.
Never hand-edit `hosts/*/hardware.nix` — it is a generated scan output.
## Hosts
| Host | Machine | Notable modules |
|------|---------|-----------------|
| violet | ThinkPad | `security/thinkpad.nix`, input-remapper, TLP (disabled), disabled lid-switch suspend |
| lilac | Framework (Intel Core Ultra 3) | `nixos-hardware/framework-intel-core-ultra-series3`, fprintd, Thunderbolt + Intel iGPU |
| lavender | Minimal remote/other | GPU enablement only |
Every host enables: niri compositor, DMS shell with plugin-registry/greeter/calendar/files, sops-nix, home-manager. `lilac` and `violet` also open a Thunderbolt point-to-point link (`thunderbolt0`, port 4242).
## Secrets
Managed via sops-nix. Decrecyption uses each host's SSH host key as the age identity. Edit files under `secrets/` with:
```
sops secrets/secrets.yaml # decrypt/edit
sops --encrypt secrets/secrets.yaml # re-encrypt before committing
```
Verify `.sops.yaml` has all three host keys in its creation rules. If adding a new host, add its age public key there first.
## Desktop stack
- **Compositor:** niri (keybinds in `README.md` > Keybinds > Niri)
- **Shell/Dock:** DankMaterialShell (`dms`) with `dux-files`, `dux-greeter`, `dux-plugin-registry`, `dux-calendar`
- **Spotlight launcher:** DMS built-in, triggered by `Mod+Space` or 4-finger swipe (see README)
- **OSK:** custom `wvkbd-mobintl` build from `wvkbd-src` + `home/programs/{layout,keymap,config}.custom.h` C overrides
- **Gestures:** `lisgd` at startup (see README > Touchscreen gestures)
## Git / config conventions
- `result`, `ports.registry`, `.env`, and `nix-pad.qcow2` are gitignored (Nix generated paths and dev artifacts).
- The `find-open-port` script writes to `ports.registry` (untracked) to reserve dev ports across hosts.
- SSH client aliases for all four hosts (`lavender`, `violet`, `lilac`, `heliotrope`) are in `home/programs/git.nix` — check there for connection details, not in the repo.
Generated
+151 -92
View File
@@ -1,34 +1,13 @@
{
"nodes": {
"dank-greeter": {
"inputs": {
"dank-qml-common": "dank-qml-common",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1793444119,
"narHash": "sha256-4pQhSCByOSrC1XCXvpBgHrJHwMs3BU3IH02fZdREoPg=",
"owner": "AvengeMedia",
"repo": "dank-greeter",
"rev": "45b82d84d947a2c6491d4f16a5d0a84ee379dfeb",
"type": "github"
},
"original": {
"owner": "AvengeMedia",
"repo": "dank-greeter",
"type": "github"
}
},
"dank-qml-common": {
"flake": false,
"locked": {
"lastModified": 1793444058,
"narHash": "sha256-YL9pm7n++0r6uXMQDg4CmB0++JGUezXIlgmp87KiUxM=",
"lastModified": 1793982952,
"narHash": "sha256-dffCm8ok1sFxCNYJ6pP6m0mln+TVRtnd5shO7phKSAQ=",
"owner": "duxlabs-dev",
"repo": "dux-qml-common",
"rev": "934de22f3e246dff16ab06368582c5ae8cbdc304",
"rev": "b02c0321263372a8c9d18c6648b4608a1865ff90",
"type": "github"
},
"original": {
@@ -40,11 +19,11 @@
"dank-qml-common_2": {
"flake": false,
"locked": {
"lastModified": 1793444058,
"narHash": "sha256-YL9pm7n++0r6uXMQDg4CmB0++JGUezXIlgmp87KiUxM=",
"lastModified": 1793982469,
"narHash": "sha256-drJMZ74sVY0J7bylmuBXHyATWO24QukaRJrI0XjMKXk=",
"owner": "duxlabs-dev",
"repo": "dux-qml-common",
"rev": "934de22f3e246dff16ab06368582c5ae8cbdc304",
"rev": "76277f04bf526164150efa857e3f225dc54cb090",
"type": "github"
},
"original": {
@@ -56,11 +35,11 @@
"dank-qml-common_3": {
"flake": false,
"locked": {
"lastModified": 1792513666,
"narHash": "sha256-RDqPdPrM5lnwRrfFGLz3IwgTjCV2Ie+nrTD3ldj1t/s=",
"lastModified": 1793982469,
"narHash": "sha256-drJMZ74sVY0J7bylmuBXHyATWO24QukaRJrI0XjMKXk=",
"owner": "duxlabs-dev",
"repo": "dux-qml-common",
"rev": "ebf5e6c002da1bdaa4aaa2f319fea7b8507abc42",
"rev": "76277f04bf526164150efa857e3f225dc54cb090",
"type": "github"
},
"original": {
@@ -69,7 +48,46 @@
"type": "github"
}
},
"dankcalendar": {
"dank-qml-common_4": {
"flake": false,
"locked": {
"lastModified": 1793982469,
"narHash": "sha256-drJMZ74sVY0J7bylmuBXHyATWO24QukaRJrI0XjMKXk=",
"owner": "duxlabs-dev",
"repo": "dux-qml-common",
"rev": "76277f04bf526164150efa857e3f225dc54cb090",
"type": "github"
},
"original": {
"owner": "duxlabs-dev",
"repo": "dux-qml-common",
"type": "github"
}
},
"dms": {
"inputs": {
"dank-qml-common": "dank-qml-common",
"flake-compat": "flake-compat",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1793995112,
"narHash": "sha256-SDAgAZaydGorfIcD+BWtBbtxcZn1SPmIuSa5vJ/KADM=",
"owner": "duxlabs-dev",
"repo": "dux-shell",
"rev": "2f2729d51739362e0d66388f3e5aefc4164fc9d6",
"type": "github"
},
"original": {
"owner": "duxlabs-dev",
"ref": "stable-2.1",
"repo": "dux-shell",
"type": "github"
}
},
"dux-calendar": {
"inputs": {
"dank-qml-common": "dank-qml-common_2",
"nixpkgs": [
@@ -77,79 +95,118 @@
]
},
"locked": {
"lastModified": 1793469095,
"narHash": "sha256-1aHyjGsdnWwgoamau6lwTu6Y/X9kIyz8woAkNlo4ZOA=",
"owner": "AvengeMedia",
"repo": "dankcalendar",
"rev": "07cd4c3355a9b6374a2f0cc3544238475b80613d",
"lastModified": 1793984743,
"narHash": "sha256-I4c8yrrPNtGLpUoLOrCJEvs3LVu8Vki3np5KK4EtVIU=",
"owner": "duxlabs-dev",
"repo": "dux-calendar",
"rev": "3dbc3dd38b49847b64f17cda61f8c6a79c7f28c6",
"type": "github"
},
"original": {
"owner": "AvengeMedia",
"repo": "dankcalendar",
"owner": "duxlabs-dev",
"repo": "dux-calendar",
"type": "github"
}
},
"dgop": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1793412888,
"narHash": "sha256-6msCM3ktpDkE5WGMThb1SzLZxAiCzhVthwCLfhDbK58=",
"owner": "AvengeMedia",
"repo": "dgop",
"rev": "854e306ff3e428b6cd1ce3a109c29f2708afbb07",
"type": "github"
},
"original": {
"owner": "AvengeMedia",
"repo": "dgop",
"type": "github"
}
},
"dms": {
"dux-files": {
"inputs": {
"dank-qml-common": "dank-qml-common_3",
"flake-compat": "flake-compat",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1792523829,
"narHash": "sha256-hyWdbsyOGXsJxvXG4Tqg0uRI1s3JwPi8DKyWips3Ta8=",
"owner": "AvengeMedia",
"repo": "DankMaterialShell",
"rev": "9b413296b16721f7679fb62e624cb1ed2433fa58",
"lastModified": 1793982685,
"narHash": "sha256-blCXIdzt7fF9/8WekVi8Kx4JaB2BrUrhUda+msGnxsA=",
"owner": "duxlabs-dev",
"repo": "dux-files",
"rev": "ac919084c6b3d463cb2b91307e93e258c53a8547",
"type": "github"
},
"original": {
"owner": "AvengeMedia",
"ref": "stable",
"repo": "DankMaterialShell",
"owner": "duxlabs-dev",
"repo": "dux-files",
"type": "github"
}
},
"dms-plugin-registry": {
"dux-gop": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1793551904,
"narHash": "sha256-KJBvuQwbmU1F1elfApL87BRarPvF28O0EJWAwVgoBN8=",
"owner": "AvengeMedia",
"repo": "dms-plugin-registry",
"rev": "ec3ef42e2271ea253857dbc09c6bb667977fea5b",
"lastModified": 1793890244,
"narHash": "sha256-vUj21i43rws9dxBjMxt62M9nCdqVLFGWyXwk0B934Bs=",
"owner": "duxlabs-dev",
"repo": "dux-gop",
"rev": "963e30cc8604752415819139ace37f696e9caf09",
"type": "github"
},
"original": {
"owner": "AvengeMedia",
"repo": "dms-plugin-registry",
"owner": "duxlabs-dev",
"repo": "dux-gop",
"type": "github"
}
},
"dux-greeter": {
"inputs": {
"dank-qml-common": "dank-qml-common_4",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1793982787,
"narHash": "sha256-B87zCSoxzVQ8EVD8TV/TnRAVms2zdbx+g4eqWMX1QjA=",
"owner": "duxlabs-dev",
"repo": "dux-greeter",
"rev": "f68ff1eb33c2db09cbfe6b146cf2a0bfe96f21aa",
"type": "github"
},
"original": {
"owner": "duxlabs-dev",
"repo": "dux-greeter",
"type": "github"
}
},
"dux-plugin-registry": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1793972984,
"narHash": "sha256-hrVWL4sAaxTgAEEi2CZiRDuR7ss2Vq2DoDFcbGJMTlo=",
"owner": "duxlabs-dev",
"repo": "dux-plugin-registry",
"rev": "7dbadcb2fa793a3591e8a11f1a6890261386dc03",
"type": "github"
},
"original": {
"owner": "duxlabs-dev",
"repo": "dux-plugin-registry",
"type": "github"
}
},
"dux-search": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1793983508,
"narHash": "sha256-hx9WyYerSHGFma2t4IRwnANn32G6XOFqGZB1MYS9tyM=",
"owner": "duxlabs-dev",
"repo": "dux-search",
"rev": "edf0176c59729bdaa863055dc14c6f77a40c0438",
"type": "github"
},
"original": {
"owner": "duxlabs-dev",
"repo": "dux-search",
"type": "github"
}
},
@@ -292,11 +349,11 @@
]
},
"locked": {
"lastModified": 1793355509,
"narHash": "sha256-/Zs18x+IW4LuVH0rKxra0WPRgsk0DQsi0Bwkf8sOC5c=",
"lastModified": 1793871777,
"narHash": "sha256-DbFyxXHjP4SJDWVVIILkgrUZxj29cDusi8ULXoQGuZ8=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "04c6b94fa104bc23650983a4513aea196794d321",
"rev": "d645c71a58dbae3eb17ff551a07aea13a541cb1a",
"type": "github"
},
"original": {
@@ -340,11 +397,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1793341285,
"narHash": "sha256-Y1CiZ4SoBUjLQyQM/pY+rS2dXD3CHLPstF0lmOc73D4=",
"lastModified": 1793726008,
"narHash": "sha256-jQp1wKvbwWdLBASTXkSi/VYmDJ5AbBi1WvcMt9HWJC8=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "1c89083e451e891152365b799595cf7790a43325",
"rev": "1d060086d60cb76a40cf37109f979d88a5bd6396",
"type": "github"
},
"original": {
@@ -356,11 +413,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1793410479,
"narHash": "sha256-HzgjxrLY4AEc0044ZuM5CHbLSWLZgDlay1idmzvvpJs=",
"lastModified": 1793865203,
"narHash": "sha256-/cpdPHaySDIyCgZI6EWngiM6jK3YLUNzv1b7lTzy6Bk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "fa1373130d5a21c040a47c5dbe1913d59ed91808",
"rev": "c56a87d8e41ce69bd2af57eb35dcc117a9dfca33",
"type": "github"
},
"original": {
@@ -372,11 +429,13 @@
},
"root": {
"inputs": {
"dank-greeter": "dank-greeter",
"dankcalendar": "dankcalendar",
"dgop": "dgop",
"dms": "dms",
"dms-plugin-registry": "dms-plugin-registry",
"dux-calendar": "dux-calendar",
"dux-files": "dux-files",
"dux-gop": "dux-gop",
"dux-greeter": "dux-greeter",
"dux-plugin-registry": "dux-plugin-registry",
"dux-search": "dux-search",
"home-manager": "home-manager",
"niri": "niri",
"niri-float-sticky": "niri-float-sticky",
@@ -394,11 +453,11 @@
]
},
"locked": {
"lastModified": 1793052255,
"narHash": "sha256-Y/JIHTnMlOabDfyaSBubWGLDIVGihLEUuoMhFvQKaDo=",
"lastModified": 1793995029,
"narHash": "sha256-ZlE4BtMjWhfC6rFXLO9Qimn36Ene1INqCgKDDvazjhc=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "60182817ee048ac94b4c68ea76d5ef2e8aac730d",
"rev": "89a234ce2daf6e568a7d4b4fe250afdd23d84e20",
"type": "github"
},
"original": {
+42 -26
View File
@@ -28,27 +28,37 @@
};
dms = {
url = "github:AvengeMedia/DankMaterialShell/stable";
url = "github:duxlabs-dev/dux-shell/stable-2.1";
inputs.nixpkgs.follows = "nixpkgs";
};
dgop = {
url = "github:AvengeMedia/dgop";
dux-gop = {
url = "github:duxlabs-dev/dux-gop";
inputs.nixpkgs.follows = "nixpkgs";
};
dank-greeter = {
url = "github:AvengeMedia/dank-greeter";
dux-files = {
url = "github:duxlabs-dev/dux-files";
inputs.nixpkgs.follows = "nixpkgs";
};
dankcalendar = {
url = "github:AvengeMedia/dankcalendar";
dux-search = {
url = "github:duxlabs-dev/dux-search";
inputs.nixpkgs.follows = "nixpkgs";
};
dms-plugin-registry = {
url = "github:AvengeMedia/dms-plugin-registry";
dux-greeter = {
url = "github:duxlabs-dev/dux-greeter";
inputs.nixpkgs.follows = "nixpkgs";
};
dux-calendar = {
url = "github:duxlabs-dev/dux-calendar";
inputs.nixpkgs.follows = "nixpkgs";
};
dux-plugin-registry = {
url = "github:duxlabs-dev/dux-plugin-registry";
inputs.nixpkgs.follows = "nixpkgs";
};
@@ -58,7 +68,7 @@
};
};
outputs = { nixpkgs, home-manager, sops-nix, niri, niri-float-sticky, dms, dgop, dank-greeter, dankcalendar, dms-plugin-registry, wvkbd-src, nixos-hardware, ... }@inputs: {
outputs = { nixpkgs, home-manager, sops-nix, niri, niri-float-sticky, dms, dux-files, dux-search, dux-greeter, dux-calendar, dux-plugin-registry, wvkbd-src, nixos-hardware, ... }@inputs: {
nixosConfigurations = {
violet = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
@@ -68,10 +78,13 @@
./hosts/violet/default.nix
niri.nixosModules.niri
dms.nixosModules.default
dank-greeter.nixosModules.default
dms-plugin-registry.nixosModules.default
dux-files.nixosModules.default
dux-greeter.nixosModules.default
dux-plugin-registry.nixosModules.default
dux-calendar.nixosModules.default
sops-nix.nixosModules.sops
home-manager.nixosModules.home-manager
@@ -83,8 +96,7 @@
home-manager.users.jashton = {
imports = [
./home/jashton.nix
dankcalendar.homeModules.default
dux-search.homeModules.default
];
};
}
@@ -97,14 +109,17 @@
modules = [
./hosts/lilac/default.nix
nixos-hardware.nixosModules.framework-intel-core-ultra-series3
niri.nixosModules.niri
dms-plugin-registry.nixosModules.default
dms.nixosModules.default
dank-greeter.nixosModules.default
dux-files.nixosModules.default
dux-greeter.nixosModules.default
dux-plugin-registry.nixosModules.default
dux-calendar.nixosModules.default
sops-nix.nixosModules.sops
nixos-hardware.nixosModules.framework-intel-core-ultra-series3
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
@@ -114,8 +129,7 @@
home-manager.users.jashton = {
imports = [
./home/jashton.nix
dankcalendar.homeModules.default
dux-search.homeModules.default
];
};
}
@@ -130,10 +144,13 @@
./hosts/lavender/default.nix
niri.nixosModules.niri
dms.nixosModules.default
dank-greeter.nixosModules.default
dms-plugin-registry.nixosModules.default
dux-files.nixosModules.default
dux-greeter.nixosModules.default
dux-plugin-registry.nixosModules.default
dux-calendar.nixosModules.default
sops-nix.nixosModules.sops
home-manager.nixosModules.home-manager {
@@ -144,8 +161,7 @@
home-manager.users.jashton = {
imports = [
./home/jashton.nix
dankcalendar.homeModules.default
dux-search.homeModules.default
];
};
}
+6
View File
@@ -130,6 +130,12 @@ in
spawn-at-startup "/nix/store/b1kxyzg5r6644mcmjh8jwsb8rinqzsw8-launch-wvkbd/bin/launch-wvkbd"
spawn-at-startup "/nix/store/l9k161qcs6ypzzbicjhkn8b203r610j6-launch-lisgd/bin/launch-lisgd"
layer-rule {
background-effect {
xray false
}
}
window-rule {
draw-border-with-background true
geometry-corner-radius 25.000000 25.000000 25.000000 25.000000
+34 -5
View File
@@ -64,6 +64,7 @@ in
scrot
signal-desktop
spotify
teams-for-linux
thunderbird
tor
tor-browser
@@ -75,6 +76,10 @@ in
custom_wvkbd
(pkgs.writeShellScriptBin "clrcache" ''
echo 3 | sudo tee /proc/sys/vm/drop_caches
'')
(pkgs.writeShellScriptBin "jroot" ''
d="$PWD"
while [ "$d" != "/" ]; do
@@ -225,6 +230,8 @@ in
'';
};
programs.dsearch.enable = true;
programs.opencode = {
enable = true;
@@ -237,14 +244,36 @@ in
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";
limit = {
context = 65536;
output = 8192;
};
};
"codestral:22b" = {
name = "codestral 22B";
"qwen2.5:32b" = {
name = "Qwen2.5 32B";
limit = {
context = 65536;
output = 8192;
};
};
"gemma4:31b" = {
name = "Gemma 4 31B";
limit = {
context = 65536;
output = 8192;
};
};
"glm-4.7-flash" = {
name = "GLM 4.7 Flash";
limit = {
context = 65536;
output = 8192;
};
};
};
};
+152 -5
View File
@@ -147,11 +147,12 @@ in
},
})
-- 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", "go", "gomod" },
pattern = {
"java", "xml", "nix", "lua", "rust", "go", "gomod",
"php", "sql", "html", "css", "scss", "javascript",
"javascriptreact", "typescript", "typescriptreact", "json",
},
callback = function(args)
pcall(vim.treesitter.start, args.buf)
end,
@@ -179,6 +180,17 @@ in
end,
})
-- PHP indentation must match PSR-12 (php-cs-fixer): 4 spaces.
vim.api.nvim_create_autocmd("FileType", {
pattern = "php",
callback = function()
vim.bo.expandtab = true
vim.bo.tabstop = 4
vim.bo.shiftwidth = 4
vim.bo.softtabstop = 4
end,
})
local cmp = require("cmp")
local luasnip = require("luasnip")
cmp.setup({
@@ -305,6 +317,139 @@ in
end,
})
-- PHP / SQL / HTML / CSS / JS: same approach as Go above. Every server
-- and tool is resolved from PATH, so the project's flake devShell /
-- direnv provides them (launch Neovim from inside that environment).
local function web_attach(_, 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)
-- conform runs php-cs-fixer / prettierd / sqlfluff, falling back to the LSP.
map("<leader>f", function()
require("conform").format({ async = true, lsp_format = "fallback" })
end)
end
vim.lsp.config("phpactor", {
cmd = { "phpactor", "language-server" },
filetypes = { "php" },
root_markers = { "composer.json", ".phpactor.json", ".phpactor.yml", ".git" },
capabilities = capabilities,
on_attach = web_attach,
})
-- sqls only gives real results once a connection is defined in its
-- config.yml (the root marker below); without one it attaches but is quiet.
vim.lsp.config("sqls", {
cmd = { "sqls" },
filetypes = { "sql", "mysql" },
root_markers = { "config.yml", ".git" },
capabilities = capabilities,
on_attach = web_attach,
})
vim.lsp.config("html", {
cmd = { "vscode-html-language-server", "--stdio" },
filetypes = { "html", "templ" },
root_markers = { "package.json", ".git" },
capabilities = capabilities,
init_options = {
provideFormatter = true,
embeddedLanguages = { css = true, javascript = true },
configurationSection = { "html", "css", "javascript" },
},
on_attach = web_attach,
})
vim.lsp.config("cssls", {
cmd = { "vscode-css-language-server", "--stdio" },
filetypes = { "css", "scss", "less" },
root_markers = { "package.json", ".git" },
capabilities = capabilities,
init_options = { provideFormatter = true },
settings = {
css = { validate = true, lint = { unknownAtRules = "ignore" } },
scss = { validate = true, lint = { unknownAtRules = "ignore" } },
less = { validate = true },
},
on_attach = web_attach,
})
vim.lsp.config("ts_ls", {
cmd = { "typescript-language-server", "--stdio" },
filetypes = { "javascript", "javascriptreact", "typescript", "typescriptreact" },
root_markers = { "tsconfig.json", "jsconfig.json", "package.json", ".git" },
capabilities = capabilities,
init_options = { hostInfo = "neovim" },
on_attach = web_attach,
})
vim.lsp.config("emmet_ls", {
cmd = { "emmet-ls", "--stdio" },
filetypes = { "html", "css", "scss", "less", "javascriptreact", "typescriptreact" },
root_markers = { ".git" },
capabilities = capabilities,
})
vim.lsp.config("tailwindcss", {
cmd = { "tailwindcss-language-server", "--stdio" },
filetypes = { "html", "css", "scss", "javascript", "javascriptreact", "typescript", "typescriptreact" },
root_markers = { "tailwind.config.js", "tailwind.config.ts", "postcss.config.js", "postcss.config.mjs", "package.json", ".git" },
capabilities = capabilities,
on_attach = web_attach,
})
vim.lsp.config("jsonls", {
cmd = { "vscode-json-language-server", "--stdio" },
filetypes = { "json", "jsonc" },
root_markers = { "package.json", ".git" },
capabilities = capabilities,
init_options = { provideFormatter = true },
on_attach = web_attach,
})
vim.lsp.enable({ "phpactor", "sqls", "html", "cssls", "ts_ls", "emmet_ls", "tailwindcss", "jsonls" })
-- Linters (diagnostics): run on open and save. phpstan can be slow on
-- big projects, so it is deliberately not run on every keystroke.
-- sqlfluff needs a dialect, set it in a project .sqlfluff file.
local lint = require("lint")
lint.linters_by_ft = {
php = { "phpstan", "phpcs" },
sql = { "sqlfluff" },
css = { "stylelint" },
scss = { "stylelint" },
less = { "stylelint" },
javascript = { "eslint_d" },
javascriptreact = { "eslint_d" },
typescript = { "eslint_d" },
typescriptreact = { "eslint_d" },
}
vim.api.nvim_create_autocmd({ "BufReadPost", "BufWritePost" }, {
callback = function()
lint.try_lint()
end,
})
-- Formatters (<leader>f via web_attach).
require("conform").setup({
formatters_by_ft = {
php = { "php_cs_fixer" },
sql = { "sqlfluff" },
html = { "prettierd" },
css = { "prettierd" },
scss = { "prettierd" },
less = { "prettierd" },
javascript = { "prettierd" },
javascriptreact = { "prettierd" },
typescript = { "prettierd" },
typescriptreact = { "prettierd" },
json = { "prettierd" },
},
})
local bundles = vim.fn.glob(
"${javaDebug}/share/vscode/extensions/vscjava.vscode-java-debug/server/com.microsoft.java.debug.plugin-*.jar",
true, true)
@@ -459,7 +604,9 @@ in
{ plugin = luasnip; }
{ plugin = cmp_luasnip; }
{ plugin = rustaceanvim; }
{ plugin = (nvim-treesitter.withPlugins (p: [ p.java p.xml p.nix p.lua p.rust p.go p.gomod ])); }
{ plugin = nvim-lint; }
{ plugin = conform-nvim; }
{ plugin = (nvim-treesitter.withPlugins (p: [ p.java p.xml p.nix p.lua p.rust p.go p.gomod p.php p.sql p.html p.css p.javascript p.typescript p.tsx p.json ])); }
{ plugin = vim-obsession; }
];
+6 -7
View File
@@ -84,14 +84,13 @@ in
package = unstable.ollama-vulkan;
environmentVariables = {
# Forces Ollama to strictly leverage Vulkan device routing
GGML_VULKAN_DEVICE = "0";
# Prevents multi-model concurrency thrashing on unified memory
OLLAMA_NUM_PARALLEL = "1";
# Optional: Set flash attention or high context limits if desired
OLLAMA_IGPU_ENABLE = "1";
GGML_VULKAN_DEVICE = "0";
OLLAMA_NUM_PARALLEL = "3";
OLLAMA_KEEP_ALIVE = "-1";
OLLAMA_CONTEXT_LENGTH = "65536";
OLLAMA_FLASH_ATTENTION = "1";
OLLAMA_KV_CACHE_TYPE = "q8_0";
};
};
}
+2 -1
View File
@@ -45,7 +45,6 @@ in
macchanger
makeDBusConf
mypy
nautilus
networkmanagerapplet
nitrogen
nix-direnv
@@ -129,4 +128,6 @@ in
localNetworkGameTransfers.openFirewall = true;
gamescopeSession.enable = true;
};
programs.gamemode.enable = true;
}
+46 -37
View File
@@ -8,45 +8,49 @@ let
};
in
{
imports = [
inputs.dankcalendar.nixosModules.default
];
programs.niri = {
enable = true;
package = inputs.niri.packages.${pkgs.stdenv.hostPlatform.system}.niri-unstable;
};
programs.dms-shell = {
enable = true;
enableSystemMonitoring = true;
enableVPN = true;
enableDynamicTheming = true;
enableAudioWavelength = true;
enableCalendarEvents = true;
systemd = {
programs = {
niri = {
enable = true;
restartIfChanged = true;
package = inputs.niri.packages.${pkgs.stdenv.hostPlatform.system}.niri-unstable;
};
quickshell.package = unstable.quickshell;
dms-shell = {
enable = true;
enableSystemMonitoring = true;
enableVPN = true;
enableDynamicTheming = true;
enableAudioWavelength = true;
enableCalendarEvents = true;
plugins = {
developerUtilities.enable = true;
batteryPlus.enable = true;
dmsThemeSync.enable = true;
systemd = {
enable = true;
restartIfChanged = true;
};
quickshell.package = unstable.quickshell;
package = inputs.dms.packages.${pkgs.system}.default;
};
dms-greeter = {
enable = true;
compositor.name = "niri";
configHome = "/home/jashton";
};
dank-calendar = {
enable = true;
systemd.enable = true;
};
dux-files.enable = true;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
};
programs.dms-greeter = {
enable = true;
compositor.name = "niri";
configHome = "/home/jashton";
};
programs.dank-calendar.enable = false;
systemd = {
user = {
@@ -56,14 +60,19 @@ in
};
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
services = {
clamav = {
daemon.enable = true;
updater.enable = true;
};
libinput = {
enable = true;
touchpad = {
tapping = true;
clickMethod = "clickfinger";
};
};
openssh = {