nixos-configs/common/modules/global.nix

24 lines
480 B
Nix
Raw Permalink Normal View History

{
config,
lib,
nixpkgs,
...
2024-01-22 11:09:37 -05:00
}: let
inherit (config.sops.secrets) access-token;
2024-01-22 11:09:37 -05:00
inherit (lib) hasAttr optionalString;
in {
# Minimize dowloads of indirect nixpkgs flakes
nix = {
registry.nixpkgs.flake = nixpkgs;
nixPath = ["nixpkgs=${nixpkgs}"];
2024-01-22 11:09:37 -05:00
extraOptions =
2024-01-22 11:09:37 -05:00
optionalString (hasAttr "sops" config)
"!include ${access-token.path}";
};
# Global hm settings
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}