nixos-config/modules/home-manager/_private/extra-arguments.nix
2024-02-25 20:04:29 +08:00

16 lines
435 B
Nix

# All of the extra module arguments to be passed as part of the home-manager
# environment.
{ options, lib, ... }:
let
foodogsquaredLib = import ../../../lib { inherit lib; };
in
{
_module.args.foodogsquaredLib =
foodogsquaredLib.extend (self:
import ../../../lib/home-manager.nix { inherit lib; }
// lib.optionalAttrs (options?sops) {
sops-nix = import ../../../lib/sops.nix { inherit lib; };
});
}