-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/modules/home-manager: init services.bleachbit
- Loading branch information
1 parent
4877a60
commit 3413974
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
tests/modules/home-manager/services/bleachbit/basic-setup.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
bleachbit-basic-setup = ./basic-setup.nix; | ||
} |