more watchstate conf

This commit is contained in:
Vivian 2023-12-26 21:15:32 +01:00
parent 4761af4659
commit 6f5e15cc38
2 changed files with 13 additions and 6 deletions

View file

@ -36,7 +36,7 @@
enableUserServices = true; enableUserServices = true;
}; };
security.polkit.enable = lib.mkDefault true; # security.polkit.enable = lib.mkDefault true;
# Nix Settings # Nix Settings
nix = { nix = {

View file

@ -18,6 +18,11 @@
# Additional packages # Additional packages
environment.systemPackages = with pkgs; [ ]; environment.systemPackages = with pkgs; [ ];
fileSystems."/mnt/storage" = {
device = "storage:/mnt/storage";
fsType = "nfs";
};
services.jellyfin = { services.jellyfin = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;
@ -33,18 +38,20 @@
[ "d '/var/lib/watchstate' 0755 watchstate watchstate -" ]; [ "d '/var/lib/watchstate' 0755 watchstate watchstate -" ];
networking.firewall.allowedTCPPorts = [ 8080 ];
# Managed imperatively through its CLI # Managed imperatively through its CLI
virtualisation.oci-containers.containers.watchstate = { virtualisation.oci-containers.containers.watchstate = {
image = "ghcr.io/arabcoders/watchstate:latest"; image = "ghcr.io/arabcoders/watchstate:latest";
extraOptions = [ "--pull=newer" ]; extraOptions = [ "--pull=newer" ];
user = "0:0"; user = "0:0";
environment = { WS_TZ = "Europe/Amsterdam"; }; environment = {
WS_TZ = "Europe/Amsterdam";
WS_CRON_IMPORT = "1";
WS_CRON_EXPORT = "1";
};
ports = [ "8080:8080" ]; ports = [ "8080:8080" ];
volumes = [ "/var/lib/watchstate:/config:rw" ]; volumes = [ "/var/lib/watchstate:/config:rw" ];
}; };
fileSystems."/mnt/storage" = {
device = "storage:/mnt/storage";
fsType = "nfs";
};
} }