Create a configuration resource even if the service is disabled

This commit is contained in:
Nicolas Jeannerod 2025-03-27 15:49:38 +01:00
parent 535da821fd
commit af3b2a62fd
Signed by untrusted user: Niols
GPG key ID: 35DB9EC8886E1CB8

View file

@ -36,7 +36,7 @@
panelConfig:
let
inherit (lib) mkMerge mkIf;
inherit (lib) mkIf;
in
@ -101,12 +101,10 @@ in
in
mkMerge [
(mkIf (panelConfig.mastodon.enable || panelConfig.peertube.enable || panelConfig.pixelfed.enable) {
{
garage-configuration = makeConfigurationResource garageConfigurationResource (
{ pkgs, ... }:
{
mkIf (panelConfig.mastodon.enable || panelConfig.peertube.enable || panelConfig.pixelfed.enable) {
fediversity = {
inherit (panelConfig) domain;
garage.enable = true;
@ -116,12 +114,10 @@ in
};
}
);
})
(mkIf panelConfig.mastodon.enable {
mastodon-configuration = makeConfigurationResource mastodonConfigurationResource (
{ pkgs, ... }:
{
mkIf panelConfig.mastodon.enable {
fediversity = {
inherit (panelConfig) domain;
temp.initialUser = {
@ -139,12 +135,10 @@ in
};
}
);
})
(mkIf panelConfig.peertube.enable {
peertube-configuration = makeConfigurationResource peertubeConfigurationResource (
{ pkgs, ... }:
{
mkIf panelConfig.peertube.enable {
fediversity = {
inherit (panelConfig) domain;
temp.initialUser = {
@ -164,12 +158,10 @@ in
};
}
);
})
(mkIf panelConfig.pixelfed.enable {
pixelfed-configuration = makeConfigurationResource pixelfedConfigurationResource (
{ pkgs, ... }:
{
mkIf panelConfig.pixelfed.enable {
fediversity = {
inherit (panelConfig) domain;
temp.initialUser = {
@ -185,6 +177,5 @@ in
};
}
);
})
];
};
}