mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 22:30:25 +01:00
feat: format via 'ls **/*.nix | each { |it| nixfmt $it.name }'
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
args:
|
||||
# execute and import all overlay files in the current directory with the given args
|
||||
builtins.map
|
||||
(f: (import (./. + "/${f}") args)) # execute and import the overlay file
|
||||
builtins.map (f: (import (./. + "/${f}") args)) # execute and import the overlay file
|
||||
|
||||
(builtins.filter # find all overlay files in the current directory
|
||||
|
||||
(
|
||||
f:
|
||||
f
|
||||
!= "default.nix" # ignore default.nix
|
||||
&& f != "README.md" # ignore README.md
|
||||
builtins.filter # find all overlay files in the current directory
|
||||
|
||||
(
|
||||
f:
|
||||
f != "default.nix" # ignore default.nix
|
||||
&& f != "README.md" # ignore README.md
|
||||
)
|
||||
(builtins.attrNames (builtins.readDir ./.))
|
||||
)
|
||||
(builtins.attrNames (builtins.readDir ./.)))
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
# 为了不使用默认的 rime-data,改用我自定义的小鹤音形数据,这里需要 override
|
||||
# 参考 https://github.com/NixOS/nixpkgs/blob/e4246ae1e7f78b7087dce9c9da10d28d3725025f/pkgs/tools/inputmethods/fcitx5/fcitx5-rime.nix
|
||||
_: (_: super: {
|
||||
_:
|
||||
(_: super: {
|
||||
# 小鹤音形配置,配置来自 flypy.com 官方网盘的鼠须管配置压缩包「小鹤音形“鼠须管”for macOS.zip」
|
||||
# 我仅修改了 default.yaml 文件,将其中的半角括号改为了直角括号「 与 」。
|
||||
rime-data = ./rime-data-flypy;
|
||||
fcitx5-rime = super.fcitx5-rime.override {rimeDataPkgs = [./rime-data-flypy];};
|
||||
fcitx5-rime = super.fcitx5-rime.override { rimeDataPkgs = [ ./rime-data-flypy ]; };
|
||||
|
||||
# used by macOS Squirrel
|
||||
flypy-squirrel = ./rime-data-flypy;
|
||||
|
||||
Reference in New Issue
Block a user