gitlab-runner: pin nixpkgs version in jobs

This commit is contained in:
Leonardo Eugênio 2025-10-26 17:00:43 -03:00
parent 481af4f88c
commit dc9efd4906
2 changed files with 9 additions and 2 deletions

View file

@ -1,4 +1,9 @@
{ pkgs, lib, ... }:
{
pkgs,
lib,
inputs ? null,
...
}:
let
installNixScript =
{
@ -78,6 +83,7 @@ rec {
USER = "root";
NIX_REMOTE = "daemon";
NIX_SSL_CERT_FILE = "/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt";
NIX_PATH = if inputs != null then "nixpkgs=${inputs.nixpkgs}" else "";
};
};