mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
flake-module: rename homeModules to homeManagerModules (#6392)
This commit is contained in:
parent
18fa9f323d
commit
066ba0c5cf
2 changed files with 5 additions and 5 deletions
|
|
@ -22,7 +22,7 @@ you may wish to import Home Manager's flake module,
|
||||||
inputs.home-manager.flakeModules.home-manager
|
inputs.home-manager.flakeModules.home-manager
|
||||||
];
|
];
|
||||||
flake = {
|
flake = {
|
||||||
# Define `homeModules`, `homeConfigurations`,
|
# Define `homeManagerModules`, `homeConfigurations`,
|
||||||
# `nixosConfigurations`, etc here
|
# `nixosConfigurations`, etc here
|
||||||
};
|
};
|
||||||
# See flake.parts for more features, such as `perSystem`
|
# See flake.parts for more features, such as `perSystem`
|
||||||
|
|
@ -30,10 +30,10 @@ you may wish to import Home Manager's flake module,
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The flake module defines the `flake.homeModules` and `flake.homeConfigurations`
|
The flake module defines the `flake.homeManagerModules` and `flake.homeConfigurations`
|
||||||
options, allowing them to be properly merged if they are defined in multiple
|
options, allowing them to be properly merged if they are defined in multiple
|
||||||
modules.
|
modules.
|
||||||
|
|
||||||
If you are only defining `homeModules` and/or `homeConfigurations` once in a
|
If you are only defining `homeManagerModules` and/or `homeConfigurations` once in a
|
||||||
single module, flake-parts should work fine without importing
|
single module, flake-parts should work fine without importing
|
||||||
`flakeModules.home-manager`.
|
`flakeModules.home-manager`.
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,11 @@ in {
|
||||||
that you can reference them in this or another flake's `homeConfigurations`.
|
that you can reference them in this or another flake's `homeConfigurations`.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
homeModules = mkOption {
|
homeManagerModules = mkOption {
|
||||||
type = types.lazyAttrsOf types.unspecified;
|
type = types.lazyAttrsOf types.unspecified;
|
||||||
default = { };
|
default = { };
|
||||||
apply = mapAttrs (k: v: {
|
apply = mapAttrs (k: v: {
|
||||||
_file = "${toString moduleLocation}#homeModules.${k}";
|
_file = "${toString moduleLocation}#homeManagerModules.${k}";
|
||||||
imports = [ v ];
|
imports = [ v ];
|
||||||
});
|
});
|
||||||
description = ''
|
description = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue