chore: add nix flake and image

This commit is contained in:
technofab 2024-04-24 17:09:10 +02:00
parent a584d787d2
commit 6bd319fbe9
5 changed files with 1090 additions and 0 deletions

17
image.nix Normal file
View 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"];
}