mirror of
https://github.com/nix-community/home-manager
synced 2024-11-24 03:59:46 +01:00
30 lines
677 B
Nix
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}
|
|
'';
|
|
}
|