From f62018530dfaf036fe69a3ada257f856c0904c03 Mon Sep 17 00:00:00 2001 From: Mark Martinez Date: Fri, 3 May 2024 11:54:20 +0200 Subject: [PATCH] fix(darwin): Setup defined users as trusted users --- darwin/core.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/darwin/core.nix b/darwin/core.nix index 5d187cb..6da1d1d 100644 --- a/darwin/core.nix +++ b/darwin/core.nix @@ -1,3 +1,4 @@ +{ config, lib, ... }: { # Auto upgrade nix package and the daemon service. services.nix-daemon.enable = true; @@ -17,8 +18,8 @@ substituters = [ "https://nix-community.cachix.org" ]; trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ]; - # We also want to add our user, in this case "axel" to the trusted users + # We also want to add our defined users to the trusted-users list # this is important so that we can use the substituters with no issues - trusted-users = [ "axel" ]; + trusted-users = lib.attrNames config.users.users; }; }