home(swaylock): isolate from sway

This commit is contained in:
514fpv 2024-02-14 13:04:17 +08:00
parent e9b356cc74
commit 0552bcbfe1
Signed by: koishi
SSH key fingerprint: SHA256:2jRvFSzG5UeUlQ3WxZ2sbUOfo5wNKzv1fZsk/FexKjQ
4 changed files with 32 additions and 21 deletions

8
home/swaylock/nixos.nix Normal file
View file

@ -0,0 +1,8 @@
{ pkgs
, lib
, config
, ... }: with lib; let
gui = with config.global.gpu; enable && session;
in mkIf gui {
security.pam.services.swaylock = { };
}