mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-06 08:47:00 +00:00
nix: merge nix.settings.trusted-users
by default
Backport of https://github.com/NixOS/nixpkgs/pull/318635
This commit is contained in:
parent
ba9b3173b0
commit
9e856ad0c1
1 changed files with 1 additions and 2 deletions
|
@ -617,7 +617,6 @@ in
|
||||||
|
|
||||||
trusted-users = mkOption {
|
trusted-users = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [ "root" ];
|
|
||||||
example = [ "root" "alice" "@admin" ];
|
example = [ "root" "alice" "@admin" ];
|
||||||
description = ''
|
description = ''
|
||||||
A list of names of users that have additional rights when
|
A list of names of users that have additional rights when
|
||||||
|
@ -835,10 +834,10 @@ in
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Legacy configuration conversion.
|
|
||||||
nix.settings = mkMerge [
|
nix.settings = mkMerge [
|
||||||
{
|
{
|
||||||
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
|
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
|
||||||
|
trusted-users = [ "root" ];
|
||||||
substituters = mkAfter [ "https://cache.nixos.org/" ];
|
substituters = mkAfter [ "https://cache.nixos.org/" ];
|
||||||
|
|
||||||
# Not implemented yet
|
# Not implemented yet
|
||||||
|
|
Loading…
Add table
Reference in a new issue