add vm output path

This commit is contained in:
2026-09-15 22:46:31 -05:00
parent 8c1567b57c
commit f3cd65ee50
2 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -32,7 +32,7 @@
"type": "github" "type": "github"
} }
}, },
"postgres-db": { "postgresql-db": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
@@ -49,7 +49,7 @@
"root": { "root": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"postgres-db": "postgres-db" "postgresql-db": "postgresql-db"
} }
} }
}, },
+6 -3
View File
@@ -3,14 +3,14 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
postgres-db.url = "path:../postgresql-db"; postgresql-db.url = "path:../postgresql-db";
}; };
outputs = outputs =
{ {
self, self,
nixpkgs, nixpkgs,
postgres-db, postgresql-db,
}@inputs: }@inputs:
{ {
nixosConfigurations = { nixosConfigurations = {
@@ -19,7 +19,10 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./virtual.nix ./virtual.nix
postgres-db.nixosModules.postgres-db postgresql-db.nixosModules.postgresql-db
# declare the vm output
"${inputs.nixpkgs}/nixos/modules/virtualisation/incus-virtual-machine.nix"
]; ];
}; };
}; };