From 59e99a54a7288fbfd729d39ddccf7e1e6e41b4d5 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 24 Nov 2024 18:18:47 -0800 Subject: [PATCH] fix(home): Disable screenlocking on generic Linux It's broken - won't accept correct passwords --- modules/home/xorg/i3/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/home/xorg/i3/default.nix b/modules/home/xorg/i3/default.nix index 491bf8e..16100c2 100644 --- a/modules/home/xorg/i3/default.nix +++ b/modules/home/xorg/i3/default.nix @@ -14,9 +14,10 @@ let listToAttrs getExe ; - inherit (lib.marleyos) enabled; + inherit (lib.marleyos) enabled disabled; cfg = config.marleyos.xorg.i3; + isGenericLinux = config.targets.genericLinux.enable; in { options.marleyos.xorg.i3.enable = mkEnableOption "i3"; @@ -28,7 +29,8 @@ in dunst = enabled; picom = enabled; polybar = enabled; - screen-locker = enabled; + # broken on non-nixOS + screen-locker = if isGenericLinux then enabled else disabled; }; };