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
|
- lasting-integrity
|
||||||
- urithiru
|
- urithiru
|
||||||
script:
|
script:
|
||||||
- cat /etc/nix/nix.conf
|
|
||||||
- nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install
|
- nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install
|
||||||
- cachix --version
|
- cachix --version
|
||||||
- cachix authtoken $CACHIX_AUTH_TOKEN
|
- 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 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
|
- 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/store:/nix/store:ro"
|
||||||
"/nix/var/nix/db:/nix/var/nix/db:ro"
|
"/nix/var/nix/db:/nix/var/nix/db:ro"
|
||||||
"/nix/var/nix/daemon-socket:/nix/var/nix/daemon-socket:ro"
|
"/nix/var/nix/daemon-socket:/nix/var/nix/daemon-socket:ro"
|
||||||
|
"/etc/nix/nix.conf:/etc/nix/nix.conf:ro"
|
||||||
];
|
];
|
||||||
dockerDisableCache = true;
|
dockerDisableCache = true;
|
||||||
preBuildScript = pkgs.writeScript "setup-container" ''
|
preBuildScript = pkgs.writeScript "setup-container" ''
|
||||||
|
@ -33,9 +34,6 @@
|
||||||
. ${pkgs.nix}/etc/profile.d/nix.sh
|
. ${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-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 = {
|
environmentVariables = {
|
||||||
ENV = "/etc/profile";
|
ENV = "/etc/profile";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue