tests/modules/home-manager: init services.bleachbit

This commit is contained in:
Gabriel Arazas 2024-03-12 10:49:00 +08:00
parent 4877a6074e
commit 3413974ccf
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
3 changed files with 25 additions and 0 deletions

View File

@ -57,6 +57,7 @@ import nmt {
]
++ lib.optionals isLinux [
./services/archivebox
./services/bleachbit
./services/gallery-dl
./services/matcha
./services/plover

View File

@ -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
'';
}

View File

@ -0,0 +1,3 @@
{
bleachbit-basic-setup = ./basic-setup.nix;
}