From 1c98a17d0a41de08ecb593ca0dd3137889c87f21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Fri, 6 Mar 2026 16:24:03 +0100 Subject: [PATCH] Add sys-devices feature to nix-portable nix.conf --- pkgs/nix-portable/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/nix-portable/default.nix b/pkgs/nix-portable/default.nix index d08bf5e7..9fc3d1ea 100644 --- a/pkgs/nix-portable/default.nix +++ b/pkgs/nix-portable/default.nix @@ -210,6 +210,9 @@ let echo "extra-substituters = https://jungle.bsc.es/cache">> \$dir/conf/nix.conf echo "extra-trusted-public-keys = jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" >> \$dir/conf/nix.conf + echo "extra-system-features = sys-devices" >> \$dir/conf/nix.conf + echo "extra-sandbox-paths = /sys/devices/system/cpu=/sys/devices/system/cpu /sys/devices/system/node=/sys/devices/system/node" >> \$dir/conf/nix.conf + # configurable config echo "sandbox = \$NP_CONF_SANDBOX" >> \$dir/conf/nix.conf echo "store = \$NP_CONF_STORE" >> \$dir/conf/nix.conf