Skip to content

Commit

Permalink
Merge pull request #30 from DeterminateSystems/home-manager-modules
Browse files Browse the repository at this point in the history
Add `homeModules` schema
  • Loading branch information
grahamc authored Jul 26, 2024
2 parents fa4dcab + c784781 commit 0a5c422
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ It supports the following flake output types:
* [`darwinConfigurations`][darwin]
* [`darwinModules`][darwin]
* [`homeConfigurations`][home]
* [`homeModules`][home]
* [`dockerImages`][docker]
* `schemas`

Expand Down
15 changes: 15 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,20 @@
output);
};

homeModulesSchema = {
version = 1;
doc = ''
The `homeModules` flake output defines importable [Home Manager](https://github.com/nix-community/home-manager) modules.
'';
inventory = output: self.lib.mkChildren (builtins.mapAttrs
(moduleName: module:
{
what = "Home Manager module";
evalChecks.isFunctionOrAttrs = checkModule module;
})
output);
};

darwinConfigurationsSchema = {
version = 1;
doc = ''
Expand Down Expand Up @@ -359,6 +373,7 @@
schemas.nixosConfigurations = nixosConfigurationsSchema;
schemas.nixosModules = nixosModulesSchema;
schemas.homeConfigurations = homeConfigurationsSchema;
schemas.homeModules = homeModulesSchema;
schemas.darwinConfigurations = darwinConfigurationsSchema;
schemas.darwinModules = darwinModulesSchema;
schemas.dockerImages = dockerImagesSchema;
Expand Down

0 comments on commit 0a5c422

Please sign in to comment.