Use host nix.conf

This commit is contained in:
Charlotte Van Petegem 2023-01-28 12:47:56 +01:00
parent 90901ac940
commit 01d983389e
No known key found for this signature in database
GPG key ID: 019E764B7184435A
2 changed files with 1 additions and 7 deletions

View file

@ -17,6 +17,7 @@
"/nix/store:/nix/store:ro"
"/nix/var/nix/db:/nix/var/nix/db:ro"
"/nix/var/nix/daemon-socket:/nix/var/nix/daemon-socket:ro"
"/etc/nix/nix.conf:/etc/nix/nix.conf:ro"
];
dockerDisableCache = true;
preBuildScript = pkgs.writeScript "setup-container" ''
@ -33,9 +34,6 @@
. ${pkgs.nix}/etc/profile.d/nix.sh
${pkgs.nix}/bin/nix-env -i ${lib.concatStringsSep " " (with pkgs; [ nix cacert git openssh ])}
${pkgs.nix}/bin/nix-channel --add https://nixos.org/channels/nixpkgs-unstable
${pkgs.nix}/bin/nix-channel --update nixpkgs
'';
environmentVariables = {
ENV = "/etc/profile";