diff --git a/machines/raspite/services/hass.nix b/machines/raspite/services/hass.nix index 94c0323..ea23975 100644 --- a/machines/raspite/services/hass.nix +++ b/machines/raspite/services/hass.nix @@ -4,13 +4,6 @@ enable = true; openFirewall = false; config = { - logger = { - logs = { - homeassistant.helpers.llm = "debug"; - homeassistant.components.conversation.chat_log = "debug"; - homeassistant.components.openai_conversation = "debug"; - }; - }; http = { server_host = "127.0.0.1"; use_x_forwarded_for = true; diff --git a/machines/weilite/services/immich.nix b/machines/weilite/services/immich.nix index 7f24187..6d5f9da 100644 --- a/machines/weilite/services/immich.nix +++ b/machines/weilite/services/immich.nix @@ -65,23 +65,13 @@ let in { config = { - sops.secrets = { - "immich/oauth_client_secret" = { }; - "immich/auto_stack_apikey" = { }; - }; + sops.secrets."immich/oauth_client_secret" = { }; sops.templates."immich/config.json" = { owner = user; # Read when running content = builtins.toJSON jsonSettings; }; - sops.templates."immich/auto_stack.env" = { - owner = "immich_auto_stack"; - content = '' - API_KEY=${config.sops.placeholder."immich/auto_stack_apikey"}; - ''; - }; - systemd.mounts = [ { what = "originals"; @@ -92,15 +82,15 @@ in } ]; - systemd.timers.immich-auto-stack = { - enable = true; - wantedBy = [ "immich-server.service" ]; - timerConfig = { - Unit = "immich-auto-stack.service"; - OnCalendar = "*-*-* 4:00:00"; - }; - }; - + # systemd.timers.immich-auto-stack = { + # enable = true; + # wantedBy = [ "immich-server.service" ]; + # timerConfig = { + # Unit = "immich-auto-stack.service"; + # OnCalendar = "*-*-* 4:00:00"; + # }; + # }; + # systemd.services.immich-auto-stack = let python = pkgs.python3.withPackages ( @@ -108,22 +98,12 @@ in requests ] ); - immich_auto_stack = pkgs.fetchurl { - url = "https://gist.github.com/xinyangli/39de5979e72d81af6fe9ddb7d1805df4"; - hash = "sha256-izbzP+330tZUGPTfS3SdJnGS5uSn5uf8WmXd6ep8SQg="; - }; in { - environment = { - SKIP_MATCH_MISS = "true"; - DRY_RUN = "false"; - API_URL = "http://127.0.0.1:${toString config.services.immich.port}/api"; - }; serviceConfig = { - ExecStart = "${lib.getExe python} ${immich_auto_stack}"; - EnvironmentFile = config.sops.templates."immich/auto_stack.env".path; - User = "immich_auto_stack"; - Group = "immich_auto_stack"; + ExecStart = "${lib.getExe python}"; + # TODO: + environmentFile = "./."; }; }; @@ -157,12 +137,6 @@ in "render" ]; - users.groups.immich_auto_stack = { }; - users.users.immich_auto_stack = { - isSystemUser = true; - group = "immich_auto_stack"; - }; - services.immich.redis.host = "/run/redis-immich/redis.sock"; }; }