diff options
Diffstat (limited to 'usecases')
-rw-r--r-- | usecases/desktop/graphical.nix | 55 |
1 files changed, 38 insertions, 17 deletions
diff --git a/usecases/desktop/graphical.nix b/usecases/desktop/graphical.nix index 372af62..208c827 100644 --- a/usecases/desktop/graphical.nix +++ b/usecases/desktop/graphical.nix | |||
@@ -1,8 +1,9 @@ | |||
1 | inputs: | 1 | inputs: { |
2 | 2 | config, | |
3 | { config, lib, pkgs, ... }: | 3 | lib, |
4 | 4 | pkgs, | |
5 | { | 5 | ... |
6 | }: { | ||
6 | imports = [ | 7 | imports = [ |
7 | (import ./graphical/alacritty.nix inputs) | 8 | (import ./graphical/alacritty.nix inputs) |
8 | (import ./graphical/firefox.nix inputs) | 9 | (import ./graphical/firefox.nix inputs) |
@@ -26,7 +27,7 @@ inputs: | |||
26 | qutebrowser | 27 | qutebrowser |
27 | xdg-utils | 28 | xdg-utils |
28 | xsel | 29 | xsel |
29 | (wrapMpv mpv-unwrapped { scripts = with pkgs.mpvScripts; [ mpris sponsorblock ]; }) | 30 | (wrapMpv mpv-unwrapped {scripts = with pkgs.mpvScripts; [mpris sponsorblock];}) |
30 | ]; | 31 | ]; |
31 | 32 | ||
32 | programs.evolution.enable = true; | 33 | programs.evolution.enable = true; |
@@ -58,9 +59,9 @@ inputs: | |||
58 | #ultimate.enable = true; | 59 | #ultimate.enable = true; |
59 | 60 | ||
60 | defaultFonts = { | 61 | defaultFonts = { |
61 | serif = [ "DejaVu Serif" ]; | 62 | serif = ["DejaVu Serif"]; |
62 | sansSerif = [ "DejaVu Sans" ]; | 63 | sansSerif = ["DejaVu Sans"]; |
63 | monospace = [ "FiraMono Nerd Font" ]; | 64 | monospace = ["FiraMono Nerd Font"]; |
64 | #emoji = [ "JoyPixels" ]; | 65 | #emoji = [ "JoyPixels" ]; |
65 | }; | 66 | }; |
66 | }; | 67 | }; |
@@ -90,21 +91,41 @@ inputs: | |||
90 | programs.gnupg.agent.pinentryFlavor = "gtk2"; | 91 | programs.gnupg.agent.pinentryFlavor = "gtk2"; |
91 | 92 | ||
92 | # For KDEConnect | 93 | # For KDEConnect |
93 | networking.firewall.allowedTCPPortRanges = [{ from = 1714; to = 1764; }]; | 94 | networking.firewall.allowedTCPPortRanges = [ |
94 | networking.firewall.allowedUDPPortRanges = [{ from = 1714; to = 1764; }]; | 95 | { |
96 | from = 1714; | ||
97 | to = 1764; | ||
98 | } | ||
99 | ]; | ||
100 | networking.firewall.allowedUDPPortRanges = [ | ||
101 | { | ||
102 | from = 1714; | ||
103 | to = 1764; | ||
104 | } | ||
105 | ]; | ||
95 | 106 | ||
96 | home-manager.users.minijackson = { | 107 | home-manager.users.minijackson = { |
97 | gtk = { | 108 | gtk = { |
98 | enable = true; | 109 | enable = true; |
99 | iconTheme = { | 110 | iconTheme = { |
100 | # TODO: properly modify the colors | 111 | # TODO: properly modify the colors |
101 | package = pkgs.gruvbox-dark-icons-gtk; | 112 | package = pkgs.unstable.tela-circle-icon-theme.override { |
102 | name = "oomox-gruvbox-dark"; | 113 | colorVariants = ["brown"]; |
114 | }; | ||
115 | name = "Tela-circle-brown-dark"; | ||
103 | }; | 116 | }; |
104 | theme = { | 117 | theme = let |
105 | # package = override-arc-theme pkgs.arc-theme; | 118 | color = |
106 | package = pkgs.gruvbox-dark-gtk; | 119 | if config.theme.colors.dominantName == "cyan" |
107 | name = "gruvbox-dark"; | 120 | then "teal" |
121 | else config.theme.colors.dominantName; | ||
122 | in { | ||
123 | package = pkgs.unstable.graphite-gtk-theme.override { | ||
124 | themeVariants = [color]; | ||
125 | sizeVariants = ["compact"]; | ||
126 | tweaks = ["normal"]; | ||
127 | }; | ||
128 | name = "Graphite-${color}-dark-compact"; | ||
108 | }; | 129 | }; |
109 | 130 | ||
110 | gtk4.extraConfig = { | 131 | gtk4.extraConfig = { |