2024-01-09 09:17:54 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
nixpkgs,
|
|
|
|
...
|
2024-01-22 11:09:37 -05:00
|
|
|
}: let
|
2024-01-09 13:28:14 -05:00
|
|
|
inherit (config.sops.secrets) access-token;
|
2024-01-22 11:09:37 -05:00
|
|
|
inherit (lib) hasAttr optionalString;
|
2024-01-09 13:28:14 -05:00
|
|
|
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-22 11:09:37 -05:00
|
|
|
|
2024-01-09 13:28:14 -05:00
|
|
|
extraOptions =
|
2024-01-22 11:09:37 -05:00
|
|
|
optionalString (hasAttr "sops" config)
|
|
|
|
"!include ${access-token.path}";
|
2023-12-13 21:38:30 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
# Global hm settings
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
}
|