forked from IceDBorn/IceDOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinternals.nix
More file actions
58 lines (52 loc) · 1.08 KB
/
internals.nix
File metadata and controls
58 lines (52 loc) · 1.08 KB
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
{
config,
lib,
...
}:
let
inherit (lib) mkOption types;
cfg = config.icedos;
mkStrOption =
default:
mkOption {
type = types.str;
default = default;
};
mkBoolOption = default: mkOption { type = types.bool; };
mkSubmoduleListOption =
options:
mkOption {
type = types.listOf (
types.submodule {
options = options;
}
);
};
in
{
options.icedos.internals = {
accentColor = mkStrOption (
if (!cfg.desktop.gnome.enable) then
"#${cfg.desktop.accentColor}"
else
{
blue = "#3584e4";
green = "#3a944a";
orange = "#ed5b00";
pink = "#d56199";
purple = "#9141ac";
red = "#e62d42";
slate = "#6f8396";
teal = "#2190a4";
yellow = "#c88800";
}
.${cfg.desktop.gnome.accentColor}
);
isFirstBuild = mkBoolOption (false);
toolset.commands = mkSubmoduleListOption ({
bin = mkStrOption ("");
command = mkStrOption ("");
help = mkStrOption ("");
});
};
}