nix-conf/user/bin/default.nix

27 lines
597 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-10-22 20:35:48 -04:00
mkln = x: config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.local/nixos/user/bin/${x}";
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-10-27 13:34:49 -04:00
value = {source = mkln 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);
}