blob: aad0d1a10dd255946a3e6937c84f796b5ee84e6a (
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
|
{
config,
lib,
pkgs,
...
}:
let
cfg = config.seth.adw-gtk3;
in
{
options.seth.adw-gtk3 = {
enable = lib.mkEnableOption "the use of the `adw-gtk3` GTK theme";
mode = lib.mkOption {
type = lib.types.enum [
"light"
"dark"
];
default = "dark";
description = "Mode of the adw-gtk3 theme";
example = "light";
};
};
config = lib.mkIf cfg.enable {
assertions = [
{
assertion = config.gtk.enable;
message = "`gtk.enable` must be `true` to apply the adw-gtk3 theme";
}
];
gtk = {
enable = true;
theme = {
name = "adw-gtk3-dark";
package = pkgs.adw-gtk3;
};
};
};
}
|