TakodaS 149824a515 WIP: nixified webui
currently packaging as a nixosModule so should be easy to integrate with
nixos generators in the future. Also looking at making a docker image
without systemd
2025-03-10 17:51:53 +00:00

26 lines
388 B
Nix

{
lib,
pkgs,
system,
package-name,
self,
...
}:
let
venv = self.packages.${system}.venv;
in
lib.optionalAttrs pkgs.stdenv.isLinux
# Expose Docker container in packages
pkgs.dockerTools.buildLayeredImage
{
name = "${package-name}";
contents = [ pkgs.cacert ];
config = {
Cmd = [
"${venv}/bin/python"
];
Env = [
];
};
}