add watchstate syncer

This commit is contained in:
Vivian 2023-12-26 20:41:25 +01:00
parent f88e0c6932
commit 4761af4659
5 changed files with 46 additions and 23 deletions

View file

@ -23,6 +23,26 @@
openFirewall = true;
};
users.groups.watchstate = { };
users.users.watchstate = {
isSystemUser = true;
group = "watchstate";
};
systemd.tmpfiles.rules =
[ "d '/var/lib/watchstate' 0755 watchstate watchstate -" ];
# Managed imperatively through its CLI
virtualisation.oci-containers.containers.watchstate = {
image = "ghcr.io/arabcoders/watchstate:latest";
extraOptions = [ "--pull=newer" ];
user = "0:0";
environment = { WS_TZ = "Europe/Amsterdam"; };
ports = [ "8080:8080" ];
volumes = [ "/var/lib/watchstate:/config:rw" ];
};
fileSystems."/mnt/storage" = {
device = "storage:/mnt/storage";
fsType = "nfs";