move pleroma to SP module
This commit is contained in:
17
sp-modules/pleroma/cleanup-module.nix
Normal file
17
sp-modules/pleroma/cleanup-module.nix
Normal 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}
|
||||
'';
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user