This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

hass: add autoupdate script

+10 -2
+10 -2
2configs/hass/default.nix
··· 1 - { pkgs, ... }: 1 + { config, pkgs, ... }: 2 2 { 3 3 imports = [ 4 4 ./zigbee.nix ··· 14 14 { predicate = "-i wiregrill -p tcp --dport 8123"; target = "ACCEPT"; } # hass 15 15 ]; 16 16 17 - # TODO add auto update 17 + systemd.services.hass-update = { 18 + startAt = "daily"; 19 + script = '' 20 + ${pkgs.podman}/bin/podman pull ${config.virtualisation.oci-containers.containers.homeassistant.image} 21 + ${pkgs.podman}/bin/podman stop homeassistant 22 + ${pkgs.podman}/bin/podman start homeassistant 23 + ''; 24 + }; 25 + 18 26 virtualisation.oci-containers = { 19 27 backend = "podman"; 20 28 containers.homeassistant = {