personal nixos config and packages
1{
2 pkgs,
3 lib,
4 mkWrapper,
5 theme,
6 fuzzel,
7 alacritty-wrapped,
8}:
9let
10 cfg = pkgs.writeText "config.ini" ''
11 font=sans-serif:size=${theme.lengths.font-lg}
12 use-bold=true
13 dpi-aware=auto
14 placeholder="system search..."
15 prompt=""
16 terminal="${lib.getExe alacritty-wrapped} -e"
17
18 lines=12
19 width=24
20
21 horizontal-pad=16
22 vertical-pad=${theme.lengths.padding}
23 inner-pad=${theme.lengths.padding}
24
25 [colors]
26 background=${theme.colors.bg-darker}FF
27 text=${theme.colors.fg-dim}FF
28 prompt=${theme.colors.fg-dim}FF
29 placeholder=${theme.colors.fg-dim}FF
30 input=${theme.colors.fg-regular}FF
31 match=${theme.colors.fg-regular}FF
32 selection=${theme.colors.bg-regular}FF
33 selection-text=${theme.colors.fg-regular}FF
34 selection-match=${theme.colors.fg-regular}FF
35 border=${theme.colors.cyan}FF
36
37 [border]
38 width=${theme.lengths.border-width}
39 radius=${theme.lengths.border-radius}
40 '';
41in
42mkWrapper {
43 pkg = fuzzel;
44 fuzzel.prependFlags = [
45 "--config"
46 "${cfg}"
47 ];
48}