mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
23 lines
565 B
Nix
23 lines
565 B
Nix
|
{ 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.
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|