From 1cbee388b72446c4a5377a98dc74f5a17eb34cf1 Mon Sep 17 00:00:00 2001 From: Sveske-Juice Date: Tue, 27 May 2025 13:18:47 +0200 Subject: [PATCH 1/2] disable graphics --- configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configuration.nix b/configuration.nix index 7b409ad..bdeba3f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -20,6 +20,10 @@ ]; virtualisation.vmVariant.virtualisation = { + memorySize = 2048; + cores = 3; + graphics = false; + forwardPorts = [ # ssh { From 22ab6fa3de48ae654eda156783349d0dbf9dcfaa Mon Sep 17 00:00:00 2001 From: Sveske-Juice Date: Tue, 27 May 2025 13:20:11 +0200 Subject: [PATCH 2/2] rename test vm to ha vm --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 4fde7f5..ab6652d 100644 --- a/flake.nix +++ b/flake.nix @@ -14,7 +14,7 @@ ... } @ inputs: inputs.flake-utils.lib.eachDefaultSystem (system: rec { - nixosConfigurations.test = nixpkgs.lib.nixosSystem { + nixosConfigurations.homeassistant-vm = nixpkgs.lib.nixosSystem { inherit system; specialArgs.inputs = inputs; modules = [ @@ -24,7 +24,7 @@ apps = { default = { type = "app"; - program = "${nixosConfigurations.test.config.system.build.vm}/bin/run-nixos-vm"; + program = "${nixosConfigurations.homeassistant-vm.config.system.build.vm}/bin/run-nixos-vm"; }; }; });