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

16 lines
475 B
Nix
Raw Normal View History

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