mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
49 lines
846 B
Nix
49 lines
846 B
Nix
{ lib, tree, ... }: let
|
|
wrapImports = imports: lib.mapAttrs
|
|
(_: paths: { config, ... }: {
|
|
config.home-manager.users.kat = {
|
|
imports = lib.singleton paths;
|
|
};
|
|
})
|
|
imports;
|
|
dirImports = wrapImports tree.prev;
|
|
serviceImports = wrapImports tree.prev.services;
|
|
in
|
|
dirImports // {
|
|
base = {
|
|
imports = with dirImports; [
|
|
base16
|
|
shell
|
|
vim
|
|
secrets
|
|
state
|
|
dconf
|
|
emacs
|
|
];
|
|
};
|
|
gui = {
|
|
imports = with dirImports; [
|
|
gui
|
|
firefox
|
|
konawall
|
|
ranger
|
|
xkb
|
|
kitty
|
|
gpg
|
|
sway
|
|
mako
|
|
gammastep
|
|
wofi
|
|
waybar
|
|
xdg
|
|
fonts
|
|
media
|
|
obs
|
|
mpv
|
|
syncplay
|
|
gtk
|
|
qt
|
|
];
|
|
};
|
|
services = serviceImports;
|
|
}
|