Compare commits
2 commits
2ce243c321
...
22ab6fa3de
Author | SHA1 | Date | |
---|---|---|---|
22ab6fa3de | |||
1cbee388b7 |
2 changed files with 6 additions and 2 deletions
|
@ -20,6 +20,10 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.vmVariant.virtualisation = {
|
virtualisation.vmVariant.virtualisation = {
|
||||||
|
memorySize = 2048;
|
||||||
|
cores = 3;
|
||||||
|
graphics = false;
|
||||||
|
|
||||||
forwardPorts = [
|
forwardPorts = [
|
||||||
# ssh
|
# ssh
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
...
|
...
|
||||||
} @ inputs:
|
} @ inputs:
|
||||||
inputs.flake-utils.lib.eachDefaultSystem (system: rec {
|
inputs.flake-utils.lib.eachDefaultSystem (system: rec {
|
||||||
nixosConfigurations.test = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.homeassistant-vm = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs.inputs = inputs;
|
specialArgs.inputs = inputs;
|
||||||
modules = [
|
modules = [
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
apps = {
|
apps = {
|
||||||
default = {
|
default = {
|
||||||
type = "app";
|
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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue