mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 09:29:41 +08:00
tests/linux-wallpaperengine: add execstart test
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
@@ -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}
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user