nix-conf/user/bin/default.nix

27 lines
544 B
Nix
Raw Normal View History

2024-10-27 13:34:49 -04:00
{
config,
pkgs,
...
}: let
2024-10-18 02:58:59 -04:00
deps = {
2024-10-27 13:34:49 -04:00
bell = [pkgs.pipewire pkgs.libnotify];
2024-12-11 05:18:17 -05:00
#nsxiv-rifle = [pkgs.nsxiv];
#screenshot = [pkgs.maim pkgs.xclip];
2024-10-18 02:58:59 -04:00
};
2024-12-17 19:09:12 -05:00
ln = config.u.lib.ln "${config.u.confPath}/user/bin";
2024-10-18 02:58:59 -04:00
in {
2024-10-27 13:34:49 -04:00
home.file = builtins.listToAttrs (
map
2024-10-18 02:58:59 -04:00
(x: {
name = ".local/bin/${x}";
2024-12-17 19:09:12 -05:00
value = {source = ln x;};
2024-10-18 02:58:59 -04:00
})
2024-10-27 13:34:49 -04:00
(
builtins.filter
2024-10-18 15:11:33 -04:00
(x: x != "default.nix")
(builtins.attrNames (builtins.readDir ./.))
)
2024-10-18 02:58:59 -04:00
);
home.packages = pkgs.lib.lists.flatten (builtins.attrValues deps);
}