mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
15 lines
520 B
Nix
15 lines
520 B
Nix
{ lib }: hostName: with lib; filter builtins.pathExists [
|
|
(../../config/hosts + "/${hostName}/nixos.nix")
|
|
(../../config/trusted/hosts + "/${hostName}/nixos.nix")
|
|
../../config/trusted/profile
|
|
../../config/profiles/base
|
|
] ++ singleton {
|
|
options.home-manager.users = mkOption {
|
|
type = types.attrsOf (types.submoduleWith {
|
|
modules = filter builtins.pathExists [
|
|
(../../config/hosts + "/${hostName}/home.nix")
|
|
(../../config/trusted/hosts + "/${hostName}/home.nix")
|
|
];
|
|
});
|
|
};
|
|
}
|