fix(sway): add possibility to not install swaylock package
Useful when using home-manager on third-party distribution. Swaylock from nixpkgs become unable to unlock session because PAM incompatibilities.
This commit is contained in:
parent
a359d8c06e
commit
c1ee8f9d50
4 changed files with 18 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.desktop.sway;
|
||||
|
@ -6,9 +6,10 @@ in
|
|||
{
|
||||
config = mkIf config.modules.desktop.sway.enable {
|
||||
programs.swaylock = {
|
||||
package = if cfg.swaylock.useNullPackage then null else pkgs.swaylock;
|
||||
enable = true;
|
||||
settings = {
|
||||
image = "${cfg.wallpapers.lockscreen}";
|
||||
image = if cfg.wallpapers.lockscreen != "" then "${cfg.wallpapers.lockscreen}" else false;
|
||||
scaling = "center";
|
||||
color = "000000";
|
||||
indicator-radius = 70;
|
||||
|
@ -22,7 +23,7 @@ in
|
|||
ring-wrong-color = "f268b3";
|
||||
inside-wrong-color = "f268b3cc";
|
||||
key-hl-color = "1cd180";
|
||||
caps-lock-key-hl-color = "1cd180";
|
||||
caps-lock-key-hl-color = "1cd180";
|
||||
caps-lock-bs-hl-color = "f268b3";
|
||||
bs-hl-color = "f268b3ff";
|
||||
separator-color = "00000000";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue