nixos-config/modules/home-manager/_private/extra-arguments.nix

18 lines
676 B
Nix
Raw Normal View History

# All of the extra module arguments to be passed as part of the home-manager
# environment.
{ pkgs, lib, options, ... }@attrs:
let
2024-02-25 14:27:05 +00:00
foodogsquaredLib = import ../../../lib { inherit pkgs; };
in
{
_module.args.foodogsquaredLib =
foodogsquaredLib.extend (final: prev: {
home-manager = import ../../../lib/env-specific/home-manager.nix { inherit pkgs lib; self = final; };
} // lib.optionalAttrs (options?sops) {
sops-nix = import ../../../lib/env-specific/sops.nix { inherit pkgs lib; self = final; };
} // lib.optionalAttrs (attrs?nixosConfig) {
nixos = import ../../../lib/env-specific/nixos.nix { inherit pkgs lib; self = final; };
});
}