From 4e7955d5fe4e6ec52deaebe7498bf5c8916cfbda Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Sun, 12 Jan 2025 17:55:26 +0530 Subject: [PATCH] feat: Enable home-assistant and moved sops llama items --- nixos/mirai/configuration.nix | 6 ------ nixos/mirai/services/home-assistant.nix | 2 +- nixos/mirai/services/llama.nix | 6 ++++++ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nixos/mirai/configuration.nix b/nixos/mirai/configuration.nix index 467408fb..1de9592c 100644 --- a/nixos/mirai/configuration.nix +++ b/nixos/mirai/configuration.nix @@ -21,12 +21,6 @@ format = "yaml"; key = ""; }; - templates = { - "LLAMA_API_KEY.env".content = '' - LLAMA_API_KEY=${config.sops.placeholder."llama/api_key"} - ''; - api_key_env.owner = config.services.caddy.user; - }; }; # Use the systemd-boot EFI boot loader. diff --git a/nixos/mirai/services/home-assistant.nix b/nixos/mirai/services/home-assistant.nix index a23316d8..bb9d256c 100644 --- a/nixos/mirai/services/home-assistant.nix +++ b/nixos/mirai/services/home-assistant.nix @@ -5,7 +5,7 @@ }: { services = { home-assistant = { - enable = false; + enable = true; extraComponents = [ "esphome" "met" diff --git a/nixos/mirai/services/llama.nix b/nixos/mirai/services/llama.nix index 86241eb8..1732d16f 100644 --- a/nixos/mirai/services/llama.nix +++ b/nixos/mirai/services/llama.nix @@ -2,6 +2,12 @@ sops = { secrets."llama/api_key".owner = config.services.caddy.user; secrets."llama/user".owner = config.services.caddy.user; + templates = { + "LLAMA_API_KEY.env".content = '' + LLAMA_API_KEY=${config.sops.placeholder."llama/api_key"} + ''; + api_key_env.owner = config.services.caddy.user; + }; }; services = { ollama = {