mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2025-06-22 04:51:29 +02:00
fix: Adding Custom Cache Mirrors
This commit is contained in:
parent
d24cb2a50c
commit
cc056cf262
@ -281,7 +281,7 @@ This is a security limitation of Nix, where only trusted users can properly use
|
|||||||
{
|
{
|
||||||
# ... (other configurations omitted)
|
# ... (other configurations omitted)
|
||||||
|
|
||||||
nix.trustedUsers = [ "ryan" ]; # Add your own username to the trusted list
|
nix.settings.trusted-users = [ "ryan" ]; # Add your own username to the trusted list
|
||||||
|
|
||||||
# ... (other configurations omitted)
|
# ... (other configurations omitted)
|
||||||
}
|
}
|
||||||
|
@ -265,7 +265,7 @@ warning: ignoring untrusted substituter 'https://mirrors.ustc.edu.cn/nix-channel
|
|||||||
{
|
{
|
||||||
# 省略若干配置...
|
# 省略若干配置...
|
||||||
|
|
||||||
nix.trustedUsers = [ "ryan" ]; # 将自己的用户名添加到可信列表中
|
nix.settings.trusted-users = [ "ryan" ]; # 将自己的用户名添加到可信列表中
|
||||||
|
|
||||||
# 省略若干配置...
|
# 省略若干配置...
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user