Skip to content

Commit

Permalink
tests/modules/home-manager: init services.bleachbit
Browse files Browse the repository at this point in the history
  • Loading branch information
foo-dogsquared committed Mar 12, 2024
1 parent 4877a60 commit 3413974
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/modules/home-manager/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import nmt {
]
++ lib.optionals isLinux [
./services/archivebox
./services/bleachbit
./services/gallery-dl
./services/matcha
./services/plover
Expand Down
21 changes: 21 additions & 0 deletions tests/modules/home-manager/services/bleachbit/basic-setup.nix
Original file line number Diff line number Diff line change
@@ -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
'';
}
3 changes: 3 additions & 0 deletions tests/modules/home-manager/services/bleachbit/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
bleachbit-basic-setup = ./basic-setup.nix;
}

0 comments on commit 3413974

Please sign in to comment.