nix-infra/config/hosts/valkyrie/containers/uptime-kuma/default.nix

23 lines
549 B
Nix

{ ... }:
{
containers.uptime-kuma = {
autoStart = true;
config = { ... }: {
networking.useHostResolvConf = true;
services.uptime-kuma = {
enable = true;
};
# The resolv.conf file doesn't seem to be copied from host after the first start of the container after reboot
# See: https://nixos.wiki/wiki/NixOS_Containers#Troubleshooting
environment.etc."resolv.conf".text = ''
nameserver 172.16.0.2
nameserver 172.16.0.3
'';
system.stateVersion = "23.05";
};
};
}