1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

test/wpaperd: add test for empty settings

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-07-11 10:37:32 -05:00
parent a3f4b998ec
commit 3976e0507e
3 changed files with 11 additions and 0 deletions

View file

@ -1,5 +1,6 @@
{ lib, pkgs, ... }: { lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux { lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
wpaperd-no-settings = ./wpaperd-no-settings.nix;
wpaperd-example-settings = ./wpaperd-example-settings.nix; wpaperd-example-settings = ./wpaperd-example-settings.nix;
} }

View file

@ -15,6 +15,7 @@
}; };
nmt.script = '' nmt.script = ''
assertFileExists home-files/.config/wpaperd/wallpaper.toml
assertFileContent home-files/.config/wpaperd/wallpaper.toml \ assertFileContent home-files/.config/wpaperd/wallpaper.toml \
${./wpaperd-expected-settings.toml} ${./wpaperd-expected-settings.toml}
''; '';

View file

@ -0,0 +1,9 @@
{
services.wpaperd = {
enable = true;
};
nmt.script = ''
assertPathNotExists home-files/.config/wpaperd/wallpaper.toml
'';
}