mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
flake-parts/home-modules: init
This commit is contained in:
parent
d2993a367b
commit
b183caaab8
@ -8,6 +8,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./images.nix
|
./images.nix
|
||||||
./deploy-rs-nodes.nix
|
./deploy-rs-nodes.nix
|
||||||
|
./home-modules.nix
|
||||||
./setups
|
./setups
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
22
modules/flake-parts/home-modules.nix
Normal file
22
modules/flake-parts/home-modules.nix
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{ 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.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user