31 lines
681 B
Nix
31 lines
681 B
Nix
{
|
|
description = "Flake to run services on a VM powered by incus";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
|
postgresql-db.url = "path:../postgresql-db";
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
self,
|
|
nixpkgs,
|
|
postgresql-db,
|
|
}@inputs:
|
|
{
|
|
nixosConfigurations = {
|
|
name = "virtual-env";
|
|
value = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./virtual.nix
|
|
postgresql-db.nixosModules.postgresql-db
|
|
|
|
# declare the vm output
|
|
"${inputs.nixpkgs}/nixos/modules/virtualisation/incus-virtual-machine.nix"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|