mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
42 lines
667 B
Nix
42 lines
667 B
Nix
{
|
|
tree,
|
|
std,
|
|
...
|
|
}: let
|
|
inherit (std) set list;
|
|
wrapImports = imports:
|
|
set.map
|
|
(_: paths: {config, ...}: {
|
|
config.home-manager.users.kat = {
|
|
imports = list.singleton paths;
|
|
};
|
|
})
|
|
imports;
|
|
dirImports = wrapImports tree.prev;
|
|
in
|
|
dirImports
|
|
// {
|
|
inherit (tree.prev) user;
|
|
common = {
|
|
imports = with tree.prev; [
|
|
base16
|
|
shell
|
|
neovim
|
|
];
|
|
};
|
|
gui = {
|
|
imports = with dirImports; [
|
|
gui
|
|
wezterm
|
|
vscodium
|
|
gpg
|
|
];
|
|
};
|
|
work = {
|
|
imports = with dirImports; [
|
|
wezterm
|
|
vscodium
|
|
gpg
|
|
];
|
|
};
|
|
}
|