mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 11:17:17 +00:00
29 lines
553 B
Nix
29 lines
553 B
Nix
{
|
|
lib,
|
|
flake-parts-lib,
|
|
self,
|
|
...
|
|
}: let
|
|
inherit
|
|
(lib)
|
|
mkOption
|
|
types
|
|
;
|
|
inherit (flake-parts-lib) mkSubmoduleOptions;
|
|
in {
|
|
options = {
|
|
flake = mkSubmoduleOptions {
|
|
homeManagerModules = mkOption {
|
|
type = types.attrsOf types.unspecified;
|
|
default = {};
|
|
apply = lib.mapAttrs (k: v: {
|
|
_file = "${toString self.outPath}/flake.nix#homeManagerModules.${k}";
|
|
imports = [v];
|
|
});
|
|
description = ''
|
|
Home Manager modules.
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|