mirror of
https://gitlab.com/TECHNOFAB/coder-templates.git
synced 2025-12-12 02:00:11 +01:00
chore(image): add /etc/passwd, set $HOME and enable nix experimental features by default
This commit is contained in:
parent
e08b376bb7
commit
166dbea57a
1 changed files with 7 additions and 2 deletions
|
|
@ -16,12 +16,17 @@ pkgs.dockerTools.buildImage {
|
||||||
pkgs.curl
|
pkgs.curl
|
||||||
pkgs.home-manager
|
pkgs.home-manager
|
||||||
pkgs.direnv
|
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 = {
|
config = {
|
||||||
Cmd = ["/bin/bash"];
|
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"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue