Compare commits

...

2 commits

Author SHA1 Message Date
3e6b507e6a TMP
All checks were successful
CI / build (push) Successful in 7m36s
2024-12-10 16:44:32 +02:00
64d72d811c Add system nix configuration to container 2024-12-10 16:39:05 +02:00
2 changed files with 7 additions and 2 deletions

View file

@ -10,6 +10,10 @@ jobs:
build:
runs-on: nix
steps:
- name: Debug
run: |
ls -lah /etc/nix/
nix --version
- name: Initialize CI
uses: https://git.qo.is/qo.is/actions-nix-init@main
with:

View file

@ -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