diff --git a/tests/modules/home-manager/default.nix b/tests/modules/home-manager/default.nix index 8ce1b1d1..3bc2f883 100644 --- a/tests/modules/home-manager/default.nix +++ b/tests/modules/home-manager/default.nix @@ -57,6 +57,7 @@ import nmt { ] ++ lib.optionals isLinux [ ./services/archivebox + ./services/bleachbit ./services/gallery-dl ./services/matcha ./services/plover diff --git a/tests/modules/home-manager/services/bleachbit/basic-setup.nix b/tests/modules/home-manager/services/bleachbit/basic-setup.nix new file mode 100644 index 00000000..33dcc530 --- /dev/null +++ b/tests/modules/home-manager/services/bleachbit/basic-setup.nix @@ -0,0 +1,21 @@ +{ lib, ... }: + +{ + services.bleachbit = { + enable = true; + startAt = "weekly"; + cleaners = [ + "firefox.cookies" + "firefox.history" + "discord.logs" + "zoom.logs" + ]; + }; + + test.stubs.bleachbit = { }; + + nmt.script = '' + assertFileExists home-files/.config/systemd/user/bleachbit.service + assertFileExists home-files/.config/systemd/user/bleachbit.timer + ''; +} diff --git a/tests/modules/home-manager/services/bleachbit/default.nix b/tests/modules/home-manager/services/bleachbit/default.nix new file mode 100644 index 00000000..0f713ffa --- /dev/null +++ b/tests/modules/home-manager/services/bleachbit/default.nix @@ -0,0 +1,3 @@ +{ + bleachbit-basic-setup = ./basic-setup.nix; +}