nix-conf/user/bin/default.nix

23 lines
586 B
Nix
Raw Normal View History

2024-10-22 20:35:48 -04:00
{ config, pkgs, ... }:
2024-10-18 02:58:59 -04:00
let
deps = {
bell = [ pkgs.pipewire pkgs.libnotify ];
nsxiv-rifle = [ pkgs.nsxiv ];
screenshot = [ pkgs.maim pkgs.xclip ];
};
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 {
home.file = builtins.listToAttrs (map
(x: {
name = ".local/bin/${x}";
value = { source = mkln x; };
})
2024-10-18 15:11:33 -04:00
(builtins.filter
(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);
}