From eccb94617eb3b8db8b52b6d19da34738810042a3 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Mon, 27 Jan 2025 11:10:03 +0100 Subject: [PATCH] [Nix] add root and @wheel to trusted-users, explicitely This fixes issues caused by adding anything to this setting (which disables the default value) --- nix/nix.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nix/nix.nix b/nix/nix.nix index 5e19bb8..0905261 100644 --- a/nix/nix.nix +++ b/nix/nix.nix @@ -118,6 +118,8 @@ in nix.settings.cores = mkIf (generalCfg.cpu.threads != null) generalCfg.cpu.threads; nix.settings.max-jobs = mkIf (generalCfg.cpu.threads != null) (math.log2 generalCfg.cpu.threads); + nix.settings.trusted-users = [ "root" "@wheel" ]; + nix.settings.hashed-mirrors = [ "https://tarballs.nixos.org" "https://nixpkgs-unfree.cachix.org" ]; nix.registry = {