home-manager/tests/modules/programs/swaylock/settings.nix

17 lines
415 B
Nix
Raw Normal View History

2022-06-07 19:01:14 +00:00
{ ... }: {
programs.swaylock.settings = {
color = "808080";
font-size = 24;
indicator-idle-visible = false; # Test that this does nothing
indicator-radius = 100;
line-color = "ffffff";
show-failed-attempts = true;
};
nmt.script = let homeConfig = "home-files/.config/swaylock/config";
in ''
assertFileExists ${homeConfig}
assertFileContent ${homeConfig} ${./config}
'';
}