feat(nix): update allowed-users configuration
- Added "@users" and "root" to `allowed-users` in nix settings.
This commit is contained in:
parent
a03d1d8867
commit
f023b67086
2 changed files with 35 additions and 29 deletions
|
|
@ -1,7 +1,8 @@
|
||||||
{ config
|
{
|
||||||
, pkgs
|
config,
|
||||||
, lib
|
pkgs,
|
||||||
, ...
|
lib,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.metacfg;
|
with lib.metacfg;
|
||||||
|
|
@ -32,8 +33,7 @@ in
|
||||||
{
|
{
|
||||||
package = cfg.package;
|
package = cfg.package;
|
||||||
|
|
||||||
settings =
|
settings = {
|
||||||
{
|
|
||||||
experimental-features = "nix-command flakes";
|
experimental-features = "nix-command flakes";
|
||||||
http-connections = 50;
|
http-connections = 50;
|
||||||
warn-dirty = false;
|
warn-dirty = false;
|
||||||
|
|
@ -50,7 +50,10 @@ in
|
||||||
allow-import-from-derivation = true;
|
allow-import-from-derivation = true;
|
||||||
|
|
||||||
trusted-users = users;
|
trusted-users = users;
|
||||||
allowed-users = users;
|
allowed-users = [
|
||||||
|
"@users"
|
||||||
|
"root"
|
||||||
|
];
|
||||||
|
|
||||||
# NOTE: This configuration is generated by nix-installer so I'm adding it here in
|
# NOTE: This configuration is generated by nix-installer so I'm adding it here in
|
||||||
# case it becomes important.
|
# case it becomes important.
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,10 @@ in
|
||||||
sandbox = true;
|
sandbox = true;
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
trusted-users = users;
|
trusted-users = users;
|
||||||
allowed-users = users;
|
allowed-users = [
|
||||||
|
"@users"
|
||||||
|
"root"
|
||||||
|
];
|
||||||
|
|
||||||
substituters = [
|
substituters = [
|
||||||
cfg.default-substituter.url
|
cfg.default-substituter.url
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue