flake with HA

This commit is contained in:
Sveske-Juice 2025-05-27 13:04:52 +02:00
commit 2ce243c321
4 changed files with 151 additions and 0 deletions

31
flake.nix Normal file
View file

@ -0,0 +1,31 @@
{
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.test = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs.inputs = inputs;
modules = [
./configuration.nix
];
};
apps = {
default = {
type = "app";
program = "${nixosConfigurations.test.config.system.build.vm}/bin/run-nixos-vm";
};
};
});
}