Skip to content

Commit

Permalink
integration-common: set hmModule's description directly
Browse files Browse the repository at this point in the history
Removes the hack after NixOS/nixpkgs#173621
landed.
  • Loading branch information
ncfavier authored and rycee committed Jun 26, 2022
1 parent 0ca0b91 commit 0434f8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 2 additions & 11 deletions nixos/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ let

extendedLib = import ../modules/lib/stdlib-extended.nix pkgs.lib;

hmModule' = types.submoduleWith {
hmModule = types.submoduleWith {
description = "Home Manager module";
specialArgs = {
lib = extendedLib;
osConfig = config;
Expand All @@ -38,16 +39,6 @@ let
};
})
] ++ cfg.sharedModules;
} // {
description = "Home Manager module";
};

# TODO: hack until https://github.com/NixOS/nixpkgs/pull/173621 lands
hmModule = hmModule' // {
substSubModules = m:
hmModule'.substSubModules m // {
inherit (hmModule') description;
};
};

in {
Expand Down

0 comments on commit 0434f8e

Please sign in to comment.