mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
29 lines
484 B
Nix
29 lines
484 B
Nix
{
|
|
config,
|
|
tree,
|
|
machine,
|
|
systemType,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.lists) optional;
|
|
in {
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
sharedModules = with tree;
|
|
[
|
|
modules.home
|
|
kat.state
|
|
]
|
|
++ optional (tree.${systemType} ? home) tree.${systemType}.home;
|
|
|
|
users.kat.imports = with tree.kat; [
|
|
common
|
|
];
|
|
extraSpecialArgs = {
|
|
inherit tree machine;
|
|
parent = config;
|
|
};
|
|
};
|
|
}
|