38 lines
936 B
Nix
38 lines
936 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
ln = config.u.lib.ln "${config.u.confPath}/user/bin";
|
|
in {
|
|
u.bin = with pkgs;
|
|
{
|
|
edit = [];
|
|
auto-tmux = [tmux];
|
|
sm = [];
|
|
}
|
|
// lib.optionalAttrs config.u.has.graphical {
|
|
bell = [pipewire libnotify];
|
|
nsxiv-rifle = [nsxiv];
|
|
screenshot = [maim xclip];
|
|
record-audio = [pulseaudio ffmpeg jq];
|
|
}
|
|
// lib.optionalAttrs config.u.has.jp {
|
|
anki-update = [libnotify inotify-tools pulseaudio ffmpeg jq pyp
|
|
(writers.writePython3Bin "furigana" {
|
|
libraries = [python312Packages.fugashi python312Packages.unidic-lite];
|
|
} (builtins.readFile ./furigana))
|
|
];
|
|
};
|
|
home.file = builtins.listToAttrs (
|
|
map
|
|
(x: {
|
|
name = ".local/bin/${x}";
|
|
value = {source = ln x;};
|
|
})
|
|
(builtins.attrNames config.u.bin)
|
|
);
|
|
home.packages = pkgs.lib.lists.flatten (builtins.attrValues config.u.bin);
|
|
}
|