diff --git a/machines/lisa/default.nix b/machines/lisa/default.nix index 3558cad..8a63c7d 100644 --- a/machines/lisa/default.nix +++ b/machines/lisa/default.nix @@ -65,7 +65,7 @@ services.tailscale.enable = true; - nix.maxJobs = lib.mkDefault 6; + nix.settings.max-jobs = lib.mkDefault 6; services.fail2ban.enable = true; diff --git a/modules/nix/default.nix b/modules/nix/default.nix index 271a777..06d1c44 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -21,13 +21,16 @@ with lib; "nixpkgs=${inputs.nixpkgs}" "nixos=${inputs.nixpkgs}" ]; - binaryCaches = [ - "https://cache.nixos.org" - "https://bin.julienmalka.me" - ]; - binaryCachePublicKeys = [ - "bin.julienmalka.me:RfXA+kPZt3SsMHGib5fY5mxJQLijfXzPbHjHD52ijyI=" - ]; + settings = + { + substituters = [ + "https://cache.nixos.org" + "https://bin.julienmalka.me" + ]; + trusted-public-keys = [ + "bin.julienmalka.me:RfXA+kPZt3SsMHGib5fY5mxJQLijfXzPbHjHD52ijyI=" + ]; + }; };