diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-04 19:47:12 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-04 19:47:12 +0100 |
commit | 7da07a5e1ff80d603163e660cfd6a4057e54f864 (patch) | |
tree | 31406073512ca685fa8d2fd5995f9530710d3cc2 /overlays | |
parent | 31bd460c5e4c41f9d383d867649d70cf7376919f (diff) | |
download | nixos-7da07a5e1ff80d603163e660cfd6a4057e54f864.tar nixos-7da07a5e1ff80d603163e660cfd6a4057e54f864.tar.gz nixos-7da07a5e1ff80d603163e660cfd6a4057e54f864.tar.bz2 nixos-7da07a5e1ff80d603163e660cfd6a4057e54f864.tar.xz nixos-7da07a5e1ff80d603163e660cfd6a4057e54f864.zip |
...
Diffstat (limited to 'overlays')
-rw-r--r-- | overlays/uucp/default.nix | 9 | ||||
-rw-r--r-- | overlays/uucp/mailprogram.patch | 16 | ||||
-rw-r--r-- | overlays/wttrbar/default.nix | 7 | ||||
-rw-r--r-- | overlays/wttrbar/icons.patch | 154 |
4 files changed, 25 insertions, 161 deletions
diff --git a/overlays/uucp/default.nix b/overlays/uucp/default.nix new file mode 100644 index 00000000..4189dbcc --- /dev/null +++ b/overlays/uucp/default.nix | |||
@@ -0,0 +1,9 @@ | |||
1 | { final, prev, ... }: { | ||
2 | uucp = prev.uucp.overrideAttrs (oldAttrs: { | ||
3 | configureFlags = (oldAttrs.configureFlags or []) ++ ["--with-newconfigdir=/etc/uucp"]; | ||
4 | patches = (oldAttrs.patches or []) ++ [ | ||
5 | ./mailprogram.patch | ||
6 | ]; | ||
7 | NIX_CFLAGS_COMPILE = "${oldAttrs.NIX_CFLAGS_COMPILE or ""} -Wno-error=incompatible-pointer-types"; | ||
8 | }); | ||
9 | } | ||
diff --git a/overlays/uucp/mailprogram.patch b/overlays/uucp/mailprogram.patch new file mode 100644 index 00000000..89ac8f31 --- /dev/null +++ b/overlays/uucp/mailprogram.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | policy.h | 2 +- | ||
2 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
3 | |||
4 | diff --git a/policy.h b/policy.h | ||
5 | index 5afe34b..8e92c8b 100644 | ||
6 | --- a/policy.h | ||
7 | +++ b/policy.h | ||
8 | @@ -240,7 +240,7 @@ | ||
9 | the sendmail choice below. Otherwise, select one of the other | ||
10 | choices as appropriate. */ | ||
11 | #if 1 | ||
12 | -#define MAIL_PROGRAM "/usr/lib/sendmail -t" | ||
13 | +#define MAIL_PROGRAM "${config.security.wrapperDir}/sendmail -t" | ||
14 | /* #define MAIL_PROGRAM "/usr/sbin/sendmail -t" */ | ||
15 | #define MAIL_PROGRAM_TO_BODY 1 | ||
16 | #define MAIL_PROGRAM_SUBJECT_BODY 1 | ||
diff --git a/overlays/wttrbar/default.nix b/overlays/wttrbar/default.nix deleted file mode 100644 index 876fa699..00000000 --- a/overlays/wttrbar/default.nix +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | { prev, ... }: { | ||
2 | wttrbar = prev.wttrbar.overrideAttrs (oldAttrs: { | ||
3 | patches = (oldAttrs.patches or []) ++ [ | ||
4 | ./icons.patch | ||
5 | ]; | ||
6 | }); | ||
7 | } | ||
diff --git a/overlays/wttrbar/icons.patch b/overlays/wttrbar/icons.patch deleted file mode 100644 index e7e721c8..00000000 --- a/overlays/wttrbar/icons.patch +++ /dev/null | |||
@@ -1,154 +0,0 @@ | |||
1 | diff --git a/src/constants.rs b/src/constants.rs | ||
2 | index 81b1926..3619d8f 100644 | ||
3 | --- a/src/constants.rs | ||
4 | +++ b/src/constants.rs | ||
5 | @@ -1,64 +1,52 @@ | ||
6 | pub const WEATHER_CODES: &[(i32, &str)] = &[ | ||
7 | - (113, "âī¸"), | ||
8 | - (116, "đ¤ī¸"), | ||
9 | - (119, "âī¸"), | ||
10 | - (122, "đĨī¸"), | ||
11 | - (143, "đĢī¸"), | ||
12 | - (176, "đĻī¸"), | ||
13 | - (179, "đ§ī¸"), | ||
14 | - (182, "đ¨ī¸"), | ||
15 | - (185, "đ¨ī¸"), | ||
16 | - (200, "đŠī¸"), | ||
17 | - (227, "âī¸"), | ||
18 | - (230, "âī¸"), | ||
19 | - (248, "đĢī¸"), | ||
20 | - (260, "đĢī¸"), | ||
21 | - (263, "đ§ī¸"), | ||
22 | - (266, "đ§ī¸"), | ||
23 | - (281, "đĻī¸"), | ||
24 | - (284, "đĻī¸"), | ||
25 | - (293, "đ§ī¸"), | ||
26 | - (296, "đ§ī¸"), | ||
27 | - (299, "đ§ī¸"), | ||
28 | - (302, "đ§ī¸"), | ||
29 | - (305, "đ§ī¸"), | ||
30 | - (308, "đ§ī¸"), | ||
31 | - (311, "đ§ī¸"), | ||
32 | - (314, "đ§ī¸"), | ||
33 | - (317, "đ§ī¸"), | ||
34 | - (320, "đ¨ī¸"), | ||
35 | - (323, "đ¨ī¸"), | ||
36 | - (326, "đ¨ī¸"), | ||
37 | - (329, "đ¨ī¸"), | ||
38 | - (332, "đ¨ī¸"), | ||
39 | - (335, "đ¨ī¸"), | ||
40 | - (338, "đ¨ī¸"), | ||
41 | - (350, "đ¨ī¸"), | ||
42 | - (353, "đ§ī¸"), | ||
43 | - (356, "đ§ī¸"), | ||
44 | - (359, "đ§ī¸"), | ||
45 | - (362, "đ¨ī¸"), | ||
46 | - (365, "đ¨ī¸"), | ||
47 | - (368, "đ¨ī¸"), | ||
48 | - (371, "đ¨ī¸"), | ||
49 | - (374, "đ¨ī¸"), | ||
50 | - (377, "đ¨ī¸"), | ||
51 | - (386, "đŠī¸"), | ||
52 | - (389, "đ¨ī¸"), | ||
53 | - (392, "đ¨ī¸"), | ||
54 | - (395, "đ¨ī¸"), | ||
55 | - (398, "đ¨ī¸"), | ||
56 | - (401, "đ¨ī¸"), | ||
57 | - (404, "đ¨ī¸"), | ||
58 | - (407, "đ¨ī¸"), | ||
59 | - (410, "đ¨ī¸"), | ||
60 | - (413, "đ¨ī¸"), | ||
61 | - (416, "đ¨ī¸"), | ||
62 | - (419, "đ¨ī¸"), | ||
63 | - (422, "đ¨ī¸"), | ||
64 | - (425, "đ¨ī¸"), | ||
65 | - (428, "đ¨ī¸"), | ||
66 | - (431, "đ¨ī¸"), | ||
67 | + (113, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
68 | + (116, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
69 | + (119, "<span font=\"Symbols Nerd Font Mono\">îŊ</span>"), | ||
70 | + (122, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
71 | + (143, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
72 | + (176, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
73 | + (179, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
74 | + (182, "<span font=\"Symbols Nerd Font Mono\">îĒ</span>"), | ||
75 | + (185, "<span font=\"Symbols Nerd Font Mono\">îĒ</span>"), | ||
76 | + (200, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
77 | + (227, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
78 | + (230, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
79 | + (248, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
80 | + (260, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
81 | + (263, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
82 | + (266, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
83 | + (281, "<span font=\"Symbols Nerd Font Mono\">îĒ</span>"), | ||
84 | + (284, "<span font=\"Symbols Nerd Font Mono\">îĒ</span>"), | ||
85 | + (293, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
86 | + (296, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
87 | + (299, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
88 | + (302, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
89 | + (305, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
90 | + (308, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
91 | + (311, "<span font=\"Symbols Nerd Font Mono\">îĒ</span>"), | ||
92 | + (314, "<span font=\"Symbols Nerd Font Mono\">îĒ</span>"), | ||
93 | + (317, "<span font=\"Symbols Nerd Font Mono\">îĒ</span>"), | ||
94 | + (320, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
95 | + (323, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
96 | + (326, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
97 | + (329, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
98 | + (332, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
99 | + (335, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
100 | + (338, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
101 | + (350, "<span font=\"Symbols Nerd Font Mono\">îĒ</span>"), | ||
102 | + (353, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
103 | + (356, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
104 | + (359, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
105 | + (362, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
106 | + (365, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
107 | + (368, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
108 | + (371, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
109 | + (374, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
110 | + (377, "<span font=\"Symbols Nerd Font Mono\">îĒ</span>"), | ||
111 | + (386, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
112 | + (389, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
113 | + (392, "<span font=\"Symbols Nerd Font Mono\">îĨ</span>"), | ||
114 | + (395, "<span font=\"Symbols Nerd Font Mono\">î</span>"), | ||
115 | ]; | ||
116 | |||
117 | pub const ICON_PLACEHOLDER: &str = "{ICON}"; | ||
118 | diff --git a/src/main.rs b/src/main.rs | ||
119 | index 6ac4654..1b84207 100644 | ||
120 | --- a/src/main.rs | ||
121 | +++ b/src/main.rs | ||
122 | @@ -175,20 +175,20 @@ fn main() { | ||
123 | |||
124 | if args.fahrenheit { | ||
125 | tooltip += &format!( | ||
126 | - "âŦī¸ {}° âŦī¸ {}° ", | ||
127 | + "<span font=\"Symbols Nerd Font Mono\">ķ°¸</span> {}° <span font=\"Symbols Nerd Font Mono\">ķ°¸</span> {}° ", | ||
128 | day["maxtempF"].as_str().unwrap(), | ||
129 | day["mintempF"].as_str().unwrap(), | ||
130 | ); | ||
131 | } else { | ||
132 | tooltip += &format!( | ||
133 | - "âŦī¸ {}° âŦī¸ {}° ", | ||
134 | + "<span font=\"Symbols Nerd Font Mono\">ķ°¸</span> {}° <span font=\"Symbols Nerd Font Mono\">ķ°¸</span> {}° ", | ||
135 | day["maxtempC"].as_str().unwrap(), | ||
136 | day["mintempC"].as_str().unwrap(), | ||
137 | ); | ||
138 | }; | ||
139 | |||
140 | tooltip += &format!( | ||
141 | - "đ {} đ {}\n", | ||
142 | + "<span font=\"Symbols Nerd Font Mono\">î</span> {} <span font=\"Symbols Nerd Font Mono\">î</span> {}\n", | ||
143 | format_ampm_time(day, "sunrise", args.ampm), | ||
144 | format_ampm_time(day, "sunset", args.ampm), | ||
145 | ); | ||
146 | @@ -207,7 +207,7 @@ fn main() { | ||
147 | } | ||
148 | |||
149 | let mut tooltip_line = format!( | ||
150 | - "{} {} {} {}", | ||
151 | + "{} {}{} {}", | ||
152 | format_time(hour["time"].as_str().unwrap(), args.ampm), | ||
153 | WEATHER_CODES | ||
154 | .iter() | ||