dockerTools.examples.nix: set NIX_PAGER=cat environment variable
This commit is contained in:
parent
32e4e2c47b
commit
ff4d7f0fd2
@ -107,11 +107,13 @@ rec {
|
|||||||
nix = buildImageWithNixDb {
|
nix = buildImageWithNixDb {
|
||||||
name = "nix";
|
name = "nix";
|
||||||
contents = [
|
contents = [
|
||||||
# nix-store -qR uses the 'more' program which is not included in
|
# nix-store uses cat program to display results as specified by
|
||||||
# the pkgs.nix dependencies. We then have to manually get it
|
# the image env variable NIX_PAGER.
|
||||||
# from the 'eject' package:/
|
pkgs.coreutils
|
||||||
pkgs.eject
|
|
||||||
pkgs.nix
|
pkgs.nix
|
||||||
];
|
];
|
||||||
|
config = {
|
||||||
|
Env = [ "NIX_PAGER=cat" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user