mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-11 20:30:37 -05:00
nix-unstable-static: enable nix flakes
This commit is contained in:
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user