mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-30 10:03:56 +01:00
* refactor: consume computer-use packages from NUR * fix: expose flake inputs to package overlays Package overlays are imported from two places with different argument shapes: outputs/default.nix passes a set containing `inputs`, while modules/base/overlays.nix passes the NixOS module args, where genSpecialArgs spreads each flake input as a top-level argument. The new NUR-backed overlays read `inputs.nur-ryan4yin`, so evaluation failed on the module path. Also expose the whole flake input set as `inputs` in genSpecialArgs. * chore: bump nur-ryan4yin input Update the locked nur-packages revision to the current main (nixpkgs 26.05, unused packages removed).
64 lines
2.4 KiB
Markdown
64 lines
2.4 KiB
Markdown
# Overlays
|
|
|
|
Overlays for both NixOS and Nix-Darwin.
|
|
|
|
If you don't know much about overlays, it is recommended to learn the function and usage of overlays
|
|
through [Overlays - NixOS & Flakes Book](https://nixos-and-flakes.thiscute.world/nixpkgs/overlays).
|
|
|
|
## Current Structure
|
|
|
|
```
|
|
overlays/
|
|
├── README.md
|
|
├── default.nix # Entrypoint for all overlays
|
|
├── computer-use-linux.nix # computer-use-linux from ryan4yin/nur-packages
|
|
├── cua-driver.nix # cua-driver from ryan4yin/nur-packages
|
|
├── smartctl-exporter/ # smartctl_exporter pinned to the #329 fix
|
|
│ └── default.nix
|
|
└── fcitx5/ # Chinese input method configuration
|
|
├── README.md
|
|
├── default.nix # fcitx5 overlay definition
|
|
└── rime-data-flypy/ # Custom rime data for 小鹤音形输入法
|
|
└── share/
|
|
└── rime-data/
|
|
├── build/
|
|
├── default.custom.yaml
|
|
├── default.yaml
|
|
├── flypy.schema.yaml
|
|
├── flypy_full全码字.txt
|
|
├── flypy_sys.txt
|
|
├── flypy_top.txt
|
|
├── flypy_user.txt
|
|
├── lua/
|
|
│ └── calculator_translator.lua
|
|
├── rime.lua
|
|
├── squirrel.custom.yaml
|
|
└── squirrel.yaml
|
|
```
|
|
|
|
## Components
|
|
|
|
### 1. `default.nix`
|
|
|
|
The entrypoint of overlays, it execute and import all overlay files in the current directory with
|
|
the given args.
|
|
|
|
### 2. `fcitx5`
|
|
|
|
fcitx5's overlay, add my customized Chinese input method - [小鹤音形输入法](https://flypy.com/)
|
|
|
|
This overlay provides:
|
|
|
|
- Custom rime data for 小鹤音形输入法 (Flypy input method)
|
|
- Cross-platform support for both Linux (fcitx5-rime) and macOS (squirrel)
|
|
- Pre-configured input method settings
|
|
|
|
### 3. Package overlays
|
|
|
|
- `computer-use-linux.nix`: exposes `computer-use-linux` from the `nur-ryan4yin` flake input.
|
|
- `cua-driver.nix`: exposes `cua-driver` from the `nur-ryan4yin` flake input (used by the
|
|
computer-use VMs).
|
|
- `smartctl-exporter/`: pins `prometheus-smartctl-exporter` to the upstream commit carrying PR
|
|
[#329](https://github.com/prometheus-community/smartctl_exporter/pull/329) until nixpkgs provides
|
|
a version containing the fix; see `overlays/smartctl-exporter/default.nix`.
|