nixos-config/modules/flake-parts/home-modules.nix

23 lines
565 B
Nix
Raw Normal View History

2024-01-17 09:31:21 +00:00
{ lib, flake-parts-lib, moduleLocation, ... }:
{
options = {
flake = flake-parts-lib.mkSubmoduleOptions {
homeModules = lib.mkOption {
type = with lib.types; lazyAttrsOf unspecified;
default = { };
apply = lib.mapAttrs (k: v: {
_file = "${toString moduleLocation}#homeModules.${k}";
imports = [ v ];
});
description = ''
home-manager modules.
You may use this to export reusable pieces of configuration, service
modules, etc.
'';
};
};
};
}