blob: 3bc1d8e5877a560fb12c917bbdc448c70be2d045 (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
{ config, lib, pkgs, ... }:
let
transformColorValue = color :
if color == "Green" then "Mint-Y"
else if color == "Dark-Green" then "Mint-Y-Dark"
else "Mint-Y-${color}"
;
in {
options = {
theme.mint = {
enable = lib.mkEnableOption "enables mint theme";
# TODO add theme.dark option instead of specifying Dark-Color
theme.color = lib.mkOption {
type = lib.types.enum [
"Aqua" "Blue" "Green" "Grey" "Orange" "Pink" "Purple" "Red"
"Sand" "Teal" "Dark-Aqua" "Dark-Blue" "Dark-Green"
"Dark-Grey" "Dark-Orange" "Dark-Pink" "Dark-Purple"
"Dark-Red" "Dark-Sand" "Dark-Teal"
];
default = "Dark-Aqua";
description = "mint-y theme color eg. 'Dark-Aqua' or 'Red'";
};
icons.color = lib.mkOption {
type = lib.types.enum [
"Aqua" "Blue" "Green" "Grey" "Orange" "Pink" "Purple" "Red"
"Sand" "Teal"
];
default = "Aqua";
description = "mint-y icons color eg. 'Aqua' or 'Red'";
};
};
theme.font = {
sansSerif = lib.mkOption {
type = lib.types.str;
default = "Inter";
description = "default sans serif font";
};
sansSerif = lib.mkOption {
type = lib.types.str;
default = "CommitMono";
description = "default monospace font";
};
};
};
config = {
gtk = {
enable = true;
theme = lib.mkIf config.theme.mint.enable {
package = pkgs.mint-themes;
name = transformColorValue config.theme.mint.theme.color;
};
iconTheme = lib.mkIf config.theme.mint.enable {
package = pkgs.mint-y-icons;
name = transformColorValue config.theme.mint.icons.color;
};
font = {
name = config.theme.font.sansSerif;
};
cursorTheme = {
name = "Adwaita";
};
gtk3.bookmarks = [
"file:///home/timmy/dls Downloads"
"file:///home/timmy/docs Documents"
"file:///home/timmy/pics/screenshots Screenshots"
"file:///home/timmy/docs/src/sites sites"
"file:///home/timmy/docs/src/scripts scripts"
"file:///home/timmy/docs/src/programs programs"
];
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
};
qt = {
enable = true;
platformTheme.name = "gtk3";
};
fonts.fontconfig.defaultFonts = {
sansSerif = [ config.theme.fonts.sansSerif ];
monospace = [ config.theme.fonts.monospace ];
};
};
}
|