personal nixos config and packages
1{
2 pkgs,
3 mkWrapper,
4 theme,
5 ghostty,
6}:
7let
8 cfg = pkgs.writeText "config" ''
9 # font-family = "Hack"
10 font-size = ${theme.lengths.font-sm}
11
12 theme = "Atom One Dark"
13
14 # window-padding-x = ${theme.lengths.padding}
15 # window-padding-y = ${theme.lengths.padding}
16 window-padding-balance = false
17 window-padding-color = extend
18
19 window-decoration = none
20 window-theme = auto
21
22 confirm-close-surface = false
23
24 shell-integration = detect
25 shell-integration-features = true
26
27 gtk-single-instance = true
28 quit-after-last-window-closed = false
29 '';
30in
31mkWrapper {
32 pkg = ghostty;
33 ghostty.prependFlags = [
34 "--config-file=${cfg}"
35 ];
36}