Files
homelab-config/test-vms/vm-test/flake.nix
T

29 lines
668 B
Nix
Raw Normal View History

2026-09-03 23:21:05 -05:00
{
description = "Flake to run services on a VM powered by incus";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
2026-09-17 22:00:40 -05:00
postgresql-db.url = "path:../../homelab-services/postgresql-db";
2026-09-03 23:21:05 -05:00
};
outputs =
{
2026-09-15 22:35:50 -05:00
self,
nixpkgs,
2026-09-15 22:46:31 -05:00
postgresql-db,
2026-09-15 22:35:50 -05:00
}@inputs:
{
nixosConfigurations = {
2026-09-17 21:58:31 -05:00
vm = nixpkgs.lib.nixosSystem {
2026-09-15 22:35:50 -05:00
system = "x86_64-linux";
modules = [
./virtual.nix
2026-09-15 22:46:31 -05:00
postgresql-db.nixosModules.postgresql-db
# declare the vm output
"${inputs.nixpkgs}/nixos/modules/virtualisation/incus-virtual-machine.nix"
2026-09-15 22:35:50 -05:00
];
};
};
2026-09-03 23:21:05 -05:00
};
}