2024-11-20 05:46:40 +01:00
|
|
|
{ nixpkgs-unstable, ... }:
|
|
|
|
{
|
|
|
|
containers.uptime-kuma = {
|
|
|
|
nixpkgs = nixpkgs-unstable;
|
|
|
|
autoStart = true;
|
|
|
|
config = { ... }: {
|
2024-11-20 05:46:40 +01:00
|
|
|
networking.useHostResolvConf = true;
|
|
|
|
|
2024-11-20 05:46:40 +01:00
|
|
|
services.uptime-kuma = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2024-11-20 05:46:40 +01:00
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
2024-11-20 05:46:40 +01:00
|
|
|
system.stateVersion = "23.05";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|