1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-05 01:19:46 +01:00
home-manager/tests/modules/services/cliphist/cliphist-extra-options.nix
Ryan f69bf670d2
cliphist: add extraOptions option
Add an extraOptions option that would be appended to the cliphist
command.
2024-05-05 09:37:54 +02:00

24 lines
725 B
Nix

{ ... }: {
services.cliphist = {
enable = true;
allowImages = true;
extraOptions = [ "-max-dedupe-search" "10" "-max-items" "500" ];
};
test.stubs = {
cliphist = { };
wl-clipboard = { };
};
nmt.script = ''
servicePath=home-files/.config/systemd/user
assertFileExists $servicePath/cliphist.service
assertFileExists $servicePath/cliphist-images.service
assertFileRegex $servicePath/cliphist.service " '-max-dedupe-search' '10' "
assertFileRegex $servicePath/cliphist.service " '-max-items' '500' "
assertFileRegex $servicePath/cliphist-images.service " '-max-dedupe-search' '10' "
assertFileRegex $servicePath/cliphist-images.service " '-max-items' '500' "
'';
}