diff --git a/flake.lock b/flake.lock index 8bc76fb6..fcd8f126 100644 --- a/flake.lock +++ b/flake.lock @@ -1724,15 +1724,16 @@ ] }, "locked": { - "lastModified": 1753113164, - "narHash": "sha256-sNTL9jCM7bJQy992d7TfHe8ZCIik9e0psZNurUyAf7E=", - "owner": "JakeStanger", + "lastModified": 1754481180, + "narHash": "sha256-C/G8srY5c0sffbsLbr79VC9UaTaucLSz8QUo0TzlC6o=", + "owner": "da-x", "repo": "ironbar", - "rev": "106e23e3116db02d57c548820024163c38491370", + "rev": "111d5d546f310bfd46c410254b3fa031aa8f5115", "type": "github" }, "original": { - "owner": "JakeStanger", + "owner": "da-x", + "ref": "correct-gdk-monitor", "repo": "ironbar", "type": "github" } diff --git a/flake.nix b/flake.nix index 09797d30..9c8cf0ce 100644 --- a/flake.nix +++ b/flake.nix @@ -26,7 +26,7 @@ inputs.nixpkgs.follows = "nixpkgs"; }; ironbar = { - url = "github:JakeStanger/ironbar"; + url = "github:da-x/ironbar/correct-gdk-monitor"; inputs.nixpkgs.follows = "nixpkgs"; }; lanzaboote = { @@ -182,6 +182,10 @@ # url = "path:/home/servius/Projects/command-runner"; inputs.nixpkgs.follows = "nixpkgs"; }; + # hyprmonitors = { + # url = "https://git.darksailor.dev/servius/hyprmonitors"; + # inputs.nixpkgs.follows = "nixpkgs"; + # }; nix-minecraft.url = "github:Infinidoge/nix-minecraft"; # alvr = { # url = "path:/home/servius/Projects/ALVR"; diff --git a/nixos/tsuba/services/homeassistant.nix b/nixos/tsuba/services/homeassistant.nix index 15c7684d..0d9a860e 100644 --- a/nixos/tsuba/services/homeassistant.nix +++ b/nixos/tsuba/services/homeassistant.nix @@ -40,4 +40,26 @@ reverse_proxy localhost:8123 ''; }; + + # Systemd service to pull latest Home Assistant image + systemd.services.homeassistant-image-update = { + description = "Pull latest Home Assistant Docker image"; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.docker}/bin/docker pull ghcr.io/home-assistant/home-assistant:latest"; + ExecStartPost = "${pkgs.systemd}/bin/systemctl restart docker-homeassistant.service"; + }; + }; + + # Systemd timer to run the update service every 5 days + systemd.timers.homeassistant-image-update = { + description = "Timer for Home Assistant image updates"; + wantedBy = ["timers.target"]; + timerConfig = { + OnCalendar = "Mon *-*-* 02:00:00"; + OnUnitInactiveSec = "5d"; + Persistent = true; + RandomizedDelaySec = "1h"; + }; + }; }