nixos-config/modules/nixos/_private/extra-arguments.nix
Gabriel Arazas ba6b30ca95
lib: standardize arguments (again)
We'll just copy what we did with Bahaghari project.
2024-03-03 16:39:32 +08:00

16 lines
484 B
Nix

# All of the extra module arguments to be passed as part of the holistic NixOS
# system.
{ pkgs, lib, options, ... }:
let
foodogsquaredLib = import ../../../lib { inherit pkgs; };
in
{
_module.args.foodogsquaredLib =
foodogsquaredLib.extend (final: prev: {
nixos = import ../../../lib/nixos.nix { inherit pkgs lib; self = final; };
} // lib.optionalAttrs (options?sops) {
sops-nix = import ../../../lib/sops.nix { inherit pkgs lib; self = final; };
});
}