-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylix-darkreader.nix
66 lines (65 loc) · 1.88 KB
/
stylix-darkreader.nix
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
66
{ config, lib, flake, ... }: {
options.stylix.targets.darkreader = {
enable = config.lib.stylix.mkEnableTarget "darkreader" true;
};
config = lib.mkIf (config.stylix.enable && config.stylix.targets.darkreader.enable) {
# TODO: must be manually imported through the extension settings
home-manager.users.${flake.lib.username}.home.file.darkreader.text = builtins.toJSON {
schemeVersion = 2;
enabled = true;
fetchNews = true;
theme = with config.lib.stylix.colors; {
mode = 1;
brightness = 100;
contrast = 100;
grayscale = 0;
sepia = 0;
useFont = false;
fontFamily = "Open Sans";
textStroke = 0;
engine = "dynamicTheme";
stylesheet = "";
darkSchemeBackgroundColor = "#${base00}";
darkSchemeTextColor = "#${base05}";
lightSchemeBackgroundColor = "#${base05}";
lightSchemeTextColor = "#${base00}";
scrollbarColor = "auto";
selectionColor = "auto";
styleSystemControls = false;
lightColorScheme = "Default";
darkColorScheme = "Default";
immediateModify = false;
};
presets = [ ];
customThemes = [ ];
enabledByDefault = true;
enabledFor = [ ];
disabledFor = [ ];
changeBrowserTheme = false;
syncSettings = false;
syncSitesFixes = true;
automation = {
enabled = false;
mode = "system";
behavior = "OnOff";
};
time = {
activation = "18:00";
deactivation = "9:00";
};
location = {
latitude = null;
longitude = null;
};
previewNewDesign = true;
previewNewestDesign = true;
enableForPDF = true;
enableForProtectedPages = true;
enableContextMenus = false;
detectDarkTheme = false;
displayedNews = [
"thanks-2023"
];
};
};
}