This commit is contained in:
2025-08-26 18:33:56 +02:00
parent 4b06060222
commit 6e5dea6b65
9 changed files with 211 additions and 2 deletions

21
flake.nix Normal file
View File

@@ -0,0 +1,21 @@
# flake.nix
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs, ... }:
let
system = "x86_64-linux";
test = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
];
};
in {
# Use `flake-config#test` with:
# nixos-rebuild --flake .#test build-vm
nixosConfigurations.test = test;
# Optional: expose VM script for `nix run .#vms.test`
vms.test = test.config.system.build.vm;
};
}