chore(image): add /etc/passwd, set $HOME and enable nix experimental features by default

This commit is contained in:
technofab 2024-04-26 21:22:17 +02:00
parent e08b376bb7
commit 166dbea57a

View file

@ -16,12 +16,17 @@ pkgs.dockerTools.buildImage {
pkgs.curl
pkgs.home-manager
pkgs.direnv
(pkgs.writeTextDir "etc/nix/nix.conf" "experimental-features = nix-command flakes")
(pkgs.writeTextDir "etc/passwd" "coder:x:1000:1000::/home/coder:/bin/bash")
];
pathsToLink = ["/bin"];
pathsToLink = ["/bin" "/etc"];
};
config = {
Cmd = ["/bin/bash"];
Env = ["SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"];
Env = [
"SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
"HOME=/home/coder"
];
};
}