mirror of
https://gitlab.com/TECHNOFAB/coder-templates.git
synced 2025-12-12 02:00:11 +01:00
chore: add nix flake and image
This commit is contained in:
parent
a584d787d2
commit
6bd319fbe9
5 changed files with 1090 additions and 0 deletions
17
image.nix
Normal file
17
image.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
pkgs.dockerTools.buildImage {
|
||||
name = "nix-coder";
|
||||
tag = "latest";
|
||||
|
||||
copyToRoot = pkgs.buildEnv {
|
||||
name = "image-root";
|
||||
paths = [pkgs.bashInteractive pkgs.home-manager pkgs.direnv];
|
||||
pathsToLink = ["/bin"];
|
||||
};
|
||||
|
||||
config.Cmd = ["/bin/bash"];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue