Add system nix configuration to container
This commit is contained in:
parent
8d0516bb8d
commit
64d72d811c
1 changed files with 3 additions and 2 deletions
|
@ -91,9 +91,10 @@ with lib;
|
|||
emptypassword='$6$1ero.LwbisiU.h3D$GGmnmECbPotJoPQ5eoSTD6tTjKnSWZcjHoVTkxFLZP17W9hRi/XkmCiAMOfWruUwy8gMjINrBMNODc7cYEo4K.'
|
||||
useradd --prefix $(pwd) -p "$emptypassword" -m -d /tmp -u "$userid" -g "$groupid" -G nixuser nixuser
|
||||
|
||||
cat <<NIX_CONFIG > etc/nix/nix.conf
|
||||
cp -a ${config.environment.etc."nix/nix.conf".source} etc/nix/nix.conf
|
||||
|
||||
cat <<NIX_CONFIG >> etc/nix/nix.conf
|
||||
accept-flake-config = true
|
||||
experimental-features = nix-command flakes
|
||||
NIX_CONFIG
|
||||
|
||||
cat <<NSSWITCH > etc/nsswitch.conf
|
||||
|
|
Loading…
Reference in a new issue