fix(darwin): Setup defined users as trusted users #21

Merged
licebmi merged 1 commit from darwin-template-defined-users into main 2024-05-03 10:16:19 +00:00

View file

@ -1,3 +1,4 @@
{ config, lib, ... }:
{ {
# Auto upgrade nix package and the daemon service. # Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true; services.nix-daemon.enable = true;
@ -17,8 +18,8 @@
substituters = [ "https://nix-community.cachix.org" ]; substituters = [ "https://nix-community.cachix.org" ];
trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ]; 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 # this is important so that we can use the substituters with no issues
trusted-users = [ "axel" ]; trusted-users = lib.attrNames config.users.users;
}; };
} }