nix registry
This commit is contained in:
parent
fa6361b698
commit
f04a392d14
1 changed files with 2 additions and 7 deletions
|
@ -1,20 +1,15 @@
|
|||
{ lib, inputs, config, ... }: {
|
||||
{ ... }: {
|
||||
programs.git.enable = true;
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
clean.enable = true;
|
||||
clean.extraArgs = "--keep-since 7d";
|
||||
};
|
||||
nix = let flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
||||
in {
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
flake-registry = "";
|
||||
nix-path = config.nix.nixPath;
|
||||
};
|
||||
optimise.automatic = true;
|
||||
registry = lib.mapAttrs (_: flake: { inherit flake; }) flakeInputs;
|
||||
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
|
||||
};
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue