dotfiles.nix/nixos/viridian/containers/microbin/default.nix
2023-11-18 13:03:46 +00:00

27 lines
541 B
Nix

{ config, inputs, ... }:
{
age.secrets.microbin = {
# Environment variables for microbin
file = inputs.self + /secrets/microbin.age;
owner = "root";
group = "root";
};
virtualisation.oci-containers.containers = {
microbin = {
autoStart = true;
image = "danielszabo99/microbin:2.0.4";
ports = [
"8181:8080/tcp"
];
volumes = [
"/var/lib/microbin:/app/microbin_data:rw"
];
environmentFiles = [
config.age.secrets.microbin.path
];
};
};
}