Use host nix.conf
This commit is contained in:
parent
90901ac940
commit
01d983389e
2 changed files with 1 additions and 7 deletions
|
@ -15,13 +15,9 @@ build-nixos-configurations:
|
|||
- lasting-integrity
|
||||
- urithiru
|
||||
script:
|
||||
- cat /etc/nix/nix.conf
|
||||
- nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install
|
||||
- cachix --version
|
||||
- cachix authtoken $CACHIX_AUTH_TOKEN
|
||||
- cachix use chvp
|
||||
- cachix use accentor
|
||||
- cachix use nix-community
|
||||
- nix build -L --no-link .#nixosConfigurations.${HOST_TO_BUILD}.config.system.build.toplevel
|
||||
- nix eval --json .#nixosConfigurations.${HOST_TO_BUILD}.config.system.build.toplevel | sed 's/"\(.*\)"/\1/' | cachix push chvp
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue