mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 19:54:35 +00:00
Add missing device role check for physlock
This commit is contained in:
parent
002e288d48
commit
4c775478bc
|
@ -1,8 +1,14 @@
|
||||||
{
|
{ lib, config, ...}: let
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
deviceType = config.myOptions.device.roles.type;
|
||||||
|
acceptedTypes = ["laptop" "desktop"];
|
||||||
|
in {
|
||||||
|
config = mkIf (builtins.elem deviceType acceptedTypes) {
|
||||||
# Screen locker which works across all virtual terminals
|
# Screen locker which works across all virtual terminals
|
||||||
# Use `systemctl start physlock` to securely lock the screen
|
# Use `systemctl start physlock` to securely lock the screen
|
||||||
services.physlock = {
|
services.physlock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
lockMessage = "System is locked...";
|
lockMessage = "System is locked...";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue