Files

30 lines
657 B
Nix
Raw Permalink 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-15 22:46:31 -05:00
postgresql-db.url = "path:../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-15 22:48:15 -05:00
virtual-env = 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
};
}