Skip to content

Commit

Permalink
nix: merge nix.settings.trusted-users by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Enzime committed Jan 8, 2025
1 parent ba9b317 commit 9e856ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,6 @@ in

trusted-users = mkOption {
type = types.listOf types.str;
default = [ "root" ];
example = [ "root" "alice" "@admin" ];
description = ''
A list of names of users that have additional rights when
Expand Down Expand Up @@ -835,10 +834,10 @@ in
done
'';

# Legacy configuration conversion.
nix.settings = mkMerge [
{
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
trusted-users = [ "root" ];
substituters = mkAfter [ "https://cache.nixos.org/" ];

# Not implemented yet
Expand Down

0 comments on commit 9e856ad

Please sign in to comment.