Files
nix-config-ryan4yin/overlays
Ryan Yin 0a847c1f55 refactor(overlays): pin smartctl_exporter to the upstream #329 commit
Replace the backported patch with a src/version/vendorHash override that pins prometheus-smartctl-exporter to upstream 6274decc (2026-09-28), which already carries the Describe() fix from PR #329. Simpler to maintain than a patch file and it tracks the upstream change directly; drop the overlay once smartctl_exporter 0.15.0 is packaged in nixpkgs.
2026-10-03 12:53:30 +08:00
..

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.

Current Structure

overlays/
├── README.md
├── default.nix            # Entrypoint for all overlays
├── computer-use-linux.nix # trycua/computer-use-linux package
├── cua-driver.nix         # trycua/cua driver (cua-driver) package
├── 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 - 小鹤音形输入法

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: packages pkgs/computer-use-linux.
  • cua-driver.nix: packages pkgs/cua-driver (used by the computer-use VMs).
  • smartctl-exporter/: pins prometheus-smartctl-exporter to the upstream commit carrying PR #329 until smartctl_exporter 0.15.0 is released; see overlays/smartctl-exporter/default.nix.