2024-06-29 14:40:10 +01:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
lxd_profiles = {
|
2024-06-30 20:16:17 +01:00
|
|
|
"postgres" = (import ./profiles/postgres.nix);
|
2024-06-29 14:40:10 +01:00
|
|
|
"default" = (import ./profiles/default.nix);
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
virtualisation = {
|
2024-06-30 12:25:44 +01:00
|
|
|
incus = {
|
2024-06-29 22:18:42 +01:00
|
|
|
preseed = {
|
2024-06-30 12:25:44 +01:00
|
|
|
|
|
|
|
config = {
|
|
|
|
"core.https_address" = ":8443";
|
|
|
|
"images.auto_update_interval" = 9;
|
|
|
|
};
|
|
|
|
|
2024-06-29 14:40:10 +01:00
|
|
|
networks = [
|
|
|
|
lxd_profiles.default.network
|
2024-06-30 20:16:17 +01:00
|
|
|
lxd_profiles.postgres.network
|
2024-06-29 14:40:10 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
profiles = [
|
|
|
|
lxd_profiles.default.profile
|
2024-06-30 20:16:17 +01:00
|
|
|
lxd_profiles.postgres.profile
|
2024-06-29 14:40:10 +01:00
|
|
|
];
|
|
|
|
|
2024-06-30 20:16:17 +01:00
|
|
|
storage_pools =
|
|
|
|
lxd_profiles.default.storage_pools ++
|
|
|
|
lxd_profiles.postgres.storage_pools;
|
2024-06-29 14:40:10 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|