nix-unstable-static: enable nix flakes
This commit is contained in:
parent
ac55a180db
commit
f0ddafd597
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue