1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-17 16:49:45 +01:00
home-manager/tests/modules/services/hyprpaper/basic-configuration.nix
2024-05-10 15:35:59 +02:00

30 lines
677 B
Nix

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