1{
2 config,
3 lib,
4 ...
5}:
6let
7 l = lib // builtins;
8 t = l.types;
9 cfg = config.settings;
10in
11{
12 options = {
13 settings.enable = l.mkOption {
14 type = t.bool;
15 default = true;
16 };
17 settings.iconTheme = {
18 name = l.mkOption {
19 type = t.str;
20 };
21 package = l.mkOption {
22 type = t.package;
23 };
24 };
25 settings.terminal = {
26 name = l.mkOption {
27 type = t.str;
28 };
29 binary = l.mkOption {
30 type = t.path;
31 };
32 };
33 };
34
35 config = l.mkIf cfg.enable {
36 gtk.iconTheme = cfg.iconTheme;
37 };
38}