Skip to content

Commit

Permalink
Add standard module path compatibility to extras/modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandapip1 committed Dec 7, 2024
1 parent 205b12d commit b703854
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions extras/modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,11 @@ in
apply = mapAttrs (k: mapAttrs (addInfo k));
};
};
config = {
# Copy over to old nixosModules and hmModules attributes
flake = {
nixosModules = lib.optional (lib.hasAttr "nixos" lib.flake.modules) lib.flake.modules.nixos;
hmModules = lib.optional (lib.hasAttr "home-manager" lib.flake.modules) lib.flake.modules.home-manager;
};
};
}

0 comments on commit b703854

Please sign in to comment.