mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 13:39:46 +01:00
8a175a8913
Fixes tests that are affected by <https://github.com/NixOS/nixpkgs/pull/333744>.
24 lines
709 B
Nix
24 lines
709 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 "
|
|
'';
|
|
}
|