tests/linux-wallpaperengine: add execstart test
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
ae1ea768ef
commit
e4e78a2cbe
3 changed files with 29 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue