nix-unstable-static: enable nix flakes

This commit is contained in:
zimbatm 2022-06-29 18:18:14 +02:00
parent ac55a180db
commit f0ddafd597
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7

View file

@ -84,6 +84,13 @@ let
mkdir -p libexec/nix
ln -s /bin/nix libexec/nix/build-remote
# Enable flakes
mkdir -p etc/nix
cat <<NIX_CONFIG > etc/nix/nix.conf
accept-flake-config = true
experimental-features = nix-command flakes
NIX_CONFIG
# Add run-as-user script
cp -a ${./run_as_user.sh} run_as_user.sh
'';