36 lines
681 B
Nix
36 lines
681 B
Nix
{ ... }:
|
|
|
|
let
|
|
lxd_profiles = {
|
|
"postgres" = (import ./profiles/postgres.nix);
|
|
"default" = (import ./profiles/default.nix);
|
|
};
|
|
in
|
|
{
|
|
virtualisation = {
|
|
incus = {
|
|
preseed = {
|
|
|
|
config = {
|
|
"core.https_address" = ":8443";
|
|
"images.auto_update_interval" = 9;
|
|
};
|
|
|
|
networks = [
|
|
lxd_profiles.default.network
|
|
lxd_profiles.postgres.network
|
|
];
|
|
|
|
profiles = [
|
|
lxd_profiles.default.profile
|
|
lxd_profiles.postgres.profile
|
|
];
|
|
|
|
storage_pools =
|
|
lxd_profiles.default.storage_pools ++
|
|
lxd_profiles.postgres.storage_pools;
|
|
};
|
|
};
|
|
};
|
|
}
|