Files
sp-config/sp-modules/pleroma/cleanup-module.nix

13 lines
377 B
Nix
Raw Normal View History

2023-12-03 03:26:29 +04:00
{ 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) {
2025-06-18 19:53:44 +03:00
system.activationScripts.pleroma = lib.trivial.warn ("pleroma service is disabled, ${secrets-exs} will be removed!") ''
rm -f -v ${secrets-exs}
'';
2023-12-03 03:26:29 +04:00
};
}