mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
30 lines
561 B
Nix
30 lines
561 B
Nix
{ lib, tree, ... }: with lib; let
|
|
wrapImports = imports: mapAttrs
|
|
(_: paths: { config, ... }: {
|
|
config.home-manager.users.kat = {
|
|
imports = singleton paths;
|
|
};
|
|
})
|
|
imports;
|
|
dirImports = wrapImports tree.prev;
|
|
serviceImports = wrapImports tree.prev.services;
|
|
in
|
|
dirImports // {
|
|
base = {
|
|
imports = [
|
|
dirImports.base
|
|
tree.prev.nixos
|
|
];
|
|
};
|
|
server = { };
|
|
guiFull = {
|
|
imports = with dirImports; [
|
|
gui
|
|
sway
|
|
dev
|
|
media
|
|
personal
|
|
];
|
|
};
|
|
services = serviceImports;
|
|
}
|