2024-01-09 09:17:54 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
nixpkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-01-09 13:28:14 -05:00
|
|
|
with lib; let
|
|
|
|
inherit (config.sops.secrets) access-token;
|
|
|
|
in {
|
2023-12-13 21:38:30 -05:00
|
|
|
# Minimize dowloads of indirect nixpkgs flakes
|
2023-12-15 18:20:28 -05:00
|
|
|
nix = {
|
|
|
|
registry.nixpkgs.flake = nixpkgs;
|
|
|
|
nixPath = ["nixpkgs=${nixpkgs}"];
|
2024-01-09 13:28:14 -05:00
|
|
|
extraOptions =
|
|
|
|
if (hasAttr "sops" config)
|
|
|
|
then "!include ${access-token.path}"
|
|
|
|
else "";
|
2023-12-13 21:38:30 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
# Global hm settings
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
}
|