forked from Fediversity/Fediversity
Create a configuration resource even if the service is disabled
This commit is contained in:
parent
535da821fd
commit
af3b2a62fd
1 changed files with 69 additions and 78 deletions
|
@ -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
|
|||
};
|
||||
}
|
||||
);
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue