From c262315a921a9750c01fce933afe77540a5d40ef Mon Sep 17 00:00:00 2001 From: death916 Date: Sun, 6 Jul 2025 03:04:37 -0700 Subject: [PATCH] fix --- modules/vms/homeassistant-vm.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/vms/homeassistant-vm.nix b/modules/vms/homeassistant-vm.nix index 2d33cc8..01759dc 100644 --- a/modules/vms/homeassistant-vm.nix +++ b/modules/vms/homeassistant-vm.nix @@ -1,3 +1,4 @@ +# modules/vms/homeassistant-vm.nix { config, lib, pkgs, ... }: with lib; @@ -6,6 +7,11 @@ let cfg = config.services.homeassistant-vm; in { + imports = [ + ./ha-deploy-script.nix + ./ha-control-script.nix + ]; + options.services.homeassistant-vm = { enable = mkEnableOption "Home Assistant OS Virtual Machine"; imagePath = mkOption { @@ -30,11 +36,6 @@ in }; }; - config = mkIf cfg.enable { - imports = [ - ./ha-deploy-script.nix - ./ha-control-script.nix - ]; - }; + config = mkIf cfg.enable { }; }