move pleroma to SP module

This commit is contained in:
Alexander Tomokhov
2023-12-03 03:26:29 +04:00
parent b458458c30
commit c7419b3255
11 changed files with 135 additions and 90 deletions

View File

@@ -0,0 +1,17 @@
{ config, lib, ... }:
let
inherit (import ./common.nix config) secrets-exs sp;
in
# FIXME do we really want to delete passwords on module deactivation!?
{
config = lib.mkIf (!sp.modules.pleroma.enable) {
system.activationScripts.pleroma =
lib.trivial.warn
(
"pleroma service is disabled, ${secrets-exs} will be removed!"
)
''
rm -f -v ${secrets-exs}
'';
};
}