add CI images to repo
This commit is contained in:
parent
abce966b76
commit
b0bc29a707
8 changed files with 94 additions and 4 deletions
|
|
@ -7,5 +7,6 @@
|
|||
nativeBuildInputs = [ pkgs.jujutsu ];
|
||||
doCheck = false;
|
||||
};
|
||||
nix-with-node = import ./nix-with-node { inherit pkgs; };
|
||||
}
|
||||
// import ./nvim { inherit inputs pkgs; }
|
||||
|
|
|
|||
38
pkgs/nix-with-node/default.nix
Normal file
38
pkgs/nix-with-node/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ pkgs, ... }:
|
||||
pkgs.dockerTools.buildLayeredImage {
|
||||
name = "nix-with-node";
|
||||
contents = with pkgs; [
|
||||
./root
|
||||
bashInteractive
|
||||
cacert
|
||||
coreutils
|
||||
git
|
||||
gnutar
|
||||
gzip
|
||||
jq
|
||||
nix
|
||||
nodejs
|
||||
openssh
|
||||
shadow
|
||||
xz
|
||||
];
|
||||
|
||||
config = {
|
||||
Cmd = [ "/bin/bash" ];
|
||||
WorkingDir = "/home/nixbld";
|
||||
Env = [
|
||||
"ENV=/etc/profile.d/nix.sh"
|
||||
"NIX_BUILD_SHELL=/bin/bash"
|
||||
"PATH=/usr/bin:/bin"
|
||||
"SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||
"USER=root"
|
||||
];
|
||||
};
|
||||
|
||||
fakeRootCommands = ''
|
||||
${pkgs.dockerTools.shadowSetup}
|
||||
groupadd -r nixbld
|
||||
useradd -r -g nixbld nixbld
|
||||
'';
|
||||
enableFakechroot = true;
|
||||
}
|
||||
3
pkgs/nix-with-node/root/etc/nix/nix.conf
Normal file
3
pkgs/nix-with-node/root/etc/nix/nix.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
accept-flake-config = true
|
||||
experimental-features = nix-command flakes
|
||||
max-jobs = auto
|
||||
Loading…
Add table
Add a link
Reference in a new issue