31 lines
703 B
Nix
31 lines
703 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
flake-utils = {
|
|
url = "github:numtide/flake-utils";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
...
|
|
} @ inputs:
|
|
inputs.flake-utils.lib.eachDefaultSystem (system: rec {
|
|
nixosConfigurations.homeassistant-vm = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs.inputs = inputs;
|
|
modules = [
|
|
./configuration.nix
|
|
];
|
|
};
|
|
apps = {
|
|
default = {
|
|
type = "app";
|
|
program = "${nixosConfigurations.homeassistant-vm.config.system.build.vm}/bin/run-nixos-vm";
|
|
};
|
|
};
|
|
});
|
|
}
|