Fix pkgs ref in home-manager / NixOS registry.json

This commit is contained in:
Jack O'Sullivan 2022-06-17 22:48:47 +01:00
parent c8e5859eb5
commit f744f77732
2 changed files with 20 additions and 9 deletions

View File

@ -47,15 +47,6 @@ in
nix = { nix = {
package = pkgs.nix; package = pkgs.nix;
registry = {
pkgs = {
to = {
type = "path";
path = toString pkgs.path;
};
exact = true;
};
};
settings = { settings = {
experimental-features = [ "nix-command" "flakes" "ca-derivations" ]; experimental-features = [ "nix-command" "flakes" "ca-derivations" ];
max-jobs = mkDefault "auto"; max-jobs = mkDefault "auto";
@ -227,6 +218,17 @@ in
allowUnfree = true; allowUnfree = true;
}; };
}; };
nix = {
registry = {
pkgs = {
to = {
type = "path";
path = "${pkgs.path}";
};
exact = true;
};
};
};
}) })
(mkIf config.my.isStandalone { (mkIf config.my.isStandalone {
my = { my = {

View File

@ -49,6 +49,15 @@ in
trusted-users = [ "@wheel" ]; trusted-users = [ "@wheel" ];
experimental-features = [ "nix-command" "flakes" "ca-derivations" ]; experimental-features = [ "nix-command" "flakes" "ca-derivations" ];
}; };
registry = {
pkgs = {
to = {
type = "path";
path = "${pkgs.path}";
};
exact = true;
};
};
gc = { gc = {
options = mkDefault "--max-freed $((8 * 1024**3))"; options = mkDefault "--max-freed $((8 * 1024**3))";
automatic = mkDefault true; automatic = mkDefault true;