1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01:00

config: command-line revamp

This commit is contained in:
TheGeneralist 2026-01-18 22:12:00 +01:00
parent 802a38f61b
commit 3f34891413
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
28 changed files with 1141 additions and 335 deletions

View file

@ -96,6 +96,10 @@ lib: inputs: self: lib.mkSystem "<os>" ./configuration.nix
1. Create `.nix` file in appropriate `modules/` subdirectory
2. Module is auto-discovered and loaded
### Theme Defaults
- `modules/common/theme.nix` defines shared theme options used by multiple modules (e.g., `bat`, `ghostty`)
- Adjust `config.theme.*` there or override per-host in `hosts/<hostname>/configuration.nix`
### Adding a New Host
1. Create `hosts/<hostname>/` directory
2. Add `default.nix` with system type
@ -129,6 +133,10 @@ lib: inputs: self: lib.mkSystem "<os>" ./configuration.nix
- Custom options available via `lib.mkOption`
- Flake inputs follow nixpkgs for consistency
### Rebuild Helper
- `rebuild.nu` at repo root wraps `nh` for local/remote rebuilds
- Shell alias `rebuild` points to the script (defined in `modules/common/shell/aliases.nix`)
## Debugging Tips
### Build Issues
@ -147,6 +155,9 @@ lib: inputs: self: lib.mkSystem "<os>" ./configuration.nix
2. Check file extension is `.nix`
3. Ensure valid Nix syntax
### Nushell Warnings
1. Deprecated `get -i` warning from direnv integration is a short-term workaround in `modules/common/shell/direnv.nix` (custom Nushell hook with `get -o` and HM integration disabled) until upstream home-manager updates.
## Performance Optimizations
### Recommended Practices