From 40835600542383d8471fa555c1a7ef443b82533e Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Thu, 25 Jan 2024 02:06:42 +0800 Subject: [PATCH] nixos: nix: enable some settings --- nixos/profiles/common/core/nix/nix.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/profiles/common/core/nix/nix.nix b/nixos/profiles/common/core/nix/nix.nix index 9aa5b6c..3e0177c 100755 --- a/nixos/profiles/common/core/nix/nix.nix +++ b/nixos/profiles/common/core/nix/nix.nix @@ -1,6 +1,5 @@ {config, ...}: { nix.settings = { - trusted-users = ["@wheel"]; substituters = { "Asia/Shanghai" = [ @@ -25,6 +24,12 @@ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4=" ]; + + trusted-users = ["@wheel"]; + experimental-features = ["auto-allocate-uids" "cgroups"]; + auto-allocate-uids = true; + builders-use-substitutes = true; + use-cgroups = true; use-xdg-base-directories = true; };