tests/linux-wallpaperengine: add execstart test

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman
2025-12-28 22:46:55 -06:00
parent ae1ea768ef
commit e4e78a2cbe
3 changed files with 29 additions and 0 deletions

View File

@@ -3,4 +3,5 @@
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
linux-wallpaperengine-basic-configuration = ./basic-configuration.nix;
linux-wallpaperengine-null-options = ./null-options.nix;
linux-wallpaperengine-missing-spaces = ./missing-spaces.nix;
}

View File

@@ -0,0 +1,11 @@
[Install]
WantedBy=graphical-session.target
[Service]
ExecStart=@linux-wallpaperengine@/bin/linux-wallpaperengine --screen-root HDMI-A-1 --bg 2902931482
Restart=on-failure
[Unit]
After=graphical-session.target
Description=Implementation of Wallpaper Engine on Linux
PartOf=graphical-session.target

View File

@@ -0,0 +1,17 @@
{
services.linux-wallpaperengine = {
enable = true;
wallpapers = [
{
monitor = "HDMI-A-1";
wallpaperId = "2902931482";
}
];
};
nmt.script = ''
assertFileContent \
home-files/.config/systemd/user/linux-wallpaperengine.service \
${./missing-spaces-expected.service}
'';
}