1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-24 03:59:46 +01:00
home-manager/tests/modules/services/hyprpaper/basic-configuration.nix

31 lines
677 B
Nix
Raw Normal View History

2024-04-27 16:54:16 +02:00
{ pkgs, ... }:
{
services.hyprpaper = {
enable = true;
settings = {
ipc = "on";
splash = false;
splash_offset = 2.0;
preload =
[ "/share/wallpapers/buttons.png" "/share/wallpapers/cat_pacman.png" ];
wallpaper = [
"DP-3,/share/wallpapers/buttons.png"
"DP-1,/share/wallpapers/cat_pacman.png"
];
};
};
test.stubs.hyprpaper = { };
nmt.script = ''
config=home-files/.config/hypr/hyprpaper.conf
clientServiceFile=home-files/.config/systemd/user/hyprpaper.service
assertFileExists $config
assertFileExists $clientServiceFile
assertFileContent $config ${./hyprpaper.conf}
'';
}