summaryrefslogtreecommitdiff
path: root/modules/flake
diff options
context:
space:
mode:
authorseth <[email protected]>2023-08-17 18:38:43 -0400
committerseth <[email protected]>2023-08-17 18:38:43 -0400
commit26f535d982c4697bfdaaac4997bc620652a85b53 (patch)
tree832037c241ef408724620b5e262816de1f9b1519 /modules/flake
parent820623a5d4781da517f06a54b5ada63609ff97f1 (diff)
modules/flake: refactor modules
Diffstat (limited to 'modules/flake')
-rw-r--r--modules/flake/homeConfigurations.nix15
-rw-r--r--modules/flake/hydraJobs.nix7
2 files changed, 19 insertions, 3 deletions
diff --git a/modules/flake/homeConfigurations.nix b/modules/flake/homeConfigurations.nix
index b4d966f..1c54b0c 100644
--- a/modules/flake/homeConfigurations.nix
+++ b/modules/flake/homeConfigurations.nix
@@ -3,7 +3,7 @@
flake-parts-lib,
...
}: let
- inherit (lib) mkOption types;
+ inherit (lib) mkOption types literalExpression;
inherit (flake-parts-lib) mkTransposedPerSystemModule;
in
mkTransposedPerSystemModule {
@@ -12,8 +12,19 @@ in
type = types.lazyAttrsOf types.raw;
default = {};
description = ''
- An attribute set containing home-manager homeConfigurations
+ Instantiated home-manager configurations. Used by `home-manager`
+ '';
+ example = literalExpression ''
+ {
+ user = inputs.home-manager.homeManagerConfiguration {
+ pkgs = import inputs.nixpkgs {inherit system;};
+ modules = [
+ ./my-users/home.nix
+ ];
+ };
+ }
'';
};
+
file = ./homeConfigurations.nix;
}
diff --git a/modules/flake/hydraJobs.nix b/modules/flake/hydraJobs.nix
index 57aa3af..cfe9ca7 100644
--- a/modules/flake/hydraJobs.nix
+++ b/modules/flake/hydraJobs.nix
@@ -12,7 +12,12 @@ in {
type = types.lazyAttrsOf types.raw;
default = {};
description = ''
- An attribute set containing home-manager homeConfigurations
+ A collection of jobsets for Hydra. See https://nixos.wiki/wiki/Hydra#Flake_jobset
+ '';
+ example = ''
+ {
+ inherit (self) packages;
+ }
'';
};
};