blob: 6dc768344be40784e2502f37d632a9d5f3d66465 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{ config, lib, ... }:
let
cfg = config.reborn.swaylock;
in
{
options.reborn.swaylock = {
enable = lib.mkEnableOption "Reborn swaylock config";
};
config = lib.mkIf cfg.enable {
home-manager.users.minijackson.programs.swaylock = {
enable = true;
settings =
let
inherit (config.theme.colors)
background
brightGreen
brightOrange
brightRed
dominant
neutralOrange
neutralRed
;
in
{
ignore-empty-password = true;
show-failed-attempts = true;
image = "${../../../res/wallpapers/wallpaper-1920x1080-install-gentoo.png}";
font = "monospace";
inside-color = "${lib.removePrefix "#" dominant}dd";
inside-clear-color = "${lib.removePrefix "#" neutralOrange}dd";
inside-ver-color = "${lib.removePrefix "#" neutralOrange}dd";
inside-wrong-color = "${lib.removePrefix "#" neutralRed}dd";
key-hl-color = "${lib.removePrefix "#" brightGreen}ee";
bs-hl-color = "${lib.removePrefix "#" neutralRed}ee";
line-color = "${lib.removePrefix "#" background}ee";
line-clear-color = "${lib.removePrefix "#" background}ee";
line-ver-color = "${lib.removePrefix "#" background}ee";
line-wrong-color = "${lib.removePrefix "#" background}ee";
ring-color = "${lib.removePrefix "#" dominant}ee";
ring-clear-color = "${lib.removePrefix "#" brightOrange}ee";
ring-ver-color = "${lib.removePrefix "#" brightOrange}ee";
ring-wrong-color = "${lib.removePrefix "#" brightRed}ee";
separator-color = "${lib.removePrefix "#" background}ee";
text-color = "${lib.removePrefix "#" background}ff";
text-clear-color = "${lib.removePrefix "#" background}ff";
text-ver-color = "${lib.removePrefix "#" background}ff";
text-wrong-color = "${lib.removePrefix "#" background}ff";
indicator-radius = 75;
indicator-thickness = 10;
};
};
security.pam.services.swaylock = { };
};
}
|