Add system nix configuration to git build container
All checks were successful
CI / build (push) Successful in 2m38s
All checks were successful
CI / build (push) Successful in 2m38s
This commit is contained in:
parent
8d0516bb8d
commit
eaa5e6b112
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