parent
36f19d42c5
commit
3e55708cb1
6 changed files with 53 additions and 13 deletions
|
|
@ -1,10 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
pkgs.dockerTools.buildLayeredImage {
|
||||
name = "nix-with-node";
|
||||
contents = with pkgs; [
|
||||
nix
|
||||
nodejs
|
||||
bash
|
||||
git
|
||||
];
|
||||
}
|
||||
31
pkgs/nix-with-node/default.nix
Normal file
31
pkgs/nix-with-node/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ pkgs, ... }:
|
||||
pkgs.dockerTools.buildLayeredImage {
|
||||
name = "nix-with-node";
|
||||
contents = with pkgs; [
|
||||
./root
|
||||
bashInteractive
|
||||
cacert
|
||||
coreutils
|
||||
git
|
||||
gnutar
|
||||
gzip
|
||||
nix
|
||||
nodejs
|
||||
openssh
|
||||
xz
|
||||
];
|
||||
|
||||
config = {
|
||||
Cmd = [ "/bin/bash" ];
|
||||
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"
|
||||
];
|
||||
};
|
||||
|
||||
extraCommands = ''
|
||||
'';
|
||||
}
|
||||
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