home-manager/extra-arguments: add NixOS subset for home-manager configs under NixOS systems

This commit is contained in:
Gabriel Arazas 2024-09-13 17:08:42 +08:00
parent 61d609c4dd
commit a7a5e874a0
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -1,6 +1,6 @@
# All of the extra module arguments to be passed as part of the home-manager
# environment.
{ pkgs, lib, options, ... }:
{ pkgs, lib, options, ... }@attrs:
let
foodogsquaredLib = import ../../../lib { inherit pkgs; };
@ -11,5 +11,7 @@ in
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; };
});
}