From eb39c1d4039e81f2f9c9ca47640c3e784371943f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 16 Dec 2022 21:56:22 +0100 Subject: [PATCH] Migrate deprecated options --- hosts/glotzbert/default.nix | 6 +++--- hosts/glotzbert/hardware-configuration.nix | 1 - hosts/radiobert/default.nix | 6 +++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/hosts/glotzbert/default.nix b/hosts/glotzbert/default.nix index 5847dc3a..b3474ad7 100644 --- a/hosts/glotzbert/default.nix +++ b/hosts/glotzbert/default.nix @@ -13,9 +13,9 @@ nixpkgs.config.allowUnfree = true; - nix = { - buildCores = 4; - maxJobs = 4; + nix.settings = { + cores = 4; + max-jobs = 4; }; sops = { diff --git a/hosts/glotzbert/hardware-configuration.nix b/hosts/glotzbert/hardware-configuration.nix index 4d5aa8da..d2478121 100644 --- a/hosts/glotzbert/hardware-configuration.nix +++ b/hosts/glotzbert/hardware-configuration.nix @@ -24,6 +24,5 @@ swapDevices = [ ]; - nix.maxJobs = lib.mkDefault 4; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; } diff --git a/hosts/radiobert/default.nix b/hosts/radiobert/default.nix index 69085379..f55406bb 100644 --- a/hosts/radiobert/default.nix +++ b/hosts/radiobert/default.nix @@ -85,9 +85,9 @@ pkgs.makeModulesClosure (x // { allowMissing = true; }); }; - nix = { - buildCores = 4; - maxJobs = 2; + nix.settings = { + cores = 4; + max-jobs = 2; }; sops = {