From 3a292a23130db25932a6ceec755e1bb19487e5d3 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 3 Oct 2022 00:01:54 +0200 Subject: Update to nix-darwin unstable on mba --- system/settings/darwin.nix | 11 ++++------- system/settings/programs/base.nix | 6 +++--- 2 files changed, 7 insertions(+), 10 deletions(-) (limited to 'system/settings') diff --git a/system/settings/darwin.nix b/system/settings/darwin.nix index 2761817e..62859e7e 100644 --- a/system/settings/darwin.nix +++ b/system/settings/darwin.nix @@ -6,20 +6,17 @@ enableSocketListener = true; }; nix = { - buildCores = lib.mkDefault 0; - daemonIONice = true; - daemonNiceLevel = 10; + settings.cores = lib.mkDefault 0; + daemonIOLowPriority = true; gc = { automatic = true; user = "alan"; options = "--max-freed $((25 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | awk '{ print $4 }')))"; }; - extraOptions = '' - system = x86_64-darwin - extra-platforms = x64_64-darwin aarch64-darwin - ''; + settings.extra-platforms = "x86_64-darwin aarch64-darwin"; }; + nixpkgs.system = "x86_64-darwin"; nixpkgs.config = { allowUnfree = true; }; diff --git a/system/settings/programs/base.nix b/system/settings/programs/base.nix index bdf240f1..6177cbb4 100644 --- a/system/settings/programs/base.nix +++ b/system/settings/programs/base.nix @@ -6,8 +6,8 @@ vim zstd ]; - nix = { - binaryCaches = ["https://nix-community.cachix.org"]; - binaryCachePublicKeys = ["nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="]; + nix.settings = { + trusted-substituters = ["https://nix-community.cachix.org"]; + trusted-public-keys = ["nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="]; }; } -- cgit 1.4.1