swaylock: add enable and package option

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2022-11-12 09:21:58 +01:00 committed by Robert Helgesson
parent 75f4f362e1
commit 2df3d5d39c
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
5 changed files with 87 additions and 31 deletions

View file

@ -0,0 +1,10 @@
{ config, ... }: {
programs.swaylock = {
enable = true;
package = config.lib.test.mkStubPackage { };
};
nmt.script = ''
assertPathNotExists home-files/.config/swaylock/config
'';
}