parent
907ad13aa8
commit
b0542f4f2d
3 changed files with 51 additions and 39 deletions
common/modules
|
@ -1,8 +1,17 @@
|
|||
{nixpkgs, ...}: {
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
nixpkgs,
|
||||
...
|
||||
}:
|
||||
with lib; {
|
||||
# Minimize dowloads of indirect nixpkgs flakes
|
||||
nix = {
|
||||
registry.nixpkgs.flake = nixpkgs;
|
||||
nixPath = ["nixpkgs=${nixpkgs}"];
|
||||
extraOptions = optionalAttrs (hasAttr "sops" config) ''
|
||||
!include ${config.sops.secrets.access-token.path}
|
||||
'';
|
||||
};
|
||||
|
||||
# Global hm settings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue