Merge pull request #318635 from SuperSandro2000/nix-trusted-user

This commit is contained in:
Sandro
2024-08-06 11:40:00 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -302,7 +302,6 @@ in
trusted-users = mkOption {
type = types.listOf types.str;
default = [ "root" ];
example = [ "root" "alice" "@wheel" ];
description = ''
A list of names of users that have additional rights when
@@ -376,6 +375,7 @@ in
environment.etc."nix/nix.conf".source = nixConf;
nix.settings = {
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
trusted-users = [ "root" ];
substituters = mkAfter [ "https://cache.nixos.org/" ];
system-features = mkDefault (
[ "nixos-test" "benchmark" "big-parallel" "kvm" ] ++
@@ -125,7 +125,7 @@ with lib;
'';
# allow nix-copy to live system
nix.settings.trusted-users = [ "root" "nixos" ];
nix.settings.trusted-users = [ "nixos" ];
# Install less voices for speechd to save some space
services.speechd.package = pkgs.speechd.override {
+1 -1
View File
@@ -123,7 +123,7 @@ in
max-free = cfg.max-free;
trusted-users = [ "root" user ];
trusted-users = [ user ];
};
services = {