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

13 lines
389 B
Nix
Raw Normal View History

2023-12-03 12:29:01 +04:00
{ config, lib, ... }:
let
inherit (import ./common.nix config) bitwarden-env sp;
in
# FIXME do we really want to delete passwords on module deactivation!?
{
config = lib.mkIf (!sp.modules.bitwarden.enable) {
2025-06-18 19:53:44 +03:00
system.activationScripts.bitwarden = lib.trivial.warn ("bitwarden service is disabled, ${bitwarden-env} will be removed!") ''
rm -f -v ${bitwarden-env}
'';
2023-12-03 12:29:01 +04:00
};
}