mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-12-06 10:58:06 +00:00
Compare commits
875
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7bda91c1da | ||
|
|
f669389a0b | ||
|
|
442edefa43 | ||
|
|
7b15542d77 | ||
|
|
1b87867f00 | ||
|
|
409fad8307 | ||
|
|
0fa66ce699 | ||
|
|
f4d7a54232 | ||
|
|
d18951162c | ||
|
|
9e9b2dc6d1 | ||
|
|
396d5a0f37 | ||
|
|
169827bb6a | ||
|
|
5ab9348d37 | ||
|
|
4ec4303fac | ||
|
|
0854874c2c | ||
|
|
a86f295761 | ||
|
|
403872fcd4 | ||
|
|
249040cb9f | ||
|
|
659b05b787 | ||
|
|
2b2867a10e | ||
|
|
ce7e403b6b | ||
|
|
b0d345d115 | ||
|
|
1c3aed0cdb | ||
|
|
9e2dc3254d | ||
|
|
677b4962a0 | ||
|
|
1903d825a4 | ||
|
|
88283b8d95 | ||
|
|
367ca98a48 | ||
|
|
cae3691f06 | ||
|
|
a90ea1bdeb | ||
|
|
1bb06a779b | ||
|
|
cd0f3117a0 | ||
|
|
17c5c2fd78 | ||
|
|
3bcfc744fe | ||
|
|
52554a333b | ||
|
|
330b4f2761 | ||
|
|
b8c3305403 | ||
|
|
ae9586b909 | ||
|
|
f35b32e3aa | ||
|
|
212b894a0a | ||
|
|
c594dc9d31 | ||
|
|
3ff13371f2 | ||
|
|
891a615e25 | ||
|
|
2f54139e5f | ||
|
|
9899668601 | ||
|
|
f1fa3f49ba | ||
|
|
6d4aff2134 | ||
|
|
77a51053c4 | ||
|
|
63f2243f28 | ||
|
|
83943282c9 | ||
|
|
fd288d075b | ||
|
|
3daa92a216 | ||
|
|
1adedb4477 | ||
|
|
44bb224568 | ||
|
|
bb2494828d | ||
|
|
f7ec4842d3 | ||
|
|
6bc7653985 | ||
|
|
05613c1085 | ||
|
|
3707e89521 | ||
|
|
4d50937404 | ||
|
|
ee6254000d | ||
|
|
1095ffcbe6 | ||
|
|
8e3cb6520c | ||
|
|
a71e15a31f | ||
|
|
0050466952 | ||
|
|
62cbfda23d | ||
|
|
dfe569fdc0 | ||
|
|
dff8c3d547 | ||
|
|
44d5fcc485 | ||
|
|
de1cbe385f | ||
|
|
35ac609a1f | ||
|
|
9f69644049 | ||
|
|
07f6489b9e | ||
|
|
d4a25e7613 | ||
|
|
1d06558776 | ||
|
|
3d5946a604 | ||
|
|
ab2946df94 | ||
|
|
18b3253206 | ||
|
|
204a252e3e | ||
|
|
235654d2a8 | ||
|
|
071707bd41 | ||
|
|
3f07c3a744 | ||
|
|
c171b73ae7 | ||
|
|
4938fbe373 | ||
|
|
55dab73319 | ||
|
|
9e51ad4215 | ||
|
|
eb7e08c63e | ||
|
|
4943e01c2a | ||
|
|
84b2141d38 | ||
|
|
6bf3906d6e | ||
|
|
324e8d55fb | ||
|
|
42d15decd1 | ||
|
|
921ea4f87c | ||
|
|
9aa77c91b2 | ||
|
|
70ee09ec65 | ||
|
|
1bc0ddb673 | ||
|
|
53540076a4 | ||
|
|
f844fc9e89 | ||
|
|
b30ee4ff9b | ||
|
|
3d3df47c25 | ||
|
|
85beb60c1a | ||
|
|
583bdda811 | ||
|
|
4baff4a832 | ||
|
|
859be3792b | ||
|
|
b682ecf53f | ||
|
|
78d5d2e8e5 | ||
|
|
3b80e8755e | ||
|
|
9c49db368f | ||
|
|
bac55adf41 | ||
|
|
127d1be367 | ||
|
|
f2063dcff2 | ||
|
|
3386c9a43d | ||
|
|
761e20bd85 | ||
|
|
558f180b5d | ||
|
|
9a2881db43 | ||
|
|
4bbcf848dd | ||
|
|
3f5bf035da | ||
|
|
00f9a92812 | ||
|
|
b8212d7a76 | ||
|
|
92c6a14084 | ||
|
|
55fbf529c7 | ||
|
|
8837ea1b4e | ||
|
|
40d6224034 | ||
|
|
4a20afc025 | ||
|
|
3e81aadb18 | ||
|
|
94d13073e6 | ||
|
|
5d573b7bb3 | ||
|
|
b2544370e2 | ||
|
|
e2c270f842 | ||
|
|
a7c4bb9ea1 | ||
|
|
59c8616144 | ||
|
|
ae5a3dd284 | ||
|
|
883dd24982 | ||
|
|
a8b4591108 | ||
|
|
1996fb3fa9 | ||
|
|
5dfdebe16e | ||
|
|
c612dbcbc7 | ||
|
|
a82b6c74e4 | ||
|
|
fc7e585171 | ||
|
|
9dad5046df | ||
|
|
6a830c5d42 | ||
|
|
a7af07441f | ||
|
|
b4af9f76c3 | ||
|
|
d84075ebe1 | ||
|
|
2bd3f5ba82 | ||
|
|
c190e8a468 | ||
|
|
a47d340a20 | ||
|
|
8c1b2e9c61 | ||
|
|
dc6ed8b930 | ||
|
|
dd9bebf8b2 | ||
|
|
930e6262af | ||
|
|
f1f47b6e2d | ||
|
|
10251b17f0 | ||
|
|
1f7b63ae66 | ||
|
|
911bb32f41 | ||
|
|
7a185369e9 | ||
|
|
20bac9c7a4 | ||
|
|
72f327054a | ||
|
|
396f263ff6 | ||
|
|
ead325de92 | ||
|
|
7f429bcc77 | ||
|
|
0bf12445b0 | ||
|
|
1ab9fdea6d | ||
|
|
9655f0b6f7 | ||
|
|
fc9b7def0e | ||
|
|
072e07c4ea | ||
|
|
dc28ffd633 | ||
|
|
dd202aaae7 | ||
|
|
804c8b1862 | ||
|
|
1cf75b64fb | ||
|
|
5aeedc947b | ||
|
|
07e2be7791 | ||
|
|
6a9c5289d0 | ||
|
|
20c9d408bc | ||
|
|
b084fdae98 | ||
|
|
aa858e4b87 | ||
|
|
93c47a647a | ||
|
|
68f81c4e3e | ||
|
|
afe32807aa | ||
|
|
4ce201dc6d | ||
|
|
fe341028f6 | ||
|
|
b8c6160121 | ||
|
|
5fefc87842 | ||
|
|
4ef6a321c3 | ||
|
|
895e8285b4 | ||
|
|
3f8a932c8a | ||
|
|
186c7e29ed | ||
|
|
538eb0c46a | ||
|
|
a28d0921d9 | ||
|
|
08f3b94e16 | ||
|
|
5abcb40620 | ||
|
|
b2666dac7d | ||
|
|
589d45724a | ||
|
|
550f3ae1d1 | ||
|
|
dcc1fad668 | ||
|
|
c87e5521de | ||
|
|
cc202637fd | ||
|
|
8bf237c8a3 | ||
|
|
5739b4de2c | ||
|
|
c6228682d6 | ||
|
|
72a9d12836 | ||
|
|
0ab2a7eb1a | ||
|
|
78aa289f23 | ||
|
|
eda7ffadc2 | ||
|
|
eea37a108a | ||
|
|
71e10dca69 | ||
|
|
e4c02fb834 | ||
|
|
f6fb71e0fa | ||
|
|
863483061d | ||
|
|
ebc3fabd2d | ||
|
|
ad343a607d | ||
|
|
0f8aa4507f | ||
|
|
0925025733 | ||
|
|
43952a30a8 | ||
|
|
6f133d4c48 | ||
|
|
8ac0385185 | ||
|
|
99437a4d05 | ||
|
|
cc554d7f5e | ||
|
|
9073ac0309 | ||
|
|
fbef0d3861 | ||
|
|
0eb43ffea3 | ||
|
|
bbfce5ba97 | ||
|
|
8ab6e64fe4 | ||
|
|
144a913149 | ||
|
|
7f86daa4ab | ||
|
|
a32dd990ee | ||
|
|
9e6028f12b | ||
|
|
3e0b55291e | ||
|
|
931affd185 | ||
|
|
a6597e8991 | ||
|
|
a05d3c5fa9 | ||
|
|
ce7409a4e1 | ||
|
|
c3dc8a64aa | ||
|
|
e19a52b1ec | ||
|
|
611266ce29 | ||
|
|
f5834187a1 | ||
|
|
3b6888420d | ||
|
|
e4496a50ad | ||
|
|
2748dca5eb | ||
|
|
1653fe453d | ||
|
|
4989a66100 | ||
|
|
1107486c29 | ||
|
|
a24818555e | ||
|
|
bbeaebcd8e | ||
|
|
5d336ad0cf | ||
|
|
cf5fc0ef73 | ||
|
|
51a983adf3 | ||
|
|
eccee1eb9b | ||
|
|
98dd8d365e | ||
|
|
b61f4cffd8 | ||
|
|
3a49fc6284 | ||
|
|
7fb1e3dc11 | ||
|
|
2e50d68ad0 | ||
|
|
cba8ab4bfc | ||
|
|
b9ca1cd567 | ||
|
|
1f2c4cc936 | ||
|
|
f97d5858e9 | ||
|
|
89ae340329 | ||
|
|
de236c188b | ||
|
|
2b37b85997 | ||
|
|
297041998b | ||
|
|
2a36e8b621 | ||
|
|
f8986f696b | ||
|
|
e62aa32b6f | ||
|
|
f076a6157a | ||
|
|
aeff89a063 | ||
|
|
b0231df023 | ||
|
|
3d4b11edc7 | ||
|
|
975db02439 | ||
|
|
3e5383b922 | ||
|
|
879f4aef54 | ||
|
|
f851cdabfc | ||
|
|
36eeac3b85 | ||
|
|
9c782fad3c | ||
|
|
b917cd6d36 | ||
|
|
b3b3c423ce | ||
|
|
ca3b30132c | ||
|
|
bcb6a4cc71 | ||
|
|
ad1918171b | ||
|
|
2531f04148 | ||
|
|
a3beed8bfa | ||
|
|
387f07d970 | ||
|
|
fc947d3e1f | ||
|
|
d87c76525a | ||
|
|
e2f1327b3b | ||
|
|
64e467e461 | ||
|
|
df6044bef2 | ||
|
|
27319d9666 | ||
|
|
86f3cfc083 | ||
|
|
4831a71081 | ||
|
|
e1a6098158 | ||
|
|
136eccd475 | ||
|
|
b11982494a | ||
|
|
55e4d889a6 | ||
|
|
fbcf6a1d7d | ||
|
|
5172fac369 | ||
|
|
e661f2788d | ||
|
|
0436e37f39 | ||
|
|
cdb50050c5 | ||
|
|
d698802385 | ||
|
|
39ea4c7b4d | ||
|
|
3c08ac7178 | ||
|
|
8a00800a57 | ||
|
|
6db17fbcbe | ||
|
|
3ff5734c9e | ||
|
|
fb123e8840 | ||
|
|
f6feed951a | ||
|
|
13171a0367 | ||
|
|
f7671489fe | ||
|
|
4b5e6520d9 | ||
|
|
df8f268abb | ||
|
|
2c4a9784f4 | ||
|
|
4b9d1af9a7 | ||
|
|
b45a505f97 | ||
|
|
5ce3ca6da3 | ||
|
|
3da3fa1eee | ||
|
|
d197f3b2c6 | ||
|
|
f8c9cd9dcc | ||
|
|
891eb84b38 | ||
|
|
8ab2595528 | ||
|
|
8f9d27482f | ||
|
|
501a99b2aa | ||
|
|
a4bc613b0c | ||
|
|
2d776b7195 | ||
|
|
35dabaf755 | ||
|
|
535a30ac16 | ||
|
|
a08553c499 | ||
|
|
77af19880f | ||
|
|
fcdd81ee92 | ||
|
|
f613b22761 | ||
|
|
2d941782ff | ||
|
|
b46e9132f3 | ||
|
|
18758a8415 | ||
|
|
9dbc67579d | ||
|
|
891d09e2e9 | ||
|
|
707841ba58 | ||
|
|
9b0e1b2bae | ||
|
|
f199bf4c13 | ||
|
|
4ec9e07cc9 | ||
|
|
7a6a28e872 | ||
|
|
42cfb096d4 | ||
|
|
a643e97280 | ||
|
|
de4f93a300 | ||
|
|
dd5d17c654 | ||
|
|
157db5d7ff | ||
|
|
3384f38b2b | ||
|
|
0b26a4bf0e | ||
|
|
c7689a56a2 | ||
|
|
4ef2eb9ad1 | ||
|
|
a59d496c74 | ||
|
|
c35a935163 | ||
|
|
dc184aa9fd | ||
|
|
d5b1236487 | ||
|
|
c30bf61086 | ||
|
|
6945a72a17 | ||
|
|
9b280ab3c4 | ||
|
|
7c2d02c6e7 | ||
|
|
c73748e9d2 | ||
|
|
c7986b5d58 | ||
|
|
79f92602d6 | ||
|
|
f559aee629 | ||
|
|
162defb838 | ||
|
|
342349de15 | ||
|
|
5cb609ce31 | ||
|
|
a072092d6f | ||
|
|
04ad9e3b30 | ||
|
|
d219e6e520 | ||
|
|
61f7bbcdf5 | ||
|
|
f45687f13b | ||
|
|
c2a899bd7d | ||
|
|
7d9214d18e | ||
|
|
38e2be2728 | ||
|
|
97b9e2436a | ||
|
|
e52520cbaa | ||
|
|
2eb66f8bad | ||
|
|
2888e95b2a | ||
|
|
afe3c41f96 | ||
|
|
2cbf87a1b5 | ||
|
|
7e970f49e4 | ||
|
|
ad9f05d5da | ||
|
|
966d4ac483 | ||
|
|
fb0a73108e | ||
|
|
bcf1b0c464 | ||
|
|
b5f9128798 | ||
|
|
e4b84dfa2c | ||
|
|
1014d146c0 | ||
|
|
64f925e075 | ||
|
|
1deb97ada4 | ||
|
|
fa1bcd5018 | ||
|
|
21ba2f200f | ||
|
|
bd6508000e | ||
|
|
a367c5c974 | ||
|
|
7409288c70 | ||
|
|
1d40787105 | ||
|
|
f42f8e258b | ||
|
|
f9dc2afc50 | ||
|
|
82619c24fe | ||
|
|
81d1a87938 | ||
|
|
4c0e2a3166 | ||
|
|
58d385b258 | ||
|
|
94a2591d70 | ||
|
|
8a32229ee0 | ||
|
|
7ca7964b79 | ||
|
|
2315a3cd5f | ||
|
|
277ddb85fa | ||
|
|
f031e3cb29 | ||
|
|
a73d01c657 | ||
|
|
764c01831d | ||
|
|
ca386c52be | ||
|
|
517b8c15a2 | ||
|
|
ef4bf83d65 | ||
|
|
02535ef82c | ||
|
|
eeea0186f9 | ||
|
|
7217382971 | ||
|
|
fb9b069154 | ||
|
|
8ca24e4559 | ||
|
|
f8f12cd8ba | ||
|
|
40a7a02e3e | ||
|
|
0c81e2e430 | ||
|
|
0f6d2fad45 | ||
|
|
2a5957880e | ||
|
|
cf00c09e23 | ||
|
|
d42e3a531c | ||
|
|
35c7ec3d5f | ||
|
|
a2b89574ff | ||
|
|
a28767296f | ||
|
|
63fe2d3dfb | ||
|
|
3097fc1888 | ||
|
|
d2ef9be9e2 | ||
|
|
dd4e21f1d0 | ||
|
|
72839719d4 | ||
|
|
32aeafcd6b | ||
|
|
f49fdfe799 | ||
|
|
c202ed2037 | ||
|
|
06eb07b022 | ||
|
|
8db5f08afd | ||
|
|
2c967e048f | ||
|
|
a233498094 | ||
|
|
21dd77b5bb | ||
|
|
187aca7883 | ||
|
|
5b3388f59c | ||
|
|
828e3cf99e | ||
|
|
4c6496f269 | ||
|
|
d27d9217f2 | ||
|
|
b6f31cd035 | ||
|
|
0e31205d73 | ||
|
|
a9f3f17922 | ||
|
|
a158d18681 | ||
|
|
1cffca962d | ||
|
|
c408907454 | ||
|
|
1ce1e67bc2 | ||
|
|
2fa86ce45a | ||
|
|
2ea774f9ed | ||
|
|
8e379d1d94 | ||
|
|
731e01de85 | ||
|
|
192d3d0ba5 | ||
|
|
657f2055f9 | ||
|
|
a079a438da | ||
|
|
23c15e0785 | ||
|
|
9cbf42e01f | ||
|
|
d29af10233 | ||
|
|
f0c3bba1ec | ||
|
|
af9372339a | ||
|
|
7433409450 | ||
|
|
e307f037d9 | ||
|
|
c1936d42cf | ||
|
|
4539e364fe | ||
|
|
98f58fc2fe | ||
|
|
3d8dbdb97b | ||
|
|
477c3df102 | ||
|
|
f077a7aa55 | ||
|
|
b05ab57766 | ||
|
|
2eff1e3ec2 | ||
|
|
f887e0fd8a | ||
|
|
a8af080932 | ||
|
|
1825c484c4 | ||
|
|
56a4ff8d10 | ||
|
|
2c20cd4eff | ||
|
|
b5befb0b7c | ||
|
|
10e484ab4e | ||
|
|
5df5b533ad | ||
|
|
3af3a15130 | ||
|
|
0d789becf6 | ||
|
|
934f6521d6 | ||
|
|
1d8fa9db37 | ||
|
|
8e2fa8cb08 | ||
|
|
befe81a423 | ||
|
|
9ca1896dc9 | ||
|
|
c90ec31fef | ||
|
|
bb3538a937 | ||
|
|
59bf0214ba | ||
|
|
c3bfcc39f6 | ||
|
|
9343dca3cf | ||
|
|
7bfe230793 | ||
|
|
f29a65440d | ||
|
|
11e3fde3fe | ||
|
|
1109aed83b | ||
|
|
7944d2b25c | ||
|
|
eda1456a74 | ||
|
|
08c2d38b09 | ||
|
|
73e4ea9ae0 | ||
|
|
356e06bd51 | ||
|
|
df1b070693 | ||
|
|
de09e5adc6 | ||
|
|
95393955f1 | ||
|
|
bf0c5dc70b | ||
|
|
bcde595503 | ||
|
|
fd28e17494 | ||
|
|
d39f8ce07a | ||
|
|
033e890a25 | ||
|
|
ee4fab769b | ||
|
|
a3d7639ccd | ||
|
|
1c50972d30 | ||
|
|
f84002986f | ||
|
|
7c331b0bb4 | ||
|
|
7445fb02e3 | ||
|
|
e83b06538e | ||
|
|
6cfd8be802 | ||
|
|
16ab4f71da | ||
|
|
417dd04e82 | ||
|
|
6673d31eee | ||
|
|
9591b4adc9 | ||
|
|
fb068ad2ef | ||
|
|
890efd83e7 | ||
|
|
2e0478eb72 | ||
|
|
8cf9a52584 | ||
|
|
dc908f3819 | ||
|
|
a907681d0e | ||
|
|
e8f4d10e52 | ||
|
|
46b0642ed1 | ||
|
|
2e3affd193 | ||
|
|
d47daea1e4 | ||
|
|
d2342204fd | ||
|
|
05aadcc245 | ||
|
|
71a580d429 | ||
|
|
5dbef96272 | ||
|
|
6b1a540e24 | ||
|
|
6eaca1aa9f | ||
|
|
67f1999817 | ||
|
|
00c10e204c | ||
|
|
1c7ae40607 | ||
|
|
d49f5adb51 | ||
|
|
e217e5d0b4 | ||
|
|
47c14d4cd5 | ||
|
|
9b8194cc7f | ||
|
|
194a081a28 | ||
|
|
628de5b81a | ||
|
|
6d827c6a2d | ||
|
|
846441ba04 | ||
|
|
55bd3067f0 | ||
|
|
8a3260ecb0 | ||
|
|
644184344d | ||
|
|
03b1da5d9e | ||
|
|
58ad8f96b6 | ||
|
|
5f5fa3d81d | ||
|
|
280a64270c | ||
|
|
42035556fa | ||
|
|
f0c920f5be | ||
|
|
d3c51cfe7a | ||
|
|
ebb9a4e88e | ||
|
|
bd96a46416 | ||
|
|
8d4e983bd3 | ||
|
|
c77c367149 | ||
|
|
5e2dea2d52 | ||
|
|
23376685b9 | ||
|
|
3753e7ad1c | ||
|
|
5b8aa7cfda | ||
|
|
f8b6295e90 | ||
|
|
ee0975705c | ||
|
|
6d1ae3d2c0 | ||
|
|
79cbe6d5a2 | ||
|
|
7a6d037315 | ||
|
|
f303f6b00a | ||
|
|
c7dc95c293 | ||
|
|
939ec4a7c4 | ||
|
|
1eb4642a73 | ||
|
|
0ef5c4c2eb | ||
|
|
8f3a6b5ee9 | ||
|
|
fc26b38cbb | ||
|
|
d29f278c2d | ||
|
|
060204c29e | ||
|
|
b1fc64d837 | ||
|
|
129ca6fe16 | ||
|
|
f2ed29ac95 | ||
|
|
b9eb466764 | ||
|
|
1505b2d7b3 | ||
|
|
87db633fab | ||
|
|
c8c4a6f991 | ||
|
|
3fc6f0e46f | ||
|
|
2fcd23369b | ||
|
|
62db72e49f | ||
|
|
2ba2f5a117 | ||
|
|
a2c164d008 | ||
|
|
b48529e7e4 | ||
|
|
5289be88a7 | ||
|
|
c13a7498b5 | ||
|
|
d8a88b3fae | ||
|
|
4cfd770031 | ||
|
|
c06db22c7c | ||
|
|
c9a8ae39d4 | ||
|
|
8dfefb0ef0 | ||
|
|
db117efdda | ||
|
|
bf8cd7341a | ||
|
|
d091a0f624 | ||
|
|
74ad534cc6 | ||
|
|
d9762b66ac | ||
|
|
e1ece8946d | ||
|
|
4424b36680 | ||
|
|
67fe9b6ef8 | ||
|
|
b629fa832c | ||
|
|
f24ac6493e | ||
|
|
99dfeaf2d7 | ||
|
|
47e6b72e60 | ||
|
|
2c594e3fac | ||
|
|
091c21ec8b | ||
|
|
a07833bbc0 | ||
|
|
a954fccc99 | ||
|
|
7171134718 | ||
|
|
5b132c8844 | ||
|
|
b717b87fcd | ||
|
|
b810c93083 | ||
|
|
c609c50603 | ||
|
|
ed1058c688 | ||
|
|
f668b716b6 | ||
|
|
7e9fe5760b | ||
|
|
17106e7ed3 | ||
|
|
e545bc545d | ||
|
|
ece7f31eb3 | ||
|
|
766732fa64 | ||
|
|
c1187b9188 | ||
|
|
b23c4c6f50 | ||
|
|
a999008749 | ||
|
|
b829115cda | ||
|
|
5ae5900f2d | ||
|
|
45061dd211 | ||
|
|
ceb36522f0 | ||
|
|
fbdaac770a | ||
|
|
b3aa69459f | ||
|
|
5cf7452091 | ||
|
|
c3ed521085 | ||
|
|
002ad35d6e | ||
|
|
4c5dfa0583 | ||
|
|
bf089a2d2e | ||
|
|
aa6d2d652c | ||
|
|
1423079db1 | ||
|
|
8aa643c684 | ||
|
|
8e4b2f23fe | ||
|
|
f8115b491c | ||
|
|
5791ad387d | ||
|
|
99ad73db4f | ||
|
|
ee5b6600e5 | ||
|
|
7d16b8f5bc | ||
|
|
a7fb74617e | ||
|
|
18b5f4779c | ||
|
|
cbe04c1d70 | ||
|
|
6e8ceea382 | ||
|
|
92ba09a173 | ||
|
|
d9f338e021 | ||
|
|
a0264444b6 | ||
|
|
bc54704728 | ||
|
|
9e54a74bf1 | ||
|
|
1adba81d3f | ||
|
|
f6fdb520ca | ||
|
|
43e374a2dd | ||
|
|
35a4bc0849 | ||
|
|
14c41f9400 | ||
|
|
a963a388b1 | ||
|
|
b47c1ca746 | ||
|
|
a8b892dd6e | ||
|
|
cdce2bb0b9 | ||
|
|
6ce35403a5 | ||
|
|
26653dae61 | ||
|
|
d3b50c0dac | ||
|
|
1e8702cf45 | ||
|
|
7e5d525a7e | ||
|
|
c1c35204fd | ||
|
|
5d51859314 | ||
|
|
5817ee9def | ||
|
|
255bb1d632 | ||
|
|
8140782823 | ||
|
|
8efad93dcf | ||
|
|
b79cf7e9a1 | ||
|
|
3fcebc74ab | ||
|
|
3add85fda0 | ||
|
|
4cc33d3370 | ||
|
|
246150d862 | ||
|
|
c4a4ba04a6 | ||
|
|
41aa2300a6 | ||
|
|
b18bdcc4af | ||
|
|
b4cb000495 | ||
|
|
fb04d47f46 | ||
|
|
77cfc7b05b | ||
|
|
1852de97f6 | ||
|
|
ab00ea374c | ||
|
|
c84648b1e1 | ||
|
|
4b8c8963ff | ||
|
|
2f85fae959 | ||
|
|
ecac695859 | ||
|
|
cae796ef1c | ||
|
|
287d6c9b64 | ||
|
|
f5447aac23 | ||
|
|
cdb60de596 | ||
|
|
698731e230 | ||
|
|
7d0593aad1 | ||
|
|
ff43bbbca8 | ||
|
|
91d880f371 | ||
|
|
4716f4de90 | ||
|
|
9f839a51ea | ||
|
|
368106c421 | ||
|
|
66025a538f | ||
|
|
44c7908c53 | ||
|
|
fa49f7f272 | ||
|
|
77658f8519 | ||
|
|
5d1063ae60 | ||
|
|
ba07b209c4 | ||
|
|
e3ed83a22a | ||
|
|
e16ddf7be9 | ||
|
|
a33c77f33d | ||
|
|
a7f3db40a7 | ||
|
|
4be45cb381 | ||
|
|
2399087de9 | ||
|
|
5d8b51d469 | ||
|
|
ac3c17adb3 | ||
|
|
4f5322927d | ||
|
|
14e9955727 | ||
|
|
e7bd509970 | ||
|
|
4c7542d973 | ||
|
|
431a808aa5 | ||
|
|
f6e5c1866c | ||
|
|
962a589fec | ||
|
|
4b82e7f2c8 | ||
|
|
02e58caf7f | ||
|
|
7be40aad14 | ||
|
|
efab3058a8 | ||
|
|
fcf02ccc93 | ||
|
|
92bc6f73cc | ||
|
|
dc5f6b65b3 | ||
|
|
2cec4f4718 | ||
|
|
8a7ea1a8bd | ||
|
|
cd9db13a31 | ||
|
|
fed616e5e6 | ||
|
|
eb96e484f5 | ||
|
|
38290070c5 | ||
|
|
06cf49842f | ||
|
|
1c1b79d2f1 | ||
|
|
c78aa90232 | ||
|
|
eac46630f9 | ||
|
|
96893ace38 | ||
|
|
36f746614f | ||
|
|
46e8c75db0 | ||
|
|
bb2da8f6ef | ||
|
|
62adfd2225 | ||
|
|
ce5d53d4a8 | ||
|
|
dd3a4f1c4f | ||
|
|
5c7721f208 | ||
|
|
daf971cba2 | ||
|
|
3227d2a0e3 | ||
|
|
69ac40bc3e | ||
|
|
ea8fd51d9b | ||
|
|
cb389fa771 | ||
|
|
78b1fc864a | ||
|
|
81d3200c84 | ||
|
|
2d423a6615 | ||
|
|
2372c7a34c | ||
|
|
46fdf0991b | ||
|
|
a461de806b | ||
|
|
a2733bb2de | ||
|
|
1ebbc475b9 | ||
|
|
43c39fa355 | ||
|
|
b79f9092f3 | ||
|
|
158cd0c5a1 | ||
|
|
46d5a25ae0 | ||
|
|
945d8c0764 | ||
|
|
2421ac75ee | ||
|
|
034f499178 | ||
|
|
8181b7fb4e | ||
|
|
16a443b30d | ||
|
|
717945c98e | ||
|
|
4c19ddeb48 | ||
|
|
37d9e02d76 | ||
|
|
93fa311070 | ||
|
|
60da81067c | ||
|
|
be9036707e | ||
|
|
302f06ca61 | ||
|
|
6e43046913 | ||
|
|
2c5d1f4588 | ||
|
|
5469ef7ff2 | ||
|
|
e30e13349f | ||
|
|
f3953bfad3 | ||
|
|
8fc703dc04 | ||
|
|
b041068595 | ||
|
|
224c3307fa | ||
|
|
633d63c485 | ||
|
|
1f7ca21826 | ||
|
|
5c02d87d3b | ||
|
|
257c5c56ec | ||
|
|
6f9173ca3d | ||
|
|
e660229753 | ||
|
|
caa37db34a | ||
|
|
e7f392448d | ||
|
|
a1e7e1df3c | ||
|
|
5e809cd80d | ||
|
|
f8aacd14fa | ||
|
|
74501fd33a | ||
|
|
4b6fab01ca | ||
|
|
0b31c973e8 | ||
|
|
4c0227fb4a | ||
|
|
f1d89d66f0 | ||
|
|
8b741c241e | ||
|
|
9660dc4e92 | ||
|
|
1f31dedb6f | ||
|
|
5478467f96 | ||
|
|
5f28176ab8 | ||
|
|
f96276ca08 | ||
|
|
abeacc8731 | ||
|
|
6f168bc772 | ||
|
|
6dc8bbfa04 | ||
|
|
0c0571462b | ||
|
|
2370498264 | ||
|
|
c41676ed0d | ||
|
|
08744e6b0e | ||
|
|
b8dc8360e3 | ||
|
|
6cb376d52e | ||
|
|
93baac80be | ||
|
|
5dfcd408b7 | ||
|
|
d4a52bd492 | ||
|
|
029d265317 | ||
|
|
7916cbb6fe | ||
|
|
1be5726510 | ||
|
|
2bc27145b3 | ||
|
|
0dff44354a | ||
|
|
76acf97ec6 | ||
|
|
2b8d1603a7 | ||
|
|
bbbdd6afec | ||
|
|
b61194a46b | ||
|
|
0b597e65c6 | ||
|
|
4c36462bef | ||
|
|
9be629c953 | ||
|
|
3702505c9c | ||
|
|
ecd7d744e4 | ||
|
|
6e6d098eb9 | ||
|
|
bfee3c2dd3 | ||
|
|
24b3016230 | ||
|
|
8794ae8697 | ||
|
|
2f2deb4d77 | ||
|
|
142f7c1b20 | ||
|
|
c062a2eecf | ||
|
|
145ebf94aa | ||
|
|
bd4f4e7da0 | ||
|
|
8496689f75 | ||
|
|
282ce91a06 | ||
|
|
8c82286bfc | ||
|
|
b953b1c7e9 | ||
|
|
146bc7f068 | ||
|
|
7fbe28af8b | ||
|
|
65b564a33c | ||
|
|
d6c5ca89f7 | ||
|
|
84837df370 | ||
|
|
62921a9228 | ||
|
|
02dcbbf930 | ||
|
|
16ea01ca3c | ||
|
|
6acd6d64a1 | ||
|
|
0029ca1592 | ||
|
|
340bdd232f | ||
|
|
17fd8f49f1 | ||
|
|
d67cb6b312 | ||
|
|
61d6698fbf | ||
|
|
b94ca27982 | ||
|
|
6c9c8abcae | ||
|
|
dd0b4c69d1 | ||
|
|
771fd649a3 | ||
|
|
579e2b36bb | ||
|
|
c0d8f03cb9 | ||
|
|
fe77624a03 | ||
|
|
7677db7633 |
No files matched your search
+694
@@ -0,0 +1,694 @@
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
;;; Copyright © 2012-2023 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2013,2014 Mark H Weaver <mhw@netris.org>
|
||||
;;; Copyright © 2014 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
|
||||
;;; Copyright © 2015 David Thompson <davet@gnu.org>
|
||||
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
||||
;;; Copyright © 2017 Alex Kost <alezost@gmail.com>
|
||||
;;; Copyright © 2018-2020 Caleb Ristvedt <caleb.ristvedt@cune.org>
|
||||
;;; Copyright © 2020-2023,2025 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;; Copyright © 2020 Miguel Ángel Arruga Vivas <rosen644835@gmail.com>
|
||||
;;; Copyright © 2020 Christine Lemmer-Webber <cwebber@dustycloud.org>
|
||||
;;; Copyright © 2022 Liliana Marie Prikler <liliana.prikler@gmail.com>
|
||||
;;; Copyright © 2022 Andrew Tropin <andrew@trop.in>
|
||||
;;; Copyright © 2022 Brian Cully <bjc@kublai.com>
|
||||
;;; Copyright © 2023 (unmatched-parenthesis <paren@disroot.org>
|
||||
;;; Copyright © 2024 Christopher Baines <mail@cbaines.net>
|
||||
;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
|
||||
;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr>
|
||||
;;; Copyright © 2025 David Elsing <david.elsing@posteo.net>
|
||||
;;; Copyright © 2025 Hilton Chain <hako@ultrarare.space>
|
||||
|
||||
;; Per-directory local variables for GNU Emacs 23 and later.
|
||||
((nil
|
||||
. ((fill-column . 78)
|
||||
(tab-width . 8)
|
||||
(sentence-end-double-space . t)
|
||||
|
||||
;; For use with 'bug-reference-prog-mode'.
|
||||
(bug-reference-url-format . "https://codeberg.org/hako/Rosenthal/issues/%s")
|
||||
(bug-reference-bug-regexp
|
||||
. "\\(#\\([0-9]+\\)\\)")
|
||||
|
||||
(geiser-insert-actual-lambda . nil)
|
||||
|
||||
(eval . (add-to-list 'completion-ignored-extensions ".go"))))
|
||||
|
||||
(c-mode . ((c-file-style . "gnu")))
|
||||
(emacs-lisp-mode . ((indent-tabs-mode . nil)))
|
||||
(texinfo-mode . ((indent-tabs-mode . nil)
|
||||
(fill-column . 72)))
|
||||
(scheme-mode
|
||||
.
|
||||
((eval . (put 'computed-substitution-with-inputs 'scheme-indent-function 1))
|
||||
(eval . (put 'hidden-desktop-entry 'scheme-indent-function 1))
|
||||
|
||||
(eval . (put 'btrbk-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'caddy-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'clash-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'cloudflare-tunnel-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'cloudflare-warp-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'cuirass-worker-container-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'docker-mailserver-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'forgejo-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-atuin-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-blueman-applet-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-direnv-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-fcitx5-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-mako-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-network-manager-applet-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-niri-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-qbittorrent-service-type 'scheme-indent-function 0))
|
||||
(eval . (put 'home-rofi-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-socks2http-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-swaybg-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-theme-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-wakapi-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-waybar-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-zoxide-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'iwd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'jellyfin-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'komga-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'miniflux-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'misskey-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'navidrome-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'qbittorrent-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'shadow-tls-client-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'shadow-tls-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'shadow-tls-server-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'smartdns-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'tailscale-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'vaultwarden-configuration 'scheme-indent-function 0))
|
||||
;; Nonguix
|
||||
;; Note this next setting will use the current guix as the geiser binary;
|
||||
;; one working with a local guix checkout may want something different.
|
||||
(geiser-guile-binary . ("guix" "repl"))
|
||||
|
||||
(eval . (put 'with-transformation 'scheme-indent-function 1))
|
||||
|
||||
(eval . (put 'nonguix-container 'scheme-indent-function 0))
|
||||
(eval . (put 'nvidia-configuration 'scheme-indent-function 0))
|
||||
|
||||
;; Below are copied from Guix.
|
||||
(indent-tabs-mode . nil)
|
||||
|
||||
;; Emacs 28 changed the behavior of 'lisp-fill-paragraph', which causes the
|
||||
;; first line of package descriptions to extrude past 'fill-column', and
|
||||
;; somehow that is deemed more correct upstream (see:
|
||||
;; https://issues.guix.gnu.org/56197).
|
||||
(eval . (progn
|
||||
(require 'lisp-mode)
|
||||
(defun emacs27-lisp-fill-paragraph (&optional justify)
|
||||
(interactive "P")
|
||||
(or (fill-comment-paragraph justify)
|
||||
(let ((paragraph-start
|
||||
(concat paragraph-start
|
||||
"\\|\\s-*\\([(;\"]\\|\\s-:\\|`(\\|#'(\\)"))
|
||||
(paragraph-separate
|
||||
(concat paragraph-separate "\\|\\s-*\".*[,\\.]$"))
|
||||
(fill-column (if (and (integerp emacs-lisp-docstring-fill-column)
|
||||
(derived-mode-p 'emacs-lisp-mode))
|
||||
emacs-lisp-docstring-fill-column
|
||||
fill-column)))
|
||||
(fill-paragraph justify))
|
||||
;; Never return nil.
|
||||
t))
|
||||
(setq-local fill-paragraph-function #'emacs27-lisp-fill-paragraph)))
|
||||
|
||||
;; This notably allows '(' in Paredit to not insert a space when the
|
||||
;; preceding symbol is one of these.
|
||||
(eval . (modify-syntax-entry ?~ "'"))
|
||||
(eval . (modify-syntax-entry ?$ "'"))
|
||||
(eval . (modify-syntax-entry ?+ "'"))
|
||||
|
||||
(eval . (put 'eval-when 'scheme-indent-function 1))
|
||||
(eval . (put 'call-with-prompt 'scheme-indent-function 1))
|
||||
(eval . (put 'test-assert 'scheme-indent-function 1))
|
||||
(eval . (put 'test-assertm 'scheme-indent-function 1))
|
||||
(eval . (put 'test-equalm 'scheme-indent-function 1))
|
||||
(eval . (put 'test-equal 'scheme-indent-function 1))
|
||||
(eval . (put 'test-eq 'scheme-indent-function 1))
|
||||
(eval . (put 'call-with-input-string 'scheme-indent-function 1))
|
||||
(eval . (put 'call-with-port 'scheme-indent-function 1))
|
||||
(eval . (put 'guard 'scheme-indent-function 1))
|
||||
(eval . (put 'lambda* 'scheme-indent-function 1))
|
||||
(eval . (put 'substitute* 'scheme-indent-function 1))
|
||||
(eval . (put 'match-record 'scheme-indent-function 3))
|
||||
(eval . (put 'match-record-lambda 'scheme-indent-function 2))
|
||||
|
||||
;; TODO: Contribute these to Emacs' scheme-mode.
|
||||
(eval . (put 'let-keywords 'scheme-indent-function 3))
|
||||
|
||||
;; 'modify-inputs' and its keywords.
|
||||
(eval . (put 'modify-inputs 'scheme-indent-function 1))
|
||||
(eval . (put 'replace 'scheme-indent-function 1))
|
||||
|
||||
;; 'modify-phases' and its keywords.
|
||||
(eval . (put 'modify-phases 'scheme-indent-function 1))
|
||||
(eval . (put 'replace 'scheme-indent-function 1))
|
||||
(eval . (put 'add-before 'scheme-indent-function 2))
|
||||
(eval . (put 'add-after 'scheme-indent-function 2))
|
||||
|
||||
(eval . (put 'modify-services 'scheme-indent-function 1))
|
||||
(eval . (put 'with-directory-excursion 'scheme-indent-function 1))
|
||||
(eval . (put 'with-file-lock 'scheme-indent-function 1))
|
||||
(eval . (put 'with-file-lock/no-wait 'scheme-indent-function 1))
|
||||
(eval . (put 'with-profile-lock 'scheme-indent-function 1))
|
||||
(eval . (put 'with-writable-file 'scheme-indent-function 2))
|
||||
|
||||
(eval . (put 'package/inherit 'scheme-indent-function 1))
|
||||
(eval . (put 'substitute-keyword-arguments 'scheme-indent-function 1))
|
||||
(eval . (put 'with-store 'scheme-indent-function 1))
|
||||
(eval . (put 'with-store/non-blocking 'scheme-indent-function 1))
|
||||
(eval . (put 'with-external-store 'scheme-indent-function 1))
|
||||
(eval . (put 'with-error-handling 'scheme-indent-function 0))
|
||||
(eval . (put 'with-mutex 'scheme-indent-function 1))
|
||||
(eval . (put 'with-atomic-file-output 'scheme-indent-function 1))
|
||||
(eval . (put 'call-with-compressed-output-port 'scheme-indent-function 2))
|
||||
(eval . (put 'call-with-decompressed-port 'scheme-indent-function 2))
|
||||
(eval . (put 'call-with-gzip-input-port 'scheme-indent-function 1))
|
||||
(eval . (put 'call-with-gzip-output-port 'scheme-indent-function 1))
|
||||
(eval . (put 'call-with-lzip-input-port 'scheme-indent-function 1))
|
||||
(eval . (put 'call-with-lzip-output-port 'scheme-indent-function 1))
|
||||
(eval . (put 'signature-case 'scheme-indent-function 1))
|
||||
(eval . (put 'emacs-batch-eval 'scheme-indent-function 0))
|
||||
(eval . (put 'emacs-batch-edit-file 'scheme-indent-function 1))
|
||||
(eval . (put 'emacs-substitute-sexps 'scheme-indent-function 1))
|
||||
(eval . (put 'emacs-substitute-variables 'scheme-indent-function 1))
|
||||
(eval . (put 'with-derivation-narinfo 'scheme-indent-function 1))
|
||||
(eval . (put 'with-derivation-substitute 'scheme-indent-function 2))
|
||||
(eval . (put 'with-status-report 'scheme-indent-function 1))
|
||||
(eval . (put 'with-status-verbosity 'scheme-indent-function 1))
|
||||
(eval . (put 'with-build-handler 'scheme-indent-function 1))
|
||||
|
||||
(eval . (put 'mlambda 'scheme-indent-function 1))
|
||||
(eval . (put 'mlambdaq 'scheme-indent-function 1))
|
||||
(eval . (put 'syntax-parameterize 'scheme-indent-function 1))
|
||||
(eval . (put 'with-monad 'scheme-indent-function 1))
|
||||
(eval . (put 'mbegin 'scheme-indent-function 1))
|
||||
(eval . (put 'mwhen 'scheme-indent-function 1))
|
||||
(eval . (put 'munless 'scheme-indent-function 1))
|
||||
(eval . (put 'mlet* 'scheme-indent-function 2))
|
||||
(eval . (put 'mlet 'scheme-indent-function 2))
|
||||
(eval . (put 'state-parameterize 'scheme-indent-function 2))
|
||||
(eval . (put 'store-parameterize 'scheme-indent-function 2))
|
||||
(eval . (put 'run-with-store 'scheme-indent-function 1))
|
||||
(eval . (put 'run-with-state 'scheme-indent-function 1))
|
||||
(eval . (put 'wrap-program 'scheme-indent-function 1))
|
||||
(eval . (put 'wrap-script 'scheme-indent-function 1))
|
||||
(eval . (put 'with-imported-modules 'scheme-indent-function 1))
|
||||
(eval . (put 'with-extensions 'scheme-indent-function 1))
|
||||
(eval . (put 'with-parameters 'scheme-indent-function 1))
|
||||
(eval . (put 'let-system 'scheme-indent-function 1))
|
||||
(eval . (put 'with-build-variables 'scheme-indent-function 2))
|
||||
|
||||
(eval . (put 'with-database 'scheme-indent-function 2))
|
||||
(eval . (put 'call-with-database 'scheme-indent-function 1))
|
||||
(eval . (put 'call-with-transaction 'scheme-indent-function 1))
|
||||
(eval . (put 'call-with-retrying-transaction 'scheme-indent-function 1))
|
||||
|
||||
(eval . (put 'call-with-container 'scheme-indent-function 1))
|
||||
(eval . (put 'container-excursion 'scheme-indent-function 1))
|
||||
(eval . (put 'eventually 'scheme-indent-function 1))
|
||||
|
||||
(eval . (put 'call-with-progress-reporter 'scheme-indent-function 1))
|
||||
(eval . (put 'with-repository 'scheme-indent-function 2))
|
||||
(eval . (put 'with-temporary-git-repository 'scheme-indent-function 2))
|
||||
(eval . (put 'with-environment-variables 'scheme-indent-function 1))
|
||||
(eval . (put 'with-fresh-gnupg-setup 'scheme-indent-function 1))
|
||||
|
||||
(eval . (put 'with-paginated-output-port 'scheme-indent-function 1))
|
||||
|
||||
(eval . (put 'with-shepherd-action 'scheme-indent-function 3))
|
||||
|
||||
(eval . (put 'with-http-server 'scheme-indent-function 1))
|
||||
|
||||
;; Record constructors.
|
||||
;; URIs for origin methods.
|
||||
(eval . (put 'android-repo-reference 'scheme-indent-function 0))
|
||||
(eval . (put 'bzr-reference 'scheme-indent-function 0))
|
||||
(eval . (put 'cvs-reference 'scheme-indent-function 0))
|
||||
(eval . (put 'git-checkout 'scheme-indent-function 0))
|
||||
(eval . (put 'git-reference 'scheme-indent-function 0))
|
||||
(eval . (put 'hg-reference 'scheme-indent-function 0))
|
||||
(eval . (put 'svn-multi-reference 'scheme-indent-function 0))
|
||||
(eval . (put 'svn-reference 'scheme-indent-function 0))
|
||||
|
||||
;; guix/
|
||||
(eval . (put 'avahi-service 'scheme-indent-function 0))
|
||||
(eval . (put 'bag 'scheme-indent-function 0))
|
||||
(eval . (put 'build-status 'scheme-indent-function 0))
|
||||
(eval . (put 'build-system 'scheme-indent-function 0))
|
||||
(eval . (put 'channel 'scheme-indent-function 0))
|
||||
(eval . (put 'gnu-package-descriptor 'scheme-indent-function 0))
|
||||
(eval . (put 'graft 'scheme-indent-function 0))
|
||||
(eval . (put 'lint-checker 'scheme-indent-function 0))
|
||||
(eval . (put 'lint-warning 'scheme-indent-function 0))
|
||||
(eval . (put 'manifest-entry 'scheme-indent-function 0))
|
||||
(eval . (put 'manifest-pattern 'scheme-indent-function 0))
|
||||
(eval . (put 'manifest-transaction 'scheme-indent-function 0))
|
||||
(eval . (put 'node-type 'scheme-indent-function 0))
|
||||
(eval . (put 'origin 'scheme-indent-function 0))
|
||||
(eval . (put 'package 'scheme-indent-function 0))
|
||||
(eval . (put 'platform 'scheme-indent-function 0))
|
||||
(eval . (put 'profile 'scheme-indent-function 0))
|
||||
(eval . (put 'progress-reporter 'scheme-indent-function 0))
|
||||
(eval . (put 'search-path-specification 'scheme-indent-function 0))
|
||||
(eval . (put 'upstream-input 'scheme-indent-function 0))
|
||||
(eval . (put 'upstream-source 'scheme-indent-function 0))
|
||||
(eval . (put 'upstream-updater 'scheme-indent-function 0))
|
||||
|
||||
;; gnu/
|
||||
(eval . (put 'bootloader 'scheme-indent-function 0))
|
||||
(eval . (put 'bootloader-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'image 'scheme-indent-function 0))
|
||||
(eval . (put 'image-type 'scheme-indent-function 0))
|
||||
(eval . (put 'menu-entry 'scheme-indent-function 0))
|
||||
(eval . (put 'partition 'scheme-indent-function 0))
|
||||
|
||||
;; gnu/machine
|
||||
(eval . (put 'digital-ocean-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'environment-type 'scheme-indent-function 0))
|
||||
(eval . (put 'hetzner-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'machine 'scheme-indent-function 0))
|
||||
(eval . (put 'machine-ssh-configuration 'scheme-indent-function 0))
|
||||
|
||||
;; gnu/system
|
||||
(eval . (put 'boot-parameters 'scheme-indent-function 0))
|
||||
(eval . (put 'file-system 'scheme-indent-function 0))
|
||||
(eval . (put 'file-system-mapping 'scheme-indent-function 0))
|
||||
(eval . (put 'locale-definition 'scheme-indent-function 0))
|
||||
(eval . (put 'mapped-device 'scheme-indent-function 0))
|
||||
(eval . (put 'mapped-device-kind 'scheme-indent-function 0))
|
||||
(eval . (put 'name-service 'scheme-indent-function 0))
|
||||
(eval . (put 'name-service-switch 'scheme-indent-function 0))
|
||||
(eval . (put 'operating-system 'scheme-indent-function 0))
|
||||
(eval . (put 'pam-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'pam-entry 'scheme-indent-function 0))
|
||||
(eval . (put 'pam-extension 'scheme-indent-function 0))
|
||||
(eval . (put 'pam-service 'scheme-indent-function 0))
|
||||
(eval . (put 'privileged-program 'scheme-indent-function 0))
|
||||
(eval . (put 'subid-range 'scheme-indent-function 0))
|
||||
(eval . (put 'subids-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'subids-extension 'scheme-indent-function 0))
|
||||
(eval . (put 'swap-space 'scheme-indent-function 0))
|
||||
(eval . (put 'user-account 'scheme-indent-function 0))
|
||||
(eval . (put 'user-group 'scheme-indent-function 0))
|
||||
(eval . (put 'virtual-machine 'scheme-indent-function 0))
|
||||
|
||||
;; gnu/home
|
||||
(eval . (put 'home-bash-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-bash-extension 'scheme-indent-function 0))
|
||||
(eval . (put 'home-batsignal-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-beets-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-dbus-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-dotfiles-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-environment 'scheme-indent-function 0))
|
||||
(eval . (put 'home-fish-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-fish-extension 'scheme-indent-function 0))
|
||||
(eval . (put 'home-gpg-agent-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-inputrc-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-kodi-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-mcron-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-msmtp-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-openssh-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-parcimonie-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-pipewire-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-redshift-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-shell-profile-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-shepherd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-ssh-agent-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-unclutter-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-xdg-base-directories-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-xdg-mime-applications-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-xdg-user-directories-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-xmodmap-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-znc-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-zsh-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'home-zsh-extension 'scheme-indent-function 0))
|
||||
(eval . (put 'msmtp-account 'scheme-indent-function 0))
|
||||
(eval . (put 'msmtp-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'openssh-host 'scheme-indent-function 0))
|
||||
(eval . (put 'point 'scheme-indent-function 0))
|
||||
(eval . (put 'proxy-jump 'scheme-indent-function 0))
|
||||
(eval . (put 'sway-bar 'scheme-indent-function 0))
|
||||
(eval . (put 'sway-border-color 'scheme-indent-function 0))
|
||||
(eval . (put 'sway-color 'scheme-indent-function 0))
|
||||
(eval . (put 'sway-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'sway-input 'scheme-indent-function 0))
|
||||
(eval . (put 'sway-mode 'scheme-indent-function 0))
|
||||
(eval . (put 'sway-output 'scheme-indent-function 0))
|
||||
(eval . (put 'xdg-desktop-action 'scheme-indent-function 0))
|
||||
(eval . (put 'xdg-desktop-entry 'scheme-indent-function 0))
|
||||
|
||||
;; gnu/services
|
||||
(eval . (put 'agate-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'agetty-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'alsa-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'anonip-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'apcupsd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'apcupsd-event-handlers 'scheme-indent-function 0))
|
||||
(eval . (put 'auditd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'autossh-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'avahi-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'backend-userroot-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'bffe-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'bitlbee-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'bluetooth-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'cachefilesd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'certbot-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'cgit-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'configuration-field 'scheme-indent-function 0))
|
||||
(eval . (put 'connman-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'connman-general-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'containerd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'cuirass-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'cuirass-remote-server-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'cuirass-remote-worker-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'cups-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'darkstat-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'dbus-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'dconf-keyfile 'scheme-indent-function 0))
|
||||
(eval . (put 'dconf-profile 'scheme-indent-function 0))
|
||||
(eval . (put 'debootstrap-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'dhcp-client-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'dhcpcd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'dhcpd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'dicod-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'dict-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'directory-server-instance-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'dnsmasq-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'docker-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'dovecot-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'dropbear-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'earlyoom-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'elogind-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'enlightenment-desktop-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'exim-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ext-component-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'fail2ban-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'fail2ban-ignore-cache-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'fail2ban-jail-action-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'fail2ban-jail-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'fail2ban-jail-filter-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'fcgiwrap-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'fifo-listener-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'file-database-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'files-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'fprintd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'fstrim-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ganeti-cleaner-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ganeti-confd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ganeti-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ganeti-kvmd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ganeti-luxid-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ganeti-metad-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ganeti-mond-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ganeti-noded-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ganeti-os 'scheme-indent-function 0))
|
||||
(eval . (put 'ganeti-os-variant 'scheme-indent-function 0))
|
||||
(eval . (put 'ganeti-rapi-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ganeti-watcher-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ganeti-wconfd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'gdm-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'geoclue-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'getmail-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'getmail-configuration-file 'scheme-indent-function 0))
|
||||
(eval . (put 'getmail-destination-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'getmail-options-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'getmail-retriever-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'git-daemon-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'git-http-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'gitile-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'gitolite-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'gitolite-git-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'gitolite-rc-file 'scheme-indent-function 0))
|
||||
(eval . (put 'gmnisrv-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'gnome-desktop-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'gnome-keyring-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'gpm-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'greetd-agreety-session 'scheme-indent-function 0))
|
||||
(eval . (put 'greetd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'greetd-gtkgreet-sway-session 'scheme-indent-function 0))
|
||||
(eval . (put 'greetd-terminal-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'greetd-user-session 'scheme-indent-function 0))
|
||||
(eval . (put 'greetd-wlgreet-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'greetd-wlgreet-session 'scheme-indent-function 0))
|
||||
(eval . (put 'greetd-wlgreet-sway-session 'scheme-indent-function 0))
|
||||
(eval . (put 'gss-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'guix-build-coordinator-agent-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'guix-build-coordinator-agent-dynamic-auth 'scheme-indent-function 0))
|
||||
(eval . (put 'guix-build-coordinator-agent-dynamic-auth-with-file 'scheme-indent-function 0))
|
||||
(eval . (put 'guix-build-coordinator-agent-password-auth 'scheme-indent-function 0))
|
||||
(eval . (put 'guix-build-coordinator-agent-password-file-auth 'scheme-indent-function 0))
|
||||
(eval . (put 'guix-build-coordinator-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'guix-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'guix-data-service-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'guix-extension 'scheme-indent-function 0))
|
||||
(eval . (put 'guix-publish-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'gvfs-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'host 'scheme-indent-function 0))
|
||||
(eval . (put 'hostapd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'hpcguix-web-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'httpd-config-file 'scheme-indent-function 0))
|
||||
(eval . (put 'httpd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'httpd-module 'scheme-indent-function 0))
|
||||
(eval . (put 'httpd-virtualhost 'scheme-indent-function 0))
|
||||
(eval . (put 'hurd-console-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'hurd-getty-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'hurd-vm-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'idmap-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'imap4d-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'inet-listener-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'inetd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'inetd-entry 'scheme-indent-function 0))
|
||||
(eval . (put 'inputattach-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'int-component-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ipfs-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'iptables-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'iwd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'iwd-general-settings 'scheme-indent-function 0))
|
||||
(eval . (put 'iwd-network-settings 'scheme-indent-function 0))
|
||||
(eval . (put 'iwd-scan-settings 'scheme-indent-function 0))
|
||||
(eval . (put 'iwd-settings 'scheme-indent-function 0))
|
||||
(eval . (put 'jami-account 'scheme-indent-function 0))
|
||||
(eval . (put 'jami-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'joycond-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'keepalived-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'kmscon-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'knot-acl-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'knot-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'knot-key-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'knot-keystore-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'knot-policy-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'knot-remote-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'knot-resolver-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'knot-zone-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'krb5-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'krb5-realm 'scheme-indent-function 0))
|
||||
(eval . (put 'kwallet-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ladspa-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'laminar-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'libvirt-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'lightdm-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'lightdm-gtk-greeter-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'lightdm-seat-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'linux-builder-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'lirc-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'live-service 'scheme-indent-function 0))
|
||||
(eval . (put 'localed-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'location-access-control 'scheme-indent-function 0))
|
||||
(eval . (put 'log-cleanup-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'log-rotation 'scheme-indent-function 0))
|
||||
(eval . (put 'log-rotation-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'login-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'lsh-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'lxqt-desktop-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'mailbox-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'mate-desktop-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'mcron-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'memcached-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'method-access-control 'scheme-indent-function 0))
|
||||
(eval . (put 'mingetty-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'mod-muc-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'modem-manager-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'mosquitto-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'mpd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'mpd-output 'scheme-indent-function 0))
|
||||
(eval . (put 'mpd-partition 'scheme-indent-function 0))
|
||||
(eval . (put 'mpd-plugin 'scheme-indent-function 0))
|
||||
(eval . (put 'mumble-server-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'mumble-server-public-registration-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'mumi-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'mumi-package-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'mympd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'mympd-ip-acl 'scheme-indent-function 0))
|
||||
(eval . (put 'mysql-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'namespace-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'nar-herder-cached-compression-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'nar-herder-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'network-address 'scheme-indent-function 0))
|
||||
(eval . (put 'network-link 'scheme-indent-function 0))
|
||||
(eval . (put 'network-manager-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'network-route 'scheme-indent-function 0))
|
||||
(eval . (put 'nfs-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'nftables-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'nginx-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'nginx-location-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'nginx-log-format-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'nginx-named-location-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'nginx-server-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'nginx-upstream-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ngircd-channel 'scheme-indent-function 0))
|
||||
(eval . (put 'ngircd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ngircd-global 'scheme-indent-function 0))
|
||||
(eval . (put 'ngircd-limits 'scheme-indent-function 0))
|
||||
(eval . (put 'ngircd-operator 'scheme-indent-function 0))
|
||||
(eval . (put 'ngircd-options 'scheme-indent-function 0))
|
||||
(eval . (put 'ngircd-server 'scheme-indent-function 0))
|
||||
(eval . (put 'ngircd-ssl 'scheme-indent-function 0))
|
||||
(eval . (put 'nix-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'nscd-cache 'scheme-indent-function 0))
|
||||
(eval . (put 'nscd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'nslcd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ntp-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ntp-server 'scheme-indent-function 0))
|
||||
(eval . (put 'oci-container-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'oci-image 'scheme-indent-function 0))
|
||||
(eval . (put 'opaque-cgit-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'opaque-cups-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'opaque-dovecot-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'opaque-prosody-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'opendht-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'openntpd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'opensmtpd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'openssh-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'openvpn-ccd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'openvpn-client-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'openvpn-remote-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'openvpn-server-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'openvswitch-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'operation-access-control 'scheme-indent-function 0))
|
||||
(eval . (put 'package-database-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'pagekite-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'pam-krb5-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'pam-mount-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'pam-mount-volume 'scheme-indent-function 0))
|
||||
(eval . (put 'passdb-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'patchwork-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'patchwork-database-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'patchwork-settings-module 'scheme-indent-function 0))
|
||||
(eval . (put 'pcscd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'php-fpm-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'php-fpm-dynamic-process-manager-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'php-fpm-on-demand-process-manager-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'php-fpm-static-process-manager-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'pipefs-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'plasma-desktop-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'plugin-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'policy-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'polkit-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'postgresql-config-file 'scheme-indent-function 0))
|
||||
(eval . (put 'postgresql-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'postgresql-role 'scheme-indent-function 0))
|
||||
(eval . (put 'pounce-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'power-profiles-daemon-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'powertop-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'prometheus-node-exporter-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'prosody-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'protocol-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'pulseaudio-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'qemu-binfmt-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'qemu-guest-agent-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'quassel-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'radicale-auth-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'radicale-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'radicale-encoding-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'radicale-logging-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'radicale-rights-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'radicale-server-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'radicale-storage-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'rasdaemon-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'readymedia-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'readymedia-media-directory 'scheme-indent-function 0))
|
||||
(eval . (put 'redis-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'repository-cgit-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'resize-file-system-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'restic-backup-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'restic-backup-job 'scheme-indent-function 0))
|
||||
(eval . (put 'rngd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'rootless-podman-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'rottlog-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'rpcbind-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'rshiny-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'rspamd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'rsync-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'rsync-module 'scheme-indent-function 0))
|
||||
(eval . (put 'samba-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'screen-locker-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'sddm-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'seatd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'service-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'service-type 'scheme-indent-function 0))
|
||||
(eval . (put 'shepherd-action 'scheme-indent-function 0))
|
||||
(eval . (put 'shepherd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'shepherd-service 'scheme-indent-function 0))
|
||||
(eval . (put 'slim-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'snuik-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'speakersafetyd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'spice-vdagent-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'ssl-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'static-networking 'scheme-indent-function 0))
|
||||
(eval . (put 'strongswan-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'sugar-desktop-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'syncthing-config-file 'scheme-indent-function 0))
|
||||
(eval . (put 'syncthing-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'syncthing-device 'scheme-indent-function 0))
|
||||
(eval . (put 'syncthing-folder 'scheme-indent-function 0))
|
||||
(eval . (put 'syncthing-folder-device 'scheme-indent-function 0))
|
||||
(eval . (put 'sysctl-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'syslog-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'system-log-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'tailon-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'tailon-configuration-file 'scheme-indent-function 0))
|
||||
(eval . (put 'thermald-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'tlp-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'tor-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'tor-onion-service-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'tor-transport-plugin 'scheme-indent-function 0))
|
||||
(eval . (put 'transmission-daemon-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'udev-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'udisks-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'unattended-upgrade-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'unbound-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'unbound-remote 'scheme-indent-function 0))
|
||||
(eval . (put 'unbound-server 'scheme-indent-function 0))
|
||||
(eval . (put 'unbound-zone 'scheme-indent-function 0))
|
||||
(eval . (put 'unix-listener-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'upower-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'usb-modeswitch-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'userdb-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'varnish-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'virtlog-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'virtual-build-machine 'scheme-indent-function 0))
|
||||
(eval . (put 'virtualhost-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'vnstat-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'webssh-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'wesnothd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'whoogle-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'wireguard-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'wireguard-peer 'scheme-indent-function 0))
|
||||
(eval . (put 'wpa-supplicant-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'wsdd-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'xe-guest-utilities-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'xen-guest-agent-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'xfce-desktop-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'xorg-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'xvnc-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'yggdrasil-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'zabbix-agent-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'zabbix-front-end-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'zabbix-server-configuration 'scheme-indent-function 0))
|
||||
(eval . (put 'zone-entry 'scheme-indent-function 0))
|
||||
(eval . (put 'zone-file 'scheme-indent-function 0))
|
||||
(eval . (put 'zram-device-configuration 'scheme-indent-function 0)))))
|
||||
@@ -0,0 +1,10 @@
|
||||
;;; -*- mode: scheme -*-
|
||||
;;; SPDX-FileCopyrightText: 2022, 2024 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
(authorizations
|
||||
(version 0)
|
||||
(;; primary: "220F 98D9 5E86 204C 0036 DA7B 6DEC 4360 408B 4185"
|
||||
("F4C2 D1DF 3FDE EA63 D1D3 0776 ACC6 6D09 CA52 8292"
|
||||
(name "Hilton Chain"))))
|
||||
@@ -0,0 +1,11 @@
|
||||
;; -*- mode: scheme -*-
|
||||
;; SPDX-FileCopyrightText: 2022, 2023, 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;
|
||||
;; SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
(channel
|
||||
(version 0)
|
||||
(directory "modules")
|
||||
(keyring-reference "keyring")
|
||||
(url "https://codeberg.org/hako/rosenthal.git")
|
||||
(news-file "NEWS"))
|
||||
@@ -0,0 +1,427 @@
|
||||
Attribution-ShareAlike 4.0 International
|
||||
|
||||
=======================================================================
|
||||
|
||||
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
||||
does not provide legal services or legal advice. Distribution of
|
||||
Creative Commons public licenses does not create a lawyer-client or
|
||||
other relationship. Creative Commons makes its licenses and related
|
||||
information available on an "as-is" basis. Creative Commons gives no
|
||||
warranties regarding its licenses, any material licensed under their
|
||||
terms and conditions, or any related information. Creative Commons
|
||||
disclaims all liability for damages resulting from their use to the
|
||||
fullest extent possible.
|
||||
|
||||
Using Creative Commons Public Licenses
|
||||
|
||||
Creative Commons public licenses provide a standard set of terms and
|
||||
conditions that creators and other rights holders may use to share
|
||||
original works of authorship and other material subject to copyright
|
||||
and certain other rights specified in the public license below. The
|
||||
following considerations are for informational purposes only, are not
|
||||
exhaustive, and do not form part of our licenses.
|
||||
|
||||
Considerations for licensors: Our public licenses are
|
||||
intended for use by those authorized to give the public
|
||||
permission to use material in ways otherwise restricted by
|
||||
copyright and certain other rights. Our licenses are
|
||||
irrevocable. Licensors should read and understand the terms
|
||||
and conditions of the license they choose before applying it.
|
||||
Licensors should also secure all rights necessary before
|
||||
applying our licenses so that the public can reuse the
|
||||
material as expected. Licensors should clearly mark any
|
||||
material not subject to the license. This includes other CC-
|
||||
licensed material, or material used under an exception or
|
||||
limitation to copyright. More considerations for licensors:
|
||||
wiki.creativecommons.org/Considerations_for_licensors
|
||||
|
||||
Considerations for the public: By using one of our public
|
||||
licenses, a licensor grants the public permission to use the
|
||||
licensed material under specified terms and conditions. If
|
||||
the licensor's permission is not necessary for any reason--for
|
||||
example, because of any applicable exception or limitation to
|
||||
copyright--then that use is not regulated by the license. Our
|
||||
licenses grant only permissions under copyright and certain
|
||||
other rights that a licensor has authority to grant. Use of
|
||||
the licensed material may still be restricted for other
|
||||
reasons, including because others have copyright or other
|
||||
rights in the material. A licensor may make special requests,
|
||||
such as asking that all changes be marked or described.
|
||||
Although not required by our licenses, you are encouraged to
|
||||
respect those requests where reasonable. More considerations
|
||||
for the public:
|
||||
wiki.creativecommons.org/Considerations_for_licensees
|
||||
|
||||
=======================================================================
|
||||
|
||||
Creative Commons Attribution-ShareAlike 4.0 International Public
|
||||
License
|
||||
|
||||
By exercising the Licensed Rights (defined below), You accept and agree
|
||||
to be bound by the terms and conditions of this Creative Commons
|
||||
Attribution-ShareAlike 4.0 International Public License ("Public
|
||||
License"). To the extent this Public License may be interpreted as a
|
||||
contract, You are granted the Licensed Rights in consideration of Your
|
||||
acceptance of these terms and conditions, and the Licensor grants You
|
||||
such rights in consideration of benefits the Licensor receives from
|
||||
making the Licensed Material available under these terms and
|
||||
conditions.
|
||||
|
||||
|
||||
Section 1 -- Definitions.
|
||||
|
||||
a. Adapted Material means material subject to Copyright and Similar
|
||||
Rights that is derived from or based upon the Licensed Material
|
||||
and in which the Licensed Material is translated, altered,
|
||||
arranged, transformed, or otherwise modified in a manner requiring
|
||||
permission under the Copyright and Similar Rights held by the
|
||||
Licensor. For purposes of this Public License, where the Licensed
|
||||
Material is a musical work, performance, or sound recording,
|
||||
Adapted Material is always produced where the Licensed Material is
|
||||
synched in timed relation with a moving image.
|
||||
|
||||
b. Adapter's License means the license You apply to Your Copyright
|
||||
and Similar Rights in Your contributions to Adapted Material in
|
||||
accordance with the terms and conditions of this Public License.
|
||||
|
||||
c. BY-SA Compatible License means a license listed at
|
||||
creativecommons.org/compatiblelicenses, approved by Creative
|
||||
Commons as essentially the equivalent of this Public License.
|
||||
|
||||
d. Copyright and Similar Rights means copyright and/or similar rights
|
||||
closely related to copyright including, without limitation,
|
||||
performance, broadcast, sound recording, and Sui Generis Database
|
||||
Rights, without regard to how the rights are labeled or
|
||||
categorized. For purposes of this Public License, the rights
|
||||
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
||||
Rights.
|
||||
|
||||
e. Effective Technological Measures means those measures that, in the
|
||||
absence of proper authority, may not be circumvented under laws
|
||||
fulfilling obligations under Article 11 of the WIPO Copyright
|
||||
Treaty adopted on December 20, 1996, and/or similar international
|
||||
agreements.
|
||||
|
||||
f. Exceptions and Limitations means fair use, fair dealing, and/or
|
||||
any other exception or limitation to Copyright and Similar Rights
|
||||
that applies to Your use of the Licensed Material.
|
||||
|
||||
g. License Elements means the license attributes listed in the name
|
||||
of a Creative Commons Public License. The License Elements of this
|
||||
Public License are Attribution and ShareAlike.
|
||||
|
||||
h. Licensed Material means the artistic or literary work, database,
|
||||
or other material to which the Licensor applied this Public
|
||||
License.
|
||||
|
||||
i. Licensed Rights means the rights granted to You subject to the
|
||||
terms and conditions of this Public License, which are limited to
|
||||
all Copyright and Similar Rights that apply to Your use of the
|
||||
Licensed Material and that the Licensor has authority to license.
|
||||
|
||||
j. Licensor means the individual(s) or entity(ies) granting rights
|
||||
under this Public License.
|
||||
|
||||
k. Share means to provide material to the public by any means or
|
||||
process that requires permission under the Licensed Rights, such
|
||||
as reproduction, public display, public performance, distribution,
|
||||
dissemination, communication, or importation, and to make material
|
||||
available to the public including in ways that members of the
|
||||
public may access the material from a place and at a time
|
||||
individually chosen by them.
|
||||
|
||||
l. Sui Generis Database Rights means rights other than copyright
|
||||
resulting from Directive 96/9/EC of the European Parliament and of
|
||||
the Council of 11 March 1996 on the legal protection of databases,
|
||||
as amended and/or succeeded, as well as other essentially
|
||||
equivalent rights anywhere in the world.
|
||||
|
||||
m. You means the individual or entity exercising the Licensed Rights
|
||||
under this Public License. Your has a corresponding meaning.
|
||||
|
||||
|
||||
Section 2 -- Scope.
|
||||
|
||||
a. License grant.
|
||||
|
||||
1. Subject to the terms and conditions of this Public License,
|
||||
the Licensor hereby grants You a worldwide, royalty-free,
|
||||
non-sublicensable, non-exclusive, irrevocable license to
|
||||
exercise the Licensed Rights in the Licensed Material to:
|
||||
|
||||
a. reproduce and Share the Licensed Material, in whole or
|
||||
in part; and
|
||||
|
||||
b. produce, reproduce, and Share Adapted Material.
|
||||
|
||||
2. Exceptions and Limitations. For the avoidance of doubt, where
|
||||
Exceptions and Limitations apply to Your use, this Public
|
||||
License does not apply, and You do not need to comply with
|
||||
its terms and conditions.
|
||||
|
||||
3. Term. The term of this Public License is specified in Section
|
||||
6(a).
|
||||
|
||||
4. Media and formats; technical modifications allowed. The
|
||||
Licensor authorizes You to exercise the Licensed Rights in
|
||||
all media and formats whether now known or hereafter created,
|
||||
and to make technical modifications necessary to do so. The
|
||||
Licensor waives and/or agrees not to assert any right or
|
||||
authority to forbid You from making technical modifications
|
||||
necessary to exercise the Licensed Rights, including
|
||||
technical modifications necessary to circumvent Effective
|
||||
Technological Measures. For purposes of this Public License,
|
||||
simply making modifications authorized by this Section 2(a)
|
||||
(4) never produces Adapted Material.
|
||||
|
||||
5. Downstream recipients.
|
||||
|
||||
a. Offer from the Licensor -- Licensed Material. Every
|
||||
recipient of the Licensed Material automatically
|
||||
receives an offer from the Licensor to exercise the
|
||||
Licensed Rights under the terms and conditions of this
|
||||
Public License.
|
||||
|
||||
b. Additional offer from the Licensor -- Adapted Material.
|
||||
Every recipient of Adapted Material from You
|
||||
automatically receives an offer from the Licensor to
|
||||
exercise the Licensed Rights in the Adapted Material
|
||||
under the conditions of the Adapter's License You apply.
|
||||
|
||||
c. No downstream restrictions. You may not offer or impose
|
||||
any additional or different terms or conditions on, or
|
||||
apply any Effective Technological Measures to, the
|
||||
Licensed Material if doing so restricts exercise of the
|
||||
Licensed Rights by any recipient of the Licensed
|
||||
Material.
|
||||
|
||||
6. No endorsement. Nothing in this Public License constitutes or
|
||||
may be construed as permission to assert or imply that You
|
||||
are, or that Your use of the Licensed Material is, connected
|
||||
with, or sponsored, endorsed, or granted official status by,
|
||||
the Licensor or others designated to receive attribution as
|
||||
provided in Section 3(a)(1)(A)(i).
|
||||
|
||||
b. Other rights.
|
||||
|
||||
1. Moral rights, such as the right of integrity, are not
|
||||
licensed under this Public License, nor are publicity,
|
||||
privacy, and/or other similar personality rights; however, to
|
||||
the extent possible, the Licensor waives and/or agrees not to
|
||||
assert any such rights held by the Licensor to the limited
|
||||
extent necessary to allow You to exercise the Licensed
|
||||
Rights, but not otherwise.
|
||||
|
||||
2. Patent and trademark rights are not licensed under this
|
||||
Public License.
|
||||
|
||||
3. To the extent possible, the Licensor waives any right to
|
||||
collect royalties from You for the exercise of the Licensed
|
||||
Rights, whether directly or through a collecting society
|
||||
under any voluntary or waivable statutory or compulsory
|
||||
licensing scheme. In all other cases the Licensor expressly
|
||||
reserves any right to collect such royalties.
|
||||
|
||||
|
||||
Section 3 -- License Conditions.
|
||||
|
||||
Your exercise of the Licensed Rights is expressly made subject to the
|
||||
following conditions.
|
||||
|
||||
a. Attribution.
|
||||
|
||||
1. If You Share the Licensed Material (including in modified
|
||||
form), You must:
|
||||
|
||||
a. retain the following if it is supplied by the Licensor
|
||||
with the Licensed Material:
|
||||
|
||||
i. identification of the creator(s) of the Licensed
|
||||
Material and any others designated to receive
|
||||
attribution, in any reasonable manner requested by
|
||||
the Licensor (including by pseudonym if
|
||||
designated);
|
||||
|
||||
ii. a copyright notice;
|
||||
|
||||
iii. a notice that refers to this Public License;
|
||||
|
||||
iv. a notice that refers to the disclaimer of
|
||||
warranties;
|
||||
|
||||
v. a URI or hyperlink to the Licensed Material to the
|
||||
extent reasonably practicable;
|
||||
|
||||
b. indicate if You modified the Licensed Material and
|
||||
retain an indication of any previous modifications; and
|
||||
|
||||
c. indicate the Licensed Material is licensed under this
|
||||
Public License, and include the text of, or the URI or
|
||||
hyperlink to, this Public License.
|
||||
|
||||
2. You may satisfy the conditions in Section 3(a)(1) in any
|
||||
reasonable manner based on the medium, means, and context in
|
||||
which You Share the Licensed Material. For example, it may be
|
||||
reasonable to satisfy the conditions by providing a URI or
|
||||
hyperlink to a resource that includes the required
|
||||
information.
|
||||
|
||||
3. If requested by the Licensor, You must remove any of the
|
||||
information required by Section 3(a)(1)(A) to the extent
|
||||
reasonably practicable.
|
||||
|
||||
b. ShareAlike.
|
||||
|
||||
In addition to the conditions in Section 3(a), if You Share
|
||||
Adapted Material You produce, the following conditions also apply.
|
||||
|
||||
1. The Adapter's License You apply must be a Creative Commons
|
||||
license with the same License Elements, this version or
|
||||
later, or a BY-SA Compatible License.
|
||||
|
||||
2. You must include the text of, or the URI or hyperlink to, the
|
||||
Adapter's License You apply. You may satisfy this condition
|
||||
in any reasonable manner based on the medium, means, and
|
||||
context in which You Share Adapted Material.
|
||||
|
||||
3. You may not offer or impose any additional or different terms
|
||||
or conditions on, or apply any Effective Technological
|
||||
Measures to, Adapted Material that restrict exercise of the
|
||||
rights granted under the Adapter's License You apply.
|
||||
|
||||
|
||||
Section 4 -- Sui Generis Database Rights.
|
||||
|
||||
Where the Licensed Rights include Sui Generis Database Rights that
|
||||
apply to Your use of the Licensed Material:
|
||||
|
||||
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
||||
to extract, reuse, reproduce, and Share all or a substantial
|
||||
portion of the contents of the database;
|
||||
|
||||
b. if You include all or a substantial portion of the database
|
||||
contents in a database in which You have Sui Generis Database
|
||||
Rights, then the database in which You have Sui Generis Database
|
||||
Rights (but not its individual contents) is Adapted Material,
|
||||
including for purposes of Section 3(b); and
|
||||
|
||||
c. You must comply with the conditions in Section 3(a) if You Share
|
||||
all or a substantial portion of the contents of the database.
|
||||
|
||||
For the avoidance of doubt, this Section 4 supplements and does not
|
||||
replace Your obligations under this Public License where the Licensed
|
||||
Rights include other Copyright and Similar Rights.
|
||||
|
||||
|
||||
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
||||
|
||||
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
||||
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
||||
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
||||
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
||||
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
||||
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
||||
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
||||
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
||||
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
||||
|
||||
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
||||
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
||||
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
||||
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
||||
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
||||
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
||||
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
||||
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
||||
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
||||
|
||||
c. The disclaimer of warranties and limitation of liability provided
|
||||
above shall be interpreted in a manner that, to the extent
|
||||
possible, most closely approximates an absolute disclaimer and
|
||||
waiver of all liability.
|
||||
|
||||
|
||||
Section 6 -- Term and Termination.
|
||||
|
||||
a. This Public License applies for the term of the Copyright and
|
||||
Similar Rights licensed here. However, if You fail to comply with
|
||||
this Public License, then Your rights under this Public License
|
||||
terminate automatically.
|
||||
|
||||
b. Where Your right to use the Licensed Material has terminated under
|
||||
Section 6(a), it reinstates:
|
||||
|
||||
1. automatically as of the date the violation is cured, provided
|
||||
it is cured within 30 days of Your discovery of the
|
||||
violation; or
|
||||
|
||||
2. upon express reinstatement by the Licensor.
|
||||
|
||||
For the avoidance of doubt, this Section 6(b) does not affect any
|
||||
right the Licensor may have to seek remedies for Your violations
|
||||
of this Public License.
|
||||
|
||||
c. For the avoidance of doubt, the Licensor may also offer the
|
||||
Licensed Material under separate terms or conditions or stop
|
||||
distributing the Licensed Material at any time; however, doing so
|
||||
will not terminate this Public License.
|
||||
|
||||
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
||||
License.
|
||||
|
||||
|
||||
Section 7 -- Other Terms and Conditions.
|
||||
|
||||
a. The Licensor shall not be bound by any additional or different
|
||||
terms or conditions communicated by You unless expressly agreed.
|
||||
|
||||
b. Any arrangements, understandings, or agreements regarding the
|
||||
Licensed Material not stated herein are separate from and
|
||||
independent of the terms and conditions of this Public License.
|
||||
|
||||
|
||||
Section 8 -- Interpretation.
|
||||
|
||||
a. For the avoidance of doubt, this Public License does not, and
|
||||
shall not be interpreted to, reduce, limit, restrict, or impose
|
||||
conditions on any use of the Licensed Material that could lawfully
|
||||
be made without permission under this Public License.
|
||||
|
||||
b. To the extent possible, if any provision of this Public License is
|
||||
deemed unenforceable, it shall be automatically reformed to the
|
||||
minimum extent necessary to make it enforceable. If the provision
|
||||
cannot be reformed, it shall be severed from this Public License
|
||||
without affecting the enforceability of the remaining terms and
|
||||
conditions.
|
||||
|
||||
c. No term or condition of this Public License will be waived and no
|
||||
failure to comply consented to unless expressly agreed to by the
|
||||
Licensor.
|
||||
|
||||
d. Nothing in this Public License constitutes or may be interpreted
|
||||
as a limitation upon, or waiver of, any privileges and immunities
|
||||
that apply to the Licensor or You, including from the legal
|
||||
processes of any jurisdiction or authority.
|
||||
|
||||
|
||||
=======================================================================
|
||||
|
||||
Creative Commons is not a party to its public
|
||||
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
||||
its public licenses to material it publishes and in those instances
|
||||
will be considered the “Licensor.” The text of the Creative Commons
|
||||
public licenses is dedicated to the public domain under the CC0 Public
|
||||
Domain Dedication. Except for the limited purpose of indicating that
|
||||
material is shared under a Creative Commons public license or as
|
||||
otherwise permitted by the Creative Commons policies published at
|
||||
creativecommons.org/policies, Creative Commons does not authorize the
|
||||
use of the trademark "Creative Commons" or any other trademark or logo
|
||||
of Creative Commons without its prior written consent including,
|
||||
without limitation, in connection with any unauthorized modifications
|
||||
to any of its public licenses or any other arrangements,
|
||||
understandings, or agreements concerning use of licensed material. For
|
||||
the avoidance of doubt, this paragraph does not form part of the
|
||||
public licenses.
|
||||
|
||||
Creative Commons may be contacted at creativecommons.org.
|
||||
@@ -0,0 +1,121 @@
|
||||
Creative Commons Legal Code
|
||||
|
||||
CC0 1.0 Universal
|
||||
|
||||
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
||||
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
||||
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
||||
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
||||
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
||||
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
||||
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
||||
HEREUNDER.
|
||||
|
||||
Statement of Purpose
|
||||
|
||||
The laws of most jurisdictions throughout the world automatically confer
|
||||
exclusive Copyright and Related Rights (defined below) upon the creator
|
||||
and subsequent owner(s) (each and all, an "owner") of an original work of
|
||||
authorship and/or a database (each, a "Work").
|
||||
|
||||
Certain owners wish to permanently relinquish those rights to a Work for
|
||||
the purpose of contributing to a commons of creative, cultural and
|
||||
scientific works ("Commons") that the public can reliably and without fear
|
||||
of later claims of infringement build upon, modify, incorporate in other
|
||||
works, reuse and redistribute as freely as possible in any form whatsoever
|
||||
and for any purposes, including without limitation commercial purposes.
|
||||
These owners may contribute to the Commons to promote the ideal of a free
|
||||
culture and the further production of creative, cultural and scientific
|
||||
works, or to gain reputation or greater distribution for their Work in
|
||||
part through the use and efforts of others.
|
||||
|
||||
For these and/or other purposes and motivations, and without any
|
||||
expectation of additional consideration or compensation, the person
|
||||
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
||||
is an owner of Copyright and Related Rights in the Work, voluntarily
|
||||
elects to apply CC0 to the Work and publicly distribute the Work under its
|
||||
terms, with knowledge of his or her Copyright and Related Rights in the
|
||||
Work and the meaning and intended legal effect of CC0 on those rights.
|
||||
|
||||
1. Copyright and Related Rights. A Work made available under CC0 may be
|
||||
protected by copyright and related or neighboring rights ("Copyright and
|
||||
Related Rights"). Copyright and Related Rights include, but are not
|
||||
limited to, the following:
|
||||
|
||||
i. the right to reproduce, adapt, distribute, perform, display,
|
||||
communicate, and translate a Work;
|
||||
ii. moral rights retained by the original author(s) and/or performer(s);
|
||||
iii. publicity and privacy rights pertaining to a person's image or
|
||||
likeness depicted in a Work;
|
||||
iv. rights protecting against unfair competition in regards to a Work,
|
||||
subject to the limitations in paragraph 4(a), below;
|
||||
v. rights protecting the extraction, dissemination, use and reuse of data
|
||||
in a Work;
|
||||
vi. database rights (such as those arising under Directive 96/9/EC of the
|
||||
European Parliament and of the Council of 11 March 1996 on the legal
|
||||
protection of databases, and under any national implementation
|
||||
thereof, including any amended or successor version of such
|
||||
directive); and
|
||||
vii. other similar, equivalent or corresponding rights throughout the
|
||||
world based on applicable law or treaty, and any national
|
||||
implementations thereof.
|
||||
|
||||
2. Waiver. To the greatest extent permitted by, but not in contravention
|
||||
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
||||
irrevocably and unconditionally waives, abandons, and surrenders all of
|
||||
Affirmer's Copyright and Related Rights and associated claims and causes
|
||||
of action, whether now known or unknown (including existing as well as
|
||||
future claims and causes of action), in the Work (i) in all territories
|
||||
worldwide, (ii) for the maximum duration provided by applicable law or
|
||||
treaty (including future time extensions), (iii) in any current or future
|
||||
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
||||
including without limitation commercial, advertising or promotional
|
||||
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
||||
member of the public at large and to the detriment of Affirmer's heirs and
|
||||
successors, fully intending that such Waiver shall not be subject to
|
||||
revocation, rescission, cancellation, termination, or any other legal or
|
||||
equitable action to disrupt the quiet enjoyment of the Work by the public
|
||||
as contemplated by Affirmer's express Statement of Purpose.
|
||||
|
||||
3. Public License Fallback. Should any part of the Waiver for any reason
|
||||
be judged legally invalid or ineffective under applicable law, then the
|
||||
Waiver shall be preserved to the maximum extent permitted taking into
|
||||
account Affirmer's express Statement of Purpose. In addition, to the
|
||||
extent the Waiver is so judged Affirmer hereby grants to each affected
|
||||
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
||||
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
||||
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
||||
maximum duration provided by applicable law or treaty (including future
|
||||
time extensions), (iii) in any current or future medium and for any number
|
||||
of copies, and (iv) for any purpose whatsoever, including without
|
||||
limitation commercial, advertising or promotional purposes (the
|
||||
"License"). The License shall be deemed effective as of the date CC0 was
|
||||
applied by Affirmer to the Work. Should any part of the License for any
|
||||
reason be judged legally invalid or ineffective under applicable law, such
|
||||
partial invalidity or ineffectiveness shall not invalidate the remainder
|
||||
of the License, and in such case Affirmer hereby affirms that he or she
|
||||
will not (i) exercise any of his or her remaining Copyright and Related
|
||||
Rights in the Work or (ii) assert any associated claims and causes of
|
||||
action with respect to the Work, in either case contrary to Affirmer's
|
||||
express Statement of Purpose.
|
||||
|
||||
4. Limitations and Disclaimers.
|
||||
|
||||
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
||||
surrendered, licensed or otherwise affected by this document.
|
||||
b. Affirmer offers the Work as-is and makes no representations or
|
||||
warranties of any kind concerning the Work, express, implied,
|
||||
statutory or otherwise, including without limitation warranties of
|
||||
title, merchantability, fitness for a particular purpose, non
|
||||
infringement, or the absence of latent or other defects, accuracy, or
|
||||
the present or absence of errors, whether or not discoverable, all to
|
||||
the greatest extent permissible under applicable law.
|
||||
c. Affirmer disclaims responsibility for clearing rights of other persons
|
||||
that may apply to the Work or any use thereof, including without
|
||||
limitation any person's Copyright and Related Rights in the Work.
|
||||
Further, Affirmer disclaims responsibility for obtaining any necessary
|
||||
consents, permissions or other rights required for any use of the
|
||||
Work.
|
||||
d. Affirmer understands and acknowledges that Creative Commons is not a
|
||||
party to this document and has no duty or obligation with respect to
|
||||
this CC0 or use of the Work.
|
||||
@@ -0,0 +1,232 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
“This License” refers to version 3 of the GNU General Public License.
|
||||
|
||||
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||
|
||||
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
|
||||
|
||||
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
|
||||
|
||||
A “covered work” means either the unmodified Program or a work based on the Program.
|
||||
|
||||
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||
|
||||
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
|
||||
|
||||
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||
|
||||
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
|
||||
|
||||
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||
|
||||
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||
|
||||
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||
|
||||
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
|
||||
|
||||
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||
|
||||
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
@@ -0,0 +1,59 @@
|
||||
;; -*- mode: scheme -*-
|
||||
;; SPDX-FileCopyrightText: 2023, 2024 Hilton Chain <hako@ultrarare.space>
|
||||
;;
|
||||
;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(channel-news
|
||||
(version 0)
|
||||
|
||||
(entry ;2025-09-05
|
||||
(commit "c171b73ae7e66e55b4fc60422bc030c5aade444c")
|
||||
(title (en "Manual intervention required for Caddy service change")
|
||||
(zh "Caddy 服務改動需要人爲干預"))
|
||||
(body (en "@code{caddy-service-type} has switched to @code{etc-service-type}
|
||||
to set up Caddy configuration file. Please remove the existing
|
||||
@file{/etc/caddy} directory before system reconfiguration.")
|
||||
(zh "@code{caddy-service-type} 已改爲使用 @code{etc-service-type} 設置
|
||||
配置文件。請在重新配置系統前刪除已有的 @file{/etc/caddy} 目錄。")))
|
||||
|
||||
(entry ;2024-12-08
|
||||
(commit "162defb8388b4099f6ae8699ec8872f845a2481e")
|
||||
(title (en "Hyprland upstreamed")
|
||||
(zh "Hyprland 已合併至上游"))
|
||||
(body (en "All Hyprland packages have been upstreamed to Guix and deleted in
|
||||
Rosenthal.")
|
||||
(zh "所有 Hyprland 相關軟件包已合併至 Guix 上游並在 Rosenthal 中刪除。")))
|
||||
|
||||
(entry ;2023-07-01
|
||||
(commit "ed1058c688a2655521beeba3e6295db2c0c1f274")
|
||||
(title (en "@code{qbittorrent-enhanced} upstreamed")
|
||||
(zh "@code{qbittorrent-enhanced} 已合併至上游"))
|
||||
(body (en "Packages @code{qbittorrent-enhanced} and
|
||||
@code{qbittorrent-enhanced-nox} are upstreamed to Guix, they are now available
|
||||
in module @code{(gnu packages bittorrent)}. Previously deprecated packages
|
||||
@code{qbittorrent-enhanced-edition} and @code{qbittorrent-enhanced-edition-nox}
|
||||
are no longer available.")
|
||||
(zh "@code{qbittorrent-enhanced} 與 @code{qbittorrent-enhanced-nox}
|
||||
已合併至 Guix 上游 @code{(gnu packages bittorrent)} 模塊。先前標記爲棄用的軟件包
|
||||
@code{qbittorrent-enhanced-edition} 及 @code{qbittorrent-enhanced-edition-nox}
|
||||
已不再可用。")))
|
||||
|
||||
(entry ;2023-07-01
|
||||
(commit "17106e7ed3d21544dfd80e77aa785e1e5781fb1c")
|
||||
(title (en "@code{linux-xanmod} merged to Nonguix")
|
||||
(zh "@code{linux-xanmod} 已合併至 Nonguix"))
|
||||
(body (en "Package @code{linux-xanmod} has been merged to channel
|
||||
@url{https://gitlab.com/nonguix/nonguix, Nonguix}, it's not available in
|
||||
Rosenthal any more.")
|
||||
(zh "@code{linux-xanmod} 已移出 Rosenthal,合併至
|
||||
@url{https://gitlab.com/nonguix/nonguix, Nonguix} 頻道。")))
|
||||
|
||||
(entry ;2023-06-17
|
||||
(commit "c3ed521085962524d78f4c7007e7d77535ae085e")
|
||||
(title (en "Channel moved to Codeberg")
|
||||
(zh "頻道已移至 Codeberg"))
|
||||
(body (en "Rosenthal has been moved to Codeberg and the GitHub repository
|
||||
will remain as a mirror. Changing the URL in your @file{channels.scm} to
|
||||
@url{https://codeberg.org/hako/rosenthal.git} is recommended.")
|
||||
(zh "Rosenthal 頻道已移至 Codeberg,先前的 GitHub 倉庫將用作鏡像。建議修改
|
||||
@file{channels.scm} 內 URL 爲 @url{https://codeberg.org/hako/rosenthal.git}。"))))
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
# SPDX-FileCopyrightText: 2022, 2024, 2025 Hilton Chain <hako@ultrarare.space>
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
#+TITLE: Rosenthal - A certain Guix channel
|
||||
|
||||
#+html: <a href="https://ci.guix.moe/jobset/rosenthal"><img src="https://ci.guix.moe/jobset/rosenthal/badge.svg?type=1"></a>
|
||||
|
||||
Rosenthal is a Guix channel (see [[https://guix.gnu.org/manual/devel/en/html_node/Channels.html][Channels]] in /GNU Guix Reference Manual/) created for experiments. It currently holds some packages and services not ready for upstreaming to [[https://guix.gnu.org/][GNU Guix]].
|
||||
|
||||
Substitutes for this channel are available via [[https://ci.guix.moe/][Guix Moe CI]], see [[https://ultrarare.space/en/posts/guix-build-farm/][its blog post]] for setup and more information. [[https://codeberg.org/hako/Testament/issues][Send a request]] if you'd like to see substitutes available for more channels.
|
||||
|
||||
You can use [[https://toys.whereis.social/][toys]] to search packages and services from Rosenthal and other Guix channels.
|
||||
|
||||
Note that all contents in this channel are subject to change and may be deleted **at any time**, please [[https://codeberg.org/hako/Rosenthal/issues][report an issue]] if you are affected.
|
||||
|
||||
Channel specification:
|
||||
#+begin_src scheme
|
||||
(channel
|
||||
(name 'rosenthal)
|
||||
(url "https://codeberg.org/hako/rosenthal.git")
|
||||
(branch "trunk")
|
||||
(introduction
|
||||
(make-channel-introduction
|
||||
"7677db76330121a901604dfbad19077893865f35"
|
||||
(openpgp-fingerprint
|
||||
"13E7 6CD6 E649 C28C 3385 4DF5 5E5A A665 6149 17F7"))))
|
||||
#+end_src
|
||||
|
||||
For configuration, see [[https://guix.gnu.org/manual/devel/en/html_node/Specifying-Additional-Channels.html][Specifying Additional Channels]], [[https://guix.gnu.org/manual/devel/en/html_node/Customizing-the-System_002dWide-Guix.html][Customizing the System-Wide Guix]] and [[https://guix.gnu.org/manual/devel/en/html_node/Guix-Home-Services.html#index-home_002dchannels_002dservice_002dtype][~home-channels-service-type~]] in /GNU Guix Reference Manual/.
|
||||
@@ -0,0 +1,6 @@
|
||||
version = 1
|
||||
|
||||
[[annotations]]
|
||||
path = ["modules/rosenthal/examples/wallpaper.jpg"]
|
||||
SPDX-FileCopyrightText = "Copyright © 2023 Hilton Chain <hako@ultrarare.space>"
|
||||
SPDX-License-Identifier = "CC-BY-SA-4.0"
|
||||
Executable
+462
@@ -0,0 +1,462 @@
|
||||
#!/usr/bin/env -S guix repl
|
||||
!#
|
||||
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
;;; Copyright © 2020, 2021, 2022, 2023 Ricardo Wurmus <rekado@elephly.net>
|
||||
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
|
||||
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
|
||||
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; This script stages and commits changes to package definitions.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(use-modules ((sxml xpath) #:prefix xpath:)
|
||||
(srfi srfi-1)
|
||||
(srfi srfi-2)
|
||||
(srfi srfi-9)
|
||||
(srfi srfi-11)
|
||||
(srfi srfi-26)
|
||||
(ice-9 format)
|
||||
(ice-9 popen)
|
||||
(ice-9 match)
|
||||
(ice-9 rdelim)
|
||||
(ice-9 regex)
|
||||
(ice-9 textual-ports)
|
||||
(guix gexp))
|
||||
|
||||
(define* (break-string str #:optional (max-line-length 70))
|
||||
"Break the string STR into lines that are no longer than MAX-LINE-LENGTH.
|
||||
Return a single string."
|
||||
(define (restore-line words)
|
||||
(string-join (reverse words) " "))
|
||||
(if (<= (string-length str) max-line-length)
|
||||
str
|
||||
(let ((words+lengths (map (lambda (word)
|
||||
(cons word (string-length word)))
|
||||
(string-tokenize str))))
|
||||
(match (fold (match-lambda*
|
||||
(((word . length)
|
||||
(count current lines))
|
||||
(let ((new-count (+ count length 1)))
|
||||
(if (< new-count max-line-length)
|
||||
(list new-count
|
||||
(cons word current)
|
||||
lines)
|
||||
(list length
|
||||
(list word)
|
||||
(cons (restore-line current) lines))))))
|
||||
'(0 () ())
|
||||
words+lengths)
|
||||
((_ last-words lines)
|
||||
(string-join (reverse (cons (restore-line last-words) lines))
|
||||
"\n"))))))
|
||||
|
||||
(define* (break-string-with-newlines str #:optional (max-line-length 70))
|
||||
"Break the lines of string STR into lines that are no longer than
|
||||
MAX-LINE-LENGTH. Return a single string."
|
||||
(string-join (map (cut break-string <> max-line-length)
|
||||
(string-split str #\newline))
|
||||
"\n"))
|
||||
|
||||
(define (read-excursion port)
|
||||
"Read an expression from PORT and reset the port position before returning
|
||||
the expression."
|
||||
(let ((start (ftell port))
|
||||
(result (read port)))
|
||||
(seek port start SEEK_SET)
|
||||
result))
|
||||
|
||||
(define (lines+offsets-with-opening-parens port)
|
||||
"Record all line numbers (and their offsets) where an opening parenthesis is
|
||||
found in column 0. The resulting list is in reverse order."
|
||||
(let loop ((acc '())
|
||||
(number 0))
|
||||
(let ((line (read-line port)))
|
||||
(cond
|
||||
((eof-object? line) acc)
|
||||
((string-prefix? "(" line)
|
||||
(loop (cons (cons number ;line number
|
||||
(- (ftell port)
|
||||
(string-length line) 1)) ;offset
|
||||
acc)
|
||||
(1+ number)))
|
||||
(else (loop acc (1+ number)))))))
|
||||
|
||||
(define (surrounding-sexp port target-line-no)
|
||||
"Return the top-level S-expression surrounding the change at line number
|
||||
TARGET-LINE-NO in PORT."
|
||||
(let* ((line-numbers+offsets
|
||||
(lines+offsets-with-opening-parens port))
|
||||
(closest-offset
|
||||
(or (and=> (list-index (match-lambda
|
||||
((line-number . offset)
|
||||
(< line-number target-line-no)))
|
||||
line-numbers+offsets)
|
||||
(lambda (index)
|
||||
(match (list-ref line-numbers+offsets index)
|
||||
((line-number . offset) offset))))
|
||||
(error "Could not find surrounding S-expression for line"
|
||||
target-line-no))))
|
||||
(seek port closest-offset SEEK_SET)
|
||||
(read port)))
|
||||
|
||||
;;; Whether the hunk contains a newly added package (definition), a removed
|
||||
;;; package (removal) or something else (#false).
|
||||
(define hunk-types '(addition removal #false))
|
||||
|
||||
(define-record-type <hunk>
|
||||
(make-hunk file-name
|
||||
old-line-number
|
||||
new-line-number
|
||||
diff-lines
|
||||
type)
|
||||
hunk?
|
||||
(file-name hunk-file-name)
|
||||
;; Line number before the change
|
||||
(old-line-number hunk-old-line-number)
|
||||
;; Line number after the change
|
||||
(new-line-number hunk-new-line-number)
|
||||
;; The full diff to be used with "git apply --cached"
|
||||
(diff-lines hunk-diff-lines)
|
||||
;; Does this hunk add or remove a package?
|
||||
(type hunk-type)) ;one of 'hunk-types'
|
||||
|
||||
(define* (hunk->patch hunk #:optional (port (current-output-port)))
|
||||
(let ((file-name (hunk-file-name hunk)))
|
||||
(format port
|
||||
"diff --git a/~a b/~a~%--- a/~a~%+++ b/~a~%~a"
|
||||
file-name file-name file-name file-name
|
||||
(string-join (hunk-diff-lines hunk) ""))))
|
||||
|
||||
(define (diff-info)
|
||||
"Read the diff and return a list of <hunk> values."
|
||||
(let ((port (open-pipe* OPEN_READ
|
||||
"git" "diff-files"
|
||||
"--no-prefix"
|
||||
;; Only include one context line to avoid lumping in
|
||||
;; new definitions with changes to existing
|
||||
;; definitions.
|
||||
"--unified=1"
|
||||
"--" "modules/rosenthal")))
|
||||
(define (extract-line-number line-tag)
|
||||
(abs (string->number
|
||||
(car (string-split line-tag #\,)))))
|
||||
(define (read-hunk)
|
||||
(let loop ((lines '())
|
||||
(type #false))
|
||||
(let ((line (read-line port 'concat)))
|
||||
(cond
|
||||
((eof-object? line)
|
||||
(values (reverse lines) type))
|
||||
((or (string-prefix? "@@ " line)
|
||||
(string-prefix? "diff --git" line))
|
||||
(unget-string port line)
|
||||
(values (reverse lines) type))
|
||||
(else
|
||||
(loop (cons line lines)
|
||||
(or type
|
||||
(cond
|
||||
((string-prefix? "+(define" line)
|
||||
'addition)
|
||||
((string-prefix? "-(define" line)
|
||||
'removal)
|
||||
(else #false)))))))))
|
||||
(define info
|
||||
(let loop ((acc '())
|
||||
(file-name #f))
|
||||
(let ((line (read-line port)))
|
||||
(cond
|
||||
((eof-object? line) acc)
|
||||
((string-prefix? "--- " line)
|
||||
(match (string-split line #\space)
|
||||
((_ file-name)
|
||||
(loop acc file-name))))
|
||||
((string-prefix? "@@ " line)
|
||||
(match (string-split line #\space)
|
||||
((_ old-start new-start . _)
|
||||
(let-values
|
||||
(((diff-lines type) (read-hunk)))
|
||||
(loop (cons (make-hunk file-name
|
||||
(extract-line-number old-start)
|
||||
(extract-line-number new-start)
|
||||
(cons (string-append line "\n")
|
||||
diff-lines)
|
||||
type) acc)
|
||||
file-name)))))
|
||||
(else (loop acc file-name))))))
|
||||
(close-pipe port)
|
||||
info))
|
||||
|
||||
(define (lines-to-first-change hunk)
|
||||
"Return the number of diff lines until the first change."
|
||||
(1- (count (lambda (line)
|
||||
((negate char-set-contains?)
|
||||
(char-set #\+ #\-)
|
||||
(string-ref line 0)))
|
||||
(hunk-diff-lines hunk))))
|
||||
|
||||
(define %original-file-cache
|
||||
(make-hash-table))
|
||||
|
||||
(define (read-original-file file-name)
|
||||
"Return the contents of FILE-NAME prior to any changes."
|
||||
(let* ((port (open-pipe* OPEN_READ
|
||||
"git" "cat-file" "-p" (string-append
|
||||
"HEAD:" file-name)))
|
||||
(contents (get-string-all port)))
|
||||
(close-pipe port)
|
||||
contents))
|
||||
|
||||
(define (read-original-file* file-name)
|
||||
"Caching variant of READ-ORIGINAL-FILE."
|
||||
(or (hashv-ref %original-file-cache file-name)
|
||||
(let ((value (read-original-file file-name)))
|
||||
(hashv-set! %original-file-cache file-name value)
|
||||
value)))
|
||||
|
||||
(define (old-sexp hunk)
|
||||
"Using the diff information in HUNK return the unmodified S-expression
|
||||
corresponding to the top-level definition containing the staged changes."
|
||||
;; TODO: We can't seek with a pipe port...
|
||||
(call-with-input-string (read-original-file* (hunk-file-name hunk))
|
||||
(lambda (port)
|
||||
(surrounding-sexp port
|
||||
(+ (lines-to-first-change hunk)
|
||||
(hunk-old-line-number hunk))))))
|
||||
|
||||
(define (new-sexp hunk)
|
||||
"Using the diff information in HUNK return the modified S-expression
|
||||
corresponding to the top-level definition containing the staged changes."
|
||||
(call-with-input-file (hunk-file-name hunk)
|
||||
(lambda (port)
|
||||
(surrounding-sexp port
|
||||
(+ (lines-to-first-change hunk)
|
||||
(hunk-new-line-number hunk))))))
|
||||
|
||||
(define* (change-commit-message file-name old new #:optional (port (current-output-port)))
|
||||
"Print ChangeLog commit message for changes between OLD and NEW."
|
||||
(define (get-values expr field)
|
||||
(match ((xpath:node-or
|
||||
(xpath:sxpath `(*any* *any* package ,field quasiquote *))
|
||||
;; For let binding
|
||||
(xpath:sxpath `(*any* *any* (*any*) package ,field quasiquote *)))
|
||||
(cons '*TOP* expr))
|
||||
(()
|
||||
;; New-style plain lists
|
||||
(match ((xpath:node-or
|
||||
(xpath:sxpath `(*any* *any* package ,field list *))
|
||||
;; For let binding
|
||||
(xpath:sxpath `(*any* *any* (*any*) package ,field list *)))
|
||||
(cons '*TOP* expr))
|
||||
((inner) inner)
|
||||
(_ '())))
|
||||
;; Old-style labelled inputs
|
||||
((first . rest)
|
||||
(map cadadr first))))
|
||||
(define (listify items)
|
||||
(match items
|
||||
((one) one)
|
||||
((one two)
|
||||
(string-append one " and " two))
|
||||
((one two . more)
|
||||
(string-append (string-join (drop-right items 1) ", ")
|
||||
", and " (first (take-right items 1))))))
|
||||
(define variable-name
|
||||
(second old))
|
||||
(define version
|
||||
(and=> ((xpath:node-or
|
||||
(xpath:sxpath '(*any* *any* package version *any*))
|
||||
;; For let binding
|
||||
(xpath:sxpath '(*any* *any* (*any*) package version *any*)))
|
||||
(cons '*TOP* new))
|
||||
first))
|
||||
(format port
|
||||
"rosenthal: ~a: Update to ~a.~%~%* ~a (~a): Update to ~a.~%"
|
||||
variable-name version file-name variable-name version)
|
||||
(for-each (lambda (field)
|
||||
(let ((old-values (get-values old field))
|
||||
(new-values (get-values new field)))
|
||||
(or (equal? old-values new-values)
|
||||
(let ((removed (lset-difference equal? old-values new-values))
|
||||
(added (lset-difference equal? new-values old-values)))
|
||||
(format port
|
||||
"[~a]: ~a~%" field
|
||||
(break-string
|
||||
;; A dependency can be a list of (pkg output).
|
||||
(match (list (map object->string removed)
|
||||
(map object->string added))
|
||||
((() added)
|
||||
(format #f "Add ~a."
|
||||
(listify added)))
|
||||
((removed ())
|
||||
(format #f "Remove ~a."
|
||||
(listify removed)))
|
||||
((removed added)
|
||||
(format #f "Remove ~a; add ~a."
|
||||
(listify removed)
|
||||
(listify added))))))))))
|
||||
'(inputs propagated-inputs native-inputs)))
|
||||
|
||||
(define* (add-commit-message file-name variable-name
|
||||
#:optional (port (current-output-port)))
|
||||
"Print ChangeLog commit message for a change to FILE-NAME adding a
|
||||
definition."
|
||||
(format port "rosenthal: Add ~a.~%~%* ~a (~a): New variable.~%"
|
||||
variable-name file-name variable-name))
|
||||
|
||||
(define* (remove-commit-message file-name variable-name
|
||||
#:optional (port (current-output-port)))
|
||||
"Print ChangeLog commit message for a change to FILE-NAME removing a
|
||||
definition."
|
||||
(format port "rosenthal: Remove ~a.~%~%* ~a (~a): Delete variable.~%"
|
||||
variable-name file-name variable-name))
|
||||
|
||||
(define* (custom-commit-message file-name variable-name message changelog
|
||||
#:optional (port (current-output-port)))
|
||||
"Print custom commit message for a change to VARIABLE-NAME in FILE-NAME, using
|
||||
MESSAGE as the commit message and CHANGELOG as the body of the ChangeLog
|
||||
entry. If CHANGELOG is #f, the commit message is reused. If CHANGELOG already
|
||||
contains ': ', no colon is inserted between the location and body of the
|
||||
ChangeLog entry."
|
||||
(define (trim msg)
|
||||
(string-trim-right (string-trim-both msg) (char-set #\.)))
|
||||
|
||||
(define (changelog-has-location? changelog)
|
||||
(->bool (string-match "^[[:graph:]]+:[[:blank:]]" changelog)))
|
||||
|
||||
(let* ((message (trim message))
|
||||
(changelog (if changelog (trim changelog) message))
|
||||
(message/f (format #f "rosenthal: ~a: ~a." variable-name message))
|
||||
(changelog/f (if (changelog-has-location? changelog)
|
||||
(format #f "* ~a (~a)~a."
|
||||
file-name variable-name changelog)
|
||||
(format #f "* ~a (~a): ~a."
|
||||
file-name variable-name changelog))))
|
||||
(format port
|
||||
"~a~%~%~a~%"
|
||||
(break-string-with-newlines message/f 72)
|
||||
(break-string-with-newlines changelog/f 72))))
|
||||
|
||||
(define (add-copyright-line line)
|
||||
"Add the copyright line on LINE to the previous commit."
|
||||
(let ((author (match:substring
|
||||
(string-match "^\\+;;; Copyright ©[^[:alpha:]]+(.*)$" line)
|
||||
1)))
|
||||
(format
|
||||
(current-output-port) "Amend and add copyright line for ~a~%" author)
|
||||
(system* "git" "commit" "--amend" "--no-edit")))
|
||||
|
||||
(define (group-hunks-by-sexp hunks)
|
||||
"Return a list of pairs associating all hunks with the S-expression they are
|
||||
modifying."
|
||||
(fold (lambda (sexp hunk acc)
|
||||
(match acc
|
||||
(((previous-sexp . hunks) . rest)
|
||||
(if (equal? sexp previous-sexp)
|
||||
(cons (cons previous-sexp
|
||||
(cons hunk hunks))
|
||||
rest)
|
||||
(cons (cons sexp (list hunk))
|
||||
acc)))
|
||||
(_
|
||||
(cons (cons sexp (list hunk))
|
||||
acc))))
|
||||
'()
|
||||
(map new-sexp hunks)
|
||||
hunks))
|
||||
|
||||
(define (new+old+hunks hunks)
|
||||
(map (match-lambda
|
||||
((new . hunks)
|
||||
(cons* new (old-sexp (first hunks)) hunks)))
|
||||
(group-hunks-by-sexp hunks)))
|
||||
|
||||
(define %delay 1000)
|
||||
|
||||
(define (main . args)
|
||||
(define* (change-commit-message* file-name old new #:rest rest)
|
||||
(let ((changelog #f))
|
||||
(match args
|
||||
((or (message changelog) (message))
|
||||
(apply custom-commit-message
|
||||
file-name (second old) message changelog rest))
|
||||
(_
|
||||
(apply change-commit-message file-name old new rest)))))
|
||||
|
||||
(read-disable 'positions)
|
||||
(match (diff-info)
|
||||
(()
|
||||
(display "Nothing to be done.\n" (current-error-port)))
|
||||
(hunks
|
||||
(let-values (((definitions changes) (partition hunk-type hunks)))
|
||||
;; Additions/removals.
|
||||
(for-each
|
||||
(lambda (hunk)
|
||||
(and-let* ((define-line (find (cut string-match "(\\+|-)\\(define" <>)
|
||||
(hunk-diff-lines hunk)))
|
||||
(variable-name (and=> (string-tokenize define-line)
|
||||
second))
|
||||
(commit-message-proc (match (hunk-type hunk)
|
||||
('addition add-commit-message)
|
||||
('removal remove-commit-message))))
|
||||
(commit-message-proc (hunk-file-name hunk) variable-name)
|
||||
(let ((port (open-pipe* OPEN_WRITE
|
||||
"git" "apply"
|
||||
"--cached"
|
||||
"--unidiff-zero")))
|
||||
(hunk->patch hunk port)
|
||||
(unless (eqv? 0 (status:exit-val (close-pipe port)))
|
||||
(error "Cannot apply")))
|
||||
|
||||
(let ((port (open-pipe* OPEN_WRITE "git" "commit" "-F" "-")))
|
||||
(commit-message-proc (hunk-file-name hunk) variable-name port)
|
||||
(usleep %delay)
|
||||
(unless (eqv? 0 (status:exit-val (close-pipe port)))
|
||||
(error "Cannot commit"))))
|
||||
(usleep %delay))
|
||||
definitions)
|
||||
|
||||
;; Changes.
|
||||
(for-each
|
||||
(match-lambda
|
||||
((new old . hunks)
|
||||
(for-each (lambda (hunk)
|
||||
(let ((port (open-pipe* OPEN_WRITE
|
||||
"git" "apply"
|
||||
"--cached"
|
||||
"--unidiff-zero")))
|
||||
(hunk->patch hunk port)
|
||||
(unless (eqv? 0 (status:exit-val (close-pipe port)))
|
||||
(error "Cannot apply")))
|
||||
(usleep %delay))
|
||||
hunks)
|
||||
(define copyright-line
|
||||
(any (lambda (line) (and=> (string-prefix? "+;;; Copyright ©" line)
|
||||
(const line)))
|
||||
(hunk-diff-lines (first hunks))))
|
||||
(cond
|
||||
(copyright-line
|
||||
(add-copyright-line copyright-line))
|
||||
(else
|
||||
(let ((port (open-pipe* OPEN_WRITE "git" "commit" "-F" "-")))
|
||||
(change-commit-message* (hunk-file-name (first hunks))
|
||||
old new)
|
||||
(change-commit-message* (hunk-file-name (first hunks))
|
||||
old new
|
||||
port)
|
||||
(usleep %delay)
|
||||
(unless (eqv? 0 (status:exit-val (close-pipe port)))
|
||||
(error "Cannot commit")))))))
|
||||
(new+old+hunks (match definitions
|
||||
('() changes) ;reuse
|
||||
(_
|
||||
;; XXX: we recompute the hunks here because previous
|
||||
;; insertions lead to offsets.
|
||||
(let-values (((definitions changes)
|
||||
(partition hunk-type (diff-info))))
|
||||
changes)))))))))
|
||||
|
||||
(apply main (cdr (command-line)))
|
||||
@@ -0,0 +1,8 @@
|
||||
;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;
|
||||
;; SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
(use-modules (guix profiles)
|
||||
(rosenthal utils packages))
|
||||
|
||||
(manifest (map package->manifest-entry (all-rosenthal-packages)))
|
||||
@@ -0,0 +1,10 @@
|
||||
;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;
|
||||
;; SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
(use-modules (guix profiles)
|
||||
(rosenthal utils packages))
|
||||
|
||||
(manifest (map package->manifest-entry
|
||||
(filter (negate rosenthal-disable-updater?)
|
||||
(all-rosenthal-packages))))
|
||||
@@ -0,0 +1,13 @@
|
||||
;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;
|
||||
;; SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
(use-modules (guix packages)
|
||||
(guix profiles)
|
||||
(rosenthal utils packages))
|
||||
|
||||
(manifest (map package->manifest-entry
|
||||
(filter (lambda (p)
|
||||
(and (rosenthal-disable-updater? p)
|
||||
(not (hidden-package? p))))
|
||||
(all-rosenthal-packages))))
|
||||
@@ -0,0 +1,52 @@
|
||||
;;; SPDX-FileCopyrightText: 2024-2025 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(use-modules (guix memoization)
|
||||
(guix packages)
|
||||
(guix profiles)
|
||||
(guix store)
|
||||
(guix transformations)
|
||||
(rosenthal utils packages)
|
||||
((guix import github) #:select (%github-api))
|
||||
((guix scripts build) #:select (dependents)))
|
||||
|
||||
;; Bypass the GitHub updater: we'd need an API token or we would hit the rate
|
||||
;; limit.
|
||||
(%github-api "http://example.org")
|
||||
|
||||
(define latest-version
|
||||
(mlambdaq (package)
|
||||
(package-with-upstream-version package
|
||||
;; Preserve patches and snippets to get
|
||||
;; exactly the same as what we'd have with
|
||||
;; 'guix refresh -u PACKAGE'.
|
||||
#:preserve-patches? #t
|
||||
|
||||
;; XXX: Disable source code authentication:
|
||||
;; this requires a local keyring, populated
|
||||
;; from key servers, but key servers may be
|
||||
;; unreliable or may lack the upstream
|
||||
;; keys. Leave it up to packagers to
|
||||
;; actually authenticate code and make sure
|
||||
;; it matches what this manifest computed.
|
||||
#:authenticate? #f)))
|
||||
|
||||
(define updatable-packages
|
||||
(filter (negate rosenthal-disable-updater?)
|
||||
(all-rosenthal-packages)))
|
||||
|
||||
(manifest
|
||||
(with-store store
|
||||
(let ((update-all (package-input-rewriting
|
||||
(map (lambda (package)
|
||||
`(,package . ,(latest-version package)))
|
||||
updatable-packages)
|
||||
#:recursive? #t)))
|
||||
(map (lambda (package)
|
||||
(manifest-entry
|
||||
(inherit (package->manifest-entry
|
||||
(update-all package)))
|
||||
(name (string-append (package-name package) "-full-upgrade"))))
|
||||
(dependents store updatable-packages 2)))))
|
||||
@@ -1,29 +0,0 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mDMEX0JnRRYJKwYBBAHaRw8BAQdAAVK4rxRUJLcuJmVczYnjdU5wMzhTM2SDY42y
|
||||
yRpMXtGIeAQgFggAIBYhBBPnbNbmScKMM4VN9V5apmVhSRf3BQJjvuJxAh0BAAoJ
|
||||
EF5apmVhSRf33kYBAKvz1BKp+SWiKnAF4xCCdktj+yK8dWWjgd8BzXMZukgKAQDY
|
||||
f9RErqLzQxzsNIkiAN16oAS0hRvpXa5fOUJAADxgBLQjSGlsdG9uIENoYWluIDxo
|
||||
YWtvQHVsdHJhcmFyZS5zcGFjZT6IkAQTFgoAOAIbAwULCQgHAgYVCgkICwIEFgID
|
||||
AQIeAQIXgBYhBBPnbNbmScKMM4VN9V5apmVhSRf3BQJjvqgrAAoJEF5apmVhSRf3
|
||||
9FIA/1G9sWit+1LFvqoc5ZS3UJrS8SjqUKktQPtuuUvD76RWAQC8gP2/UlLa1gk5
|
||||
PLyJewPNIytwfS5rYqw9mO3LKF5zBLg4BF9CZ0USCisGAQQBl1UBBQEBB0DaXDt5
|
||||
85Mvfi/YJZhYraDRmJNCV4MYht1tzIucwzAaBAMBCAeIfgQYFgoAJgIbDBYhBBPn
|
||||
bNbmScKMM4VN9V5apmVhSRf3BQJjvYE2BQkGXE1xAAoJEF5apmVhSRf3vmIBAN/R
|
||||
VVu/GXAcoMbycaHGNrfv953wr3+gkuA1EHpOYSzPAP9e7tAoZS/9koBP77qHTfFv
|
||||
qlB8VrlT8kC1xUUTSqtZDLkCDQRfSK4lARAAsn6zp01vZhXtk9OAG27HXXcxVEyC
|
||||
d8Rc3aK7npUaojrQmmwgxnpc91Mu21QweYuOL06mJmYVnH0waTD+jjJekVBM2J4Z
|
||||
EINVzB9SqrBRBbzQfGnIZxNSnJB0mJh0f38vDzetdB/SVAA4XOH4xnhsYoe68diE
|
||||
FI+gr7LTxT4vH41rO058jm+YrY1CNWYGUtMCymJOLXzOHErPOl5AbXgyci3bcU4U
|
||||
47Wbe2hW6ZXUXl6rbOxqTtcrgSQyqvmEaoE/5e9E1KgTm2BtrqHnk08PVVQwtG9n
|
||||
TkUN67abrVDXzob44bJzQahwhRSN0+NbzQIxrxtgzVm7R2kGwVIz3LG6R2PpuPU5
|
||||
DVisTVmCH2xSz2AB9CpC6Ka3m/rI9eSnB8jLYMIuZlx4HIlmR6LWwlafQ6R8FT/4
|
||||
45lW7su13v8VOmQsxo0Rbt3qcpfq/+Xqv7klgJePy7+Bl+3mQHu2dDFBv6B+RC8K
|
||||
IrThJKwYFI4ueqpJyTQxG5D2hBDtCY4Ir4lZt/skR52YkowTNVfraIEzFZtXZKKa
|
||||
wn73vC9VXezWw8Y7KjXJoDsSDqJeiLar+yNHialGzUXCRZPpdjmd8gGsVXlR19cO
|
||||
LpXgHT1nvxEJ46v7HPgth//qfslzymnLIKB0Fv2oQ9FF0fHRkI4n4WWDuGTYH2ow
|
||||
fU6kV03lOICQH3MAEQEAAYh+BBgWCgAmAhsgFiEEE+ds1uZJwowzhU31XlqmZWFJ
|
||||
F/cFAmO9gTYFCQZWBpEACgkQXlqmZWFJF/c3aQEA8KmcNz8Qoq7Se3sWBIiC5pkI
|
||||
SfQok5Xx0Bj0G5oxHO0BAN8NBPgBWaiFuMPzlfGYZRvgNT11yJWImiEd8US7kDAM
|
||||
=C6KE
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
@@ -1,26 +0,0 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mDMEY76vuxYJKwYBBAHaRw8BAQdAAPIY7wvHRRZ+OoHYHErO6mago//xW3q2K2dk
|
||||
aCBt/Y+0I0hpbHRvbiBDaGFpbiA8aGFrb0B1bHRyYXJhcmUuc3BhY2U+iJAEExYI
|
||||
ADgWIQQiD5jZXoYgTAA22ntt7ENgQItBhQUCY76vuwIbAQULCQgHAgYVCgkICwIE
|
||||
FgIDAQIeAQIXgAAKCRBt7ENgQItBhTwwAP9oCOAPHWXX1nncKKanSFXmg0Iu4DRk
|
||||
PLp6HTn2nCjVUgEAgq3clIMpcxufXJUL1ivA54jV/kRaPMYZ2059tC2GRwOIdQQQ
|
||||
FggAHRYhBBPnbNbmScKMM4VN9V5apmVhSRf3BQJjvtMBAAoJEF5apmVhSRf3NnUA
|
||||
/Al++sCYE50J88GEIpUycQ+A+P0371tdPaNmgzKge6yLAP9DMFiLjZb1q5mp1Kxr
|
||||
nEW7SziKiZSXbm+dxY3EPyg3C7gzBGO+0cwWCSsGAQQB2kcPAQEHQDocmVXQu4sG
|
||||
1nY5GrIQuVOlTLTpUxvk2r2vQNCr+gOKiPUEGBYIACYCGwIWIQQiD5jZXoYgTAA2
|
||||
2ntt7ENgQItBhQUCY77SGgUJAeEzzgCBdiAEGRYIAB0WIQT0wtHfP97qY9HTB3as
|
||||
xm0JylKCkgUCY77RzAAKCRCsxm0JylKCkjfsAQC+jPs2l5O1jxHBIJSF+Lba9yO8
|
||||
2snyTGm7puf7TkunIQD+Kph74xJ9/a89sKEQb1fU9C/LfI+Q7y8k/paa5p5XCA0J
|
||||
EG3sQ2BAi0GF8qwBAONLPS+PqncyxOfKLcK28pG9Xrmt12Tt8sEgyhJwj56SAP4v
|
||||
H5SBgrnwFdWeSbiA9WzaUHIUwTGA1JWR7f2zV0RwALg4BGO+0eUSCisGAQQBl1UB
|
||||
BQEBB0CR+twFCJIziLy4YIqdBNWw+D4PmntXZdg6CyseZNEvDQMBCAeIfgQYFggA
|
||||
JgIbDBYhBCIPmNlehiBMADbae23sQ2BAi0GFBQJjvtIkBQkB4TO1AAoJEG3sQ2BA
|
||||
i0GF5bgA/iExz0yLH+PflRVVusfHWv4ThDFHnHuxrwC4YytaFhr1AQC50TIvLxHD
|
||||
rlBvCb53tk6aCBY2xcuEQ5DNbIhmRv9MArgzBGO+0fkWCSsGAQQB2kcPAQEHQFcT
|
||||
j1N3cL/bh2Uvwh5/YubhZplPFnvGk/iVHQs3FWV2iH4EGBYIACYCGyAWIQQiD5jZ
|
||||
XoYgTAA22ntt7ENgQItBhQUCY77SJAUJAeEzoQAKCRBt7ENgQItBhQLOAP433Y//
|
||||
b4tMpPrr3DlD3kxNxpQ7kcpIkKaajI/rby/qjQD+JAGjhGut4/x9MYPXLbNW/wqo
|
||||
D+UMrp0bQ/Lkc72J3gM=
|
||||
=AqnV
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
@@ -0,0 +1,41 @@
|
||||
;;; SPDX-FileCopyrightText: 2024, 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (guix import rosenthal-updaters)
|
||||
#:use-module (srfi srfi-71)
|
||||
#:use-module (web client)
|
||||
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix records)
|
||||
#:use-module (guix upstream)
|
||||
#:export (%cloudflare-warp-updater))
|
||||
|
||||
(define* (cloudflare-warp-import pkg #:key version partial-version?)
|
||||
(let* ((source-uri (assq-ref (package-properties pkg) 'release-monitoring-url))
|
||||
(response port (http-get source-uri #:streaming? #t))
|
||||
(content (recutils->alist port))
|
||||
(_ (close port))
|
||||
(name (package-upstream-name pkg))
|
||||
(newest-version
|
||||
(or version
|
||||
(assoc-ref content "Version")))
|
||||
(url
|
||||
(if version
|
||||
(string-append "https://pkg.cloudflareclient.com/"
|
||||
"pool/bookworm/main/c/cloudflare-warp/"
|
||||
"cloudflare-warp_" version "_amd64.deb")
|
||||
(string-append "https://pkg.cloudflareclient.com/"
|
||||
(assoc-ref content "Filename")))))
|
||||
(upstream-source
|
||||
(package name)
|
||||
(version newest-version)
|
||||
(urls (list url)))))
|
||||
|
||||
(define %cloudflare-warp-updater
|
||||
(upstream-updater
|
||||
(name 'cloudflare-warp)
|
||||
(description "Updater for Cloudflare WARP client")
|
||||
(pred (lambda (package)
|
||||
(string=? "cloudflare-warp" (package-upstream-name package))))
|
||||
(import cloudflare-warp-import)))
|
||||
@@ -0,0 +1,35 @@
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal))
|
||||
|
||||
;; Re-export commonly-used modules.
|
||||
|
||||
(eval-when (eval load compile)
|
||||
(begin
|
||||
(define %public-modules
|
||||
'((gnu)
|
||||
(guix utils)
|
||||
(rosenthal utils file)
|
||||
(rosenthal utils packages)
|
||||
(rosenthal utils transformations)
|
||||
|
||||
(rosenthal bootloader grub)
|
||||
(rosenthal bootloader uki)
|
||||
|
||||
(gnu services desktop)
|
||||
(gnu services guix)
|
||||
(gnu services shepherd)
|
||||
(rosenthal services base)
|
||||
(rosenthal services desktop)
|
||||
|
||||
(gnu home)
|
||||
(gnu home services)
|
||||
(gnu home services desktop)
|
||||
(gnu home services shepherd)))
|
||||
|
||||
(for-each (let ((i (module-public-interface (current-module))))
|
||||
(lambda (m)
|
||||
(module-use! i (resolve-interface m))))
|
||||
%public-modules)))
|
||||
@@ -0,0 +1,23 @@
|
||||
;;; SPDX-FileCopyrightText: 2023 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal bootloader grub)
|
||||
#:use-module (gnu bootloader)
|
||||
#:use-module (gnu bootloader grub)
|
||||
#:use-module (rosenthal packages bootloaders)
|
||||
#:export (grub-efi-luks2-bootloader
|
||||
grub-efi-luks2-removable-bootloader))
|
||||
|
||||
(define grub-efi-luks2-bootloader
|
||||
(bootloader
|
||||
(inherit grub-efi-bootloader)
|
||||
;; NOTE: Don't change the name. Generation switching code only knows
|
||||
;; bootloaders defined in (gnu bootloader grub).
|
||||
(name 'grub-efi)
|
||||
(package grub-efi-luks2)))
|
||||
|
||||
(define grub-efi-luks2-removable-bootloader
|
||||
(bootloader
|
||||
(inherit grub-efi-removable-bootloader)
|
||||
(package grub-efi-luks2)))
|
||||
@@ -0,0 +1,66 @@
|
||||
;;; Copyright © 2024 Lilah Tascheter <lilah@lunabee.space>
|
||||
;;; Copyright © 2024, 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal bootloader uki)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix modules)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (gnu bootloader)
|
||||
#:use-module (rosenthal packages bootloaders)
|
||||
#:export (uefi-uki-removable-bootloader))
|
||||
|
||||
(define script-path "/boot/install-uki.scm")
|
||||
|
||||
(define (uefi-uki-configuration-file config entries . rest)
|
||||
|
||||
(define (menu-entry->ukify-args entry)
|
||||
(let* ((label (menu-entry-label entry))
|
||||
(linux (menu-entry-linux entry))
|
||||
(initrd (menu-entry-initrd entry))
|
||||
(arguments (menu-entry-linux-arguments entry))
|
||||
(boot (bootloader-configuration-bootloader config))
|
||||
(stub (bootloader-package boot)))
|
||||
#~(list "--os-release" #$label
|
||||
"--linux" #$linux
|
||||
"--initrd" #$initrd
|
||||
"--cmdline" (string-join (list #$@arguments))
|
||||
"--stub" #$(file-append stub "/libexec/" (systemd-stub-name)))))
|
||||
|
||||
(program-file "install-uki"
|
||||
(with-imported-modules (source-module-closure '((guix build utils)))
|
||||
#~(begin
|
||||
(use-modules (srfi srfi-1)
|
||||
(guix build utils))
|
||||
(let* ((ukify #$(file-append ukify "/bin/ukify"))
|
||||
(installation-path
|
||||
(format #f "~a/EFI/BOOT/BOOT~a.EFI"
|
||||
(second (command-line))
|
||||
#$(cond
|
||||
((target-x86-32?) "IA32")
|
||||
((target-x86-64?) "X64")
|
||||
((target-arm32?) "ARM")
|
||||
((target-aarch64?) "AA64")
|
||||
((target-riscv64?) "RISCV64")))))
|
||||
(mkdir-p (dirname installation-path))
|
||||
(apply invoke ukify "build" "--output" installation-path
|
||||
#$(menu-entry->ukify-args (first entries))))))))
|
||||
|
||||
(define install-uefi-uki
|
||||
#~(lambda (bootloader target mount-point)
|
||||
(invoke (string-append mount-point #$script-path)
|
||||
(string-append mount-point target))))
|
||||
|
||||
;; ‘configuration-file’ here is actually an activation script to be invoked by
|
||||
;; ‘installer’.
|
||||
;; FIXME: Not expected by ‘reinstall-bootloader’ in (guix scripts system).
|
||||
;; NOTE: Faking name here to support rolling-back with '--no-bootloader' option.
|
||||
(define uefi-uki-removable-bootloader
|
||||
(bootloader
|
||||
(name 'grub-efi-removable-bootloader)
|
||||
(package systemd-stub)
|
||||
(installer install-uefi-uki)
|
||||
(disk-image-installer #f)
|
||||
(configuration-file script-path)
|
||||
(configuration-file-generator uefi-uki-configuration-file)))
|
||||
@@ -0,0 +1,61 @@
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal ci tarball)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (guix derivations)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix monads)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix profiles)
|
||||
#:use-module (guix store)
|
||||
#:use-module (guix scripts pack)
|
||||
#:use-module (gnu ci)
|
||||
#:use-module (gnu compression)
|
||||
#:use-module (rosenthal packages package-management)
|
||||
#:export (cuirass-jobs))
|
||||
|
||||
;; Copied from (@@ (gnu ci) tarball-jobs).
|
||||
(define (tarball-jobs store system)
|
||||
"Return jobs to build the self-contained Guix binary tarball."
|
||||
(define (->job name drv)
|
||||
(let ((name (string-append name "." system)))
|
||||
(parameterize ((%graft? #f))
|
||||
(derivation->job name drv))))
|
||||
|
||||
(list
|
||||
(->job "binary-tarball"
|
||||
(run-with-store store
|
||||
(mbegin %store-monad
|
||||
(set-guile-for-build (default-guile))
|
||||
(>>= (profile-derivation (packages->manifest (list guix/dolly)))
|
||||
(lambda (profile)
|
||||
(self-contained-tarball "guix-binary" profile
|
||||
#:profile-name "current-guix"
|
||||
#:localstatedir? #t
|
||||
#:compressor
|
||||
(lookup-compressor "xz")))))
|
||||
#:system system))))
|
||||
|
||||
;; Copied from (@@ (gnu ci) cuirass-jobs).
|
||||
(define (cuirass-jobs store arguments)
|
||||
"Register Cuirass jobs."
|
||||
|
||||
(define systems
|
||||
(arguments->systems arguments))
|
||||
|
||||
;; Turn off grafts. Grafting is meant to happen on the user's machines.
|
||||
(parameterize ((%graft? #f))
|
||||
;; Return one job for each package, except bootstrap packages.
|
||||
(append-map
|
||||
(lambda (system)
|
||||
(format (current-error-port)
|
||||
"evaluating for '~a' (heap size: ~a MiB)...~%"
|
||||
system
|
||||
(round
|
||||
(/ (assoc-ref (gc-stats) 'heap-size)
|
||||
(expt 2. 20))))
|
||||
(invalidate-derivation-caches!)
|
||||
(tarball-jobs store system))
|
||||
systems)))
|
||||
@@ -0,0 +1,70 @@
|
||||
;;; -*- lexical-binding: t -*-
|
||||
;;; SPDX-FileCopyrightText: DogLooksGood <doglooksgood@hotmail.com>
|
||||
;;; SPDX-FileCopyrightText: 2022 Nyk Ma <i@nyk.ma>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
;; https://github.com/DogLooksGood/meomacs/blob/master/laf.org
|
||||
;; https://github.com/nykma/nema/blob/develop/my-sample/font.el
|
||||
|
||||
(defvar nema--font-size 12 "Font size")
|
||||
(defvar nema-fonts '((mono . "monospace")
|
||||
(sans . "sans")
|
||||
(serif . "serif")
|
||||
(cjk . "Noto Serif CJK SC")
|
||||
(symbol . "Noto Color Emoji")
|
||||
(modeline . "Source Serif 4"))
|
||||
"Fonts to use.")
|
||||
|
||||
(defun nema//get-font-family (key)
|
||||
(alist-get key nema-fonts))
|
||||
|
||||
(defun nema//generate-font-spec (key)
|
||||
(format "%s-%d"
|
||||
(nema//get-font-family key)
|
||||
nema--font-size))
|
||||
|
||||
(defun nema//load-base-font ()
|
||||
"Load the default font for ascii characters."
|
||||
(let* ((font-spec (nema//generate-font-spec 'mono)))
|
||||
(set-frame-parameter nil 'font font-spec)
|
||||
(add-to-list 'default-frame-alist (cons 'font font-spec))))
|
||||
|
||||
(defun nema//load-face-font ()
|
||||
"Load fonts used in faces.
|
||||
|
||||
This function must be called after frame creation."
|
||||
(let ((mono (nema//generate-font-spec 'mono))
|
||||
(sans (nema//generate-font-spec 'sans))
|
||||
(serif (nema//generate-font-spec 'sans-serif))
|
||||
(modeline (nema//generate-font-spec 'modeline)))
|
||||
(set-face-attribute 'variable-pitch nil :font sans)
|
||||
(set-face-attribute 'variable-pitch-text nil :font serif)
|
||||
(set-face-attribute 'fixed-pitch nil :font mono)
|
||||
(set-face-attribute 'fixed-pitch-serif nil :font mono)
|
||||
(set-face-attribute 'mode-line nil :font modeline)
|
||||
(set-face-attribute 'mode-line-inactive nil :font modeline)))
|
||||
|
||||
(defun nema//load-ext-font ()
|
||||
"Load fonts used for non-ascii characters.
|
||||
|
||||
This function must be called after frame creation."
|
||||
(let ((font (frame-parameter nil 'font))
|
||||
(font-spec-cjk (font-spec :family (nema//get-font-family 'cjk)))
|
||||
(font-spec-symbol (font-spec :family (nema//get-font-family 'symbol))))
|
||||
(dolist (charset '(kana han hangul cjk-misc bopomofo))
|
||||
(set-fontset-font font charset font-spec-cjk))
|
||||
(set-fontset-font font 'symbol font-spec-symbol)))
|
||||
|
||||
(defun nema/load-font ()
|
||||
"Load all font configuration."
|
||||
(interactive)
|
||||
(when (display-graphic-p)
|
||||
(nema//load-base-font)
|
||||
(nema//load-ext-font)
|
||||
(nema//load-face-font)))
|
||||
|
||||
(if (daemonp)
|
||||
(add-hook 'server-after-make-frame-hook #'nema/load-font)
|
||||
;; Else: not in daemon
|
||||
(add-hook 'after-init-hook #'nema/load-font))
|
||||
@@ -0,0 +1,314 @@
|
||||
;;; -*- lexical-binding: t -*-
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(setopt custom-file (locate-user-emacs-file "custom.el"))
|
||||
(if (not (file-exists-p custom-file))
|
||||
(make-empty-file custom-file)
|
||||
(load custom-file))
|
||||
|
||||
(let ((font-config (locate-user-emacs-file "fonts.el")))
|
||||
(when (file-exists-p font-config)
|
||||
(load-file font-config)))
|
||||
|
||||
;; Tweak garbage collection strategy.
|
||||
;;guix:emacs-gcmh
|
||||
(use-package gcmh
|
||||
:config
|
||||
(gcmh-mode 1))
|
||||
|
||||
;; Set default storage locations for various packages.
|
||||
;;guix:emacs-no-littering
|
||||
(use-package no-littering
|
||||
:config
|
||||
(no-littering-theme-backups))
|
||||
|
||||
(use-package emacs
|
||||
:custom
|
||||
;; Workaround to use fish as login shell.
|
||||
(shell-file-name "/bin/sh")
|
||||
;; CJK support.
|
||||
(word-wrap-by-category t))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Interface
|
||||
;;;
|
||||
|
||||
(use-package emacs
|
||||
:custom
|
||||
(blink-cursor-mode nil)
|
||||
(browse-url-firefox-program "librewolf")
|
||||
(enable-recursive-minibuffers t)
|
||||
(inhibit-splash-screen t)
|
||||
(uniquify-buffer-name-style 'forward)
|
||||
;; Exclude unavailable completions.
|
||||
(read-extended-command-predicate 'command-completion-default-include-p)
|
||||
;; Case-insensitive completion.
|
||||
(completion-ignore-case t)
|
||||
(read-buffer-completion-ignore-case t)
|
||||
(read-file-name-completion-ignore-case t)
|
||||
:bind
|
||||
([remap list-buffers] . switch-to-buffer)
|
||||
:hook
|
||||
(prog-mode . display-line-numbers-mode)
|
||||
;; Scrolling enhancement.
|
||||
(after-init . pixel-scroll-precision-mode)
|
||||
;; Indicatior for recursive minibuffers.
|
||||
(after-init . minibuffer-depth-indicate-mode)
|
||||
;; Save minibuffer history.
|
||||
(after-init . savehist-mode)
|
||||
;; Indicator for `fill-column'.
|
||||
(prog-mode . display-fill-column-indicator-mode))
|
||||
|
||||
;; Theming
|
||||
(use-package emacs
|
||||
:custom
|
||||
(fringe-mode 0)
|
||||
(modus-themes-italic-constructs t)
|
||||
(scroll-bar-mode nil)
|
||||
(tool-bar-mode nil)
|
||||
(tooltip-mode nil)
|
||||
:config
|
||||
(load-theme 'modus-operandi-tinted :no-confirm)
|
||||
:hook
|
||||
(after-init . menu-bar-mode))
|
||||
|
||||
;;guix:emacs-corfu
|
||||
(use-package corfu
|
||||
:custom
|
||||
;; Auto-completion.
|
||||
(corfu-auto t)
|
||||
(corfu-auto-delay 0.3)
|
||||
:config
|
||||
;; Free the `RET' key for less intrusive behavior.
|
||||
(keymap-unset corfu-map "RET")
|
||||
:hook
|
||||
(after-init . global-corfu-mode))
|
||||
|
||||
;;guix:emacs-doom-modeline
|
||||
(use-package doom-modeline
|
||||
:custom
|
||||
(doom-modeline-icon nil)
|
||||
(doom-modeline-height 18)
|
||||
:hook
|
||||
(after-init . doom-modeline-mode))
|
||||
|
||||
;;guix:emacs-helpful
|
||||
(use-package helpful
|
||||
:bind
|
||||
(([remap describe-function] . helpful-callable)
|
||||
([remap describe-variable] . helpful-variable)
|
||||
([remap describe-key] . helpful-key)
|
||||
([remap describe-command] . helpful-command)
|
||||
([remap describe-symbol] . helpful-symbol)
|
||||
("C-c C-d" . helpful-at-point)))
|
||||
|
||||
;;guix:emacs-hl-todo
|
||||
(use-package hl-todo
|
||||
:custom
|
||||
(hl-todo-highlight-punctuation ":")
|
||||
:hook
|
||||
(prog-mode . hl-todo-mode))
|
||||
|
||||
(use-package isearch
|
||||
:custom
|
||||
(isearch-lazy-count t)
|
||||
(isearch-wrap-pause 'no-ding)
|
||||
(regexp-search-ring-max 200)
|
||||
(search-ring-max 200))
|
||||
|
||||
;;guix:emacs-mwim
|
||||
(use-package mwim
|
||||
:bind
|
||||
(([remap move-beginning-of-line] . mwim-beginning)
|
||||
([remap move-end-of-line] . mwim-end)))
|
||||
|
||||
;;guix:emacs-orderless
|
||||
(use-package orderless
|
||||
:custom
|
||||
(completion-styles '(orderless basic))
|
||||
(completion-category-overrides '((file (styles basic partial-completion))))
|
||||
(orderless-matching-styles '(orderless-literal orderless-flex orderless-regexp)))
|
||||
|
||||
(use-package paren
|
||||
:custom
|
||||
(show-paren-context-when-offscreen 'overlay)
|
||||
:hook
|
||||
(after-init . show-paren-mode))
|
||||
|
||||
;;guix:emacs-rainbow-delimiters
|
||||
(use-package rainbow-delimiters
|
||||
:hook
|
||||
(prog-mode . rainbow-delimiters-mode))
|
||||
|
||||
;;guix:emacs-vertico
|
||||
(use-package vertico
|
||||
:hook
|
||||
(after-init . vertico-mode))
|
||||
|
||||
(use-package vertico-directory
|
||||
:after (vertico)
|
||||
:bind
|
||||
(:map vertico-map
|
||||
("RET" . vertico-directory-enter)
|
||||
("DEL" . vertico-directory-delete-char)
|
||||
("M-DEL" . vertico-directory-delete-word))
|
||||
:hook
|
||||
(rfn-eshadow-update-overlay . vertico-directory-tidy))
|
||||
|
||||
(use-package which-key
|
||||
:config
|
||||
(which-key-setup-side-window-right-bottom)
|
||||
:hook
|
||||
(after-init . which-key-mode))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Editing
|
||||
;;;
|
||||
|
||||
(use-package emacs
|
||||
:custom
|
||||
;; Disable tab indentation.
|
||||
(indent-tabs-mode nil)
|
||||
:config
|
||||
;; Avoid re-indenting current line after entering `RET'.
|
||||
(setopt electric-indent-inhibit t)
|
||||
:hook
|
||||
(before-save . delete-trailing-whitespace)
|
||||
;; Use Ctrl-C/X/Z for copy, cut, paste.
|
||||
(after-init . cua-mode)
|
||||
;; Automatic parenthesis pairing.
|
||||
(after-init . electric-pair-mode))
|
||||
|
||||
;; Check syntax on the fly.
|
||||
;;guix:emacs-flycheck
|
||||
(use-package flycheck
|
||||
:hook
|
||||
(after-init . global-flycheck-mode))
|
||||
|
||||
;;guix:emacs-flycheck-guile
|
||||
(use-package flycheck-guile
|
||||
:after (flycheck geiser-guile))
|
||||
|
||||
;;guix:emacs-geiser
|
||||
(use-package geiser
|
||||
:custom
|
||||
(geiser-autodoc-identifier-format "%s → %s")
|
||||
(geiser-mode-smart-tab-p t)
|
||||
(geiser-mode-start-repl-p t)
|
||||
(geiser-repl-query-on-kill-p nil)
|
||||
:init
|
||||
;; Context menu on right click.
|
||||
;; Taken from guile-studio: https://elephly.net/guile-studio/
|
||||
(defun context-menu ()
|
||||
(let ((menu (make-sparse-keymap)))
|
||||
(pcase major-mode
|
||||
('scheme-mode
|
||||
(define-key menu (vector 'switch-to-repl)
|
||||
'("Switch to REPL" . geiser-repl-switch))
|
||||
(define-key menu (vector 'eval-buffer)
|
||||
'("Evaluate buffer" . geiser-eval-buffer))
|
||||
(define-key menu (vector 'lookup-documentation)
|
||||
'("Show documentation". geiser-doc-symbol-at-point))
|
||||
menu)
|
||||
(_
|
||||
(mouse-menu-major-mode-map)))))
|
||||
:bind
|
||||
([mouse-3] . (lambda (event)
|
||||
(interactive "e")
|
||||
(mouse-set-point event)
|
||||
(popup-menu (context-menu)))))
|
||||
|
||||
;;guix:emacs-geiser-guile
|
||||
(use-package geiser-guile
|
||||
:after (geiser)
|
||||
:custom
|
||||
(geiser-active-implementation '(guile))
|
||||
(geiser-default-implementation 'guile)
|
||||
:config
|
||||
;; TODO: Make `flycheck-guile' support `guix repl'.
|
||||
(dolist (path
|
||||
(mapcar
|
||||
#'expand-file-name
|
||||
'("~/.config/guix/current/lib/guile/3.0/site-ccache"
|
||||
"~/.config/guix/current/share/guile/site/3.0"
|
||||
"~/.guix-profile/lib/guile/3.0/site-ccache"
|
||||
"~/.guix-profile/share/guile/site/3.0"
|
||||
"~/.guix-home/profile/lib/guile/3.0/site-ccache"
|
||||
"~/.guix-home/profile/share/guile/site/3.0"
|
||||
"/run/current-system/profile/lib/guile/3.0/site-ccache"
|
||||
"/run/current-system/profile/share/guile/site/3.0")))
|
||||
(add-to-list 'geiser-guile-load-path path t)))
|
||||
|
||||
;;guix:emacs-macrostep
|
||||
(use-package macrostep
|
||||
:bind
|
||||
("C-c e" . macrostep-expand))
|
||||
|
||||
;;guix:emacs-puni
|
||||
(use-package puni
|
||||
:hook
|
||||
((eval-expression-minibuffer-setup nxml-mode prog-mode sgml-mode tex-mode)
|
||||
. puni-mode))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Miscellaneous
|
||||
;;;
|
||||
|
||||
;;guix:emacs-daemons
|
||||
(use-package daemons
|
||||
:custom
|
||||
(daemons-list-fill-frame t))
|
||||
|
||||
(use-package dired
|
||||
:custom
|
||||
(dired-listing-switches
|
||||
"-lv --all --group-directories-first --human-readable")
|
||||
:bind
|
||||
([remap list-directory] . dired))
|
||||
|
||||
(use-package dired-aux
|
||||
:custom
|
||||
(dired-compress-directory-default-suffix ".tar.zst")
|
||||
(dired-create-destination-dirs 'ask)
|
||||
(dired-create-destination-dirs-on-trailing-dirsep t)
|
||||
(dired-vc-rename-file t))
|
||||
|
||||
;;guix:emacs-envrc
|
||||
(use-package envrc
|
||||
:hook
|
||||
(after-init . envrc-global-mode))
|
||||
|
||||
;;guix:emacs-magit
|
||||
(use-package magit
|
||||
:custom
|
||||
(git-commit-cd-to-toplevel t))
|
||||
|
||||
(use-package project
|
||||
:config
|
||||
(add-to-list 'project-switch-commands '(magit-project-status "Magit") t)
|
||||
:bind
|
||||
(:map project-prefix-map
|
||||
("m" . magit-project-status)))
|
||||
|
||||
;;guix:emacs-forge
|
||||
(use-package forge
|
||||
:after (magit))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Set up initial screen.
|
||||
;;;
|
||||
|
||||
(progn
|
||||
(setopt initial-scratch-message
|
||||
";;; Type your Guile program here and evaluate it.\n\n")
|
||||
(scheme-mode)
|
||||
(geiser-repl-import-module "(rosenthal)")
|
||||
(geiser-repl-import-module "(nonguix transformations)")
|
||||
(delete-window)
|
||||
(display-splash-screen))
|
||||
@@ -0,0 +1,10 @@
|
||||
# SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
#
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
font=monospace 11
|
||||
text-color=#13181B
|
||||
background-color=#D2DEE9E0
|
||||
border-size=1
|
||||
border-color=#B3C6D3
|
||||
border-radius=5
|
||||
@@ -0,0 +1,630 @@
|
||||
// SPDX-FileCopyrightText: 2023-2025 Ivan Molodetskikh <yalterz@gmail.com>
|
||||
//
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
// This config is in the KDL format: https://kdl.dev
|
||||
// "/-" comments out the following node.
|
||||
// Check the wiki for a full description of the configuration:
|
||||
// https://yalter.github.io/niri/Configuration:-Introduction
|
||||
|
||||
// Input device configuration.
|
||||
// Find the full list of options on the wiki:
|
||||
// https://yalter.github.io/niri/Configuration:-Input
|
||||
input {
|
||||
keyboard {
|
||||
xkb {
|
||||
// You can set rules, model, layout, variant and options.
|
||||
// For more information, see xkeyboard-config(7).
|
||||
|
||||
// For example:
|
||||
// layout "us,ru"
|
||||
// options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"
|
||||
|
||||
// If this section is empty, niri will fetch xkb settings
|
||||
// from org.freedesktop.locale1. You can control these using
|
||||
// localectl set-x11-keymap.
|
||||
}
|
||||
|
||||
// Enable numlock on startup, omitting this setting disables it.
|
||||
numlock
|
||||
|
||||
repeat-delay 300
|
||||
repeat-rate 30
|
||||
}
|
||||
|
||||
// Next sections include libinput settings.
|
||||
// Omitting settings disables them, or leaves them at their default values.
|
||||
// All commented-out settings here are examples, not defaults.
|
||||
touchpad {
|
||||
// off
|
||||
tap
|
||||
// dwt
|
||||
// dwtp
|
||||
// drag false
|
||||
// drag-lock
|
||||
natural-scroll
|
||||
// accel-speed 0.2
|
||||
// accel-profile "flat"
|
||||
// scroll-method "two-finger"
|
||||
// disabled-on-external-mouse
|
||||
}
|
||||
|
||||
mouse {
|
||||
// off
|
||||
// natural-scroll
|
||||
// accel-speed 0.2
|
||||
// accel-profile "flat"
|
||||
// scroll-method "no-scroll"
|
||||
}
|
||||
|
||||
trackpoint {
|
||||
// off
|
||||
// natural-scroll
|
||||
// accel-speed 0.2
|
||||
// accel-profile "flat"
|
||||
// scroll-method "on-button-down"
|
||||
// scroll-button 273
|
||||
// scroll-button-lock
|
||||
// middle-emulation
|
||||
}
|
||||
|
||||
// Uncomment this to make the mouse warp to the center of newly focused windows.
|
||||
// warp-mouse-to-focus
|
||||
|
||||
// Focus windows and outputs automatically when moving the mouse into them.
|
||||
// Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
|
||||
// focus-follows-mouse max-scroll-amount="0%"
|
||||
}
|
||||
|
||||
// You can configure outputs by their name, which you can find
|
||||
// by running `niri msg outputs` while inside a niri instance.
|
||||
// The built-in laptop monitor is usually called "eDP-1".
|
||||
// Find more information on the wiki:
|
||||
// https://yalter.github.io/niri/Configuration:-Outputs
|
||||
// Remember to uncomment the node by removing "/-"!
|
||||
/-output "eDP-1" {
|
||||
// Uncomment this line to disable this output.
|
||||
// off
|
||||
|
||||
// Resolution and, optionally, refresh rate of the output.
|
||||
// The format is "<width>x<height>" or "<width>x<height>@<refresh rate>".
|
||||
// If the refresh rate is omitted, niri will pick the highest refresh rate
|
||||
// for the resolution.
|
||||
// If the mode is omitted altogether or is invalid, niri will pick one automatically.
|
||||
// Run `niri msg outputs` while inside a niri instance to list all outputs and their modes.
|
||||
mode "1920x1080@120.030"
|
||||
|
||||
// You can use integer or fractional scale, for example use 1.5 for 150% scale.
|
||||
scale 2
|
||||
|
||||
// Transform allows to rotate the output counter-clockwise, valid values are:
|
||||
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
|
||||
transform "normal"
|
||||
|
||||
// Position of the output in the global coordinate space.
|
||||
// This affects directional monitor actions like "focus-monitor-left", and cursor movement.
|
||||
// The cursor can only move between directly adjacent outputs.
|
||||
// Output scale and rotation has to be taken into account for positioning:
|
||||
// outputs are sized in logical, or scaled, pixels.
|
||||
// For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080,
|
||||
// so to put another output directly adjacent to it on the right, set its x to 1920.
|
||||
// If the position is unset or results in an overlap, the output is instead placed
|
||||
// automatically.
|
||||
position x=1280 y=0
|
||||
}
|
||||
|
||||
// Settings that influence how windows are positioned and sized.
|
||||
// Find more information on the wiki:
|
||||
// https://yalter.github.io/niri/Configuration:-Layout
|
||||
layout {
|
||||
// Set gaps around windows in logical pixels.
|
||||
gaps 16
|
||||
|
||||
// When to center a column when changing focus, options are:
|
||||
// - "never", default behavior, focusing an off-screen column will keep at the left
|
||||
// or right edge of the screen.
|
||||
// - "always", the focused column will always be centered.
|
||||
// - "on-overflow", focusing a column will center it if it doesn't fit
|
||||
// together with the previously focused column.
|
||||
center-focused-column "never"
|
||||
|
||||
// You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
|
||||
preset-column-widths {
|
||||
// Proportion sets the width as a fraction of the output width, taking gaps into account.
|
||||
// For example, you can perfectly fit four windows sized "proportion 0.25" on an output.
|
||||
// The default preset widths are 1/3, 1/2 and 2/3 of the output.
|
||||
proportion 0.33333
|
||||
proportion 0.5
|
||||
proportion 0.66667
|
||||
|
||||
// Fixed sets the width in logical pixels exactly.
|
||||
// fixed 1920
|
||||
}
|
||||
|
||||
// You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between.
|
||||
// preset-window-heights { }
|
||||
|
||||
// You can change the default width of the new windows.
|
||||
default-column-width { proportion 0.5; }
|
||||
// If you leave the brackets empty, the windows themselves will decide their initial width.
|
||||
// default-column-width {}
|
||||
|
||||
// By default focus ring and border are rendered as a solid background rectangle
|
||||
// behind windows. That is, they will show up through semitransparent windows.
|
||||
// This is because windows using client-side decorations can have an arbitrary shape.
|
||||
//
|
||||
// If you don't like that, you should uncomment `prefer-no-csd` below.
|
||||
// Niri will draw focus ring and border *around* windows that agree to omit their
|
||||
// client-side decorations.
|
||||
//
|
||||
// Alternatively, you can override it with a window rule called
|
||||
// `draw-border-with-background`.
|
||||
|
||||
// You can change how the focus ring looks.
|
||||
focus-ring {
|
||||
// Uncomment this line to disable the focus ring.
|
||||
// off
|
||||
|
||||
// How many logical pixels the ring extends out from the windows.
|
||||
width 4
|
||||
|
||||
// Colors can be set in a variety of ways:
|
||||
// - CSS named colors: "red"
|
||||
// - RGB hex: "#rgb", "#rgba", "#rrggbb", "#rrggbbaa"
|
||||
// - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others.
|
||||
|
||||
// Color of the ring on the active monitor.
|
||||
active-color "#7fc8ff"
|
||||
|
||||
// Color of the ring on inactive monitors.
|
||||
//
|
||||
// The focus ring only draws around the active window, so the only place
|
||||
// where you can see its inactive-color is on other monitors.
|
||||
inactive-color "#505050"
|
||||
|
||||
// You can also use gradients. They take precedence over solid colors.
|
||||
// Gradients are rendered the same as CSS linear-gradient(angle, from, to).
|
||||
// The angle is the same as in linear-gradient, and is optional,
|
||||
// defaulting to 180 (top-to-bottom gradient).
|
||||
// You can use any CSS linear-gradient tool on the web to set these up.
|
||||
// Changing the color space is also supported, check the wiki for more info.
|
||||
//
|
||||
// active-gradient from="#80c8ff" to="#c7ff7f" angle=45
|
||||
|
||||
// You can also color the gradient relative to the entire view
|
||||
// of the workspace, rather than relative to just the window itself.
|
||||
// To do that, set relative-to="workspace-view".
|
||||
//
|
||||
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
||||
}
|
||||
|
||||
// You can also add a border. It's similar to the focus ring, but always visible.
|
||||
border {
|
||||
// The settings are the same as for the focus ring.
|
||||
// If you enable the border, you probably want to disable the focus ring.
|
||||
off
|
||||
|
||||
width 4
|
||||
active-color "#ffc87f"
|
||||
inactive-color "#505050"
|
||||
|
||||
// Color of the border around windows that request your attention.
|
||||
urgent-color "#9b0000"
|
||||
|
||||
// Gradients can use a few different interpolation color spaces.
|
||||
// For example, this is a pastel rainbow gradient via in="oklch longer hue".
|
||||
//
|
||||
// active-gradient from="#e5989b" to="#ffb4a2" angle=45 relative-to="workspace-view" in="oklch longer hue"
|
||||
|
||||
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
||||
}
|
||||
|
||||
// You can enable drop shadows for windows.
|
||||
shadow {
|
||||
// Uncomment the next line to enable shadows.
|
||||
// on
|
||||
|
||||
// By default, the shadow draws only around its window, and not behind it.
|
||||
// Uncomment this setting to make the shadow draw behind its window.
|
||||
//
|
||||
// Note that niri has no way of knowing about the CSD window corner
|
||||
// radius. It has to assume that windows have square corners, leading to
|
||||
// shadow artifacts inside the CSD rounded corners. This setting fixes
|
||||
// those artifacts.
|
||||
//
|
||||
// However, instead you may want to set prefer-no-csd and/or
|
||||
// geometry-corner-radius. Then, niri will know the corner radius and
|
||||
// draw the shadow correctly, without having to draw it behind the
|
||||
// window. These will also remove client-side shadows if the window
|
||||
// draws any.
|
||||
//
|
||||
// draw-behind-window true
|
||||
|
||||
// You can change how shadows look. The values below are in logical
|
||||
// pixels and match the CSS box-shadow properties.
|
||||
|
||||
// Softness controls the shadow blur radius.
|
||||
softness 30
|
||||
|
||||
// Spread expands the shadow.
|
||||
spread 5
|
||||
|
||||
// Offset moves the shadow relative to the window.
|
||||
offset x=0 y=5
|
||||
|
||||
// You can also change the shadow color and opacity.
|
||||
color "#0007"
|
||||
}
|
||||
|
||||
// Struts shrink the area occupied by windows, similarly to layer-shell panels.
|
||||
// You can think of them as a kind of outer gaps. They are set in logical pixels.
|
||||
// Left and right struts will cause the next window to the side to always be visible.
|
||||
// Top and bottom struts will simply add outer gaps in addition to the area occupied by
|
||||
// layer-shell panels and regular gaps.
|
||||
struts {
|
||||
// left 64
|
||||
// right 64
|
||||
// top 64
|
||||
// bottom 64
|
||||
}
|
||||
}
|
||||
|
||||
// Add lines like this to spawn processes at startup.
|
||||
// Note that running niri as a session supports xdg-desktop-autostart,
|
||||
// which may be more convenient to use.
|
||||
// See the binds section below for more spawn examples.
|
||||
|
||||
// This line starts waybar, a commonly used bar for Wayland compositors.
|
||||
// spawn-at-startup "waybar"
|
||||
|
||||
// To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup:
|
||||
// spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell"
|
||||
|
||||
hotkey-overlay {
|
||||
// Uncomment this line to disable the "Important Hotkeys" pop-up at startup.
|
||||
// skip-at-startup
|
||||
}
|
||||
|
||||
// Uncomment this line to ask the clients to omit their client-side decorations if possible.
|
||||
// If the client will specifically ask for CSD, the request will be honored.
|
||||
// Additionally, clients will be informed that they are tiled, removing some client-side rounded corners.
|
||||
// This option will also fix border/focus ring drawing behind some semitransparent windows.
|
||||
// After enabling or disabling this, you need to restart the apps for this to take effect.
|
||||
// prefer-no-csd
|
||||
|
||||
// You can change the path where screenshots are saved.
|
||||
// A ~ at the front will be expanded to the home directory.
|
||||
// The path is formatted with strftime(3) to give you the screenshot date and time.
|
||||
screenshot-path "~/Screenshot from %Y-%m-%d %H-%M-%S.png"
|
||||
|
||||
// You can also set this to null to disable saving screenshots to disk.
|
||||
// screenshot-path null
|
||||
|
||||
// Animation settings.
|
||||
// The wiki explains how to configure individual animations:
|
||||
// https://yalter.github.io/niri/Configuration:-Animations
|
||||
animations {
|
||||
// Uncomment to turn off all animations.
|
||||
// off
|
||||
|
||||
// Slow down all animations by this factor. Values below 1 speed them up instead.
|
||||
// slowdown 3.0
|
||||
}
|
||||
|
||||
// Window rules let you adjust behavior for individual windows.
|
||||
// Find more information on the wiki:
|
||||
// https://yalter.github.io/niri/Configuration:-Window-Rules
|
||||
|
||||
// Work around WezTerm's initial configure bug
|
||||
// by setting an empty default-column-width.
|
||||
window-rule {
|
||||
// This regular expression is intentionally made as specific as possible,
|
||||
// since this is the default config, and we want no false positives.
|
||||
// You can get away with just app-id="wezterm" if you want.
|
||||
match app-id=r#"^org\.wezfurlong\.wezterm$"#
|
||||
default-column-width {}
|
||||
}
|
||||
|
||||
// Open the Firefox picture-in-picture player as floating by default.
|
||||
window-rule {
|
||||
// This app-id regular expression will work for both:
|
||||
// - host Firefox (app-id is "firefox")
|
||||
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
|
||||
match app-id=r#"firefox$"# title="^Picture-in-Picture$"
|
||||
open-floating true
|
||||
}
|
||||
|
||||
// Example: block out two password managers from screen capture.
|
||||
// (This example rule is commented out with a "/-" in front.)
|
||||
/-window-rule {
|
||||
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
|
||||
match app-id=r#"^org\.gnome\.World\.Secrets$"#
|
||||
|
||||
block-out-from "screen-capture"
|
||||
|
||||
// Use this instead if you want them visible on third-party screenshot tools.
|
||||
// block-out-from "screencast"
|
||||
}
|
||||
|
||||
// Example: enable rounded corners for all windows.
|
||||
// (This example rule is commented out with a "/-" in front.)
|
||||
/-window-rule {
|
||||
geometry-corner-radius 12
|
||||
clip-to-geometry true
|
||||
}
|
||||
|
||||
binds {
|
||||
// Keys consist of modifiers separated by + signs, followed by an XKB key name
|
||||
// in the end. To find an XKB name for a particular key, you may use a program
|
||||
// like wev.
|
||||
//
|
||||
// "Mod" is a special modifier equal to Super when running on a TTY, and to Alt
|
||||
// when running as a winit window.
|
||||
//
|
||||
// Most actions that you can bind here can also be invoked programmatically with
|
||||
// `niri msg action do-something`.
|
||||
|
||||
// Mod-Shift-/, which is usually the same as Mod-?,
|
||||
// shows a list of important hotkeys.
|
||||
Mod+Shift+Slash { show-hotkey-overlay; }
|
||||
|
||||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||
Mod+T hotkey-overlay-title="Open a Terminal: foot" { spawn "foot"; }
|
||||
Mod+D hotkey-overlay-title="Run an Application: rofi" { spawn "rofi" "-show" "drun"; }
|
||||
// Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
||||
|
||||
// Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc.
|
||||
// Note: the entire command goes as a single argument. It's passed verbatim to `sh -c`.
|
||||
// For example, this is a standard bind to toggle the screen reader (orca).
|
||||
Super+Alt+S allow-when-locked=true hotkey-overlay-title=null { spawn-sh "pkill orca || exec orca"; }
|
||||
|
||||
// Example volume keys mappings for PipeWire & WirePlumber.
|
||||
// The allow-when-locked=true property makes them work even when the session is locked.
|
||||
// Using spawn-sh allows to pass multiple arguments together with the command.
|
||||
XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+"; }
|
||||
XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; }
|
||||
XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; }
|
||||
XF86AudioMicMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; }
|
||||
|
||||
// Example brightness key mappings for light.
|
||||
// You can use regular spawn with multiple arguments too (to avoid going through "sh"),
|
||||
// but you need to manually put each argument in separate "" quotes.
|
||||
XF86MonBrightnessUp allow-when-locked=true { spawn "light" "-A" "10"; }
|
||||
XF86MonBrightnessDown allow-when-locked=true { spawn "light" "-U" "10"; }
|
||||
|
||||
// Open/close the Overview: a zoomed-out view of workspaces and windows.
|
||||
// You can also move the mouse into the top-left hot corner,
|
||||
// or do a four-finger swipe up on a touchpad.
|
||||
Mod+O repeat=false { toggle-overview; }
|
||||
|
||||
Mod+Q repeat=false { close-window; }
|
||||
|
||||
Mod+Left { focus-column-left; }
|
||||
Mod+Down { focus-window-down; }
|
||||
Mod+Up { focus-window-up; }
|
||||
Mod+Right { focus-column-right; }
|
||||
Mod+H { focus-column-left; }
|
||||
Mod+J { focus-window-down; }
|
||||
Mod+K { focus-window-up; }
|
||||
Mod+L { focus-column-right; }
|
||||
|
||||
Mod+Ctrl+Left { move-column-left; }
|
||||
Mod+Ctrl+Down { move-window-down; }
|
||||
Mod+Ctrl+Up { move-window-up; }
|
||||
Mod+Ctrl+Right { move-column-right; }
|
||||
Mod+Ctrl+H { move-column-left; }
|
||||
Mod+Ctrl+J { move-window-down; }
|
||||
Mod+Ctrl+K { move-window-up; }
|
||||
Mod+Ctrl+L { move-column-right; }
|
||||
|
||||
// Alternative commands that move across workspaces when reaching
|
||||
// the first or last window in a column.
|
||||
// Mod+J { focus-window-or-workspace-down; }
|
||||
// Mod+K { focus-window-or-workspace-up; }
|
||||
// Mod+Ctrl+J { move-window-down-or-to-workspace-down; }
|
||||
// Mod+Ctrl+K { move-window-up-or-to-workspace-up; }
|
||||
|
||||
Mod+Home { focus-column-first; }
|
||||
Mod+End { focus-column-last; }
|
||||
Mod+Ctrl+Home { move-column-to-first; }
|
||||
Mod+Ctrl+End { move-column-to-last; }
|
||||
|
||||
Mod+Shift+Left { focus-monitor-left; }
|
||||
Mod+Shift+Down { focus-monitor-down; }
|
||||
Mod+Shift+Up { focus-monitor-up; }
|
||||
Mod+Shift+Right { focus-monitor-right; }
|
||||
Mod+Shift+H { focus-monitor-left; }
|
||||
Mod+Shift+J { focus-monitor-down; }
|
||||
Mod+Shift+K { focus-monitor-up; }
|
||||
Mod+Shift+L { focus-monitor-right; }
|
||||
|
||||
Mod+Shift+Ctrl+Left { move-column-to-monitor-left; }
|
||||
Mod+Shift+Ctrl+Down { move-column-to-monitor-down; }
|
||||
Mod+Shift+Ctrl+Up { move-column-to-monitor-up; }
|
||||
Mod+Shift+Ctrl+Right { move-column-to-monitor-right; }
|
||||
Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
|
||||
Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
|
||||
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
||||
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
||||
|
||||
// Alternatively, there are commands to move just a single window:
|
||||
// Mod+Shift+Ctrl+Left { move-window-to-monitor-left; }
|
||||
// ...
|
||||
|
||||
// And you can also move a whole workspace to another monitor:
|
||||
// Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; }
|
||||
// ...
|
||||
|
||||
Mod+Page_Down { focus-workspace-down; }
|
||||
Mod+Page_Up { focus-workspace-up; }
|
||||
Mod+U { focus-workspace-down; }
|
||||
Mod+I { focus-workspace-up; }
|
||||
Mod+Ctrl+Page_Down { move-column-to-workspace-down; }
|
||||
Mod+Ctrl+Page_Up { move-column-to-workspace-up; }
|
||||
Mod+Ctrl+U { move-column-to-workspace-down; }
|
||||
Mod+Ctrl+I { move-column-to-workspace-up; }
|
||||
|
||||
// Alternatively, there are commands to move just a single window:
|
||||
// Mod+Ctrl+Page_Down { move-window-to-workspace-down; }
|
||||
// ...
|
||||
|
||||
Mod+Shift+Page_Down { move-workspace-down; }
|
||||
Mod+Shift+Page_Up { move-workspace-up; }
|
||||
Mod+Shift+U { move-workspace-down; }
|
||||
Mod+Shift+I { move-workspace-up; }
|
||||
|
||||
// You can bind mouse wheel scroll ticks using the following syntax.
|
||||
// These binds will change direction based on the natural-scroll setting.
|
||||
//
|
||||
// To avoid scrolling through workspaces really fast, you can use
|
||||
// the cooldown-ms property. The bind will be rate-limited to this value.
|
||||
// You can set a cooldown on any bind, but it's most useful for the wheel.
|
||||
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
||||
Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
||||
|
||||
Mod+WheelScrollRight { focus-column-right; }
|
||||
Mod+WheelScrollLeft { focus-column-left; }
|
||||
Mod+Ctrl+WheelScrollRight { move-column-right; }
|
||||
Mod+Ctrl+WheelScrollLeft { move-column-left; }
|
||||
|
||||
// Usually scrolling up and down with Shift in applications results in
|
||||
// horizontal scrolling; these binds replicate that.
|
||||
Mod+Shift+WheelScrollDown { focus-column-right; }
|
||||
Mod+Shift+WheelScrollUp { focus-column-left; }
|
||||
Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
|
||||
Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
|
||||
|
||||
// Similarly, you can bind touchpad scroll "ticks".
|
||||
// Touchpad scrolling is continuous, so for these binds it is split into
|
||||
// discrete intervals.
|
||||
// These binds are also affected by touchpad's natural-scroll, so these
|
||||
// example binds are "inverted", since we have natural-scroll enabled for
|
||||
// touchpads by default.
|
||||
// Mod+TouchpadScrollDown { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02+"; }
|
||||
// Mod+TouchpadScrollUp { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02-"; }
|
||||
|
||||
// You can refer to workspaces by index. However, keep in mind that
|
||||
// niri is a dynamic workspace system, so these commands are kind of
|
||||
// "best effort". Trying to refer to a workspace index bigger than
|
||||
// the current workspace count will instead refer to the bottommost
|
||||
// (empty) workspace.
|
||||
//
|
||||
// For example, with 2 workspaces + 1 empty, indices 3, 4, 5 and so on
|
||||
// will all refer to the 3rd workspace.
|
||||
Mod+1 { focus-workspace 1; }
|
||||
Mod+2 { focus-workspace 2; }
|
||||
Mod+3 { focus-workspace 3; }
|
||||
Mod+4 { focus-workspace 4; }
|
||||
Mod+5 { focus-workspace 5; }
|
||||
Mod+6 { focus-workspace 6; }
|
||||
Mod+7 { focus-workspace 7; }
|
||||
Mod+8 { focus-workspace 8; }
|
||||
Mod+9 { focus-workspace 9; }
|
||||
Mod+Ctrl+1 { move-column-to-workspace 1; }
|
||||
Mod+Ctrl+2 { move-column-to-workspace 2; }
|
||||
Mod+Ctrl+3 { move-column-to-workspace 3; }
|
||||
Mod+Ctrl+4 { move-column-to-workspace 4; }
|
||||
Mod+Ctrl+5 { move-column-to-workspace 5; }
|
||||
Mod+Ctrl+6 { move-column-to-workspace 6; }
|
||||
Mod+Ctrl+7 { move-column-to-workspace 7; }
|
||||
Mod+Ctrl+8 { move-column-to-workspace 8; }
|
||||
Mod+Ctrl+9 { move-column-to-workspace 9; }
|
||||
|
||||
// Alternatively, there are commands to move just a single window:
|
||||
// Mod+Ctrl+1 { move-window-to-workspace 1; }
|
||||
|
||||
// Switches focus between the current and the previous workspace.
|
||||
// Mod+Tab { focus-workspace-previous; }
|
||||
|
||||
// The following binds move the focused window in and out of a column.
|
||||
// If the window is alone, they will consume it into the nearby column to the side.
|
||||
// If the window is already in a column, they will expel it out.
|
||||
Mod+BracketLeft { consume-or-expel-window-left; }
|
||||
Mod+BracketRight { consume-or-expel-window-right; }
|
||||
|
||||
// Consume one window from the right to the bottom of the focused column.
|
||||
Mod+Comma { consume-window-into-column; }
|
||||
// Expel the bottom window from the focused column to the right.
|
||||
Mod+Period { expel-window-from-column; }
|
||||
|
||||
Mod+R { switch-preset-column-width; }
|
||||
// Cycling through the presets in reverse order is also possible.
|
||||
// Mod+R { switch-preset-column-width-back; }
|
||||
Mod+Shift+R { switch-preset-window-height; }
|
||||
Mod+Ctrl+R { reset-window-height; }
|
||||
Mod+F { maximize-column; }
|
||||
Mod+Shift+F { fullscreen-window; }
|
||||
|
||||
// Expand the focused column to space not taken up by other fully visible columns.
|
||||
// Makes the column "fill the rest of the space".
|
||||
Mod+Ctrl+F { expand-column-to-available-width; }
|
||||
|
||||
Mod+C { center-column; }
|
||||
|
||||
// Center all fully visible columns on screen.
|
||||
Mod+Ctrl+C { center-visible-columns; }
|
||||
|
||||
// Finer width adjustments.
|
||||
// This command can also:
|
||||
// * set width in pixels: "1000"
|
||||
// * adjust width in pixels: "-5" or "+5"
|
||||
// * set width as a percentage of screen width: "25%"
|
||||
// * adjust width as a percentage of screen width: "-10%" or "+10%"
|
||||
// Pixel sizes use logical, or scaled, pixels. I.e. on an output with scale 2.0,
|
||||
// set-column-width "100" will make the column occupy 200 physical screen pixels.
|
||||
Mod+Minus { set-column-width "-10%"; }
|
||||
Mod+Equal { set-column-width "+10%"; }
|
||||
|
||||
// Finer height adjustments when in column with other windows.
|
||||
Mod+Shift+Minus { set-window-height "-10%"; }
|
||||
Mod+Shift+Equal { set-window-height "+10%"; }
|
||||
|
||||
// Move the focused window between the floating and the tiling layout.
|
||||
Mod+V { toggle-window-floating; }
|
||||
Mod+Shift+V { switch-focus-between-floating-and-tiling; }
|
||||
|
||||
// Toggle tabbed column display mode.
|
||||
// Windows in this column will appear as vertical tabs,
|
||||
// rather than stacked on top of each other.
|
||||
Mod+W { toggle-column-tabbed-display; }
|
||||
|
||||
// Actions to switch layouts.
|
||||
// Note: if you uncomment these, make sure you do NOT have
|
||||
// a matching layout switch hotkey configured in xkb options above.
|
||||
// Having both at once on the same hotkey will break the switching,
|
||||
// since it will switch twice upon pressing the hotkey (once by xkb, once by niri).
|
||||
// Mod+Space { switch-layout "next"; }
|
||||
// Mod+Shift+Space { switch-layout "prev"; }
|
||||
|
||||
Print { screenshot; }
|
||||
Ctrl+Print { screenshot-screen; }
|
||||
Alt+Print { screenshot-window; }
|
||||
|
||||
// Applications such as remote-desktop clients and software KVM switches may
|
||||
// request that niri stops processing the keyboard shortcuts defined here
|
||||
// so they may, for example, forward the key presses as-is to a remote machine.
|
||||
// It's a good idea to bind an escape hatch to toggle the inhibitor,
|
||||
// so a buggy application can't hold your session hostage.
|
||||
//
|
||||
// The allow-inhibiting=false property can be applied to other binds as well,
|
||||
// which ensures niri always processes them, even when an inhibitor is active.
|
||||
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
|
||||
|
||||
// The quit action will show a confirmation dialog to avoid accidental exits.
|
||||
Mod+Shift+E { quit; }
|
||||
Ctrl+Alt+Delete { quit; }
|
||||
|
||||
// Powers off the monitors. To turn them back on, do any input like
|
||||
// moving the mouse or pressing any other key.
|
||||
Mod+Shift+P { power-off-monitors; }
|
||||
}
|
||||
|
||||
|
||||
// Start user Shepherd
|
||||
spawn-at-startup "sh" "-c" "pgrep --uid $USER shepherd > /dev/null || shepherd"
|
||||
|
||||
overview {
|
||||
backdrop-color "#D2DEE9"
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 6.4 MiB |
@@ -0,0 +1,106 @@
|
||||
// -*- mode: jsonc -*-
|
||||
// SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
//
|
||||
// SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
{
|
||||
"layer": "top",
|
||||
"height": 36,
|
||||
"spacing": 5,
|
||||
"modules-left": [
|
||||
"temperature",
|
||||
"cpu",
|
||||
"memory",
|
||||
"wlr/taskbar",
|
||||
],
|
||||
"modules-center": [
|
||||
"clock",
|
||||
],
|
||||
"modules-right": [
|
||||
"tray",
|
||||
"wireplumber",
|
||||
"backlight",
|
||||
"battery",
|
||||
],
|
||||
// left
|
||||
"temperature": {
|
||||
"critical-threshold": 80,
|
||||
"format": "{temperatureC}\u00B0C",
|
||||
"interval": 2,
|
||||
"tooltip": false,
|
||||
},
|
||||
"cpu": {
|
||||
"format": "CPU {usage}%",
|
||||
"states": {
|
||||
"full": 90,
|
||||
},
|
||||
"interval": 2,
|
||||
},
|
||||
"memory": {
|
||||
"format": "RAM {percentage}%",
|
||||
"states": {
|
||||
"full": 90,
|
||||
},
|
||||
"interval": 2,
|
||||
},
|
||||
"wlr/taskbar": {
|
||||
"format": "{icon}",
|
||||
"icon-size": 16,
|
||||
"tooltip-format": "{title}",
|
||||
"on-click": "activate",
|
||||
"on-click-middle": "close",
|
||||
},
|
||||
// center
|
||||
"clock": {
|
||||
"format": "{:%A, %B %d, %Y (%R)}",
|
||||
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
||||
"calendar": {
|
||||
"mode" : "year",
|
||||
"mode-mon-col" : 3,
|
||||
"weeks-pos" : "right",
|
||||
"on-scroll" : 1,
|
||||
"format": {
|
||||
"months": "<span color='#FFEAD3'><b>{}</b></span>",
|
||||
"days": "<span color='#ECC6D9'><b>{}</b></span>",
|
||||
"weeks": "<span color='#99FFDD'><b>W{}</b></span>",
|
||||
"weekdays": "<span color='#FFCC66'><b>{}</b></span>",
|
||||
"today": "<span color='#FF6699'><b><u>{}</u></b></span>",
|
||||
}
|
||||
},
|
||||
"actions": {
|
||||
"on-click-right": "mode",
|
||||
"on-scroll-up": "tz_up",
|
||||
"on-scroll-down": "tz_down",
|
||||
"on-scroll-up": "shift_up",
|
||||
"on-scroll-down": "shift_down",
|
||||
}
|
||||
},
|
||||
// right
|
||||
"tray": {
|
||||
"spacing": 10,
|
||||
},
|
||||
"wireplumber": {
|
||||
"scroll-step": 5,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-icons": ["\uF026", "\uF027", "\uF028"],
|
||||
"format-muted": "Muted {volume}%",
|
||||
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
||||
"on-click-right": "pavucontrol",
|
||||
},
|
||||
"backlight": {
|
||||
"on-scroll-down": "light -U 5",
|
||||
"on-scroll-up": "light -A 5",
|
||||
"format": "{icon} {percent}%",
|
||||
"format-icons": ["\uF186", "\uF0EB"],
|
||||
"tooltip": false,
|
||||
},
|
||||
"battery": {
|
||||
"interval": 60,
|
||||
"states": {
|
||||
"warning": 30,
|
||||
"critical": 15,
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-icons": ["\uF244", "\uF243", "\uF242", "\uF241", "\uF240"],
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
/* SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space> */
|
||||
/* SPDX-License-Identifier: CC0-1.0 */
|
||||
|
||||
@define-color bg1 #D2DEE9;
|
||||
@define-color bg2 #13181B;
|
||||
|
||||
@define-color red #EC7875;
|
||||
@define-color green #A3BE8C;
|
||||
|
||||
/* Execute ‘guix shell python-pywal imagemagick -- wal -nstei <image>’, */
|
||||
/* then select colors from ‘~/.cache/wal/colors-waybar.css’. */
|
||||
@define-color color0 #AFB5AE;
|
||||
@define-color color1 #A7BAC9;
|
||||
@define-color color2 #B3C6D3;
|
||||
@define-color color3 #DBEDF3;
|
||||
@define-color color4 #A7BAC9;
|
||||
@define-color color5 #C2C2B5;
|
||||
@define-color color6 #939BA3;
|
||||
|
||||
* {
|
||||
font-size: 1.2rem;
|
||||
background-color: transparent;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
window {
|
||||
color: @bg2;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
background-color: @bg2;
|
||||
border: 1px solid @bg2;
|
||||
}
|
||||
|
||||
tooltip label {
|
||||
color: @bg1;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.modules-right {
|
||||
margin: 10px 10px 0 0;
|
||||
}
|
||||
.modules-center {
|
||||
margin: 10px 0 0 0;
|
||||
}
|
||||
.modules-left {
|
||||
margin: 10px 0 0 10px;
|
||||
}
|
||||
|
||||
#temperature,
|
||||
#cpu,
|
||||
#memory,
|
||||
#clock,
|
||||
#tray,
|
||||
#wireplumber,
|
||||
#backlight,
|
||||
#battery {
|
||||
padding: 0 10px;
|
||||
background-color: @bg1;
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
#taskbar {
|
||||
color: @bg2;
|
||||
background-color: @bg1;
|
||||
}
|
||||
|
||||
#taskbar.empty {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#taskbar button {
|
||||
/* https://github.com/Alexays/Waybar/issues/3334 */
|
||||
padding: 0;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
#tray menu {
|
||||
color: @bg2;
|
||||
background-color: @bg1;
|
||||
}
|
||||
|
||||
#tray menu menuitem:hover {
|
||||
color: @bg1;
|
||||
background-color: @bg2;
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
-gtk-icon-effect: dim;
|
||||
}
|
||||
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: @bg2;
|
||||
}
|
||||
|
||||
#cpu.full,
|
||||
#memory.full,
|
||||
#temperature.critical,
|
||||
#wireplumber.muted,
|
||||
#battery.warning, #battery.critical {
|
||||
background-color: @red;
|
||||
}
|
||||
|
||||
#battery.charging, #battery.plugged {
|
||||
background-color: @green;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
background-color: @color0;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background-color: @color1;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: @color2;
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: @color3;
|
||||
}
|
||||
|
||||
#wireplumber {
|
||||
background-color: @color4;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background-color: @color5;
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: @color6;
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
;;; SPDX-FileCopyrightText: 2022, 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;; SPDX-FileCopyrightText: 2025 William Goodspeed
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages admin)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (rosenthal utils cargo)
|
||||
#:use-module (guix build-system cargo)
|
||||
#:use-module (guix build-system gnu)
|
||||
#:use-module (guix build-system meson)
|
||||
#:use-module (gnu packages admin)
|
||||
#:use-module (gnu packages linux)
|
||||
#:use-module (gnu packages m4)
|
||||
#:use-module (gnu packages pkg-config))
|
||||
|
||||
(define-public dinit
|
||||
(package
|
||||
(name "dinit")
|
||||
(version "0.19.4")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/davmac314/dinit")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "09k7airphnpg6hmif91d9nfi5fhz40qh52sp8vnrshfy7mhkq571"))))
|
||||
(build-system meson-build-system)
|
||||
(arguments
|
||||
(list #:configure-flags
|
||||
#~(list "-Dshutdown-prefix=dinit-"
|
||||
"-Dunit-tests=true"
|
||||
"-Digr-tests=true"
|
||||
(string-append "-Ddinit-sbindir=" #$output "/sbin"))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'fix-paths
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "src/shutdown.cc"
|
||||
(("(/sbin/swapoff|/bin/umount)" path)
|
||||
(search-input-file inputs path))))))))
|
||||
(native-inputs (list m4))
|
||||
(inputs (list util-linux))
|
||||
(home-page "https://davmac.org/projects/dinit/")
|
||||
(synopsis "Service manager with dependency management")
|
||||
(description
|
||||
"Dinit is a service manager for Unix-like operating systems that allows
|
||||
the user to manage services with dependencies and parallel startup.")
|
||||
(license license:asl2.0)))
|
||||
|
||||
(define-public libseat-sans-logind
|
||||
(let ((base libseat))
|
||||
(package
|
||||
(inherit base)
|
||||
(name "libseat-sans-logind")
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments base)
|
||||
((#:configure-flags configure-flags)
|
||||
#~(append #$configure-flags
|
||||
(list "-Dlibseat-logind=disabled")))))
|
||||
(propagated-inputs '())
|
||||
(properties '((disable-updater? . #t))))))
|
||||
|
||||
(define-public pam-dumb-runtime-dir
|
||||
(package
|
||||
(name "pam-dumb-runtime-dir")
|
||||
(version "1.0.4")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/ifreund/dumb_runtime_dir")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0nrxhvbh3bs4pi4f5h03zw1p1ys19qmmlx263ysly8302wkxk1m4"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
(list #:tests? #f ;No tests.
|
||||
#:make-flags
|
||||
#~(list (string-append "CC=" #$(cc-for-target))
|
||||
(string-append "DESTDIR=" #$output)
|
||||
"PREFIX=")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; No configure script.
|
||||
(delete 'configure))))
|
||||
(native-inputs (list pkg-config))
|
||||
(inputs (list linux-pam))
|
||||
(home-page "https://github.com/ifreund/dumb_runtime_dir")
|
||||
(synopsis "Create @code{XDG_RUNTIME_DIR} on login and never remove it")
|
||||
(description
|
||||
"This package creates an @code{XDG_RUNTIME_DIR} directory on login per
|
||||
the freedesktop.org base directory spec. Flaunts the spec and never removes
|
||||
it, even after last logout. This keeps things simple and predictable.
|
||||
|
||||
The user is responsible for ensuring that the @file{/run/user} directory
|
||||
exists and is only writable by root.")
|
||||
(license license:bsd-0)))
|
||||
|
||||
(define-public seatd-sans-logind
|
||||
(let ((base seatd))
|
||||
(package
|
||||
(inherit base)
|
||||
(name "seatd-sans-logind")
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments base)
|
||||
((#:configure-flags configure-flags)
|
||||
#~(append #$configure-flags
|
||||
(list "-Dlibseat-logind=disabled")))))
|
||||
(propagated-inputs '())
|
||||
(properties '((disable-updater? . #t))))))
|
||||
@@ -0,0 +1,457 @@
|
||||
;;; SPDX-FileCopyrightText: 2023-2024 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages binaries)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix deprecation)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (guix build-system copy)
|
||||
#:use-module (gnu build icecat-extension)
|
||||
#:use-module (gnu packages base)
|
||||
#:use-module (gnu packages bash)
|
||||
#:use-module (gnu packages bootstrap)
|
||||
#:use-module (gnu packages compression)
|
||||
#:use-module (gnu packages elf)
|
||||
#:use-module (gnu packages gcc)
|
||||
#:use-module (gnu packages glib)
|
||||
#:use-module (gnu packages java)
|
||||
#:use-module (gnu packages nss)
|
||||
#:use-module (gnu packages sync)
|
||||
#:use-module (rosenthal packages networking)
|
||||
#:use-module (rosenthal packages rust-apps)
|
||||
#:use-module (rosenthal packages web))
|
||||
|
||||
(define license
|
||||
(@@ (guix licenses) license))
|
||||
|
||||
(define-public cloudflare-warp-bin
|
||||
(package
|
||||
(name "cloudflare-warp-bin")
|
||||
(version "2025.8.779.0")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "https://pkg.cloudflareclient.com"
|
||||
"/pool/bookworm/main/c/cloudflare-warp/"
|
||||
"cloudflare-warp_" version "_amd64.deb"))
|
||||
(sha256
|
||||
(base32
|
||||
"0p6d7zib94f20hp7wdilb92cdqvvh6qnf77844zy3fkjyghksvff"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list #:install-plan
|
||||
#~'(("bin" "bin" #:include ("warp-cli" "warp-svc")))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'unpack-deb
|
||||
(lambda* (#:key source #:allow-other-keys)
|
||||
(invoke "ar" "-x" source)
|
||||
(invoke "tar" "-xf" "data.tar.gz")))
|
||||
(add-after 'install 'patch-elf
|
||||
(lambda _
|
||||
(let ((ld.so (string-append #$(this-package-input "glibc")
|
||||
#$(glibc-dynamic-linker)))
|
||||
(rpath (string-join
|
||||
(list
|
||||
(string-append
|
||||
(ungexp
|
||||
(this-package-input "gcc") "lib") "/lib")
|
||||
(string-append
|
||||
#$(this-package-input "dbus") "/lib")
|
||||
(string-append
|
||||
#$(this-package-input "glibc") "/lib")
|
||||
(string-append
|
||||
#$(this-package-input "nspr") "/lib")
|
||||
(string-append
|
||||
#$(this-package-input "nss") "/lib/nss"))
|
||||
":")))
|
||||
(define (patch-elf file)
|
||||
(format #t "Patching ~a ..." file)
|
||||
(unless (string-contains file ".so")
|
||||
(invoke "patchelf" "--set-interpreter" ld.so file))
|
||||
(invoke "patchelf" "--set-rpath" rpath file)
|
||||
(display " done\n"))
|
||||
(for-each (lambda (file)
|
||||
(patch-elf file))
|
||||
(find-files
|
||||
(string-append #$output "/bin")))))))))
|
||||
(supported-systems '("x86_64-linux"))
|
||||
(native-inputs (list patchelf-0.16))
|
||||
(inputs (list dbus `(,gcc "lib") glibc nspr nss))
|
||||
(home-page "https://1.1.1.1/")
|
||||
(synopsis "Cloudflare WARP client")
|
||||
(description
|
||||
"The Cloudflare WARP client allows individuals to have a faster, more
|
||||
secure, and more private experience online. The WARP client sits between your
|
||||
device and the Internet, and has several connection modes to better suit
|
||||
different needs.")
|
||||
(license
|
||||
(license "Nonfree"
|
||||
"https://www.cloudflare.com/application/terms/"
|
||||
"This is a nonfree license. Check the URI for details."))
|
||||
(properties
|
||||
'((upstream-name . "cloudflare-warp")
|
||||
(release-monitoring-url
|
||||
. "https://pkg.cloudflareclient.com/dists/bookworm/main/binary-amd64/Packages")))))
|
||||
|
||||
(define-public komga-bin
|
||||
(package
|
||||
(name "komga-bin")
|
||||
(version "1.22.1")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"https://github.com/gotson/komga/releases/download/" version
|
||||
"/komga-" version ".jar"))
|
||||
(sha256
|
||||
(base32
|
||||
"0y3khm3q4mh1qrbklzjn1ac7xgb1g21qw3fn9vxmjsvghanhf0rh"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list #:install-plan
|
||||
#~'((#$(string-append "komga-" (package-version this-package) ".jar")
|
||||
"lib/komga/komga.jar"))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'install
|
||||
(lambda* (#:key inputs source #:allow-other-keys)
|
||||
(let* ((lib (in-vicinity #$output "lib/komga"))
|
||||
(bin (in-vicinity #$output "bin"))
|
||||
(jar (in-vicinity lib "komga.jar"))
|
||||
(exe "komga"))
|
||||
(mkdir-p lib)
|
||||
(copy-file source jar)
|
||||
(call-with-output-file exe
|
||||
(lambda (port)
|
||||
(format port "~
|
||||
#!~a
|
||||
export LC_ALL=C.UTF-8
|
||||
exec ~a -jar ~a $@~%"
|
||||
(search-input-file inputs "bin/bash")
|
||||
(search-input-file inputs "bin/java")
|
||||
jar)))
|
||||
(chmod exe #o555)
|
||||
(install-file exe bin)))))))
|
||||
(inputs (list bash-minimal openjdk))
|
||||
(home-page "https://komga.org/")
|
||||
(synopsis "Media server for comics/mangas/BDs/magazines/eBooks")
|
||||
(description
|
||||
"Komga is a media server for your comics, mangas, BDs, magazines and
|
||||
eBooks.")
|
||||
(supported-systems '("x86_64-linux"))
|
||||
(license license:expat)
|
||||
(properties '((upstream-name . "komga")
|
||||
(disable-updater? . #t)))))
|
||||
|
||||
(define-public navidrome-bin
|
||||
(package
|
||||
(name "navidrome-bin")
|
||||
(version "0.57.0")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"https://github.com/navidrome/navidrome/releases/download/v"
|
||||
version "/navidrome_" version "_linux_amd64.tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0v2av7q9sfsm17m03xdzb7afn3hlqb2vj3ps0xwsa8x7yza4j3fb"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list #:install-plan
|
||||
#~'(("navidrome" "bin/"))))
|
||||
(supported-systems '("x86_64-linux"))
|
||||
(home-page "https://www.navidrome.org/")
|
||||
(synopsis "Web-based music collection server and streamer")
|
||||
(description
|
||||
"Navidrome is a self-hosted music server that allows users to stream and
|
||||
manage their music collections. It provides a web interface and is compatible
|
||||
with the Subsonic API.")
|
||||
(license license:expat)
|
||||
(properties '((upstream-name . "navidrome")
|
||||
(disable-updater? . #t)))))
|
||||
|
||||
(define-public rclone-bin
|
||||
(package
|
||||
(inherit rclone)
|
||||
(name "rclone-bin")
|
||||
(version "1.71.0")
|
||||
(source (origin
|
||||
(method url-fetch/zipbomb)
|
||||
(uri (string-append
|
||||
"https://github.com/rclone/rclone/releases/download/v"
|
||||
version "/rclone-v" version "-linux-amd64.zip"))
|
||||
(sha256
|
||||
(base32
|
||||
"14wyd767nbk3whgfvblb3kpiyzskcqbq61nh1jq6wbpg6pawznrx"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list #:install-plan
|
||||
#~'((#$(string-append "rclone-v" (package-version this-package)
|
||||
"-linux-amd64/rclone")
|
||||
"bin/rclone"))))
|
||||
(supported-systems '("x86_64-linux"))
|
||||
(properties '((upstream-name . "rclone")
|
||||
(disable-updater? . #t)))))
|
||||
|
||||
(define-public shadow-tls-bin
|
||||
(package
|
||||
(name "shadow-tls-bin")
|
||||
(version "0.2.25")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"https://github.com/ihciah/shadow-tls/releases/download/v"
|
||||
version "/shadow-tls-x86_64-unknown-linux-musl"))
|
||||
(sha256
|
||||
(base32
|
||||
"0chmqzfmyw5w8ybshkwigc3r25svq7fyw371d0dj2ibzsprgawx1"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list #:install-plan
|
||||
#~'(("shadow-tls-x86_64-unknown-linux-musl" "bin/shadow-tls"))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'install 'fix-permission
|
||||
(lambda _
|
||||
(chmod (string-append #$output "/bin/shadow-tls") #o555))))))
|
||||
(supported-systems '("x86_64-linux"))
|
||||
(home-page "https://www.ihcblog.com/a-better-tls-obfs-proxy/")
|
||||
(synopsis "Proxy to expose real tls handshake to the firewall")
|
||||
(description
|
||||
"Shadow TLS is a proxy to expose real tls handshake to the @acronym{MITM,
|
||||
monster-in-the-middle}.")
|
||||
(license license:expat)
|
||||
(properties '((upstream-name . "shadow-tls")
|
||||
(disable-updater? . #t)))))
|
||||
|
||||
(define-public wakapi-bin
|
||||
(package
|
||||
(name "wakapi-bin")
|
||||
(version "2.14.1")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"https://github.com/muety/wakapi/releases/download/"
|
||||
version "/wakapi_linux_amd64.zip"))
|
||||
(sha256
|
||||
(base32
|
||||
"1qfm3di3bfk7pc6ks22287hib7jk57ilvsy3hm42xvv2fhk77m69"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments (list #:install-plan #~'(("wakapi" "bin/wakapi"))))
|
||||
(supported-systems '("x86_64-linux"))
|
||||
(native-inputs (list unzip))
|
||||
(home-page "https://wakapi.dev/")
|
||||
(synopsis "WakaTime-compatible backend")
|
||||
(description
|
||||
"This package provides @code{wakapi}, a WakaTime-compatible backend for
|
||||
coding statistics.")
|
||||
(license license:expat)
|
||||
(properties '((upstream-name . "wakapi")
|
||||
(disable-updater? . #t)))))
|
||||
|
||||
(define-public wakatime-cli-bin
|
||||
(package
|
||||
(name "wakatime-cli-bin")
|
||||
(version "1.124.1")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "https://github.com/wakatime/wakatime-cli"
|
||||
"/releases/download/v" version
|
||||
"/wakatime-cli-linux-amd64.zip"))
|
||||
(sha256
|
||||
(base32
|
||||
"16glv2x0n118dczgjfaz02dwq70ngcq4wqc3pswdjzkch79z109m"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list #:install-plan
|
||||
#~'(("wakatime-cli-linux-amd64" "bin/wakatime-cli"))))
|
||||
(supported-systems '("x86_64-linux"))
|
||||
(native-inputs (list unzip))
|
||||
(home-page "https://wakatime.com/plugins")
|
||||
(synopsis "Command line interface to WakaTime")
|
||||
(description
|
||||
"This package provides @command{wakatime-cli}, the command line interface
|
||||
to WakaTime, which is used by all WakaTime text editor plugins.")
|
||||
(license license:bsd-3)
|
||||
(properties '((upstream-name . "wakatime-cli")
|
||||
(disable-updater? . #t)))))
|
||||
|
||||
(define-public grafana-bin
|
||||
(package
|
||||
(name "grafana-bin")
|
||||
(version "12.1.1")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "https://dl.grafana.com/grafana/release/"
|
||||
version "/grafana_" version "_" "16903967602"
|
||||
"_linux_amd64.tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"056jj4ww1l36y77v9qmqhgsg7lsr328bhp7y48c6l125cal1snl2"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list #:install-plan
|
||||
#~'(("bin" "bin")
|
||||
("conf" "share/grafana/")
|
||||
("public" "share/grafana/"))))
|
||||
(synopsis "Platform for monitoring and observability")
|
||||
(description
|
||||
"Grafana allows you to query, visualize, alert on and understand your
|
||||
metrics no matter where they are stored.")
|
||||
(home-page "https://grafana.com/")
|
||||
(license license:agpl3)
|
||||
(supported-systems '("x86_64-linux"))
|
||||
(properties '((upstream-name . "grafana")
|
||||
(disable-updater? . #t)))))
|
||||
|
||||
(define-public prometheus-bin
|
||||
(package
|
||||
(name "prometheus-bin")
|
||||
(version "3.7.2")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "https://github.com/prometheus/prometheus"
|
||||
"/releases/download/v" version
|
||||
"/prometheus-" version ".linux-amd64.tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0wam45r7ksgmpbgryxwy1pddk3yf0pk85zph4k7gag8x7k2bqn35"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list #:install-plan
|
||||
#~'(("prometheus" "bin/")
|
||||
("promtool" "bin/")
|
||||
("prometheus.yml" "etc/"))))
|
||||
(synopsis "Monitoring system and time series database")
|
||||
(description
|
||||
"Prometheus is a systems and service monitoring system. It collects
|
||||
metrics from configured targets at given intervals, evaluates rule expressions,
|
||||
displays the results, and can trigger alerts when specified conditions are
|
||||
observed.")
|
||||
(home-page "https://prometheus.io/")
|
||||
(license license:asl2.0)
|
||||
(supported-systems '("x86_64-linux"))
|
||||
(properties '((upstream-name . "prometheus")))))
|
||||
|
||||
(define-public mimir-bin
|
||||
(package
|
||||
(name "mimir-bin")
|
||||
(version "2.17.1")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"https://github.com/grafana/mimir/releases/download/mimir-"
|
||||
version "/mimir-linux-amd64"))
|
||||
(sha256
|
||||
(base32
|
||||
"1vnrpzwyjz7plzdiih65853ndvg64a9n1x1i7jqr085byhpayp82"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list #:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'install
|
||||
(lambda* (#:key source #:allow-other-keys)
|
||||
(let ((name "mimir")
|
||||
(dest (in-vicinity #$output "bin")))
|
||||
(mkdir-p dest)
|
||||
(with-directory-excursion dest
|
||||
(copy-file source name)
|
||||
(chmod name #o555))))))))
|
||||
(synopsis "Scalable long-term storage for Prometheus")
|
||||
(description
|
||||
"Grafana Mimir provides horizontally scalable, highly available,
|
||||
multi-tenant, long-term storage for Prometheus.")
|
||||
(home-page "https://grafana.com/oss/mimir/")
|
||||
(license license:agpl3)
|
||||
(supported-systems '("x86_64-linux"))
|
||||
(properties '((upstream-name . "mimir")
|
||||
(disable-updater? . #t)))))
|
||||
|
||||
(define-public loki-bin
|
||||
(package
|
||||
(name "loki-bin")
|
||||
(version "3.5.4")
|
||||
(source (origin
|
||||
(method url-fetch/zipbomb)
|
||||
(uri (string-append
|
||||
"https://github.com/grafana/loki/releases/download/v"
|
||||
version "/loki-linux-amd64.zip"))
|
||||
(sha256
|
||||
(base32
|
||||
"1z1z60ki4zavijw0idpard0xx38q8140wv2hykxb3rikb05z0frk"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list #:install-plan
|
||||
#~'(("loki-linux-amd64" "bin/loki"))))
|
||||
(synopsis "Log aggregation system")
|
||||
(description
|
||||
"Loki is a horizontally scalable, highly available, multi-tenant log
|
||||
aggregation system inspired by Prometheus. It is designed to be very cost
|
||||
effective and easy to operate. It does not index the contents of the logs, but
|
||||
rather a set of labels for each log stream.")
|
||||
(home-page "https://grafana.com/oss/loki/")
|
||||
(license license:agpl3)
|
||||
(supported-systems '("x86_64-linux"))
|
||||
(properties '((upstream-name . "loki")
|
||||
(disable-updater? . #t)))))
|
||||
|
||||
(define-public alloy-bin
|
||||
(package
|
||||
(name "alloy-bin")
|
||||
(version "1.10.2")
|
||||
(source (origin
|
||||
(method url-fetch/zipbomb)
|
||||
(uri (string-append
|
||||
"https://github.com/grafana/alloy/releases/download/v"
|
||||
version "/alloy-linux-amd64.zip"))
|
||||
(sha256
|
||||
(base32
|
||||
"03hwmnkx2awxlfw3ixplfnwzx7n1x624n1yw6cgky4hhjz13d3i8"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list #:install-plan
|
||||
#~'(("alloy-linux-amd64" "bin/alloy"))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'install 'patch-elf
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((name "alloy")
|
||||
(dest (in-vicinity #$output "bin"))
|
||||
(ld.so (search-input-file inputs #$(glibc-dynamic-linker))))
|
||||
(with-directory-excursion dest
|
||||
(invoke "patchelf" "--set-interpreter" ld.so name))))))))
|
||||
(native-inputs (list patchelf))
|
||||
(synopsis
|
||||
"OpenTelemetry Collector distribution with programmable pipelines")
|
||||
(description
|
||||
"Grafana Alloy is an open source OpenTelemetry Collector distribution with
|
||||
built-in Prometheus pipelines and support for metrics, logs, traces, and
|
||||
profiles.")
|
||||
(home-page "https://grafana.com/oss/alloy-opentelemetry-collector/")
|
||||
(license license:agpl3)
|
||||
(supported-systems '("x86_64-linux"))
|
||||
(properties '((upstream-name . "alloy")
|
||||
(disable-updater? . #t)))))
|
||||
|
||||
(define-public alloy-bin-aarch64-linux
|
||||
(package
|
||||
(inherit alloy-bin)
|
||||
(name "alloy-bin-aarch64-linux")
|
||||
(version "1.10.2")
|
||||
(source (origin
|
||||
(method url-fetch/zipbomb)
|
||||
(uri (string-append
|
||||
"https://github.com/grafana/alloy/releases/download/v"
|
||||
version "/alloy-linux-arm64.zip"))
|
||||
(sha256
|
||||
(base32
|
||||
"1gnfdhs8rxyn18swy1kv1f2lbsj6abjlhrgaibsj2a87swgcyvjg"))))
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments alloy-bin)
|
||||
((#:install-plan _ ''())
|
||||
#~'(("alloy-linux-arm64" "bin/alloy")))))
|
||||
(supported-systems '("aarch64-linux"))))
|
||||
@@ -0,0 +1,163 @@
|
||||
;;; SPDX-FileCopyrightText: 2023-2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;; Copyright © 2024 Lilah Tascheter <lilah@lunabee.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages bootloaders)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix build-system meson)
|
||||
#:use-module (guix build-system pyproject)
|
||||
#:use-module (gnu packages autotools)
|
||||
#:use-module (gnu packages base)
|
||||
#:use-module (gnu packages bootloaders)
|
||||
#:use-module (gnu packages crypto)
|
||||
#:use-module (gnu packages efi)
|
||||
#:use-module (gnu packages gperf)
|
||||
#:use-module (gnu packages linux)
|
||||
#:use-module (gnu packages pkg-config)
|
||||
#:use-module (gnu packages python)
|
||||
#:use-module (gnu packages python-build)
|
||||
#:use-module (gnu packages python-crypto)
|
||||
#:use-module (gnu packages python-xyz)
|
||||
#:export (systemd-stub-name))
|
||||
|
||||
;; Patches obtained from:
|
||||
;; <https://leo3418.github.io/collections/gentoo-config-luks2-grub-systemd/packages.html>
|
||||
|
||||
(define grub-luks2-argon2-support-patch
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "https://leo3418.github.io/"
|
||||
"res/collections/gentoo-config-luks2-grub-systemd/"
|
||||
"grub-2.12-luks2-argon2-v4.patch"))
|
||||
(sha256
|
||||
(base32
|
||||
"02y15k6rd5vj2shfijyhq2nr2775vpa55ijfy6bb8irpnh8i2272"))))
|
||||
|
||||
(define-public grub-efi-luks2
|
||||
(let ((base grub-efi))
|
||||
(package
|
||||
(inherit base)
|
||||
(name "grub-efi-luks2")
|
||||
(source
|
||||
(let ((base (package-source base)))
|
||||
(origin
|
||||
(inherit base)
|
||||
(patches
|
||||
(append (origin-patches base)
|
||||
(list grub-luks2-argon2-support-patch))))))
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments base)
|
||||
((#:configure-flags flags ''())
|
||||
#~(append #$flags '("--disable-werror")))
|
||||
((#:phases phases '%standard-phases)
|
||||
#~(modify-phases #$phases
|
||||
(add-after 'unpack 'delete-configure-script
|
||||
(lambda _
|
||||
(delete-file "configure")))))))
|
||||
(native-inputs
|
||||
(modify-inputs (package-native-inputs base)
|
||||
(append autoconf automake python-minimal-wrapper)))
|
||||
(properties
|
||||
`(,@(package-properties base)
|
||||
(disable-updater? . #t))))))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Unified Kernel Image support.
|
||||
;;;
|
||||
|
||||
(define (systemd-stub-name)
|
||||
(let ((arch (cond ((target-x86-32?) "ia32")
|
||||
((target-x86-64?) "x64")
|
||||
((target-arm32?) "arm")
|
||||
((target-aarch64?) "aa64")
|
||||
((target-riscv64?) "riscv64"))))
|
||||
(string-append "linux" arch ".efi.stub")))
|
||||
|
||||
(define-public systemd-stub
|
||||
(package
|
||||
(name "systemd-stub")
|
||||
(version "258")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/systemd/systemd")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name "name" version))
|
||||
(sha256
|
||||
(base32
|
||||
"18gnp45gl1154jra6qv95k8y7ny6phdm87yqi5jdq13cadlrklf6"))))
|
||||
(build-system meson-build-system)
|
||||
(arguments
|
||||
(list #:tests? #f
|
||||
#:configure-flags
|
||||
`(list "-Defi=true" "-Dsbat-distro=guix"
|
||||
"-Dsbat-distro-generation=1" ; package revision!
|
||||
"-Dsbat-distro-summary=Guix System"
|
||||
"-Dsbat-distro-url=https://guix.gnu.org"
|
||||
,(string-append "-Dsbat-distro-pkgname=" name)
|
||||
,(string-append "-Dsbat-distro-version=" version))
|
||||
#:phases
|
||||
#~(let ((stub #$(string-append "src/boot/" (systemd-stub-name))))
|
||||
(modify-phases %standard-phases
|
||||
(replace 'build
|
||||
(lambda* (#:key parallel-build? #:allow-other-keys)
|
||||
(invoke "ninja" stub
|
||||
"-j" (if parallel-build?
|
||||
(number->string (parallel-job-count)) "1"))))
|
||||
(replace 'install
|
||||
(lambda _
|
||||
(install-file stub (string-append #$output "/libexec"))))))))
|
||||
(inputs (list libcap libxcrypt python-pyelftools `(,util-linux "lib")))
|
||||
(native-inputs (list gperf pkg-config python-minimal python-jinja2))
|
||||
(home-page "https://systemd.io/")
|
||||
(synopsis "Unified kernel image UEFI stub")
|
||||
(description "Simple UEFi boot stub that loads a conjoined kernel image and
|
||||
supporting data to their proper locations, before chainloading to the kernel.
|
||||
Supports measured and/or verified boot environments.")
|
||||
(license license:lgpl2.1+)))
|
||||
|
||||
(define-public ukify
|
||||
(package
|
||||
(name "ukify")
|
||||
(version "258")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/systemd/systemd")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"18gnp45gl1154jra6qv95k8y7ny6phdm87yqi5jdq13cadlrklf6"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list #:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(delete 'check)
|
||||
(replace 'install
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let* ((bin (string-append #$output "/bin"))
|
||||
(file (string-append bin "/ukify"))
|
||||
(binutils (assoc-ref inputs "binutils"))
|
||||
(sbsign (assoc-ref inputs "sbsigntools")))
|
||||
(mkdir-p bin)
|
||||
(copy-file "src/ukify/ukify.py" file)
|
||||
(wrap-program file
|
||||
`("PATH" ":" prefix
|
||||
(,(string-append binutils "/bin")
|
||||
,(string-append sbsign "/bin"))))))))))
|
||||
(inputs (list binutils python-cryptography python-pefile sbsigntools))
|
||||
(native-inputs (list python-setuptools))
|
||||
(home-page "https://systemd.io")
|
||||
(synopsis "Unified kernel image UEFI tool")
|
||||
(description "@command{ukify} joins together a UKI stub, linux kernel, initrd,
|
||||
kernel arguments, and optional secure boot signatures into a single, UEFI-bootable
|
||||
image.")
|
||||
(license license:lgpl2.1+)))
|
||||
@@ -0,0 +1,146 @@
|
||||
;;; SPDX-FileCopyrightText: 2023-2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages browser-extensions)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix build-system copy)
|
||||
#:use-module (gnu build icecat-extension))
|
||||
|
||||
(define-public bitwarden
|
||||
(package
|
||||
(name "bitwarden")
|
||||
(version "2025.6.1")
|
||||
(source (origin
|
||||
(method url-fetch/zipbomb)
|
||||
(uri (string-append "https://github.com/bitwarden/clients"
|
||||
"/releases/download/browser-v" version
|
||||
"/dist-firefox-" version ".zip"))
|
||||
(sha256
|
||||
(base32
|
||||
"1yx9f1adh6swbzf24rj621vgccvi8gl7hi8q4r9ccv5qq4zq3f53"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list #:install-plan
|
||||
#~'(("." #$(assq-ref (package-properties this-package) 'addon-id)))))
|
||||
(home-page "https://bitwarden.com/")
|
||||
(synopsis "Bitwarden client browser extension")
|
||||
(description
|
||||
"This package provides browser extension for Bitwarden client.")
|
||||
(license license:gpl3)
|
||||
(properties
|
||||
'((addon-id . "{446900e4-71c2-419f-a6a7-df9c091e268b}")
|
||||
(hidden? . #t)
|
||||
(disable-updater? . #t)))))
|
||||
|
||||
(define-public bitwarden/icecat
|
||||
(let ((base (make-icecat-extension bitwarden)))
|
||||
(package
|
||||
(inherit base)
|
||||
(properties
|
||||
`(,@(alist-delete 'hidden? (package-properties base))
|
||||
(disable-updater? . #t))))))
|
||||
|
||||
(define-public miniflux-injector
|
||||
(package
|
||||
(name "miniflux-injector")
|
||||
(version "2.3.3")
|
||||
(properties
|
||||
'((addon-id . "{528ec801-2e29-4cb9-ae71-5a90503138d1}")
|
||||
(hidden? . #t)
|
||||
(disable-updater? . #t)))
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch/zipbomb)
|
||||
(uri (string-append
|
||||
"https://github.com/Sevichecc/miniflux-injector/releases/download"
|
||||
"/v" version "/miniflux_injector-" version ".zip"))
|
||||
(sha256
|
||||
(base32
|
||||
"199z441ak6dwy7skgbwc9aa4gfd2r4i22hxfm27s5k3rv7barbvs"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
#~(substitute* "manifest.json"
|
||||
(("homepage_url.*" line)
|
||||
(string-append line "\
|
||||
\"browser_specific_settings\": {
|
||||
\"gecko\": {
|
||||
\"id\": \"" #$(assq-ref properties 'addon-id) "\"
|
||||
}
|
||||
},
|
||||
"))))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:install-plan
|
||||
#~'(("." #$(assq-ref (package-properties this-package) 'addon-id)))))
|
||||
(home-page "https://github.com/Sevichecc/miniflux-injector")
|
||||
(synopsis "Injects Miniflux search results into search page")
|
||||
(description
|
||||
"This package provides a browser extension to inject Miniflux search
|
||||
results into search page. Search terms are sent to your Miniflux instance and
|
||||
results are added in a sidebar next to search engine results.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public miniflux-injector/icecat
|
||||
(let ((base (make-icecat-extension miniflux-injector)))
|
||||
(package
|
||||
(inherit base)
|
||||
(properties
|
||||
`(,@(alist-delete 'hidden? (package-properties base))
|
||||
(disable-updater? . #t))))))
|
||||
|
||||
(define-public ohmyech
|
||||
(package
|
||||
(name "ohmyech")
|
||||
(version "1.1")
|
||||
(properties
|
||||
'((addon-id . "{46b8ab0b-8adf-4e43-ad67-acef5a8d45c9}")
|
||||
(hidden? . #t)
|
||||
(disable-updater? . #t)))
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/27justin/ohmyech")
|
||||
(commit "ec7935d500a9d354776586e25261cef3595c40c7")))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"1mrbm8c8z9zpfrs0qk5qj64f35p7c5lrxfn3nhda0ar0b2rv6593"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
#~(substitute* "manifest.json"
|
||||
(("\"version\".*" line)
|
||||
(string-append line "\
|
||||
\"browser_specific_settings\": {
|
||||
\"gecko\": {
|
||||
\"id\": \"" #$(assq-ref properties 'addon-id) "\"
|
||||
}
|
||||
},
|
||||
"))))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list #:install-plan
|
||||
#~'(("." #$(assq-ref (package-properties this-package) 'addon-id)))))
|
||||
(home-page "https://github.com/27justin/ohmyech")
|
||||
(synopsis "Visual indicator for Encrpted Client Hello")
|
||||
(description
|
||||
"OhMyECH is a browser extension for indicating the use of @acronym{ECH,
|
||||
Encrypted Client Hello} on web pages. When enabled, it adds an icon to the
|
||||
browser address bar, providing users with a visual cue about whether the
|
||||
current page employs @acronym{ECH}, which helps protect sensitive information
|
||||
during the @acronym{TLS, Transport Layer Security} handshake process.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public ohmyech-icecat
|
||||
(let ((base (make-icecat-extension ohmyech)))
|
||||
(package
|
||||
(inherit base)
|
||||
(properties
|
||||
`(,@(alist-delete 'hidden? (package-properties base))
|
||||
(disable-updater? . #t))))))
|
||||
@@ -0,0 +1,31 @@
|
||||
;;; SPDX-FileCopyrightText: 2022 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages busybox)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (gnu packages busybox))
|
||||
|
||||
(define-public busybox/static
|
||||
(let ((base busybox))
|
||||
(package
|
||||
(inherit base)
|
||||
(name "busybox-static")
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments base)
|
||||
((#:phases phases)
|
||||
#~(modify-phases #$phases
|
||||
(add-after 'configure 'static-build
|
||||
(lambda _
|
||||
(substitute* ".config"
|
||||
(("# CONFIG_STATIC is not set")
|
||||
"CONFIG_STATIC=y"))))
|
||||
;; FIXME: All mdev tests fail when building staticly.
|
||||
(add-before 'check 'disable-failing-tests
|
||||
(lambda _
|
||||
(delete-file "testsuite/mdev.tests")))))))
|
||||
(properties
|
||||
`(,@(package-properties base)
|
||||
(disable-updater? . #t))))))
|
||||
@@ -0,0 +1,10 @@
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages ci)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (gnu packages ci))
|
||||
@@ -0,0 +1,63 @@
|
||||
;;; SPDX-FileCopyrightText: 2022-2024 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages dns)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix build-system copy)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix packages))
|
||||
|
||||
(define-public dnsmasq-china-list
|
||||
;; No version.
|
||||
(let ((commit "1a4d9fce63c44e80c2d6d790d7501e6103caf8da")
|
||||
(revision "20"))
|
||||
(package
|
||||
(name "dnsmasq-china-list")
|
||||
(version (git-version "0" revision commit))
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/felixonmars/dnsmasq-china-list")
|
||||
(commit commit)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0wy3p9fimzvbv6jrcyi2s89cvz2v7b3h61gfj93kn2wmpli6apyp"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list #:install-plan
|
||||
#~'(("." "share/dnsmasq-china-list/" #:include-regexp ("\\.conf")))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'install 'build
|
||||
(lambda _
|
||||
(for-each (lambda (target)
|
||||
(invoke "make" target
|
||||
"SERVER=domestic"
|
||||
"SMARTDNS_SPEEDTEST_MODE=tcp:80"))
|
||||
'("adguardhome"
|
||||
"bind"
|
||||
"coredns"
|
||||
"dnscrypt-proxy"
|
||||
"dnsforwarder6"
|
||||
"dnsmasq"
|
||||
"smartdns" "smartdns-domain-rules"
|
||||
"unbound")))))))
|
||||
(home-page "https://github.com/felixonmars/dnsmasq-china-list")
|
||||
(synopsis "Chinese-specific DNS server configurations")
|
||||
(description
|
||||
"Chinese-specific configuration to improve your favorite DNS server.
|
||||
Best partner for chnroutes.
|
||||
|
||||
@itemize
|
||||
@item Improve resolve speed for Chinese domains.
|
||||
@item Get the best CDN node near you whenever possible, but don't compromise
|
||||
foreign CDN results so you also get best CDN node for your VPN at the same
|
||||
time.
|
||||
@item Block ISP ads on NXDOMAIN result (like 114so).
|
||||
@end itemize")
|
||||
(license license:wtfpl2)
|
||||
(properties
|
||||
'((disable-updater? . #t))))))
|
||||
@@ -0,0 +1,135 @@
|
||||
;;; SPDX-FileCopyrightText: 2022-2024 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages emacs-xyz)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix build-system emacs)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (gnu packages emacs-xyz))
|
||||
|
||||
(define-public emacs-caddyfile-mode
|
||||
(let ((commit "fc41148f5a7eb320f070666f046fb9d88cf17680")
|
||||
(revision "0"))
|
||||
(package
|
||||
(name "emacs-caddyfile-mode")
|
||||
(version (git-version "0.2" revision commit))
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/Schnouki/caddyfile-mode")
|
||||
(commit commit)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"1s9kbav5wbyividn9zncd153h89nil0i9aj9hgxa95q9fy84r23w"))))
|
||||
(build-system emacs-build-system)
|
||||
;; No tests.
|
||||
(arguments (list #:tests? #f))
|
||||
(propagated-inputs (list emacs-loop))
|
||||
(home-page "https://github.com/Schnouki/caddyfile-mode")
|
||||
(synopsis "Emacs major mode for editing Caddy configuration files")
|
||||
(description
|
||||
"This package provides @code{caddyfile-mode}, an Emacs major mode for
|
||||
editing Caddyfiles, configuration files for @code{caddy}.")
|
||||
(license license:gpl3+)
|
||||
(properties
|
||||
'((disable-updater? . #t))))))
|
||||
|
||||
(define-public emacs-eat/dolly
|
||||
(package
|
||||
(inherit
|
||||
(package-with-extra-patches emacs-eat
|
||||
(list (origin
|
||||
(method url-fetch)
|
||||
(uri "https://codeberg.org/akib/emacs-eat/pulls/133.patch")
|
||||
(sha256
|
||||
(base32
|
||||
"0rn2xf2jq9i42ndcd3wxrr5lid8r4kxqiyr84dasv5ihqg8as5d5")))
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri "https://codeberg.org/akib/emacs-eat/pulls/228.patch")
|
||||
(sha256
|
||||
(base32
|
||||
"14d6nvagcri0r687y3m179ijmnad89m5d5dj2rn2p6rpfc5nssr0"))))))
|
||||
(name "emacs-eat-dolly")))
|
||||
|
||||
(define-public emacs-nftables-mode
|
||||
(package
|
||||
(name "emacs-nftables-mode")
|
||||
(version "1.1")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "https://elpa.gnu.org/packages/nftables-mode-"
|
||||
version ".tar"))
|
||||
(sha256
|
||||
(base32 "1wjw6n60kj84j8gj62mr6s97xd0aqvr4v7npyxwmhckw9z13xcqv"))))
|
||||
(build-system emacs-build-system)
|
||||
(home-page "https://elpa.gnu.org/packages/nftables-mode.html")
|
||||
(synopsis "Major mode for editing nftables scripts")
|
||||
(description
|
||||
"@code{nftables-mode} is an Emacs major mode for editing nftables scripts.
|
||||
It currently only offers basic highlighting and primitive indentation.")
|
||||
(license license:gpl3+)))
|
||||
|
||||
(define-public emacs-pcmpl-tailscale
|
||||
(let ((commit "acd6bce54af506b0450cf6aa1068f63d4e25c8ce")
|
||||
(revision "0"))
|
||||
(package
|
||||
(name "emacs-pcmpl-tailscale")
|
||||
(version (git-version "0.0.1" revision commit))
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://git.thanosapollo.org/pcmpl-tailscale")
|
||||
(commit commit)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "0lk808ahy8ckg2fr2pqk3p5if81nqrwsajrgqafv9hgn8w4l1x0p"))))
|
||||
(build-system emacs-build-system)
|
||||
(home-page "https://git.thanosapollo.org/pcmpl-tailscale")
|
||||
(synopsis "Enhanced shell completions for tailscale")
|
||||
(description
|
||||
"This package provides enhanced completions for the tailscale command
|
||||
and it's subcommands.")
|
||||
(license license:gpl3+)
|
||||
(properties
|
||||
'((disable-updater? . #t))))))
|
||||
|
||||
;; https://issues.guix.gnu.org/59552
|
||||
(define-public emacs-wakatime-mode
|
||||
;; No release since May 5, 2015.
|
||||
(let ((commit "1c5b2254dd72f2ff504d6a6189a8c10be03a98d1")
|
||||
(revision "60"))
|
||||
(package
|
||||
(name "emacs-wakatime-mode")
|
||||
;; 1.0.2 on commit 32a0154cd4bbd525d354997e6b12c6a9726d0b43, not tagged
|
||||
(version (git-version "1.0.2" revision commit))
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/wakatime/wakatime-mode")
|
||||
(commit commit)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"00qv6b756qiaqrmfg1w03psnsdj0iaz3sp50ib4kmdm2g9vgxl1s"))))
|
||||
(build-system emacs-build-system)
|
||||
(arguments
|
||||
(list #:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; XXX: WakaTime hasn't packaged in Guix yet.
|
||||
(delete 'patch-el-files))))
|
||||
(home-page "https://wakatime.com/emacs")
|
||||
(synopsis "Automatic time tracking extension for Emacs using WakaTime")
|
||||
(description
|
||||
"WakaTime mode is an Emacs minor mode for automatic time tracking and
|
||||
metrics generated from your programming activity.")
|
||||
(license license:gpl3+)
|
||||
(properties
|
||||
'((disable-updater? . #t))))))
|
||||
@@ -0,0 +1,92 @@
|
||||
;;; Copyright © 2022 Cairn <cairn@pm.me>
|
||||
;;; Copyright © 2025 Carmine Margiotta <accounts@cmargiotta.net>
|
||||
;;; Copyright © 2025 Noah Evans <noah@nevans.me>
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages games)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix build-system cmake)
|
||||
#:use-module (gnu packages bash)
|
||||
#:use-module (gnu packages compression)
|
||||
#:use-module (gnu packages gl)
|
||||
#:use-module (gnu packages java)
|
||||
#:use-module (gnu packages kde-frameworks)
|
||||
#:use-module (gnu packages pulseaudio)
|
||||
#:use-module (gnu packages qt)
|
||||
#:use-module (gnu packages xorg))
|
||||
|
||||
;; Copied from Guix Gaming Channels
|
||||
(define-public prismlauncher/dolly
|
||||
(package
|
||||
(name "prismlauncher-dolly")
|
||||
(version "9.4")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/PrismLauncher/PrismLauncher")
|
||||
(recursive? #t)
|
||||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"1xxgyx0z5r3hk3yk4gglbfwvq2qk1j9a0dkrv55j4vrlkni79nrm"))))
|
||||
(build-system cmake-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'install 'patch-paths
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(bin (string-append out "/bin/prismlauncher"))
|
||||
(xrandr (assoc-ref inputs "xrandr"))
|
||||
(qtwayland (assoc-ref inputs "qtwayland"))
|
||||
(qtsvg (assoc-ref inputs "qtsvg")))
|
||||
(wrap-program bin
|
||||
`("PATH" ":" prefix (,(string-append xrandr "/bin")))
|
||||
`("QT_PLUGIN_PATH" ":" prefix ,(map (lambda (package)
|
||||
(string-append package "/lib/qt6/plugins"))
|
||||
(list qtwayland qtsvg)))
|
||||
`("LD_LIBRARY_PATH" ":" prefix
|
||||
(,@(map (lambda (dep)
|
||||
(string-append (assoc-ref inputs dep)
|
||||
"/lib"))
|
||||
'("libx11" "libxext" "libxcursor"
|
||||
"libxrandr" "libxxf86vm" "pulseaudio" "mesa")))))))))))
|
||||
(native-inputs (list extra-cmake-modules))
|
||||
(inputs (list bash-minimal ; for wrap-program
|
||||
zlib
|
||||
qtbase
|
||||
qt5compat
|
||||
qtnetworkauth
|
||||
qtwayland
|
||||
qtsvg
|
||||
xrandr
|
||||
libx11
|
||||
libxext
|
||||
libxcursor
|
||||
libxrandr
|
||||
libxxf86vm
|
||||
pulseaudio
|
||||
mesa
|
||||
`(,openjdk17 "jdk")))
|
||||
(home-page "https://prismlauncher.org/")
|
||||
(synopsis "Free, open source launcher for Minecraft")
|
||||
(description
|
||||
"Allows you to have multiple, separate instances of Minecraft (each with
|
||||
their own mods, texture packs, saves, etc), and helps you manage them and
|
||||
their associated options with a simple interface.")
|
||||
(license (list license:gpl3 ; PolyMC, launcher
|
||||
license:expat ; MinGW runtime, lionshead, tomlc99
|
||||
license:lgpl3 ; Qt 5/6
|
||||
license:lgpl3+ ; libnbt++
|
||||
license:lgpl2.1+ ; rainbow (KGuiAddons)
|
||||
license:isc ; Hoedown
|
||||
license:silofl1.1 ; Material Design Icons
|
||||
license:lgpl2.1 ; Quazip
|
||||
license:public-domain ; xz-minidec, murmur2, xz-embedded
|
||||
license:bsd-3 ; ColumnResizer, O2 (Katabasis fork),
|
||||
; gamemode, localpeer
|
||||
license:asl2.0 ; classparser, systeminfo
|
||||
))))
|
||||
@@ -0,0 +1,17 @@
|
||||
(define-module (rosenthal packages golang)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (rosenthal utils download)
|
||||
#:use-module (rosenthal utils cargo)
|
||||
#:use-module (guix build-system cargo)
|
||||
#:use-module (guix build-system copy)
|
||||
#:use-module (guix build-system go)
|
||||
#:use-module (gnu packages golang)
|
||||
#:use-module (gnu packages image)
|
||||
#:use-module (gnu packages jemalloc)
|
||||
#:use-module (gnu packages web)
|
||||
#:use-module (gnu packages version-control))
|
||||
@@ -0,0 +1,389 @@
|
||||
;;; SPDX-FileCopyrightText: 2022-2024 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages networking)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix build-system go)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (rosenthal utils download)
|
||||
#:use-module (rosenthal utils packages)
|
||||
#:use-module (gnu packages base)
|
||||
#:use-module (gnu packages dns)
|
||||
#:use-module (gnu packages golang)
|
||||
#:use-module (gnu packages golang-build)
|
||||
#:use-module (gnu packages linux)
|
||||
#:use-module (rosenthal packages golang))
|
||||
|
||||
(define-public cloudflared
|
||||
(package
|
||||
(name "cloudflared")
|
||||
(version "2025.10.0")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/cloudflare/cloudflared")
|
||||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
;; TODO: Unbundle vendored dependencies.
|
||||
;; (modules '((guix build utils)))
|
||||
;; (snippet '(delete-file-recursively "vendor"))
|
||||
(sha256
|
||||
(base32
|
||||
"17an3nky4ibfi486wy2gsbv39qcmbsc3yvs3h2w6yxa4cb9knk6v"))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list #:go go-1.24
|
||||
#:install-source? #f
|
||||
#:import-path "github.com/cloudflare/cloudflared/cmd/cloudflared"
|
||||
#:unpack-path "github.com/cloudflare/cloudflared"
|
||||
#:build-flags
|
||||
#~(list (string-append
|
||||
"-ldflags="
|
||||
" -X main.Version=" #$(package-version this-package)
|
||||
" -X github.com/cloudflare/cloudflared/cmd/cloudflared/updater.BuiltForPackageManager=Guix"))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'build 'disable-cgo
|
||||
(lambda _
|
||||
(setenv "CGO_ENABLED" "0")))
|
||||
(add-after 'install 'install-documentation
|
||||
(lambda _
|
||||
(let ((src "src/github.com/cloudflare/cloudflared/cloudflared_man_template")
|
||||
(dst (string-append #$output "/share/man/man1/cloudflared.1")))
|
||||
(substitute* src
|
||||
(("\\$\\{VERSION\\}") #$(package-version this-package)))
|
||||
(mkdir-p (dirname dst))
|
||||
(copy-file src dst)))))))
|
||||
(home-page "https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/")
|
||||
(synopsis "Cloudflare Tunnel client")
|
||||
(description
|
||||
"This package provides the command-line client for Cloudflare Tunnel, a
|
||||
tunneling daemon that proxies traffic from the Cloudflare network to your
|
||||
origins. This daemon sits between Cloudflare network and your origin (e.g. a
|
||||
webserver). Cloudflare attracts client requests and sends them to you via
|
||||
this daemon, without requiring you to poke holes on your firewall --- your
|
||||
origin can remain as closed as possible.")
|
||||
(license license:asl2.0)))
|
||||
|
||||
(define-public mihomo
|
||||
(package
|
||||
(name "mihomo")
|
||||
(version "1.19.15")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/MetaCubeX/mihomo")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0znia4yhnz5c8bi4picksibrr1ggqf8adphmisxim4720nv1ja2v"))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:tests? (not (%current-target-system)) ;TODO: Run test suite.
|
||||
#:go go-1.23
|
||||
#:install-source? #f
|
||||
#:import-path "."
|
||||
#:build-flags
|
||||
#~(list "-tags" "with_gvisor"
|
||||
(string-append
|
||||
"-ldflags="
|
||||
" -X github.com/metacubex/mihomo/constant.Version="
|
||||
#$(package-version this-package)))
|
||||
#:modules
|
||||
'((ice-9 match)
|
||||
((guix build gnu-build-system) #:prefix gnu:)
|
||||
(guix build go-build-system)
|
||||
(guix build utils))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'unpack
|
||||
(lambda args
|
||||
(unsetenv "GO111MODULE")
|
||||
(apply (assoc-ref gnu:%standard-phases 'unpack) args)
|
||||
(copy-recursively
|
||||
#+(this-package-native-input "vendored-go-dependencies")
|
||||
"vendor")))
|
||||
(replace 'install-license-files
|
||||
(assoc-ref gnu:%standard-phases 'install-license-files))
|
||||
(delete 'check)
|
||||
(add-after 'install 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(let ((mihomo (in-vicinity #$output "bin/mihomo")))
|
||||
(invoke mihomo "--help")
|
||||
(invoke mihomo "-v"))))))))
|
||||
(native-inputs
|
||||
(append
|
||||
(list (origin
|
||||
(method (go-mod-vendor #:go go-1.23))
|
||||
(uri (package-source this-package))
|
||||
(file-name "vendored-go-dependencies")
|
||||
(sha256
|
||||
(base32
|
||||
"0917ksckkyh78v6sjbyss4ca52pqbza05vdxsxr79f9r6frzxsxp"))))
|
||||
(if (%current-target-system)
|
||||
(list this-package)
|
||||
'())))
|
||||
(home-page "https://wiki.metacubex.one/")
|
||||
(synopsis "Rule-based proxy")
|
||||
(description
|
||||
"Mihomo is an anti-censorship proxy application, originally known as
|
||||
\"Clash Meta\", designed to facilitate secure and flexible internet access.
|
||||
It supports various protocols, making it a versatile tool for users seeking to
|
||||
bypass network restrictions." )
|
||||
(license license:gpl3+)))
|
||||
|
||||
(define-public sing-box
|
||||
(package
|
||||
(name "sing-box")
|
||||
(version "1.12.11")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/SagerNet/sing-box")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"1vk7wqbwzy1qwhiak0n6dbjxr4mcdpmlbrsflr6l8xwfjmzhnvrb"))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:tests? (not (%current-target-system)) ;TODO: Run test suite.
|
||||
#:go go-1.23
|
||||
#:install-source? #f
|
||||
#:import-path "./cmd/sing-box"
|
||||
#:build-flags
|
||||
#~(list "-tags" (string-join
|
||||
'("with_quic"
|
||||
"with_dhcp"
|
||||
"with_wireguard"
|
||||
"with_tailscale"
|
||||
"with_utls"
|
||||
"with_acme"
|
||||
"with_clash_api"
|
||||
"with_gvisor"))
|
||||
(string-append
|
||||
"-ldflags="
|
||||
" -X github.com/sagernet/sing-box/constant.Version="
|
||||
#$(package-version this-package)))
|
||||
#:modules
|
||||
'((ice-9 match)
|
||||
((guix build gnu-build-system) #:prefix gnu:)
|
||||
(guix build go-build-system)
|
||||
(guix build utils))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'unpack
|
||||
(lambda args
|
||||
(unsetenv "GO111MODULE")
|
||||
(apply (assoc-ref gnu:%standard-phases 'unpack) args)
|
||||
(copy-recursively
|
||||
#+(this-package-native-input "vendored-go-dependencies")
|
||||
"vendor")))
|
||||
(replace 'install-license-files
|
||||
(assoc-ref gnu:%standard-phases 'install-license-files))
|
||||
(add-after 'unpack 'set-tailscale-default-wireguard-port
|
||||
(lambda _
|
||||
;; See also: https://tailscale.com/kb/1082/firewall-ports
|
||||
;; https://github.com/tailscale/tailscale/blob/51c11a864b1241d1cf1a736fbc94b0f8c76da563/cmd/tailscaled/tailscaled.go#L102
|
||||
(substitute* "vendor/github.com/sagernet/tailscale/tsnet/tsnet.go"
|
||||
(("s\\.Port") "41641"))))
|
||||
(add-after 'install 'install-extras
|
||||
(lambda _
|
||||
(let ((sing-box
|
||||
(or (which "sing-box")
|
||||
(in-vicinity #$output "bin/sing-box"))))
|
||||
(map
|
||||
(match-lambda
|
||||
((shell . path)
|
||||
(let ((file (in-vicinity #$output path)))
|
||||
(mkdir-p (dirname file))
|
||||
(with-output-to-file file
|
||||
(lambda ()
|
||||
(invoke sing-box "completion" shell))))))
|
||||
'(("bash" . "etc/bash_completion.d/sing-box")
|
||||
("fish" . "share/fish/vendor_completions.d/sing-box.fish")
|
||||
("zsh" . "share/zsh/site-functions/_sing-box")))))))))
|
||||
(native-inputs
|
||||
(append
|
||||
(list (origin
|
||||
(method (go-mod-vendor #:go go-1.23))
|
||||
(uri (package-source this-package))
|
||||
(file-name "vendored-go-dependencies")
|
||||
(sha256
|
||||
(base32
|
||||
"1dwrii2d05rc4j6gy6kbz4q6ry9xghggb8384y7x8a3czsq9x7gs"))))
|
||||
(if (%current-target-system)
|
||||
(list this-package)
|
||||
'())))
|
||||
(home-page "https://sing-box.sagernet.org/")
|
||||
(synopsis "Universal proxy platform")
|
||||
(description
|
||||
"@command{sing-box} is a customizable and univsersal proxy platform that
|
||||
can be used to create network proxy servers, clients and transparent proxies.")
|
||||
(license license:gpl3+)))
|
||||
|
||||
(define-public socks2http
|
||||
(package
|
||||
(name "socks2http")
|
||||
(version "0.0.0-20160712034938-bafa2cde8eb4")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/zenhack/socks2http")
|
||||
(commit (go-version->git-ref version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0c388rir9d0cy5vxqxj7m72nra0w5cya4mmgqdcvqmnk2vawdyb9"))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list #:install-source? #f
|
||||
#:import-path "github.com/zenhack/socks2http"))
|
||||
(inputs (list go-golang-org-x-net))
|
||||
(home-page "https://github.com/zenhack/socks2http")
|
||||
(synopsis "SOCKS5 to HTTP proxy")
|
||||
(description
|
||||
"This package provides a simple tool to plumb HTTP proxy requests through
|
||||
a SOCKS5 proxy.")
|
||||
(license license:expat)
|
||||
(properties
|
||||
'((disable-updater? . #t)))))
|
||||
|
||||
(define-public tailscale
|
||||
(package
|
||||
(name "tailscale")
|
||||
(version "1.90.4")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/tailscale/tailscale")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0rs6db5dfmhiaylkpv85b3xn8n7y612z1vln79m33xgvc708vpni"))
|
||||
(patches
|
||||
(rosenthal-patches
|
||||
"tailscale-set-guix-system-PATH-for-SSH.patch"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
'(begin
|
||||
(delete-file-recursively "tool")
|
||||
(substitute* "net/tstun/tun_linux.go"
|
||||
(("/sbin/(modprobe)" _ cmd) cmd))))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:tests? (not (%current-target-system)) ;TODO: Run test suite.
|
||||
#:go go-1.25
|
||||
#:install-source? #f
|
||||
#:import-path "."
|
||||
#:build-flags
|
||||
#~(list "-tags" "ts_include_cli"
|
||||
(string-append
|
||||
"-ldflags="
|
||||
" -X tailscale.com/version.longStamp="
|
||||
#$(package-version this-package)
|
||||
" -X tailscale.com/version.shortStamp="
|
||||
#$(package-version this-package)))
|
||||
#:modules
|
||||
'((ice-9 match)
|
||||
((guix build gnu-build-system) #:prefix gnu:)
|
||||
(guix build go-build-system)
|
||||
(guix build utils))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'unpack
|
||||
(lambda args
|
||||
(unsetenv "GO111MODULE")
|
||||
(apply (assoc-ref gnu:%standard-phases 'unpack) args)
|
||||
(copy-recursively
|
||||
#+(this-package-native-input "vendored-go-dependencies")
|
||||
"vendor")))
|
||||
(replace 'install-license-files
|
||||
(assoc-ref gnu:%standard-phases 'install-license-files))
|
||||
(replace 'build
|
||||
(lambda* (#:key build-flags parallel-build? #:allow-other-keys)
|
||||
(let* ((njobs (if parallel-build? (parallel-job-count) 1)))
|
||||
(setenv "GOMAXPROCS" (number->string njobs))
|
||||
(for-each
|
||||
(lambda (pkg)
|
||||
(apply invoke "go" "build" "-ldflags=-s -w" "-trimpath"
|
||||
"-o" (string-append #$output "/bin/" pkg)
|
||||
`(,@build-flags
|
||||
,(string-append "tailscale.com/cmd/" pkg))))
|
||||
'("derper"
|
||||
"derpprobe"
|
||||
"tailscaled"
|
||||
"tsidp")))))
|
||||
(add-after 'install 'install-extras
|
||||
(lambda _
|
||||
(symlink (in-vicinity #$output "bin/tailscaled")
|
||||
(in-vicinity #$output "bin/tailscale"))
|
||||
(let ((tailscale
|
||||
(or (which "tailscale")
|
||||
(in-vicinity #$output "bin/tailscale"))))
|
||||
(map
|
||||
(match-lambda
|
||||
((shell . path)
|
||||
(let ((file (in-vicinity #$output path)))
|
||||
(mkdir-p (dirname file))
|
||||
(with-output-to-file file
|
||||
(lambda ()
|
||||
(invoke tailscale "completion" shell))))))
|
||||
'(("bash" . "etc/bash_completion.d/tailscale")
|
||||
("fish" . "share/fish/vendor_completions.d/tailscale.fish")
|
||||
("zsh" . "share/zsh/site-functions/_tailscale"))))))
|
||||
(add-after 'install 'wrap-binaries
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(wrap-program (in-vicinity #$output "bin/tailscaled")
|
||||
`("PATH" ":" prefix
|
||||
,(map (lambda (cmd)
|
||||
(dirname (search-input-file inputs cmd)))
|
||||
'("bin/find"
|
||||
"bin/getent"
|
||||
"bin/modprobe"
|
||||
"sbin/ip"
|
||||
"sbin/iptables"
|
||||
"sbin/resolvconf"
|
||||
"sbin/sysctl"))))))
|
||||
(delete 'check)
|
||||
(add-after 'install 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(for-each
|
||||
(lambda (cmd)
|
||||
(invoke (string-append #$output "/bin/" cmd) "--help"))
|
||||
'("derper"
|
||||
"derpprobe"
|
||||
"tailscaled"
|
||||
"tsidp"))))))))
|
||||
(native-inputs
|
||||
(append
|
||||
(list (origin
|
||||
(method (go-mod-vendor #:go go-1.25))
|
||||
(uri (package-source this-package))
|
||||
(file-name "vendored-go-dependencies")
|
||||
(sha256
|
||||
(base32
|
||||
"1g040kwafvwma0ncy8ni86zq13rv8kkz0ybbgji51w5qb3cw4pdd"))))
|
||||
(if (%current-target-system)
|
||||
(list this-package)
|
||||
'())))
|
||||
(inputs
|
||||
(list findutils glibc iproute iptables-nft kmod openresolv procps))
|
||||
(home-page "https://tailscale.com/")
|
||||
(synopsis "Mesh VPN service utilizing the WireGuard protocol and 2FA")
|
||||
(description
|
||||
"Tailscale is a mesh VPN service that simplifies the process of securely
|
||||
connecting devices and services across various networks. It allows you to
|
||||
create a private network with minimal configuration and aims to remove the
|
||||
complexity of building a trusted and secure network.")
|
||||
(license license:bsd-3)))
|
||||
@@ -0,0 +1,24 @@
|
||||
;;; SPDX-FileCopyrightText: 2022, 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages package-management)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (rosenthal utils packages)
|
||||
#:use-module (gnu packages package-management))
|
||||
|
||||
(define-public guix/dolly
|
||||
(package
|
||||
(inherit
|
||||
(package-with-extra-patches guix
|
||||
(rosenthal-patches "guix-change-publish-cache-storage.patch"
|
||||
"guix-allow-out-of-tree-modules-in-initrd.patch"
|
||||
"guix-wip-zfs-boot-support.patch")))
|
||||
(name "guix-dolly")
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments guix)
|
||||
((#:parallel-build? _ #f) #t)))
|
||||
(properties '((disable-updater? . #t)))))
|
||||
@@ -0,0 +1,69 @@
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages password-utils)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (rosenthal utils download)
|
||||
#:use-module (guix build-system go)
|
||||
#:use-module (gnu packages golang))
|
||||
|
||||
(define-public sops
|
||||
(package
|
||||
(name "sops")
|
||||
(version "3.11.0")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/getsops/sops")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"1md6mk1cklcaa90mfy5dsm44i5xc0l598dfr3mi0j1k4ydkfn280"))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list #:go go-1.24
|
||||
#:install-source? #f
|
||||
#:import-path "./cmd/sops"
|
||||
#:build-flags
|
||||
#~(list (string-append
|
||||
"-ldflags="
|
||||
"-X github.com/getsops/sops/v3/version.Version="
|
||||
#$(package-version this-package)))
|
||||
#:modules
|
||||
'(((guix build gnu-build-system) #:prefix gnu:)
|
||||
(guix build go-build-system)
|
||||
(guix build utils))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'unpack
|
||||
(lambda args
|
||||
(unsetenv "GO111MODULE")
|
||||
(apply (assoc-ref gnu:%standard-phases 'unpack) args)
|
||||
(copy-recursively
|
||||
#+(this-package-native-input "vendored-go-dependencies")
|
||||
"vendor")))
|
||||
(replace 'install-license-files
|
||||
(assoc-ref gnu:%standard-phases 'install-license-files)))))
|
||||
(native-inputs
|
||||
(list (origin
|
||||
(method (go-mod-vendor #:go go-1.24))
|
||||
(uri (package-source this-package))
|
||||
(file-name "vendored-go-dependencies")
|
||||
(sha256
|
||||
(base32
|
||||
"05pd6d80x70xyak8clnjiiir8limlzq5cx2aqlda3p1ln4qpgc7m")))))
|
||||
(home-page "https://getsops.io/")
|
||||
(synopsis "Simple and flexible tool for managing secrets")
|
||||
(description
|
||||
"@acronym{SOPS, Secrets OPerationS} is an editor of encrypted files that
|
||||
supports YAML, JSON, ENV, INI and binary formats and encrypts with @acronym{AWS
|
||||
KMS, Amazon Web Services Key Management Service}, @acronym{GCP KMS, Google Cloud
|
||||
Platform Key Management Service}, Azure Key Vault, @code{age}, and OpenPGP.")
|
||||
(license license:mpl2.0)))
|
||||
@@ -0,0 +1,270 @@
|
||||
From 4323514d1b259a0dd61572e3c0859fab4250d297 Mon Sep 17 00:00:00 2001
|
||||
Message-ID: <4323514d1b259a0dd61572e3c0859fab4250d297.1757725903.git.hako@ultrarare.space>
|
||||
From: Brian Cully <bjc@spork.org>
|
||||
Date: Sun, 16 Feb 2025 21:52:45 +0900
|
||||
Subject: [PATCH] Allow copying of out-of-tree modules to the Linux initrd.
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
With this patch, modules for ‘initrd-modules’ will not only be searched for in
|
||||
the in-tree Linux modules, but also any additional modules specified in
|
||||
‘kernel-loadable-modules’.
|
||||
|
||||
* gnu/build/linux-modules.scm (find-module-file): Change DIRECTORY argument to
|
||||
DIRECTORIES. Now takes a list of directories to search, rather than a single
|
||||
one.
|
||||
* gnu/system/linux-initrd.scm (flat-linux-module-directory): change LINUX
|
||||
argument to PACKAGES. Now contains a list of file-like objects to search for
|
||||
modules.
|
||||
(raw-initrd): Add LINUX-EXTRA-MODULE-DIRECTORIES keyword argument. Pass it
|
||||
to (flat-linux-module-directory) along with the selected LINUX package.
|
||||
(base-initrd): Add LINUX-EXTRA-MODULE-DIRECTORIES keyword argument. Pass it
|
||||
to (raw-initrd).
|
||||
* gnu/system.scm (operating-system-initrd-file): Pass in operating system
|
||||
definition's kernel-loadable-modules into (make-initrd) as
|
||||
LINUX-EXTRA-MODULE-DIRECTORIES.
|
||||
* doc/guix.texi (Initial RAM Disk): Document how out-of-tree modules can be
|
||||
used.
|
||||
|
||||
Change-Id: Ic39f2abcfabc3ec34a71acce840038396bf9c82e
|
||||
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
Modified-by: Hilton Chain <hako@ultrarare.space>
|
||||
---
|
||||
doc/guix.texi | 15 ++++++++++
|
||||
gnu/build/linux-modules.scm | 23 ++++++++++-----
|
||||
gnu/system.scm | 2 ++
|
||||
gnu/system/linux-initrd.scm | 58 +++++++++++++++++++++++--------------
|
||||
4 files changed, 69 insertions(+), 29 deletions(-)
|
||||
|
||||
diff --git a/doc/guix.texi b/doc/guix.texi
|
||||
index 4ab404dcdb2..3c05428829b 100644
|
||||
--- a/doc/guix.texi
|
||||
+++ b/doc/guix.texi
|
||||
@@ -46404,6 +46404,21 @@ Initial RAM Disk
|
||||
(initrd-modules (cons "megaraid_sas" %base-initrd-modules)))
|
||||
@end lisp
|
||||
|
||||
+If a module listed in @code{initrd-modules} is not included in the
|
||||
+Linux-libre kernel, then its location must be provided via the
|
||||
+@code{kernel-loadable-modules} list.
|
||||
+
|
||||
+As an example, if you need the driver for a Realtek RTL8821CE wireless
|
||||
+network adapter for mounting the root file system over NFS, your
|
||||
+configuration might include the following:
|
||||
+
|
||||
+@lisp
|
||||
+(operating-system
|
||||
+ ;; @dots{}
|
||||
+ (initrd-modules (cons "8821ce" %base-initrd-modules))
|
||||
+ (kernel-loadable-modules (list (list rtl8821ce-linux-module "module"))))
|
||||
+@end lisp
|
||||
+
|
||||
@defvar %base-initrd-modules
|
||||
This is the list of kernel modules included in the initrd by default.
|
||||
@end defvar
|
||||
diff --git a/gnu/build/linux-modules.scm b/gnu/build/linux-modules.scm
|
||||
index 32baf6c5259..f45db55f861 100644
|
||||
--- a/gnu/build/linux-modules.scm
|
||||
+++ b/gnu/build/linux-modules.scm
|
||||
@@ -246,8 +246,8 @@ (define (file-name->module-name file)
|
||||
'.ko[.gz|.xz|.zst]' and normalizing it."
|
||||
(normalize-module-name (strip-extension (basename file))))
|
||||
|
||||
-(define (find-module-file directory module)
|
||||
- "Lookup module NAME under DIRECTORY, and return its absolute file name.
|
||||
+(define (find-module-file directories module)
|
||||
+ "Lookup module NAME under DIRECTORIES, and return its absolute file name.
|
||||
NAME can be a file name with or without '.ko', or it can be a module name.
|
||||
Raise an error if it could not be found.
|
||||
|
||||
@@ -255,6 +255,10 @@ (define (find-module-file directory module)
|
||||
module names usually (always?) use underscores as the inter-word separator,
|
||||
whereas file names often, but not always, use hyphens. Examples:
|
||||
\"usb-storage.ko\", \"serpent_generic.ko\"."
|
||||
+ ;; For backward compatibility.
|
||||
+ (define %directories (if (pair? directories)
|
||||
+ directories
|
||||
+ (list directories)))
|
||||
(define names
|
||||
;; List of possible file names. XXX: It would of course be cleaner to
|
||||
;; have a database that maps module names to file names and vice versa,
|
||||
@@ -268,16 +272,19 @@ (define (find-module-file directory module)
|
||||
(else chr)))
|
||||
module))))
|
||||
|
||||
- (match (find-files directory
|
||||
- (lambda (file stat)
|
||||
- (member (strip-extension
|
||||
- (basename file)) names)))
|
||||
+ (match (append-map
|
||||
+ (cut find-files <>
|
||||
+ (lambda (file _)
|
||||
+ (member (strip-extension
|
||||
+ (basename file))
|
||||
+ names)))
|
||||
+ %directories)
|
||||
((file)
|
||||
file)
|
||||
(()
|
||||
- (error "kernel module not found" module directory))
|
||||
+ (error "kernel module not found" module %directories))
|
||||
((_ ...)
|
||||
- (error "several modules by that name" module directory))))
|
||||
+ (error "several modules by that name" module %directories))))
|
||||
|
||||
(define* (recursive-module-dependencies files
|
||||
#:key (lookup-module dot-ko))
|
||||
diff --git a/gnu/system.scm b/gnu/system.scm
|
||||
index 78a30646e1b..b709686744d 100644
|
||||
--- a/gnu/system.scm
|
||||
+++ b/gnu/system.scm
|
||||
@@ -1380,6 +1380,8 @@ (define (operating-system-initrd-file os)
|
||||
#:linux (operating-system-kernel os)
|
||||
#:linux-modules
|
||||
(operating-system-initrd-modules os)
|
||||
+ #:linux-extra-module-directories
|
||||
+ (operating-system-kernel-loadable-modules os)
|
||||
#:mapped-devices mapped-devices
|
||||
#:keyboard-layout (operating-system-keyboard-layout os)))
|
||||
|
||||
diff --git a/gnu/system/linux-initrd.scm b/gnu/system/linux-initrd.scm
|
||||
index 17c2e6f6bfd..978084062b2 100644
|
||||
--- a/gnu/system/linux-initrd.scm
|
||||
+++ b/gnu/system/linux-initrd.scm
|
||||
@@ -120,13 +120,19 @@ (define* (expression->initrd exp
|
||||
`(#:references-graphs (("closure" ,init))))
|
||||
"/initrd.cpio.gz"))
|
||||
|
||||
-(define (flat-linux-module-directory linux modules)
|
||||
+(define (flat-linux-module-directory packages modules)
|
||||
"Return a flat directory containing the Linux kernel modules listed in
|
||||
-MODULES and taken from LINUX."
|
||||
+MODULES and taken from PACKAGES."
|
||||
(define imported-modules
|
||||
(source-module-closure '((gnu build linux-modules)
|
||||
(guix build utils))))
|
||||
|
||||
+ (define package-inputs
|
||||
+ (map (match-lambda
|
||||
+ ((p o) (gexp-input p o))
|
||||
+ (p (gexp-input p "out")))
|
||||
+ packages))
|
||||
+
|
||||
(define build-exp
|
||||
(with-imported-modules imported-modules
|
||||
(with-extensions (list guile-zlib guile-zstd)
|
||||
@@ -138,13 +144,17 @@ (define (flat-linux-module-directory linux modules)
|
||||
(srfi srfi-26)
|
||||
(ice-9 match))
|
||||
|
||||
- (define module-dir
|
||||
- (string-append #$linux "/lib/modules"))
|
||||
+ (define module-dirs
|
||||
+ (map (cut string-append <> "/lib/modules")
|
||||
+ '#$package-inputs))
|
||||
|
||||
(define builtin-modules
|
||||
- (match (find-files module-dir (lambda (file stat)
|
||||
- (string=? (basename file)
|
||||
- "modules.builtin")))
|
||||
+ (match (append-map
|
||||
+ (cut find-files <>
|
||||
+ (lambda (file stat)
|
||||
+ (string=? (basename file)
|
||||
+ "modules.builtin")))
|
||||
+ module-dirs)
|
||||
((file . _)
|
||||
(call-with-input-file file
|
||||
(lambda (port)
|
||||
@@ -157,7 +167,7 @@ (define (flat-linux-module-directory linux modules)
|
||||
(lset-difference string=? '#$modules builtin-modules))
|
||||
|
||||
(define modules
|
||||
- (let* ((lookup (cut find-module-file module-dir <>))
|
||||
+ (let* ((lookup (cut find-module-file module-dirs <>))
|
||||
(modules (map lookup modules-to-lookup)))
|
||||
(append modules
|
||||
(recursive-module-dependencies
|
||||
@@ -192,6 +202,7 @@ (define* (raw-initrd file-systems
|
||||
#:key
|
||||
(linux linux-libre)
|
||||
(linux-modules '())
|
||||
+ (linux-extra-module-directories '())
|
||||
(pre-mount #t)
|
||||
(mapped-devices '())
|
||||
(keyboard-layout #f)
|
||||
@@ -199,15 +210,16 @@ (define* (raw-initrd file-systems
|
||||
qemu-networking?
|
||||
volatile-root?
|
||||
(on-error 'debug))
|
||||
- "Return as a file-like object a raw initrd, with kernel
|
||||
-modules taken from LINUX. FILE-SYSTEMS is a list of file-systems to be
|
||||
-mounted by the initrd, possibly in addition to the root file system specified
|
||||
-on the kernel command line via 'root'. LINUX-MODULES is a list of kernel
|
||||
-modules to be loaded at boot time. MAPPED-DEVICES is a list of device
|
||||
-mappings to realize before FILE-SYSTEMS are mounted. PRE-MOUNT is a
|
||||
-G-expression to evaluate before realizing MAPPED-DEVICES.
|
||||
-HELPER-PACKAGES is a list of packages to be copied in the initrd. It may include
|
||||
-e2fsck/static or other packages needed by the initrd to check root partition.
|
||||
+ "Return as a file-like object a raw initrd, with kernel modules taken from
|
||||
+LINUX. FILE-SYSTEMS is a list of file-systems to be mounted by the initrd,
|
||||
+possibly in addition to the root file system specified on the kernel command
|
||||
+line via 'root'. LINUX-MODULES is a list of kernel modules to be loaded at
|
||||
+boot time. LINUX-EXTRA-MODULE-DIRECTORIES is a list of file-like objects which
|
||||
+will be searched for modules in addition to the linux kernel. MAPPED-DEVICES
|
||||
+is a list of device mappings to realize before FILE-SYSTEMS are mounted.
|
||||
+HELPER-PACKAGES is a list of packages to be copied in the initrd. It may
|
||||
+include e2fsck/static or other packages needed by the initrd to check root
|
||||
+partition.
|
||||
|
||||
When true, KEYBOARD-LAYOUT is a <keyboard-layout> record denoting the desired
|
||||
console keyboard layout. This is done before MAPPED-DEVICES are set up and
|
||||
@@ -244,7 +256,8 @@ (define* (raw-initrd file-systems
|
||||
#~())))
|
||||
|
||||
(define kodir
|
||||
- (flat-linux-module-directory linux linux-modules))
|
||||
+ (flat-linux-module-directory (cons linux linux-extra-module-directories)
|
||||
+ linux-modules))
|
||||
|
||||
(expression->initrd
|
||||
(with-imported-modules (source-module-closure
|
||||
@@ -392,6 +405,7 @@ (define* (base-initrd file-systems
|
||||
#:key
|
||||
(linux linux-libre)
|
||||
(linux-modules '())
|
||||
+ (linux-extra-module-directories '())
|
||||
(mapped-devices '())
|
||||
(keyboard-layout #f)
|
||||
qemu-networking?
|
||||
@@ -412,9 +426,10 @@ (define* (base-initrd file-systems
|
||||
QEMU-NETWORKING? and VOLATILE-ROOT? behaves as in raw-initrd.
|
||||
|
||||
The initrd is automatically populated with all the kernel modules necessary
|
||||
-for FILE-SYSTEMS and for the given options. Additional kernel
|
||||
-modules can be listed in LINUX-MODULES. They will be added to the initrd, and
|
||||
-loaded at boot time in the order in which they appear."
|
||||
+for FILE-SYSTEMS and for the given options. Additional kernel modules can be
|
||||
+listed in LINUX-MODULES. Additional directories for modules can be listed in
|
||||
+LINUX-EXTRA-MODULE-DIRECTORIES. They will be added to the initrd, and loaded
|
||||
+at boot time in the order in which they appear."
|
||||
(define linux-modules*
|
||||
;; Modules added to the initrd and loaded from the initrd.
|
||||
`(,@linux-modules
|
||||
@@ -434,6 +449,7 @@ (define* (base-initrd file-systems
|
||||
(raw-initrd file-systems
|
||||
#:linux linux
|
||||
#:linux-modules linux-modules*
|
||||
+ #:linux-extra-module-directories linux-extra-module-directories
|
||||
#:mapped-devices mapped-devices
|
||||
#:helper-packages helper-packages
|
||||
#:keyboard-layout keyboard-layout
|
||||
|
||||
base-commit: 6174b135ffa3328fd7ad404b15b1586fc64e5666
|
||||
prerequisite-patch-id: f71061d735b69d75799eb03df6215bbcb20d53b2
|
||||
prerequisite-patch-id: 88337e68e714f3b1fe0d8e6588a1a4f423251610
|
||||
--
|
||||
2.51.0
|
||||
|
||||
@@ -0,0 +1,259 @@
|
||||
From 5c0b93219bf5def932dfe4de3288fd09ea557f69 Mon Sep 17 00:00:00 2001
|
||||
Message-ID: <5c0b93219bf5def932dfe4de3288fd09ea557f69.1761666722.git.hako@ultrarare.space>
|
||||
From: Hilton Chain <hako@ultrarare.space>
|
||||
Date: Sat, 23 Aug 2025 14:07:19 +0800
|
||||
Subject: [PATCH] publish: Store cache in a layout identical to HTTP endpoints.
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This allows serving substitutes using a file server.
|
||||
|
||||
Original layout:
|
||||
--8<---------------cut here---------------start------------->8---
|
||||
/path/to/publish/cache
|
||||
├── hashes
|
||||
│ ├── k0pin1y1r0vdkdbg3lwjqc52hpwjbdyb
|
||||
│ └── ql2nxr2b587kjydfwivjsnhmqya957bq
|
||||
└── nar
|
||||
├── none
|
||||
│ ├── k0pin1y1r0vdkdbg3lwjqc52hpwjbdyb-hello-2.12.2.narinfo
|
||||
│ └── k0pin1y1r0vdkdbg3lwjqc52hpwjbdyb-hello-2.12.2.nar
|
||||
└── zstd
|
||||
├── ql2nxr2b587kjydfwivjsnhmqya957bq-helix-25.01.1.narinfo
|
||||
└── ql2nxr2b587kjydfwivjsnhmqya957bq-helix-25.01.1.nar
|
||||
--8<---------------cut here---------------end--------------->8---
|
||||
|
||||
Modified layout:
|
||||
--8<---------------cut here---------------start------------->8---
|
||||
/path/to/publish/cache
|
||||
├── hashes
|
||||
│ ├── k0pin1y1r0vdkdbg3lwjqc52hpwjbdyb
|
||||
│ └── ql2nxr2b587kjydfwivjsnhmqya957bq
|
||||
├── nar
|
||||
│ ├── none
|
||||
│ │ └── k0pin1y1r0vdkdbg3lwjqc52hpwjbdyb-hello-2.12.2
|
||||
│ └── zstd
|
||||
│ └── ql2nxr2b587kjydfwivjsnhmqya957bq-helix-25.01.1
|
||||
├── k0pin1y1r0vdkdbg3lwjqc52hpwjbdyb.narinfo
|
||||
└── ql2nxr2b587kjydfwivjsnhmqya957bq.narinfo
|
||||
--8<---------------cut here---------------end--------------->8---
|
||||
|
||||
Change-Id: I07689f08eef23c5cd4494451678f4e1ad709f1b3
|
||||
---
|
||||
guix/scripts/publish.scm | 17 +++++---------
|
||||
tests/publish.scm | 48 ++++++++++++++++++++--------------------
|
||||
2 files changed, 30 insertions(+), 35 deletions(-)
|
||||
|
||||
diff --git a/guix/scripts/publish.scm b/guix/scripts/publish.scm
|
||||
index 7638bcbd0e..a70a9b730f 100644
|
||||
--- a/guix/scripts/publish.scm
|
||||
+++ b/guix/scripts/publish.scm
|
||||
@@ -47,6 +47,7 @@ (define-module (guix scripts publish)
|
||||
#:use-module (guix base32)
|
||||
#:use-module (guix base64)
|
||||
#:use-module (guix config)
|
||||
+ #:use-module (guix records)
|
||||
#:use-module (gcrypt hash)
|
||||
#:use-module (guix pki)
|
||||
#:use-module (gcrypt pk-crypto)
|
||||
@@ -306,8 +307,6 @@ (define* (store-item->recutils store-item
|
||||
(let ((url (encode-and-join-uri-path
|
||||
`(,@(split-and-decode-uri-path nar-path)
|
||||
,@(match compression
|
||||
- (($ <compression> 'none)
|
||||
- '())
|
||||
(($ <compression> type)
|
||||
(list (symbol->string type))))
|
||||
,(basename store-item)))))
|
||||
@@ -424,16 +423,13 @@ (define* (render-narinfo store request hash
|
||||
|
||||
(define* (nar-cache-file directory item
|
||||
#:key (compression %no-compression))
|
||||
- (string-append directory "/"
|
||||
+ (string-append directory "/nar/"
|
||||
(symbol->string (compression-type compression))
|
||||
- "/" (basename item) ".nar"))
|
||||
+ "/" (basename item)))
|
||||
|
||||
(define* (narinfo-cache-file directory item
|
||||
#:key (compression %no-compression))
|
||||
- (string-append directory "/"
|
||||
- (symbol->string (compression-type compression))
|
||||
- "/" (basename item)
|
||||
- ".narinfo"))
|
||||
+ (string-append directory "/" (string-take (basename item) 32) ".narinfo"))
|
||||
|
||||
(define (hash-part-mapping-cache-file directory hash)
|
||||
(string-append directory "/hashes/" hash))
|
||||
@@ -533,9 +529,7 @@ (define* (render-narinfo/cached store request hash
|
||||
requested using POOL."
|
||||
(define (delete-entry narinfo)
|
||||
;; Delete NARINFO and the corresponding nar from CACHE.
|
||||
- (let* ((nar (string-append (string-drop-right narinfo
|
||||
- (string-length ".narinfo"))
|
||||
- ".nar"))
|
||||
+ (let* ((nar (uri-decode (assoc-ref (call-with-input-file narinfo recutils->alist) "URL")))
|
||||
(base (basename narinfo ".narinfo"))
|
||||
(hash (string-take base (string-index base #\-)))
|
||||
(mapping (hash-part-mapping-cache-file cache hash)))
|
||||
@@ -1039,6 +1033,7 @@ (define (string->compression-type string)
|
||||
("gzip" 'gzip)
|
||||
("lzip" 'lzip)
|
||||
("zstd" 'zstd)
|
||||
+ ("none" 'none)
|
||||
(_ #f)))
|
||||
|
||||
(define (effective-compression requested-type compressions)
|
||||
diff --git a/tests/publish.scm b/tests/publish.scm
|
||||
index 3c80c50d51..52c6f6d10c 100644
|
||||
--- a/tests/publish.scm
|
||||
+++ b/tests/publish.scm
|
||||
@@ -173,7 +173,7 @@ (define %gzip-magic-bytes
|
||||
(canonical-sexp->string
|
||||
(signed-string unsigned-info))))))
|
||||
(format #f "~aSignature: 1;~a;~a
|
||||
-URL: nar/~a
|
||||
+URL: nar/none/~a
|
||||
Compression: none
|
||||
FileSize: ~a\n"
|
||||
unsigned-info (gethostname) signature
|
||||
@@ -223,7 +223,7 @@ (define %gzip-magic-bytes
|
||||
(canonical-sexp->string
|
||||
(signed-string unsigned-info))))))
|
||||
(format #f "~aSignature: 1;~a;~a
|
||||
-URL: nar/~a
|
||||
+URL: nar/none/~a
|
||||
Compression: none
|
||||
FileSize: ~a~%"
|
||||
unsigned-info (gethostname) signature
|
||||
@@ -332,7 +332,7 @@ (define %gzip-magic-bytes
|
||||
(recutils->alist body)))))
|
||||
|
||||
(test-equal "/*.narinfo for a compressed file"
|
||||
- '("none" "nar") ;compression-less nar
|
||||
+ '("none" "nar/none") ;compression-less nar
|
||||
;; Assume 'guix publish -C' is already running on port 6799.
|
||||
(let* ((item (add-text-to-store %store "fake.tar.gz"
|
||||
"This is a fake compressed file."))
|
||||
@@ -378,7 +378,7 @@ (define %gzip-magic-bytes
|
||||
(test-equal "custom nar path"
|
||||
;; Serve nars at /foo/bar/chbouib instead of /nar.
|
||||
(list `(("StorePath" . ,%item)
|
||||
- ("URL" . ,(string-append "foo/bar/chbouib/" (basename %item)))
|
||||
+ ("URL" . ,(string-append "foo/bar/chbouib/none/" (basename %item)))
|
||||
("Compression" . "none"))
|
||||
200
|
||||
404)
|
||||
@@ -403,7 +403,7 @@ (define %gzip-magic-bytes
|
||||
(recutils->alist body))
|
||||
(response-code (http-get nar-url))
|
||||
(response-code
|
||||
- (http-get (string-append base "nar/" (basename %item))))))))
|
||||
+ (http-get (string-append base "nar/none/" (basename %item))))))))
|
||||
|
||||
(test-equal "/nar/ with properly encoded '+' sign"
|
||||
"Congrats!"
|
||||
@@ -479,10 +479,10 @@ (define %gzip-magic-bytes
|
||||
(part (store-path-hash-part %item))
|
||||
(url (string-append base part ".narinfo"))
|
||||
(nar-url (string-append base "nar/gzip/" (basename %item)))
|
||||
- (cached (string-append cache "/gzip/" (basename %item)
|
||||
+ (cached (string-append cache "/" part
|
||||
".narinfo"))
|
||||
- (nar (string-append cache "/gzip/"
|
||||
- (basename %item) ".nar"))
|
||||
+ (nar (string-append cache "/nar/gzip/"
|
||||
+ (basename %item)))
|
||||
(response (http-get url)))
|
||||
(and (= 404 (response-code response))
|
||||
|
||||
@@ -535,15 +535,15 @@ (define %gzip-magic-bytes
|
||||
(url (string-append base part ".narinfo"))
|
||||
(nar-url (cute string-append "nar/" <> "/"
|
||||
(basename %item)))
|
||||
- (cached (cute string-append cache "/" <> "/"
|
||||
- (basename %item) ".narinfo"))
|
||||
- (nar (cute string-append cache "/" <> "/"
|
||||
- (basename %item) ".nar"))
|
||||
+ (cached (string-append cache "/"
|
||||
+ part ".narinfo"))
|
||||
+ (nar (cute string-append cache "/nar/" <> "/"
|
||||
+ (basename %item)))
|
||||
(response (http-get url)))
|
||||
- (wait-for-file (cached "gzip"))
|
||||
+ (wait-for-file cached)
|
||||
(let* ((body (http-get-port url))
|
||||
(narinfo (recutils->alist body))
|
||||
- (uncompressed (string-append base "nar/"
|
||||
+ (uncompressed (string-append base "nar/none/"
|
||||
(basename %item))))
|
||||
(and (file-exists? (nar "gzip"))
|
||||
(file-exists? (nar "lzip"))
|
||||
@@ -576,7 +576,7 @@ (define %gzip-magic-bytes
|
||||
(list #t
|
||||
(* 42 3600) ;TTL on narinfo
|
||||
`(("StorePath" . ,item)
|
||||
- ("URL" . ,(string-append "nar/" (basename item)))
|
||||
+ ("URL" . ,(string-append "nar/none/" (basename item)))
|
||||
("Compression" . "none"))
|
||||
200 ;nar/…
|
||||
(* 42 3600) ;TTL on nar/…
|
||||
@@ -595,10 +595,10 @@ (define %gzip-magic-bytes
|
||||
(let* ((base "http://localhost:6796/")
|
||||
(part (store-path-hash-part item))
|
||||
(url (string-append base part ".narinfo"))
|
||||
- (cached (string-append cache "/none/"
|
||||
- (basename item) ".narinfo"))
|
||||
- (nar (string-append cache "/none/"
|
||||
- (basename item) ".nar"))
|
||||
+ (cached (string-append cache "/"
|
||||
+ part ".narinfo"))
|
||||
+ (nar (string-append cache "/nar/none/"
|
||||
+ (basename item)))
|
||||
(response (http-get url)))
|
||||
(and (= 404 (response-code response))
|
||||
|
||||
@@ -607,7 +607,7 @@ (define %gzip-magic-bytes
|
||||
(body (http-get-port url))
|
||||
(compressed (http-get (string-append base "nar/gzip/"
|
||||
(basename item))))
|
||||
- (uncompressed (http-get (string-append base "nar/"
|
||||
+ (uncompressed (http-get (string-append base "nar/none/"
|
||||
(basename item))))
|
||||
(narinfo (recutils->alist body)))
|
||||
(list (file-exists? nar)
|
||||
@@ -650,8 +650,8 @@ (define %gzip-magic-bytes
|
||||
(item (add-text-to-store %store "random" (random-text)))
|
||||
(part (store-path-hash-part item))
|
||||
(url (string-append base part ".narinfo"))
|
||||
- (cached (string-append cache "/gzip/"
|
||||
- (basename item)
|
||||
+ (cached (string-append cache "/"
|
||||
+ part
|
||||
".narinfo"))
|
||||
(response (http-get url)))
|
||||
(and (= 200 (response-code response)) ;we're below the threshold
|
||||
@@ -676,7 +676,7 @@ (define %gzip-magic-bytes
|
||||
(part (store-path-hash-part item))
|
||||
(narinfo (string-append base part ".narinfo"))
|
||||
(nar (string-append base "nar/gzip/" (basename item)))
|
||||
- (cached (string-append cache "/gzip/" (basename item)
|
||||
+ (cached (string-append cache "/" part
|
||||
".narinfo")))
|
||||
;; We're below the default cache bypass threshold, so NAR and NARINFO
|
||||
;; should immediately return 200. The NARINFO request should trigger
|
||||
@@ -712,7 +712,7 @@ (define %gzip-magic-bytes
|
||||
(part (store-path-hash-part item))
|
||||
(narinfo (string-append base part ".narinfo"))
|
||||
(nar (string-append base "nar/gzip/" (basename item)))
|
||||
- (cached (string-append cache "/gzip/" (basename item)
|
||||
+ (cached (string-append cache "/" part
|
||||
".narinfo")))
|
||||
;; The first response used to be 500 and to terminate the daemon
|
||||
;; connection as a side effect.
|
||||
|
||||
base-commit: 31a211f180fd8246dbf7efb4120236c837faffc8
|
||||
--
|
||||
2.51.0
|
||||
|
||||
@@ -0,0 +1,184 @@
|
||||
From ab4aa6e7bb41fe0f2c64cfb587562b19a7cb44ff Mon Sep 17 00:00:00 2001
|
||||
Message-ID: <ab4aa6e7bb41fe0f2c64cfb587562b19a7cb44ff.1757826291.git.hako@ultrarare.space>
|
||||
From: Hilton Chain <hako@ultrarare.space>
|
||||
Date: Sun, 7 Sep 2025 13:52:57 +0800
|
||||
Subject: [PATCH] WIP: ZFS boot support.
|
||||
|
||||
Change-Id: I6579a36d66fcd0a487fe262c9a7c36e51532cb70
|
||||
---
|
||||
gnu/build/file-systems.scm | 21 ++++++++++++++-------
|
||||
gnu/build/linux-boot.scm | 1 +
|
||||
gnu/system/file-systems.scm | 30 +++++++++++++++++++++---------
|
||||
gnu/system/linux-initrd.scm | 25 ++++++++++++++++++++-----
|
||||
guix/scripts/system.scm | 3 ++-
|
||||
5 files changed, 58 insertions(+), 22 deletions(-)
|
||||
|
||||
diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm
|
||||
index c506a4911ff..05d0cb819ae 100644
|
||||
--- a/gnu/build/file-systems.scm
|
||||
+++ b/gnu/build/file-systems.scm
|
||||
@@ -1173,13 +1173,20 @@ (define (canonicalize-device-spec spec)
|
||||
|
||||
(match spec
|
||||
((? string?)
|
||||
- (if (or (string-contains spec ":/") ;nfs
|
||||
- (and (>= (string-length spec) 2)
|
||||
- (equal? (string-take spec 2) "//")) ;cifs
|
||||
- (string=? spec "none"))
|
||||
- spec ; do not resolve NFS / CIFS / tmpfs devices
|
||||
- ;; Nothing to do, but wait until SPEC shows up.
|
||||
- (resolve identity spec identity)))
|
||||
+ (cond
|
||||
+ ((or (string-contains spec ":/") ;nfs
|
||||
+ (and (>= (string-length spec) 2)
|
||||
+ (equal? (string-take spec 2) "//")) ;cifs
|
||||
+ (string=? spec "none"))
|
||||
+ ;; Do not resolve NFS / CIFS / tmpfs devices.
|
||||
+ spec)
|
||||
+ ((and (>= (string-length spec) 4)
|
||||
+ (string=? (string-take spec 4) "zfs:"))
|
||||
+ ;; "zfs:zpool/dataset" => "zpool/dataset"
|
||||
+ (string-drop spec 4))
|
||||
+ (else
|
||||
+ ;; Nothing to do, but wait until SPEC shows up.
|
||||
+ (resolve identity spec identity))))
|
||||
((? file-system-label?)
|
||||
;; Resolve the label.
|
||||
(resolve find-partition-by-label
|
||||
diff --git a/gnu/build/linux-boot.scm b/gnu/build/linux-boot.scm
|
||||
index 548e28a1c97..2b577483832 100644
|
||||
--- a/gnu/build/linux-boot.scm
|
||||
+++ b/gnu/build/linux-boot.scm
|
||||
@@ -523,6 +523,7 @@ (define* (boot-system #:key
|
||||
;; So check for all four.
|
||||
(cond ((string-prefix? "/" device-string) device-string)
|
||||
((string-contains device-string ":/") device-string) ; nfs-root
|
||||
+ ((string-prefix? "zfs:" device-string) device-string)
|
||||
((uuid device-string) => identity)
|
||||
(else (file-system-label device-string))))
|
||||
|
||||
diff --git a/gnu/system/file-systems.scm b/gnu/system/file-systems.scm
|
||||
index 4ea8237c70d..c6cf828db21 100644
|
||||
--- a/gnu/system/file-systems.scm
|
||||
+++ b/gnu/system/file-systems.scm
|
||||
@@ -372,7 +372,9 @@ (define %pseudo-file-system-types
|
||||
;; List of know pseudo file system types. This is used when validating file
|
||||
;; system definitions.
|
||||
'("binfmt_misc" "cgroup" "cgroup2" "debugfs" "devpts" "devtmpfs" "efivarfs" "fusectl"
|
||||
- "hugetlbfs" "overlay" "proc" "securityfs" "sysfs" "tmpfs" "tracefs" "virtiofs" "xenfs"))
|
||||
+ "hugetlbfs" "overlay" "proc" "securityfs" "sysfs" "tmpfs" "tracefs" "virtiofs" "xenfs"
|
||||
+ ;; HACK
|
||||
+ "zfs"))
|
||||
|
||||
(define %fuse-control-file-system
|
||||
;; Control file system for Linux' file systems in user-space (FUSE).
|
||||
@@ -627,18 +629,21 @@ (define (file-system-mount-point-predicate mount-point)
|
||||
|
||||
|
||||
;;;
|
||||
-;;; Btrfs specific helpers.
|
||||
+;;; Btrfs specific helpers. TODO: Refactor
|
||||
;;;
|
||||
|
||||
(define (btrfs-subvolume? fs)
|
||||
"Predicate to check if FS, a file-system object, is a Btrfs subvolume."
|
||||
- (and-let* ((btrfs-file-system? (string= "btrfs" (file-system-type fs)))
|
||||
- (option-keys (map (match-lambda
|
||||
- ((key . value) key)
|
||||
- (key key))
|
||||
- (file-system-options->alist
|
||||
- (file-system-options fs)))))
|
||||
- (find (cut string-prefix? "subvol" <>) option-keys)))
|
||||
+ (or (and-let* ((btrfs-file-system? (string= "btrfs" (file-system-type fs)))
|
||||
+ (option-keys (map (match-lambda
|
||||
+ ((key . value) key)
|
||||
+ (key key))
|
||||
+ (file-system-options->alist
|
||||
+ (file-system-options fs)))))
|
||||
+ (find (cut string-prefix? "subvol" <>) option-keys))
|
||||
+ (and (string=? "zfs" (file-system-type fs))
|
||||
+ ;; "zfs:zpool/dataset"
|
||||
+ (string-contains (file-system-device fs) "/"))))
|
||||
|
||||
(define (btrfs-store-subvolume-file-name file-systems)
|
||||
"Return the subvolume file name within the Btrfs top level onto which the
|
||||
@@ -664,6 +669,13 @@ (define (btrfs-store-subvolume-file-name file-systems)
|
||||
;; XXX: Deriving the subvolume name based from a subvolume ID is not
|
||||
;; supported, as we'd need to query the actual file system.
|
||||
(or (and=> (assoc-ref options "subvol") prepend-slash/maybe)
|
||||
+ (and (string=? "zfs" (file-system-type store-subvolume-fs))
|
||||
+ ;; "zfs:zpool/dataset" => "/dataset@"
|
||||
+ (and=> (file-system-device store-subvolume-fs)
|
||||
+ (lambda (device)
|
||||
+ (string-append
|
||||
+ (substring device (string-index device #\/))
|
||||
+ "@"))))
|
||||
(raise (condition
|
||||
(&message
|
||||
(message "The store is on a Btrfs subvolume, but the \
|
||||
diff --git a/gnu/system/linux-initrd.scm b/gnu/system/linux-initrd.scm
|
||||
index 978084062b2..8bd4a4a7850 100644
|
||||
--- a/gnu/system/linux-initrd.scm
|
||||
+++ b/gnu/system/linux-initrd.scm
|
||||
@@ -249,11 +249,25 @@ (define* (raw-initrd file-systems
|
||||
;; File systems like btrfs need help to assemble multi-device file systems
|
||||
;; but do not use manually-specified <mapped-devices>.
|
||||
(let ((file-system-types (map file-system-type file-systems)))
|
||||
- (if (member "btrfs" file-system-types)
|
||||
- ;; Ignore errors: if the system manages to boot anyway, the better.
|
||||
- #~((system* (string-append #$btrfs-progs/static "/bin/btrfs")
|
||||
- "device" "scan"))
|
||||
- #~())))
|
||||
+ (and
|
||||
+ (if (member "btrfs" file-system-types)
|
||||
+ ;; Ignore errors: if the system manages to boot anyway, the better.
|
||||
+ #~((system* (string-append #$btrfs-progs/static "/bin/btrfs")
|
||||
+ "device" "scan"))
|
||||
+ #~())
|
||||
+ (map (lambda (zpool)
|
||||
+ ;; Ignore errors: if the system manages to boot anyway, the
|
||||
+ ;; better.
|
||||
+ #~(system* #$(file-append zfs "/sbin/zpool")
|
||||
+ "import" "-N" #$zpool))
|
||||
+ (delete-duplicates
|
||||
+ ;; "zfs:zpool/dataset" => "zpool"
|
||||
+ (map (compose second
|
||||
+ (cut string-split <> (char-set #\: #\/))
|
||||
+ file-system-device)
|
||||
+ (filter (lambda (fs)
|
||||
+ (equal? (file-system-type fs) "zfs"))
|
||||
+ file-systems)))))))
|
||||
|
||||
(define kodir
|
||||
(flat-linux-module-directory (cons linux linux-extra-module-directories)
|
||||
@@ -364,6 +378,7 @@ (define file-system-type-modules
|
||||
("jfs" => '("jfs"))
|
||||
("f2fs" => '("f2fs" "crc32_generic"))
|
||||
("xfs" => '("xfs"))
|
||||
+ ("zfs" => '("zfs"))
|
||||
(else '())))
|
||||
|
||||
(define (file-system-modules file-systems)
|
||||
diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
|
||||
index 8a56f1cc63d..75a5bb1d5f1 100644
|
||||
--- a/guix/scripts/system.scm
|
||||
+++ b/guix/scripts/system.scm
|
||||
@@ -610,7 +610,8 @@ (define (check-file-system-availability file-systems)
|
||||
|
||||
(define literal
|
||||
(filter (lambda (fs)
|
||||
- (string? (file-system-device fs)))
|
||||
+ (and (string? (file-system-device fs))
|
||||
+ (not (string=? "zfs" (file-system-type fs)))))
|
||||
relevant))
|
||||
|
||||
(define uuid
|
||||
|
||||
base-commit: 6174b135ffa3328fd7ad404b15b1586fc64e5666
|
||||
prerequisite-patch-id: f71061d735b69d75799eb03df6215bbcb20d53b2
|
||||
prerequisite-patch-id: 88337e68e714f3b1fe0d8e6588a1a4f423251610
|
||||
prerequisite-patch-id: 466ade9e99cc152f8e9a33c742a4954ade466c25
|
||||
prerequisite-patch-id: d66207367fc491f6569100503cd9df98b6888560
|
||||
--
|
||||
2.51.0
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
From 06ab33a4317d41953ad167bfabd5b5ff4e001fee Mon Sep 17 00:00:00 2001
|
||||
From: Hilton Chain <hako@ultrarare.space>
|
||||
Date: Wed, 29 Oct 2025 18:58:27 +0800
|
||||
Subject: [PATCH] Set Guix System PATH for Tailscale SSH.
|
||||
|
||||
---
|
||||
ssh/tailssh/user.go | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/ssh/tailssh/user.go b/ssh/tailssh/user.go
|
||||
index ac92c762a..fccc5cbf5 100644
|
||||
--- a/ssh/tailssh/user.go
|
||||
+++ b/ssh/tailssh/user.go
|
||||
@@ -109,9 +109,9 @@ func defaultPathForUser(u *user.User) string {
|
||||
return defaultPathForUserOnNixOS(u)
|
||||
}
|
||||
if isRoot {
|
||||
- return "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
+ return "/run/privileged/bin:/run/current-system/profile/sbin:/run/current-system/profile/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
}
|
||||
- return "/usr/local/bin:/usr/bin:/bin"
|
||||
+ return "/run/privileged/bin:/run/current-system/profile/sbin:/run/current-system/profile/bin:/usr/local/bin:/usr/bin:/bin"
|
||||
}
|
||||
|
||||
func defaultPathForUserOnNixOS(u *user.User) string {
|
||||
--
|
||||
2.51.0
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages rust-apps)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix build-system cargo)
|
||||
#:use-module (rosenthal utils cargo)
|
||||
#:use-module (gnu packages sqlite))
|
||||
|
||||
(define-public atuin
|
||||
(package
|
||||
(name "atuin")
|
||||
(version "18.4.0")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/atuinsh/atuin")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"1zi7ar999ycvig9c9crylab540xdgr0h6v99q9j8ypk9i1fviyiz"))))
|
||||
(build-system cargo-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:tests? #f ;TODO.
|
||||
#:install-source? #f
|
||||
#:features
|
||||
''("client" "sync" "server" "clipboard" "daemon")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'disable-failing-tests
|
||||
(lambda _
|
||||
(substitute* '("crates/atuin/tests/sync.rs"
|
||||
"crates/atuin/tests/users.rs"
|
||||
"crates/atuin-dotfiles/src/store.rs"
|
||||
"crates/atuin-dotfiles/src/store/var.rs")
|
||||
(((string-append
|
||||
".*async fn (" (string-join
|
||||
'(;; Require running database.
|
||||
"build_aliases"
|
||||
"build_vars"
|
||||
"sync"
|
||||
"registration"
|
||||
"change_password"
|
||||
"multi_user_test")
|
||||
"|") ")")
|
||||
all)
|
||||
(string-append "#[ignore]\n" all)))))
|
||||
(add-after 'unpack 'patch-references
|
||||
(lambda _
|
||||
(substitute* (find-files "crates/atuin/src/shell")
|
||||
(("atuin (uuid|history|search)" all)
|
||||
(string-append #$output "/bin/" all)))))
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs features #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(registry (string-append out "/share/cargo/registry"))
|
||||
(sources (string-append out "/share/cargo/src")))
|
||||
(mkdir-p out)
|
||||
;; Make cargo reuse all the artifacts we just built instead
|
||||
;; of defaulting to making a new temp directory
|
||||
(setenv "CARGO_TARGET_DIR" "./target")
|
||||
;; Only install crates which include binary targets,
|
||||
;; otherwise cargo will raise an error.
|
||||
(invoke "cargo" "install" "--no-track" "--path" "crates/atuin"
|
||||
"--root" out "--features" (string-join features))))))))
|
||||
(inputs (cons sqlite (rosenthal-cargo-inputs 'atuin)))
|
||||
(home-page "https://atuin.sh/")
|
||||
(synopsis "Sync, search and backup shell history")
|
||||
(description
|
||||
"Atuin replaces existing shell history with a SQLite database, and records
|
||||
additional context for commands. Additionally, it provides optional and fully
|
||||
encrypted synchronisation of history between machines, via an Atuin server.")
|
||||
(license license:expat)
|
||||
(properties
|
||||
'((disable-updater? . #t)))))
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,29 @@
|
||||
;;; SPDX-FileCopyrightText: 2022 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages ssh)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (gnu packages compression)
|
||||
#:use-module (gnu packages multiprecision)
|
||||
#:use-module (gnu packages ssh))
|
||||
|
||||
(define-public dropbear/static
|
||||
(let ((base dropbear))
|
||||
(package
|
||||
(inherit dropbear)
|
||||
(name "dropbear-static")
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments base)
|
||||
((#:configure-flags flags)
|
||||
#~(append #$flags (list "--enable-static")))))
|
||||
(inputs
|
||||
(modify-inputs (package-inputs base)
|
||||
(append `(,zlib "static"))
|
||||
(replace "libtomcrypt" `(,libtomcrypt "static"))
|
||||
(replace "libtommath" `(,libtommath "static"))))
|
||||
(properties
|
||||
`(,@(package-properties base)
|
||||
(disable-updater? . #t))))))
|
||||
@@ -0,0 +1,7 @@
|
||||
;;; SPDX-FileCopyrightText: 2023 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages tree-sitter)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages))
|
||||
@@ -0,0 +1,26 @@
|
||||
;;; SPDX-FileCopyrightText: 2022 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages video)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (gnu packages video))
|
||||
|
||||
(define-public libva-nox
|
||||
(let ((base libva))
|
||||
(package
|
||||
(inherit base)
|
||||
(name "libva-nox")
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments base)
|
||||
((#:configure-flags configure-flags)
|
||||
#~(append #$configure-flags (list "--disable-glx")))
|
||||
((#:phases _) #~%standard-phases)))
|
||||
(inputs
|
||||
(modify-inputs (package-inputs base)
|
||||
(delete "libx11" "libxext" "libxfixes")))
|
||||
(properties
|
||||
`(,@(package-properties base)
|
||||
(disable-updater? . #t))))))
|
||||
@@ -0,0 +1,388 @@
|
||||
;;; SPDX-FileCopyrightText: 2022, 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages web)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (rosenthal utils download)
|
||||
#:use-module (rosenthal utils cargo)
|
||||
#:use-module (guix build-system cargo)
|
||||
#:use-module (guix build-system copy)
|
||||
#:use-module (guix build-system go)
|
||||
#:use-module (gnu packages golang)
|
||||
#:use-module (gnu packages image)
|
||||
#:use-module (gnu packages jemalloc)
|
||||
#:use-module (gnu packages web)
|
||||
#:use-module (gnu packages version-control)
|
||||
#:use-module (rosenthal packages golang))
|
||||
|
||||
(define-public ai-robots-txt
|
||||
(package
|
||||
(name "ai-robots-txt")
|
||||
(version "1.42")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/ai-robots-txt/ai.robots.txt")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"05nnc0r4zz8sq8mhp299d9d6hpd8qcm81wkn30i4bzq0a220si07"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet '(delete-file-recursively "code"))))
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list #:install-plan
|
||||
''(("." "share/ai-robots-txt/"
|
||||
#:include ("robots.txt"
|
||||
".htaccess"
|
||||
"nginx-block-ai-bots.conf"
|
||||
"Caddyfile"
|
||||
"haproxy-block-ai-bots.txt")))))
|
||||
(home-page "https://github.com/ai-robots-txt/ai.robots.txt")
|
||||
(synopsis "List of AI agents and robots to block")
|
||||
(description
|
||||
"This package provides a collection of configuration files to help
|
||||
website owners block unwanted AI crawlers from accessing their sites.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public anubis-anti-crawler
|
||||
(package
|
||||
(name "anubis-anti-crawler")
|
||||
(version "1.21.1")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"https://github.com/TecharoHQ/anubis/releases/download/v"
|
||||
version "/anubis-src-vendor-npm-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"1anjymg7mwjc8j0gn2gn1wb15iiljm68p15n77y5jg3av8wnky5g"))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list #:tests? (not (%current-target-system)) ;FIXME
|
||||
#:go go-1.24
|
||||
#:install-source? #f
|
||||
#:import-path "./cmd/anubis"
|
||||
#:build-flags
|
||||
#~(list (string-append
|
||||
"-ldflags="
|
||||
" -X github.com/TecharoHQ/anubis.Version="
|
||||
#$(package-version this-package)))
|
||||
#:modules
|
||||
'(((guix build gnu-build-system) #:prefix gnu:)
|
||||
(guix build go-build-system)
|
||||
(guix build utils))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'unpack
|
||||
(lambda args
|
||||
(unsetenv "GO111MODULE")
|
||||
(apply (assoc-ref gnu:%standard-phases 'unpack) args)))
|
||||
(replace 'install-license-files
|
||||
(assoc-ref gnu:%standard-phases 'install-license-files))
|
||||
(delete 'check)
|
||||
(add-after 'install 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(let ((cmd (in-vicinity #$output "bin/anubis")))
|
||||
(invoke cmd "--help")
|
||||
(invoke cmd "--version"))))))))
|
||||
(home-page "https://anubis.techaro.lol/")
|
||||
(synopsis "Proof-of-work check to stop crawlers")
|
||||
(description
|
||||
"Anubis checks incoming HTTP requests using one or more challenges in
|
||||
order to protect upstream resources from web crawlers.")
|
||||
(license license:expat)
|
||||
(properties '((upstream-name . "anubis")
|
||||
(disable-updater? . #t)))))
|
||||
|
||||
(define-public caddy
|
||||
(package
|
||||
(name "caddy")
|
||||
(version "2.10.2")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/caddyserver/caddy")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"1ygjbvz1ig62r63l6324728nbg6nwbc0vsi5qis5cg2qyils9y1a"))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list #:go go-1.25
|
||||
#:tests? (not (%current-target-system)) ;TODO: Run test suite.
|
||||
#:install-source? #f
|
||||
#:import-path
|
||||
(if (string=? "caddy" (package-name this-package))
|
||||
"./cmd/caddy"
|
||||
".")
|
||||
#:build-flags
|
||||
#~(list "-tags" "nobadger nomysql nopgx"
|
||||
(string-append
|
||||
"-ldflags="
|
||||
" -X github.com/caddyserver/caddy/v2.CustomVersion="
|
||||
#$(package-version this-package)))
|
||||
#:modules
|
||||
'((ice-9 match)
|
||||
((guix build gnu-build-system) #:prefix gnu:)
|
||||
(guix build go-build-system)
|
||||
(guix build utils))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'unpack
|
||||
(lambda args
|
||||
(unsetenv "GO111MODULE")
|
||||
(apply (assoc-ref gnu:%standard-phases 'unpack) args)
|
||||
(copy-recursively
|
||||
#+(this-package-native-input "vendored-go-dependencies")
|
||||
"vendor")))
|
||||
(replace 'install-license-files
|
||||
(assoc-ref gnu:%standard-phases 'install-license-files))
|
||||
(add-after 'install 'install-extras
|
||||
(lambda _
|
||||
(let ((caddy
|
||||
(or (which "caddy")
|
||||
(in-vicinity #$output "bin/caddy"))))
|
||||
(invoke caddy "manpage" "--directory"
|
||||
(in-vicinity #$output "share/man/man8"))
|
||||
(map
|
||||
(match-lambda
|
||||
((shell . path)
|
||||
(let ((file (in-vicinity #$output path)))
|
||||
(mkdir-p (dirname file))
|
||||
(with-output-to-file file
|
||||
(lambda ()
|
||||
(invoke caddy "completion" shell))))))
|
||||
'(("bash" . "etc/bash_completion.d/caddy")
|
||||
("fish" . "share/fish/vendor_completions.d/caddy.fish")
|
||||
("zsh" . "share/zsh/site-functions/_caddy"))))))
|
||||
(delete 'check)
|
||||
(add-after 'install 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(let ((caddy (in-vicinity #$output "bin/caddy")))
|
||||
(invoke caddy "help")
|
||||
(invoke caddy "version"))))))))
|
||||
(native-inputs
|
||||
(list (origin
|
||||
(method (go-mod-vendor #:go go-1.25))
|
||||
(uri (package-source this-package))
|
||||
(file-name "vendored-go-dependencies")
|
||||
(sha256
|
||||
(base32
|
||||
"1gza58qyxiz0v0wgsvbj3dpcaf8h9b5qpm42dhr10b36lmc2cdy2")))))
|
||||
(home-page "https://caddyserver.com/")
|
||||
(synopsis "Extensible HTTP web server with automatic HTTPS")
|
||||
(description
|
||||
"Caddy is a web server designed for simplicity and ease of use. It is
|
||||
notable for its automatic HTTPS feature, which enables secure connections
|
||||
without requiring complex configuration. Caddy is built with a focus on
|
||||
performance and flexibility, making it suitable for a variety of applications,
|
||||
from serving static websites to running dynamic web applications.")
|
||||
(license license:asl2.0)))
|
||||
|
||||
(define-public caddy/dolly
|
||||
(package
|
||||
(inherit caddy)
|
||||
(name "caddy-dolly")
|
||||
(version "2025.09.20-1")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://codeberg.org/hako/caddy.git")
|
||||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"14vpk4939v67jiapl8yn3a2v0sfzblaajlzcqfqii2xcb3a290j3"))))
|
||||
(native-inputs
|
||||
(modify-inputs (package-native-inputs caddy)
|
||||
(replace "vendored-go-dependencies"
|
||||
(origin
|
||||
(method (go-mod-vendor #:go go-1.25))
|
||||
(uri (package-source this-package))
|
||||
(file-name "vendored-go-dependencies")
|
||||
(sha256
|
||||
(base32
|
||||
"1lxbzig37z32nw2njiqy7bild4aw4y32man7490d13gg2s11rbn4"))))))
|
||||
(home-page "https://git.boiledscript.com/hako/caddy")
|
||||
(properties '((disable-updater? . #t)))))
|
||||
|
||||
(define-public hugo
|
||||
(package
|
||||
(name "hugo")
|
||||
(version "0.152.2")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/gohugoio/hugo")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"093p1k0m2n5b2bbk49kmciwr92wy9b8b4hw5wwmlhs2v304rw9cx"))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:go go-1.24
|
||||
#:install-source? #f
|
||||
#:import-path "."
|
||||
#:build-flags
|
||||
#~(list "-tags" "extended withdeploy"
|
||||
(string-append
|
||||
"-ldflags="
|
||||
" -X github.com/gohugoio/hugo/common/hugo.vendorInfo=Nonguix"))
|
||||
#:test-flags ''("-skip=^TestCommands/mod|^TestCommands/server")
|
||||
#:test-subdirs ''(".")
|
||||
#:modules
|
||||
'(((guix build gnu-build-system) #:prefix gnu:)
|
||||
(guix build go-build-system)
|
||||
(guix build utils))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'unpack
|
||||
(lambda args
|
||||
(unsetenv "GO111MODULE")
|
||||
(apply (assoc-ref gnu:%standard-phases 'unpack) args)
|
||||
(copy-recursively
|
||||
#+(this-package-native-input "vendored-go-dependencies")
|
||||
"vendor")))
|
||||
(replace 'install-license-files
|
||||
(assoc-ref gnu:%standard-phases 'install-license-files))
|
||||
(add-after 'unpack 'fix-paths
|
||||
(lambda* (#:key native-inputs inputs #:allow-other-keys)
|
||||
(setenv "C_INCLUDE_PATH"
|
||||
(string-append
|
||||
(getenv "C_INCLUDE_PATH") ":"
|
||||
(dirname
|
||||
(dirname
|
||||
(dirname
|
||||
(search-input-file
|
||||
(or native-inputs inputs)
|
||||
"src/dec/alphai_dec.h"))))))
|
||||
(with-directory-excursion "vendor/github.com/bep/gowebp"
|
||||
(substitute* (find-files "internal/libwebp")
|
||||
(("../../libwebp_src/(.*)\"" _ file)
|
||||
(format #f "~a\""
|
||||
(search-input-file
|
||||
(or native-inputs inputs) file)))))
|
||||
(with-directory-excursion "vendor/github.com/bep/golibsass"
|
||||
(substitute* (find-files "internal/libsass")
|
||||
(("../../libsass_src/(.*)\"" _ file)
|
||||
(format #f "~a\""
|
||||
(search-input-file
|
||||
(or native-inputs inputs) file))))))))))
|
||||
(native-inputs
|
||||
(list (origin
|
||||
(method (go-mod-vendor #:go go-1.24))
|
||||
(uri (package-source this-package))
|
||||
(file-name "vendored-go-dependencies")
|
||||
(sha256
|
||||
(base32
|
||||
"1yhk8as1jz5459bzkmqjwdp82xqsr7sx1m1jkkk58cfzagznpz78")))
|
||||
(package-source libsass)
|
||||
(package-source libwebp)))
|
||||
(home-page "https://gohugo.io/")
|
||||
(synopsis "Static site generator written in Go")
|
||||
(description
|
||||
"Hugo is a static site generator written in Go, optimized for speed and
|
||||
designed for flexibility. With its advanced templating system and fast asset
|
||||
pipelines, Hugo renders a complete site in seconds, often less.")
|
||||
(license license:asl2.0)))
|
||||
|
||||
(define-public forgejo
|
||||
(package
|
||||
(name "forgejo")
|
||||
(version "12.0.3")
|
||||
;; TODO: Address npm dependencies and fetch from git.
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"https://codeberg.org/forgejo/forgejo/releases/download/v"
|
||||
version "/forgejo-src-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0x09nwhps70n8rkvgp7mqzr7cyprdn274q7jhkljxna3r3w8qcb5"))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list #:tests? (not (%current-target-system)) ;TODO: Run test suite.
|
||||
#:go go-1.25
|
||||
#:install-source? #f
|
||||
#:import-path "."
|
||||
#:build-flags
|
||||
#~(list (string-append
|
||||
"-ldflags="
|
||||
" -X main.ReleaseVersion=" #$(package-version this-package)
|
||||
" -X main.Version=" #$(package-version this-package)
|
||||
" -X main.ForgejoVersion=" #$(package-version this-package)
|
||||
" -X forgejo.org/modules/setting.AppWorkPath=/var/lib/forgejo"
|
||||
" -X forgejo.org/modules/setting.CustomPath=" #$output "/etc/forgejo"
|
||||
" -X forgejo.org/modules/setting.CustomConf=/etc/forgejo/app.ini"))
|
||||
#:modules
|
||||
'(((guix build gnu-build-system) #:prefix gnu:)
|
||||
(guix build go-build-system)
|
||||
(guix build union)
|
||||
(guix build utils))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'unpack
|
||||
(lambda args
|
||||
(unsetenv "GO111MODULE")
|
||||
(apply (assoc-ref gnu:%standard-phases 'unpack) args)))
|
||||
(replace 'install-license-files
|
||||
(assoc-ref gnu:%standard-phases 'install-license-files))
|
||||
(add-after 'install 'rename-binary
|
||||
(lambda _
|
||||
(rename-file (in-vicinity #$output "bin/forgejo.org")
|
||||
(in-vicinity #$output "bin/forgejo"))))
|
||||
(add-after 'install 'install-extras
|
||||
(lambda _
|
||||
(mkdir-p (in-vicinity #$output "/etc/forgejo"))
|
||||
(copy-file "custom/conf/app.example.ini"
|
||||
(in-vicinity #$output "etc/forgejo/app.ini"))
|
||||
(for-each
|
||||
(lambda (dir)
|
||||
(copy-recursively
|
||||
dir (string-append #$output "/etc/forgejo/" dir)))
|
||||
'("options" "public" "templates"))))
|
||||
(delete 'check)
|
||||
(add-after 'rename-binary 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(let ((forgejo (in-vicinity #$output "bin/forgejo")))
|
||||
(invoke forgejo "--help")
|
||||
(invoke forgejo "--version"))))))))
|
||||
(native-inputs (list git-minimal))
|
||||
(home-page "https://forgejo.org/")
|
||||
(synopsis "Lightweight software forge")
|
||||
(description
|
||||
"Forgejo is a self-hosted, lightweight software forge designed to
|
||||
facilitate collaborative software development. It is built to be easy to
|
||||
install and maintain, making it an ideal choice for teams and organizations
|
||||
looking for a reliable platform to manage their software projects.")
|
||||
(license license:gpl3+)
|
||||
(properties
|
||||
'((disable-updater? . #t)))))
|
||||
|
||||
(define-public iocaine/dolly
|
||||
(package
|
||||
(inherit iocaine)
|
||||
(name "iocaine-dolly")
|
||||
(version "2.5.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (crate-uri "iocaine" version))
|
||||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32 "1x445vnalm323qphxfbfrdzmv9q83h2kybimwm2j39j9p9hj188s"))))
|
||||
(inputs (cons* jemalloc (rosenthal-cargo-inputs 'iocaine)))))
|
||||
@@ -0,0 +1,21 @@
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages wm)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix build-system cargo)
|
||||
#:use-module (rosenthal utils cargo)
|
||||
#:use-module (gnu packages admin)
|
||||
#:use-module (gnu packages freedesktop)
|
||||
#:use-module (gnu packages gl)
|
||||
#:use-module (gnu packages glib)
|
||||
#:use-module (gnu packages gtk)
|
||||
#:use-module (gnu packages linux)
|
||||
#:use-module (gnu packages llvm)
|
||||
#:use-module (gnu packages pkg-config)
|
||||
#:use-module (gnu packages wm)
|
||||
#:use-module (gnu packages xdisorg))
|
||||
@@ -0,0 +1,14 @@
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal packages xorg)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix git-download)
|
||||
#:use-module (guix build-system cargo)
|
||||
#:use-module (rosenthal utils cargo)
|
||||
#:use-module (gnu packages llvm)
|
||||
#:use-module (gnu packages pkg-config)
|
||||
#:use-module (gnu packages xorg))
|
||||
@@ -0,0 +1,39 @@
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal services base)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix records)
|
||||
#:use-module (rosenthal utils packages)
|
||||
|
||||
#:use-module (gnu services base)
|
||||
|
||||
#:use-module (gnu packages bash)
|
||||
#:use-module (rosenthal packages admin)
|
||||
#:export (greetd-tuigreet-session))
|
||||
|
||||
(define-record-type* <greetd-tuigreet-session>
|
||||
greetd-tuigreet-session make-greetd-tuigreet-session
|
||||
greetd-tuigreet-session?
|
||||
this-greetd-tuigreet-session
|
||||
(tuigreet greetd-tuigreet-session-tuigreet
|
||||
(default (spec->pkg "tuigreet")))
|
||||
(args greetd-tuigreet-session-args
|
||||
(default '("--issue"
|
||||
"--time"
|
||||
"--user-menu"
|
||||
"--asterisks"
|
||||
"--remember"
|
||||
"--remember-session"
|
||||
"--power-shutdown" "loginctl poweroff"
|
||||
"--power-reboot" "loginctl reboot"))))
|
||||
|
||||
(define-gexp-compiler (greetd-tuigreet-session-compiler
|
||||
(session <greetd-tuigreet-session>)
|
||||
system target)
|
||||
(match-record session <greetd-tuigreet-session> (tuigreet args)
|
||||
(let ((tuigreet (file-append tuigreet "/bin/tuigreet")))
|
||||
(lower-object
|
||||
(program-file "tuigreet-wrapper"
|
||||
#~(execl #$tuigreet #$tuigreet #$@args))))))
|
||||
@@ -0,0 +1,147 @@
|
||||
;;; SPDX-FileCopyrightText: 2022, 2023 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal services bittorrent)
|
||||
#:use-module (ice-9 format)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix records)
|
||||
#:use-module (gnu packages admin)
|
||||
#:use-module (gnu packages bittorrent)
|
||||
#:use-module (gnu services)
|
||||
#:use-module (gnu services configuration)
|
||||
#:use-module (gnu services shepherd)
|
||||
#:use-module (gnu home services)
|
||||
#:use-module (gnu home services shepherd)
|
||||
#:use-module (gnu system shadow)
|
||||
#:export (qbittorrent-configuration
|
||||
qbittorrent-service-type
|
||||
home-qbittorrent-service-type))
|
||||
|
||||
;;;
|
||||
;;; qBittorrent
|
||||
;;;
|
||||
|
||||
|
||||
(define-configuration qbittorrent-configuration
|
||||
(qbittorrent
|
||||
(file-like qbittorrent-no-x)
|
||||
"The qBittorrent package to use, we need @command{qbittorrent-nox}.")
|
||||
(webui-port
|
||||
(integer 8080)
|
||||
"Change the Web UI port.")
|
||||
(profile-directory
|
||||
(string "/var/lib/qbittorrent")
|
||||
"Directory to store configuration files in.")
|
||||
(extra-options
|
||||
(list-of-strings '())
|
||||
"List of extra options.")
|
||||
(no-serialization))
|
||||
|
||||
(define %qbittorrent-accounts
|
||||
(list (user-group (name "qbittorrent") (system? #t))
|
||||
(user-account
|
||||
(name "qbittorrent")
|
||||
(group "qbittorrent")
|
||||
(system? #t)
|
||||
(comment "qBittorrent user")
|
||||
(home-directory "/var/empty")
|
||||
(shell (file-append shadow "/sbin/nologin")))))
|
||||
|
||||
;; Set default password to adminadmin
|
||||
(define %qbittorrent-default-config-file
|
||||
(plain-file
|
||||
"qBittorrent.conf"
|
||||
(format #f "~
|
||||
[LegalNotice]
|
||||
Accepted=true
|
||||
[Preferences]
|
||||
WebUI\\Password_PBKDF2=\"@ByteArray(ARQ77eY1NUZaQsuDHbIMCA==:0WMRkYTUWVT9wVvdDtHAjU9b3b7uB8NR1Gur2hmQCvCDpm39Q+PsJRJPaCU51dEiz+dTzh8qbPsL8WkFljQYFQ==)\"~%")))
|
||||
|
||||
(define qbittorrent-activation
|
||||
(match-record-lambda <qbittorrent-configuration>
|
||||
(profile-directory)
|
||||
#~(begin
|
||||
(use-modules (srfi srfi-26)
|
||||
(guix build utils))
|
||||
(let ((user (getpwnam "qbittorrent"))
|
||||
(config-file
|
||||
(string-append
|
||||
#$profile-directory "/qBittorrent/config/qBittorrent.conf")))
|
||||
(unless (file-exists? config-file)
|
||||
(mkdir-p (dirname config-file))
|
||||
(copy-file #$%qbittorrent-default-config-file config-file)
|
||||
(map (cut chown <> (passwd:uid user) (passwd:gid user))
|
||||
(cons #$profile-directory
|
||||
(find-files #$profile-directory #:directories? #t))))))))
|
||||
|
||||
(define qbittorrent-shepherd-service
|
||||
(match-record-lambda <qbittorrent-configuration>
|
||||
(qbittorrent webui-port profile-directory extra-options)
|
||||
(list (shepherd-service
|
||||
(documentation "Run qbittorrent.")
|
||||
(provision '(qbittorrent))
|
||||
(requirement '(networking))
|
||||
(start #~(make-forkexec-constructor
|
||||
(list #$(file-append qbittorrent "/bin/qbittorrent-nox")
|
||||
#$(string-append "--webui-port="
|
||||
(number->string webui-port))
|
||||
#$(string-append "--profile=" profile-directory)
|
||||
#$@extra-options)
|
||||
#:user "qbittorrent"
|
||||
#:group "qbittorrent"
|
||||
#:resource-limits '((nofile 65536 65536))))
|
||||
(stop #~(make-kill-destructor #:grace-period 1800))
|
||||
(actions
|
||||
(list (shepherd-configuration-action
|
||||
(string-append profile-directory
|
||||
"/qBittorrent/config/qBittorrent.conf"))))))))
|
||||
|
||||
(define qbittorrent-service-type
|
||||
(service-type
|
||||
(name 'qbittorrent)
|
||||
(extensions
|
||||
(list (service-extension shepherd-root-service-type
|
||||
qbittorrent-shepherd-service)
|
||||
(service-extension activation-service-type
|
||||
qbittorrent-activation)
|
||||
(service-extension account-service-type
|
||||
(const %qbittorrent-accounts))))
|
||||
(default-value (qbittorrent-configuration))
|
||||
(description "Run qBittorrent daemon.")))
|
||||
|
||||
(define home-qbittorrent-activation
|
||||
#~(let ((config-file
|
||||
(string-append
|
||||
(or (getenv "XDG_CONFIG_HOME")
|
||||
(string-append user-homedir "/.config"))
|
||||
"/qBittorrent/qBittorrent.conf")))
|
||||
(unless (file-exists? config-file)
|
||||
(mkdir-p (dirname config-file))
|
||||
(copy-file #$%qbittorrent-default-config-file config-file))))
|
||||
|
||||
(define home-qbittorrent-shepherd-service
|
||||
(match-record-lambda <qbittorrent-configuration>
|
||||
(qbittorrent webui-port extra-options)
|
||||
(list (shepherd-service
|
||||
(documentation "Run qbittorrent.")
|
||||
(provision '(qbittorrent))
|
||||
(requirement '())
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list
|
||||
#$(file-append qbittorrent "/bin/qbittorrent-nox")
|
||||
#$(string-append "--webui-port=" (number->string webui-port))
|
||||
#$@extra-options)))
|
||||
(stop #~(make-kill-destructor #:grace-period 1800))))))
|
||||
|
||||
(define home-qbittorrent-service-type
|
||||
(service-type
|
||||
(name 'qbittorrent)
|
||||
(extensions
|
||||
(list (service-extension home-activation-service-type
|
||||
(const home-qbittorrent-activation))
|
||||
(service-extension home-shepherd-service-type
|
||||
home-qbittorrent-shepherd-service)))
|
||||
(default-value (qbittorrent-configuration))
|
||||
(description "Run qBittorrent daemon.")))
|
||||
@@ -0,0 +1,490 @@
|
||||
;;; SPDX-FileCopyrightText: 2022, 2023 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal services child-error)
|
||||
#:use-module (guix records)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (gnu home services)
|
||||
#:use-module (gnu home services shepherd)
|
||||
#:use-module (gnu packages admin)
|
||||
#:use-module (gnu packages web)
|
||||
#:use-module (gnu services)
|
||||
#:use-module (gnu services admin)
|
||||
#:use-module (gnu services configuration)
|
||||
#:use-module (gnu services databases)
|
||||
#:use-module (gnu services shepherd)
|
||||
#:use-module (gnu system shadow)
|
||||
#:use-module (rosenthal packages binaries)
|
||||
#:use-module (rosenthal packages networking)
|
||||
#:use-module (rosenthal utils serializers yaml)
|
||||
#:export (clash-configuration
|
||||
clash-service-type
|
||||
|
||||
cloudflare-tunnel-configuration
|
||||
cloudflare-tunnel-service-type
|
||||
|
||||
cloudflare-warp-configuration
|
||||
cloudflare-warp-service-type
|
||||
|
||||
home-wakapi-configuration
|
||||
home-wakapi-service-type
|
||||
|
||||
shadow-tls-configuration
|
||||
shadow-tls-client-configuration
|
||||
shadow-tls-server-configuration
|
||||
shadow-tls-service-type
|
||||
home-shadow-tls-service-type
|
||||
|
||||
home-socks2http-configuration
|
||||
home-socks2http-service-type))
|
||||
|
||||
;;;
|
||||
;;; Clash
|
||||
;;;
|
||||
|
||||
|
||||
(define-configuration clash-configuration
|
||||
(clash
|
||||
(file-like mihomo)
|
||||
"The clash package.")
|
||||
|
||||
(log-file
|
||||
(string "/var/log/clash.log")
|
||||
"Where the logs go.")
|
||||
|
||||
(data-directory
|
||||
(string "/var/lib/clash")
|
||||
"Where to store data.")
|
||||
|
||||
(config
|
||||
(file-like (plain-file "empty" ""))
|
||||
"Clash configuration file.")
|
||||
|
||||
(shepherd-provision
|
||||
(list '(clash))
|
||||
"A list of Shepherd service names (symbols) provided by this service.")
|
||||
(no-serialization))
|
||||
|
||||
(define %clash-accounts
|
||||
(list (user-group (name "clash") (system? #t))))
|
||||
|
||||
(define clash-activation
|
||||
(match-record-lambda <clash-configuration>
|
||||
(data-directory config)
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((config-dest (string-append #$data-directory "/config.yaml")))
|
||||
(mkdir-p #$data-directory)
|
||||
(if (file-exists? config-dest)
|
||||
(delete-file config-dest))
|
||||
(symlink #$config config-dest)))))
|
||||
|
||||
(define clash-shepherd-service
|
||||
(match-record-lambda <clash-configuration>
|
||||
(clash log-file data-directory shepherd-provision)
|
||||
(list (shepherd-service
|
||||
(documentation "Run clash.")
|
||||
(provision shepherd-provision)
|
||||
(requirement '(loopback networking))
|
||||
(start #~(make-forkexec-constructor
|
||||
(list (let ((mihomo-cmd
|
||||
#$(file-append clash "/bin/mihomo"))
|
||||
(clash-cmd
|
||||
#$(file-append clash "/bin/clash")))
|
||||
(if (file-exists? mihomo-cmd)
|
||||
mihomo-cmd
|
||||
clash-cmd))
|
||||
"-d" #$data-directory)
|
||||
#:group "clash"
|
||||
#:log-file #$log-file))
|
||||
(stop #~(make-kill-destructor))
|
||||
(actions
|
||||
(list (shepherd-configuration-action
|
||||
(string-append data-directory "/config.yaml"))))))))
|
||||
|
||||
(define clash-service-type
|
||||
(service-type
|
||||
(name 'clash)
|
||||
(extensions
|
||||
(list (service-extension shepherd-root-service-type
|
||||
clash-shepherd-service)
|
||||
(service-extension activation-service-type
|
||||
clash-activation)
|
||||
(service-extension account-service-type
|
||||
(const %clash-accounts))
|
||||
(service-extension log-rotation-service-type
|
||||
(compose list clash-configuration-log-file))))
|
||||
(default-value (clash-configuration))
|
||||
(description "Run Clash.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Cloudflare Tunnel
|
||||
;;;
|
||||
|
||||
|
||||
(define-maybe string)
|
||||
|
||||
(define-configuration cloudflare-tunnel-configuration
|
||||
(cloudflared
|
||||
(file-like cloudflared)
|
||||
"The cloudflared executable.")
|
||||
|
||||
;; Tunnel options
|
||||
(log-level
|
||||
(string "info")
|
||||
"Application logging level (@code{debug}, @code{info}, @code{warn},
|
||||
@code{error}, @code{fatal}). At debug level cloudflared will log request URL,
|
||||
method, protocol, content length, as well as, all request and response
|
||||
headers. This can expose sensitive information in your logs.")
|
||||
(log-file
|
||||
(string "/var/log/cloudflared.log")
|
||||
"File path to store logs.")
|
||||
(extra-tunnel-options
|
||||
(list-of-strings '())
|
||||
"List of extra tunnel options.")
|
||||
|
||||
;; Subcommand options
|
||||
(token
|
||||
maybe-string
|
||||
"The Tunnel token.")
|
||||
(token-file
|
||||
maybe-string
|
||||
"Secert file for the Tunnel token.")
|
||||
(extra-options
|
||||
(list-of-strings '())
|
||||
"List of extra options.")
|
||||
(no-serialization))
|
||||
|
||||
(define %cloudflare-tunnel-accounts
|
||||
(list (user-account
|
||||
(name "cloudflared")
|
||||
(group "nogroup")
|
||||
(system? #t)
|
||||
(home-directory "/var/empty")
|
||||
(create-home-directory? #f)
|
||||
(shell (file-append shadow "/sbin/nologin")))))
|
||||
|
||||
(define cloudflare-tunnel-shepherd-service
|
||||
(match-record-lambda <cloudflare-tunnel-configuration>
|
||||
(cloudflared log-level log-file extra-tunnel-options
|
||||
token token-file extra-options)
|
||||
(list (shepherd-service
|
||||
(documentation "Run cloudflared.")
|
||||
(provision '(cloudflare-tunnel cloudflared))
|
||||
(requirement '(loopback networking))
|
||||
(start #~(make-forkexec-constructor
|
||||
(list #$(file-append cloudflared "/bin/cloudflared")
|
||||
"tunnel"
|
||||
"--no-autoupdate"
|
||||
"--loglevel" #$log-level
|
||||
#$@extra-tunnel-options
|
||||
"run"
|
||||
#$@extra-options)
|
||||
#:user "cloudflared"
|
||||
#:group "nogroup"
|
||||
#:log-file #$log-file
|
||||
#:environment-variables
|
||||
(list #$@(if (maybe-value-set? token)
|
||||
(list (format #f "TUNNEL_TOKEN=~a"
|
||||
token))
|
||||
'())
|
||||
#$@(if (maybe-value-set? token-file)
|
||||
(list (format #f "TUNNEL_TOKEN_FILE=~a"
|
||||
token-file))
|
||||
'()))))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
|
||||
(define cloudflare-tunnel-service-type
|
||||
(service-type
|
||||
(name 'cloudflare-tunnel)
|
||||
(extensions
|
||||
(list (service-extension shepherd-root-service-type
|
||||
cloudflare-tunnel-shepherd-service)
|
||||
(service-extension account-service-type
|
||||
(const %cloudflare-tunnel-accounts))
|
||||
(service-extension log-rotation-service-type
|
||||
(compose list cloudflare-tunnel-configuration-log-file))))
|
||||
(default-value (cloudflare-tunnel-configuration))
|
||||
(description "Run cloudflared, the Cloudflare Tunnel daemon.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Cloudflare Warp
|
||||
;;;
|
||||
|
||||
|
||||
(define-configuration cloudflare-warp-configuration
|
||||
(cloudflare-warp
|
||||
(file-like cloudflare-warp-bin)
|
||||
"The Cloudflare Warp package.")
|
||||
(no-serialization))
|
||||
|
||||
(define cloudflare-warp-shepherd-service
|
||||
(match-record-lambda <cloudflare-warp-configuration>
|
||||
(cloudflare-warp)
|
||||
(list (shepherd-service
|
||||
(documentation "Run warp-svc.")
|
||||
(provision '(cloudflare-warp))
|
||||
(start #~(make-forkexec-constructor
|
||||
(list #$(file-append cloudflare-warp "/bin/warp-svc"))
|
||||
;; Logs are written to
|
||||
;; /var/lib/cloudflare-warp/cfwarp_service_log.txt.
|
||||
#:log-file "/dev/null"))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
|
||||
(define cloudflare-warp-service-type
|
||||
(service-type
|
||||
(name 'cloudflare-warp)
|
||||
(extensions
|
||||
(list (service-extension shepherd-root-service-type
|
||||
cloudflare-warp-shepherd-service)
|
||||
(service-extension
|
||||
profile-service-type
|
||||
(compose list cloudflare-warp-configuration-cloudflare-warp))))
|
||||
(default-value (cloudflare-warp-configuration))
|
||||
(description "Run warp-svc, the Cloudflare Warp daemon.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Wakapi
|
||||
;;;
|
||||
|
||||
|
||||
(define-configuration home-wakapi-configuration
|
||||
(wakapi
|
||||
(file-like wakapi-bin)
|
||||
"The wakapi package.")
|
||||
(config
|
||||
(yaml-config '())
|
||||
"Association list of Wakapi configurations.")
|
||||
(no-serialization))
|
||||
|
||||
(define home-wakapi-shepherd-service
|
||||
(match-record-lambda <home-wakapi-configuration>
|
||||
(wakapi config)
|
||||
(let ((config-file (mixed-text-file
|
||||
"wakapi.yaml"
|
||||
#~(string-append #$@(yaml-serialize config) "\n"))))
|
||||
(list (shepherd-service
|
||||
(documentation "Run wakapi.")
|
||||
(provision '(wakapi))
|
||||
(start #~(make-forkexec-constructor
|
||||
(list #$(file-append wakapi "/bin/wakapi")
|
||||
"-config" #$config-file)))
|
||||
(stop #~(make-kill-destructor))
|
||||
(actions (list (shepherd-configuration-action config-file))))))))
|
||||
|
||||
(define home-wakapi-service-type
|
||||
(service-type
|
||||
(name 'home-wakapi)
|
||||
(extensions
|
||||
(list (service-extension home-shepherd-service-type
|
||||
home-wakapi-shepherd-service)))
|
||||
(default-value (home-wakapi-configuration))
|
||||
(description "Run Wakapi, a self-hosted WakaTime-compatible backend.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; ShadowTLS
|
||||
;;;
|
||||
|
||||
|
||||
(define-maybe list-of-strings
|
||||
(no-serialization))
|
||||
|
||||
(define-configuration shadow-tls-client-configuration
|
||||
(listen-address
|
||||
(string "")
|
||||
"Listen address with port. Usually this port is used by Shadowsocks
|
||||
client.")
|
||||
(server-address
|
||||
(string "")
|
||||
"ShadowTLS server address with port.")
|
||||
(sni-list
|
||||
(list-of-strings '(""))
|
||||
"SNI list.")
|
||||
(password
|
||||
(string "")
|
||||
"Must be the same as the ShadowTLS server.")
|
||||
(alpn
|
||||
maybe-list-of-strings
|
||||
"ALPN ext. Do not use unless you know what you are doing.")
|
||||
(no-serialization))
|
||||
|
||||
(define-configuration shadow-tls-server-configuration
|
||||
(listen-address
|
||||
(string "")
|
||||
"Listen address with port.")
|
||||
(server-address
|
||||
(string "")
|
||||
"Data server address with port. Usually this port is listened by Shadowsocks
|
||||
server.")
|
||||
(tls-name-list
|
||||
(list-of-strings '(""))
|
||||
"TLS names. There must be a fallback server name at the last, and there can
|
||||
be multiple mappings. Mappings can be represented as
|
||||
@code{ServerName:Host:Port}. Host can be omitted, in this case
|
||||
@code{ServerName} is used as @code{Host}. @code{Port} can be omitted too, which
|
||||
is @code{443} by default")
|
||||
(password
|
||||
(string "")
|
||||
"Must be the same as the ShadowTLS client.")
|
||||
(no-serialization))
|
||||
|
||||
(define-record-type* <shadow-tls-configuration> shadow-tls-configuration
|
||||
make-shadow-tls-configuration
|
||||
shadow-tls-configuration?
|
||||
this-shadow-tls-configuration
|
||||
|
||||
(shadow-tls shadow-tls-configuration-shadow-tls ;file-like
|
||||
(default shadow-tls-bin))
|
||||
(threads shadow-tls-configuration-threads ;integer | #f
|
||||
(default #f))
|
||||
(no-delay? shadow-tls-configuration-disable-no-delay? ;boolean
|
||||
(default #t))
|
||||
(v3-protocol? shadow-tls-configuration-v3-protocol? ;boolean
|
||||
(default #f))
|
||||
(log-level shadow-tls-configuration-log-level ;string
|
||||
(default "info"))
|
||||
(client shadow-tls-configuration-client ;<shadow-tls-client-configuration> | #f
|
||||
(default #f))
|
||||
(server shadow-tls-configuration-server ;<shadow-tls-server-configuration> | #f
|
||||
(default #f))
|
||||
(home-service? shadow-tls-configuration-home-service?
|
||||
(default for-home?) (innate)))
|
||||
|
||||
(define shadow-tls-shepherd-service
|
||||
(match-record-lambda <shadow-tls-configuration>
|
||||
(shadow-tls threads no-delay? v3-protocol? log-level client server
|
||||
home-service?)
|
||||
(let ((common-options
|
||||
(append (if threads
|
||||
`("--threads" ,(number->string threads))
|
||||
'())
|
||||
(if no-delay?
|
||||
'()
|
||||
'("--disable-nodelay"))
|
||||
(if v3-protocol?
|
||||
'("--v3")
|
||||
'()))))
|
||||
(append
|
||||
(if client
|
||||
(match-record client
|
||||
<shadow-tls-client-configuration>
|
||||
(listen-address server-address sni-list password alpn)
|
||||
(let ((log-file
|
||||
(if home-service?
|
||||
#~(string-append %user-log-dir "/shadow-tls-client.log")
|
||||
"/var/log/shadow-tls-client.log")))
|
||||
(list (shepherd-service
|
||||
(documentation "Run shadow-tls client.")
|
||||
(provision '(shadow-tls-client))
|
||||
(requirement (if home-service? '() '(networking)))
|
||||
(modules '((shepherd support)))
|
||||
(start #~(make-forkexec-constructor
|
||||
(list #$(file-append
|
||||
shadow-tls "/bin/shadow-tls")
|
||||
#$@common-options
|
||||
"client"
|
||||
"--listen" #$listen-address
|
||||
"--server" #$server-address
|
||||
"--sni" #$(string-join sni-list ";")
|
||||
"--password" #$password
|
||||
#$@(if (maybe-value-set? alpn)
|
||||
`("--alpn" ,(string-join alpn ";"))
|
||||
'()))
|
||||
#:user #$(and (not home-service?) "nobody")
|
||||
#:group #$(and (not home-service?) "nogroup")
|
||||
#:log-file #$log-file
|
||||
#:environment-variables
|
||||
(list (string-append "RUST_LOG=" #$log-level))))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
'())
|
||||
(if server
|
||||
(match-record server
|
||||
<shadow-tls-server-configuration>
|
||||
(listen-address server-address tls-name-list password)
|
||||
(let ((log-file
|
||||
(if home-service?
|
||||
#~(string-append %user-log-dir "/shadow-tls-server.log")
|
||||
"/var/log/shadow-tls-server.log")))
|
||||
(list (shepherd-service
|
||||
(documentation "Run shadow-tls server.")
|
||||
(provision '(shadow-tls-server))
|
||||
(requirement (if home-service? '() '(networking)))
|
||||
(modules '((shepherd support)))
|
||||
(start #~(make-forkexec-constructor
|
||||
(list #$(file-append
|
||||
shadow-tls "/bin/shadow-tls")
|
||||
#$@common-options
|
||||
"server"
|
||||
"--listen" #$listen-address
|
||||
"--server" #$server-address
|
||||
"--tls" #$(string-join tls-name-list ";")
|
||||
"--password" #$password)
|
||||
#:user #$(and (not home-service?) "nobody")
|
||||
#:group #$(and (not home-service?) "nogroup")
|
||||
#:log-file #$log-file))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
'())))))
|
||||
|
||||
(define shadow-tls-service-type
|
||||
(service-type
|
||||
(name 'shadow-tls)
|
||||
(extensions
|
||||
(list (service-extension shepherd-root-service-type
|
||||
shadow-tls-shepherd-service)))
|
||||
(default-value (shadow-tls-server-configuration))
|
||||
(description "Run shadow-tls.")))
|
||||
|
||||
(define home-shadow-tls-service-type
|
||||
(service-type
|
||||
(inherit (system->home-service-type shadow-tls-service-type))
|
||||
(default-value (for-home (shadow-tls-configuration)))))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Socks2http
|
||||
;;;
|
||||
|
||||
|
||||
(define-configuration home-socks2http-configuration
|
||||
(socks2http
|
||||
(file-like socks2http)
|
||||
"Socks2http package to use.")
|
||||
(socks-address
|
||||
(string ":1080")
|
||||
"SOCKS5 proxy address to connect to.")
|
||||
(http-address
|
||||
(string ":8000")
|
||||
"HTTP proxy address to serve.")
|
||||
(no-serialization))
|
||||
|
||||
(define home-socks2http-shepherd-service
|
||||
(match-record-lambda <home-socks2http-configuration>
|
||||
(socks2http socks-address http-address)
|
||||
(list (shepherd-service
|
||||
(documentation "Run socks2http.")
|
||||
(provision '(socks2http))
|
||||
(start #~(make-forkexec-constructor
|
||||
(list #$(file-append socks2http "/bin/socks2http")
|
||||
"-raddr" #$socks-address
|
||||
"-laddr" #$http-address)))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
|
||||
(define home-socks2http-service-type
|
||||
(service-type
|
||||
(name 'home-socks2http)
|
||||
(extensions
|
||||
(list (service-extension home-shepherd-service-type
|
||||
home-socks2http-shepherd-service)))
|
||||
(default-value (home-socks2http-configuration))
|
||||
(description "Run socks2http.")))
|
||||
|
||||
|
||||
|
||||
|
||||
(define-service-type-mapping
|
||||
shadow-tls-service-type => home-shadow-tls-service-type)
|
||||
@@ -0,0 +1,215 @@
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal services cuirass)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (srfi srfi-26)
|
||||
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix modules)
|
||||
#:use-module (guix records)
|
||||
#:use-module (guix store)
|
||||
#:use-module (rosenthal utils packages)
|
||||
|
||||
#:use-module (gnu bootloader)
|
||||
#:use-module (gnu bootloader grub)
|
||||
#:use-module (gnu system)
|
||||
#:use-module (gnu system linux-container)
|
||||
#:use-module (gnu system file-systems)
|
||||
#:use-module (gnu system shadow)
|
||||
|
||||
#:use-module (gnu services)
|
||||
#:use-module (gnu services admin)
|
||||
#:use-module (gnu services base)
|
||||
#:use-module (gnu services cuirass)
|
||||
#:use-module (gnu services databases)
|
||||
#:use-module (gnu services shepherd)
|
||||
|
||||
#:use-module (gnu packages linux)
|
||||
#:use-module (rosenthal packages ci)
|
||||
#:export (cuirass-worker-container-service-type
|
||||
cuirass-worker-container-configuration
|
||||
cuirass-worker-container-configuration?
|
||||
this-cuirass-worker-container-configuration
|
||||
cuirass-worker-container-activation
|
||||
cuirass-worker-container-shepherd
|
||||
|
||||
cuirass-service-type/hako))
|
||||
|
||||
;;;
|
||||
;;; Cuirass service with ‘avahi-daemon’ shepherd requirement stripped.
|
||||
;;;
|
||||
|
||||
(define cuirass-service-type/hako
|
||||
(let ((cuirass-configuration-cuirass
|
||||
(@@ (gnu services cuirass) cuirass-configuration-cuirass))
|
||||
(cuirass-activation
|
||||
(@@ (gnu services cuirass) cuirass-activation))
|
||||
(cuirass-shepherd-service
|
||||
(@@ (gnu services cuirass) cuirass-shepherd-service))
|
||||
(cuirass-account
|
||||
(@@ (gnu services cuirass) cuirass-account))
|
||||
(cuirass-postgresql-role
|
||||
(@@ (gnu services cuirass) cuirass-postgresql-role))
|
||||
(strip-shepherd-requirement
|
||||
(lambda (services)
|
||||
(map (lambda (service)
|
||||
(if (member 'cuirass-remote-server
|
||||
(shepherd-service-provision service))
|
||||
(shepherd-service
|
||||
(inherit service)
|
||||
(requirement
|
||||
(remove (cut eqv? <> 'avahi-daemon)
|
||||
(shepherd-service-requirement service))))
|
||||
service))
|
||||
services))))
|
||||
(service-type
|
||||
(name 'cuirass)
|
||||
(extensions
|
||||
(list
|
||||
(service-extension profile-service-type ;for 'info cuirass'
|
||||
(compose list cuirass-configuration-cuirass))
|
||||
(service-extension activation-service-type cuirass-activation)
|
||||
(service-extension shepherd-root-service-type
|
||||
(compose strip-shepherd-requirement
|
||||
cuirass-shepherd-service))
|
||||
(service-extension account-service-type cuirass-account)
|
||||
;; Make sure postgresql and postgresql-role are instantiated.
|
||||
(service-extension postgresql-service-type (const #t))
|
||||
(service-extension postgresql-role-service-type
|
||||
cuirass-postgresql-role)))
|
||||
(description "Run the Cuirass continuous integration service."))))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Run Cuirass remote worker in container.
|
||||
;;;
|
||||
|
||||
(define-record-type* <cuirass-worker-container-configuration>
|
||||
cuirass-worker-container-configuration
|
||||
make-cuirass-worker-container-configuration
|
||||
cuirass-worker-container-configuration?
|
||||
this-cuirass-worker-container-configuration
|
||||
(host-name cuirass-worker-container-host-name)
|
||||
(server cuirass-worker-container-server)
|
||||
(workers cuirass-worker-container-workers
|
||||
(default 1))
|
||||
(supported-systems cuirass-worker-container-supported-systems
|
||||
(default (list (%current-system)))
|
||||
(thunked))
|
||||
(substitute-urls cuirass-worker-container-substitute-urls
|
||||
(default %default-substitute-urls))
|
||||
;; Internal.
|
||||
(container-script cuirass-worker-container-script
|
||||
(default (%cuirass-worker-container-script
|
||||
this-cuirass-worker-container-configuration))
|
||||
(thunked))
|
||||
;; Extensions.
|
||||
(activation cuirass-worker-container-activation
|
||||
(default (%cuirass-worker-container-activation
|
||||
this-cuirass-worker-container-configuration))
|
||||
(thunked))
|
||||
(shepherd cuirass-worker-container-shepherd
|
||||
(default (%cuirass-worker-container-shepherd
|
||||
this-cuirass-worker-container-configuration))
|
||||
(thunked)))
|
||||
|
||||
(define %cuirass-worker-container-script
|
||||
(match-record-lambda <cuirass-worker-container-configuration>
|
||||
(host-name server workers supported-systems substitute-urls)
|
||||
|
||||
(define cuirass-remote-worker-shepherd-service
|
||||
(@@ (gnu services cuirass) cuirass-remote-worker-shepherd-service))
|
||||
(define %cuirass-remote-worker-accounts
|
||||
(@@ (gnu services cuirass) %cuirass-remote-worker-accounts))
|
||||
|
||||
(define (strip-shepherd-requirement services)
|
||||
(map (lambda (service)
|
||||
(if (member 'cuirass-remote-worker
|
||||
(shepherd-service-provision service))
|
||||
(shepherd-service
|
||||
(inherit service)
|
||||
(requirement
|
||||
(remove (cut member <> '(avahi-daemon guix-daemon))
|
||||
(shepherd-service-requirement service))))
|
||||
service))
|
||||
services))
|
||||
|
||||
(define cuirass-remote-worker-for-container
|
||||
(service-type
|
||||
(name 'cuirass-remote-worker)
|
||||
(extensions
|
||||
(list (service-extension shepherd-root-service-type
|
||||
(compose strip-shepherd-requirement
|
||||
cuirass-remote-worker-shepherd-service))
|
||||
(service-extension account-service-type
|
||||
(const %cuirass-remote-worker-accounts))))
|
||||
(description "Run the Cuirass remote build worker service.")))
|
||||
|
||||
(define os
|
||||
(operating-system
|
||||
(bootloader
|
||||
(bootloader-configuration
|
||||
(bootloader grub-bootloader)
|
||||
(targets '("/dev/sda"))))
|
||||
(file-systems
|
||||
(cons (file-system
|
||||
(mount-point "/")
|
||||
(device "nothing")
|
||||
(type "dummy"))
|
||||
%base-file-systems))
|
||||
(kernel linux-libre-lts)
|
||||
(host-name host-name)
|
||||
(services
|
||||
(cons (service cuirass-remote-worker-for-container
|
||||
(cuirass-remote-worker-configuration
|
||||
(cuirass cuirass/hako)
|
||||
(workers workers)
|
||||
(server server)
|
||||
(systems supported-systems)
|
||||
(publish-port 5558)
|
||||
(substitute-urls substitute-urls)))
|
||||
%base-services))))
|
||||
|
||||
(with-store store
|
||||
(run-with-store store
|
||||
(container-script os #:shared-network? #t)))))
|
||||
|
||||
(define (%cuirass-worker-container-activation _)
|
||||
(with-imported-modules (source-module-closure '((guix build utils)))
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((log-file "/var/log/cuirass-worker-container.log"))
|
||||
(mkdir-p (dirname log-file))
|
||||
;; Clear log on start.
|
||||
(call-with-output-file log-file (const #t))))))
|
||||
|
||||
(define %cuirass-worker-container-shepherd
|
||||
(match-record-lambda <cuirass-worker-container-configuration>
|
||||
(container-script)
|
||||
(list (shepherd-service
|
||||
(provision '(cuirass-worker-container))
|
||||
(requirement '(guix-daemon user-processes))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$container-script
|
||||
"--expose=/etc/guix"
|
||||
"--share=/var/guix/daemon-socket/socket"
|
||||
(string-append
|
||||
"--share=" (string-join
|
||||
'("/var/log/cuirass-worker-container.log"
|
||||
"/var/log/cuirass-remote-worker.log")
|
||||
"=")))))
|
||||
(stop
|
||||
#~(make-kill-destructor))))))
|
||||
|
||||
(define cuirass-worker-container-service-type
|
||||
(service-type
|
||||
(name 'cuirass-worker-container)
|
||||
(extensions
|
||||
(list (service-extension activation-service-type
|
||||
cuirass-worker-container-activation)
|
||||
(service-extension shepherd-root-service-type
|
||||
cuirass-worker-container-shepherd)))
|
||||
(description "")))
|
||||
@@ -0,0 +1,694 @@
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal services desktop)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix modules)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix records)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (rosenthal utils file)
|
||||
#:use-module (rosenthal utils packages)
|
||||
|
||||
#:use-module (guix build-system copy)
|
||||
|
||||
#:use-module (gnu system)
|
||||
#:use-module (gnu system shadow)
|
||||
|
||||
#:use-module (gnu services)
|
||||
#:use-module (gnu services base)
|
||||
#:use-module (gnu services configuration)
|
||||
#:use-module (gnu services desktop)
|
||||
#:use-module (gnu services sddm)
|
||||
#:use-module (gnu services xorg)
|
||||
#:use-module (rosenthal services base)
|
||||
|
||||
#:use-module (gnu home)
|
||||
#:use-module (gnu home services)
|
||||
#:use-module (gnu home services desktop)
|
||||
#:use-module (gnu home services shepherd)
|
||||
#:use-module (gnu home services sound)
|
||||
|
||||
#:use-module (rosenthal packages xorg)
|
||||
|
||||
#:export (home-blueman-applet-configuration
|
||||
home-blueman-applet-service-type
|
||||
|
||||
home-fcitx5-configuration
|
||||
home-fcitx5-service-type
|
||||
|
||||
home-mako-configuration
|
||||
home-mako-service-type
|
||||
|
||||
home-network-manager-applet-configuration
|
||||
home-network-manager-applet-service-type
|
||||
|
||||
home-niri-configuration
|
||||
home-niri-service-type
|
||||
|
||||
home-rofi-configuration
|
||||
home-rofi-service-type
|
||||
|
||||
home-swaybg-configuration
|
||||
home-swaybg-service-type
|
||||
|
||||
home-theme-configuration
|
||||
home-theme-service-type
|
||||
|
||||
home-waybar-configuration
|
||||
home-waybar-service-type
|
||||
|
||||
%rosenthal-set-keymap
|
||||
%rosenthal-skeletons
|
||||
%rosenthal-desktop-services
|
||||
%rosenthal-desktop-home-services))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Blueman
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization home-blueman-applet-configuration
|
||||
(blueman
|
||||
(file-like (spec->pkg+out "blueman"))
|
||||
""))
|
||||
|
||||
(define %home-blueman-applet-shepherd
|
||||
(match-record-lambda <home-blueman-applet-configuration>
|
||||
(blueman)
|
||||
(list (shepherd-service
|
||||
(documentation "Start blueman applet.")
|
||||
(provision '(blueman-applet))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append blueman "/bin/blueman-applet"))))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
|
||||
(define home-blueman-applet-service-type
|
||||
(service-type
|
||||
(name 'blueman-applet)
|
||||
(extensions
|
||||
(list (service-extension home-profile-service-type
|
||||
(compose list home-blueman-applet-configuration-blueman))
|
||||
(service-extension home-shepherd-service-type
|
||||
%home-blueman-applet-shepherd)))
|
||||
(default-value (home-blueman-applet-configuration))
|
||||
(description "Run blueman applet, a tray applet for managing bluetooth.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Fcitx5
|
||||
;;;
|
||||
|
||||
(define list-of-file-likes?
|
||||
(list-of file-like?))
|
||||
(define-maybe file-like)
|
||||
|
||||
(define-configuration/no-serialization home-fcitx5-configuration
|
||||
(fcitx5
|
||||
(file-like (spec->pkg "fcitx5"))
|
||||
"")
|
||||
(utilities
|
||||
(list-of-file-likes (specs->pkgs "fcitx5-configtool"))
|
||||
"")
|
||||
(themes
|
||||
(list-of-file-likes '())
|
||||
"")
|
||||
(input-method-editors
|
||||
(list-of-file-likes '())
|
||||
"")
|
||||
(gtk-im-module?
|
||||
(boolean #f)
|
||||
"")
|
||||
(qt-im-module?
|
||||
(boolean #f)
|
||||
"")
|
||||
(xim?
|
||||
(boolean #t)
|
||||
""))
|
||||
|
||||
(define %home-fcitx5-environment-variables
|
||||
(match-record-lambda <home-fcitx5-configuration>
|
||||
(gtk-im-module? qt-im-module? xim?)
|
||||
`(,@(if gtk-im-module?
|
||||
'(("GTK_IM_MODULE" . "fcitx"))
|
||||
'())
|
||||
,@(if qt-im-module?
|
||||
'(("QT_IM_MODULE" . "fcitx"))
|
||||
'())
|
||||
,@(if xim?
|
||||
'(("XMODIFIERS" . "@im=fcitx"))
|
||||
'()))))
|
||||
|
||||
(define %home-fcitx5-profile
|
||||
(match-record-lambda <home-fcitx5-configuration>
|
||||
(fcitx5 utilities themes input-method-editors gtk-im-module? qt-im-module?)
|
||||
(append (list fcitx5)
|
||||
utilities
|
||||
themes
|
||||
input-method-editors
|
||||
(if gtk-im-module?
|
||||
(list (spec->pkg "fcitx5-gtk"))
|
||||
'())
|
||||
(if qt-im-module?
|
||||
(list (spec->pkg "fcitx5-qt"))
|
||||
'()))))
|
||||
|
||||
(define %home-fcitx5-shepherd
|
||||
(match-record-lambda <home-fcitx5-configuration>
|
||||
(fcitx5)
|
||||
(list (shepherd-service
|
||||
(documentation "Start fcitx5.")
|
||||
(provision '(fcitx5))
|
||||
(requirement '(dbus))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append fcitx5 "/bin/fcitx5"))))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
|
||||
(define home-fcitx5-service-type
|
||||
(service-type
|
||||
(name 'fcitx5)
|
||||
(extensions
|
||||
(list (service-extension home-environment-variables-service-type
|
||||
%home-fcitx5-environment-variables)
|
||||
(service-extension home-profile-service-type
|
||||
%home-fcitx5-profile)
|
||||
(service-extension home-shepherd-service-type
|
||||
%home-fcitx5-shepherd)))
|
||||
(default-value (home-fcitx5-configuration))
|
||||
(description "Run fcitx5, an input method framework.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; mako
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization home-mako-configuration
|
||||
(mako
|
||||
(file-like (spec->pkg "mako"))
|
||||
"")
|
||||
(config
|
||||
maybe-file-like
|
||||
"")
|
||||
)
|
||||
|
||||
(define %home-mako-xdg-config
|
||||
(match-record-lambda <home-mako-configuration>
|
||||
(config)
|
||||
(if (maybe-value-set? config)
|
||||
`(("mako/config" ,config))
|
||||
'())))
|
||||
|
||||
(define %home-mako-shepherd
|
||||
(match-record-lambda <home-mako-configuration>
|
||||
(mako)
|
||||
(list (shepherd-service
|
||||
(documentation "Start mako.")
|
||||
(provision '(mako))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append mako "/bin/mako"))))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
|
||||
(define home-mako-service-type
|
||||
(service-type
|
||||
(name 'mako)
|
||||
(extensions
|
||||
(list (service-extension home-xdg-configuration-files-service-type
|
||||
%home-mako-xdg-config)
|
||||
(service-extension home-shepherd-service-type
|
||||
%home-mako-shepherd)))
|
||||
(default-value (home-mako-configuration))
|
||||
(description "Run mako, a notification daemon.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; network-manager-applet
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization home-network-manager-applet-configuration
|
||||
(network-manager-applet
|
||||
(file-like (spec->pkg "network-manager-applet"))
|
||||
""))
|
||||
|
||||
(define %home-network-manager-applet-shepherd
|
||||
(match-record-lambda <home-network-manager-applet-configuration>
|
||||
(network-manager-applet)
|
||||
(list (shepherd-service
|
||||
(documentation "Start network manager applet.")
|
||||
(provision '(network-manager-applet))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append network-manager-applet "/bin/nm-applet"))))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
|
||||
(define home-network-manager-applet-service-type
|
||||
(service-type
|
||||
(name 'network-manager-applet)
|
||||
(extensions
|
||||
(list (service-extension home-profile-service-type
|
||||
(compose list home-network-manager-applet-configuration-network-manager-applet))
|
||||
(service-extension home-shepherd-service-type
|
||||
%home-network-manager-applet-shepherd)))
|
||||
(default-value (home-network-manager-applet-configuration))
|
||||
(description "Run nm-applet, a tray applet for managing networks.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; niri
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization home-niri-configuration
|
||||
(config
|
||||
maybe-file-like
|
||||
""))
|
||||
|
||||
(define %home-niri-xdg-config
|
||||
(match-record-lambda <home-niri-configuration>
|
||||
(config)
|
||||
(if (maybe-value-set? config)
|
||||
`(("niri/config.kdl" ,config))
|
||||
'())))
|
||||
|
||||
(define home-niri-service-type
|
||||
(service-type
|
||||
(name 'niri)
|
||||
(extensions
|
||||
(list (service-extension home-xdg-configuration-files-service-type
|
||||
%home-niri-xdg-config)))
|
||||
(default-value (home-niri-configuration))
|
||||
(description
|
||||
"Set up configuration file for niri, a scrollable-tiling Wayland
|
||||
compositor.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; rofi
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization home-rofi-configuration
|
||||
(config
|
||||
maybe-file-like
|
||||
""))
|
||||
|
||||
(define %home-rofi-xdg-config
|
||||
(match-record-lambda <home-rofi-configuration>
|
||||
(config)
|
||||
(if (maybe-value-set? config)
|
||||
`(("rofi/config.rasi" ,config))
|
||||
'())))
|
||||
|
||||
(define home-rofi-service-type
|
||||
(service-type
|
||||
(name 'rofi)
|
||||
(extensions
|
||||
(list (service-extension home-xdg-configuration-files-service-type
|
||||
%home-rofi-xdg-config)))
|
||||
(default-value (home-rofi-configuration))
|
||||
(description
|
||||
"Set up configuration file for rofi, an application launcher.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; swaybg
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization home-swaybg-configuration
|
||||
(swaybg
|
||||
(file-like (spec->pkg "swaybg"))
|
||||
"")
|
||||
(background
|
||||
(file-like (local-file "../examples/wallpaper.jpg"))
|
||||
""))
|
||||
|
||||
(define %home-swaybg-shepherd
|
||||
(match-record-lambda <home-swaybg-configuration>
|
||||
(swaybg background)
|
||||
(list (shepherd-service
|
||||
(documentation "Start swaybg.")
|
||||
(provision '(swaybg))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append swaybg "/bin/swaybg") "--mode" "fill"
|
||||
"--image" #$background)))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
|
||||
(define home-swaybg-service-type
|
||||
(service-type
|
||||
(name 'swaybg)
|
||||
(extensions
|
||||
(list (service-extension home-shepherd-service-type
|
||||
%home-swaybg-shepherd)))
|
||||
(default-value (home-swaybg-configuration))
|
||||
(description
|
||||
"Run swaybg, a screen wallpaper utility for Wayland compositors.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; theme
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization home-theme-configuration
|
||||
(packages
|
||||
(list-of-file-likes '())
|
||||
"")
|
||||
(icon-theme
|
||||
(string "Adwaita")
|
||||
"")
|
||||
(font
|
||||
(string "Sans")
|
||||
"")
|
||||
(cursor-theme
|
||||
(string "Adwaita")
|
||||
"")
|
||||
(cursor-size
|
||||
(number 24)
|
||||
"")
|
||||
(key-theme
|
||||
(string "Default")
|
||||
""))
|
||||
|
||||
(define (%home-theme-environment-variables _)
|
||||
'(("QT_QPA_PLATFORMTHEME" . "gtk3")
|
||||
("QT_WAYLAND_DECORATION" . "adwaita")))
|
||||
|
||||
(define %home-theme-profile
|
||||
(match-record-lambda <home-theme-configuration>
|
||||
(packages)
|
||||
(append (specs->pkgs "adwaita-icon-theme"
|
||||
"hicolor-icon-theme"
|
||||
"qtwayland")
|
||||
packages)))
|
||||
|
||||
(define %home-theme-files
|
||||
(match-record-lambda <home-theme-configuration>
|
||||
(icon-theme)
|
||||
`((".icons/default/index.theme"
|
||||
,(plain-file "index.theme"
|
||||
(format #f "\
|
||||
[icon theme]
|
||||
Inherits = ~a~%"
|
||||
icon-theme))))))
|
||||
|
||||
(define %home-theme-xdg-config
|
||||
(match-record-lambda <home-theme-configuration>
|
||||
(icon-theme font cursor-theme cursor-size key-theme)
|
||||
`(("gtk-3.0/settings.ini"
|
||||
,(plain-file "settings.ini"
|
||||
(format #f "\
|
||||
[Settings]
|
||||
gtk-theme-name = Adwaita
|
||||
gtk-icon-theme-name = ~a
|
||||
gtk-font-name = ~a
|
||||
gtk-cursor-theme-name = ~a
|
||||
gtk-cursor-theme-size = ~a
|
||||
gtk-key-theme-name = ~a~%"
|
||||
icon-theme font cursor-theme cursor-size key-theme))))))
|
||||
|
||||
(define home-theme-service-type
|
||||
(service-type
|
||||
(name 'theme)
|
||||
(extensions
|
||||
(list (service-extension home-environment-variables-service-type
|
||||
%home-theme-environment-variables)
|
||||
(service-extension home-profile-service-type
|
||||
%home-theme-profile)
|
||||
(service-extension home-files-service-type
|
||||
%home-theme-files)
|
||||
(service-extension home-xdg-configuration-files-service-type
|
||||
%home-theme-xdg-config)))
|
||||
(default-value (home-theme-configuration))
|
||||
(description "Set up desktop themes.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; waybar
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization home-waybar-configuration
|
||||
(waybar
|
||||
(file-like (spec->pkg "waybar"))
|
||||
"")
|
||||
(config
|
||||
maybe-file-like
|
||||
"")
|
||||
(style
|
||||
maybe-file-like
|
||||
""))
|
||||
|
||||
(define %home-waybar-xdg-config
|
||||
(match-record-lambda <home-waybar-configuration>
|
||||
(config style)
|
||||
`(,@(if (maybe-value-set? config)
|
||||
`(("waybar/config.jsonc" ,config))
|
||||
'())
|
||||
,@(if (maybe-value-set? style)
|
||||
`(("waybar/style.css" ,style))
|
||||
'()))))
|
||||
|
||||
(define %home-waybar-shepherd
|
||||
(match-record-lambda <home-waybar-configuration>
|
||||
(waybar)
|
||||
(list (shepherd-service
|
||||
(documentation "Start waybar.")
|
||||
(provision '(waybar))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append waybar "/bin/waybar"))))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
|
||||
(define home-waybar-service-type
|
||||
(service-type
|
||||
(name 'waybar)
|
||||
(extensions
|
||||
(list (service-extension home-xdg-configuration-files-service-type
|
||||
%home-waybar-xdg-config)
|
||||
(service-extension home-shepherd-service-type
|
||||
%home-waybar-shepherd)))
|
||||
(default-value (home-waybar-configuration))
|
||||
(description "Run waybar, a status bar for Wayland compositors.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Configuration file presets.
|
||||
;;;
|
||||
|
||||
(define %rosenthal-set-keymap-script
|
||||
(program-file "set-keymap"
|
||||
(with-imported-modules (source-module-closure '((guix build utils)))
|
||||
#~(begin
|
||||
(use-modules (srfi srfi-1)
|
||||
(srfi srfi-26)
|
||||
(srfi srfi-37)
|
||||
(ice-9 match)
|
||||
(ice-9 popen)
|
||||
(guix build utils))
|
||||
|
||||
(define* (build-keyboard-layout file layout #:optional variant #:key model options)
|
||||
(define pipe
|
||||
(apply open-pipe* OPEN_READ
|
||||
#$(file-append (spec->pkg "console-setup") "/bin/ckbcomp")
|
||||
(string-append "-I" #$(spec->pkg "xkeyboard-config") "/share/X11/xkb")
|
||||
"-rules" "base"
|
||||
`(,@(if model
|
||||
'("-model" ,model)
|
||||
'())
|
||||
,layout
|
||||
,(or variant "")
|
||||
,(string-join options ","))))
|
||||
(mkdir-p (dirname file))
|
||||
(call-with-output-file file
|
||||
(lambda (output)
|
||||
(dump-port pipe output))))
|
||||
|
||||
(define* (set-keyboard-layout layout #:optional variant #:key model options)
|
||||
(define file-name "/tmp/keymaps/console-keymap")
|
||||
(build-keyboard-layout file-name layout variant #:model model #:options options)
|
||||
(invoke "sudo" #$(file-append (spec->pkg "kbd") "/bin/loadkeys") file-name)
|
||||
(when (getenv "WAYLAND_DISPLAY")
|
||||
(substitute* (in-vicinity (getenv "XDG_CONFIG_HOME") "niri/config.kdl")
|
||||
(("^ (layout|variant|model|options) .*") "")
|
||||
(("^ xkb \\{.*" line)
|
||||
(string-append
|
||||
line
|
||||
(format #f " layout ~s~%" layout)
|
||||
(if variant (format #f " variant ~s~%" variant) "")
|
||||
(if model (format #f " model ~s~%" model) "")
|
||||
(format #f " options ~s~%" (string-join options ",")))))))
|
||||
|
||||
(define (show-help-and-exit)
|
||||
(display "\
|
||||
Usage: set-keymap LAYOUT [VARIANT] [-m MODEL] [-o OPTIONS]
|
||||
|
||||
OPTIONS are comma-separated e.g. \"ctrl:nocaps,grp:alt_shift_toggle\"
|
||||
|
||||
Examples:
|
||||
set-keymap us
|
||||
set-keymap us dvorak
|
||||
set-keymap us dvorak -o ctrl:nocaps\n")
|
||||
(quit))
|
||||
|
||||
(define (parse-options)
|
||||
(args-fold (cdr (program-arguments))
|
||||
(list (option '(#\m "model") #t #f
|
||||
(lambda (opt name arg result)
|
||||
(alist-cons 'model arg result)))
|
||||
(option '(#\o "options") #t #f
|
||||
(lambda (opt name arg result)
|
||||
(alist-cons 'options (string-split arg #\,)
|
||||
result)))
|
||||
(option '("help") #f #f
|
||||
(lambda _
|
||||
(show-help-and-exit))))
|
||||
(lambda (opt name arg loads)
|
||||
(error "Unrecognized option `~A'" name))
|
||||
(lambda (opt loads) (cons opt loads))
|
||||
'()))
|
||||
|
||||
(let* ((opts (parse-options))
|
||||
(model (assoc-ref opts 'model))
|
||||
(options (or (assoc-ref opts 'options) '()))
|
||||
(args (remove pair? (reverse opts))))
|
||||
(match args
|
||||
((layout)
|
||||
(set-keyboard-layout layout #:model model #:options options))
|
||||
((layout variant)
|
||||
(set-keyboard-layout layout variant #:model model #:options options))
|
||||
(_
|
||||
(show-help-and-exit))))))))
|
||||
|
||||
(define %rosenthal-set-keymap
|
||||
(hidden-package
|
||||
(package
|
||||
(name "rosenthal-set-keymap")
|
||||
(version "0.0.0")
|
||||
(source %rosenthal-set-keymap-script)
|
||||
(build-system copy-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'install
|
||||
(lambda _
|
||||
(install-file "set-keymap" (in-vicinity #$output "bin")))))))
|
||||
(home-page "")
|
||||
(synopsis "")
|
||||
(description "")
|
||||
(license #f))))
|
||||
|
||||
(define %rosenthal-skeletons
|
||||
`((".config/emacs/fonts.el"
|
||||
,(local-file "../examples/emacs/fonts.el"))
|
||||
(".config/emacs/init.el"
|
||||
,(local-file "../examples/emacs/init.el"))
|
||||
(".config/foot/foot.ini"
|
||||
,(plain-file "foot.ini" "font=monospace:size=12\n"))
|
||||
(".config/mako/config"
|
||||
,(local-file "../examples/mako.conf"))
|
||||
(".config/niri/config.kdl"
|
||||
,(local-file "../examples/niri.kdl"))
|
||||
(".config/rofi/config.rasi"
|
||||
,(plain-file "rofi.rasi" "\
|
||||
configuration {
|
||||
icon-theme: \"Qogir\";
|
||||
}
|
||||
@theme \"/run/current-system/profile/share/rofi/themes/fullscreen-preview.rasi\"\n"))
|
||||
(".config/waybar/config.jsonc"
|
||||
,(local-file "../examples/waybar/config.jsonc"))
|
||||
(".config/waybar/style.css"
|
||||
,(local-file "../examples/waybar/style.css"))
|
||||
(".config/xfce4/helpers.rc"
|
||||
,(plain-file "helpers.rc" "TerminalEmulator=rofi-sensible-terminal\n"))
|
||||
;; Selected from the default skeletons.
|
||||
(".config/gdb/gdbinit" ,%default-gdbinit)
|
||||
(".config/nano/nanorc" ,%default-nanorc)
|
||||
(".guile" ,%default-dotguile)))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Service presets.
|
||||
;;;
|
||||
|
||||
(define* (rosenthal-desktop-services-for-system
|
||||
#:optional (system (or (%current-target-system)
|
||||
(%current-system))))
|
||||
(define %display-manager-service-type
|
||||
(if (string-prefix? "x86_64" system)
|
||||
gdm-service-type
|
||||
sddm-service-type))
|
||||
|
||||
(define %term-font
|
||||
(file-append (spec->pkg "font-terminus") "/share/consolefonts/ter-132n"))
|
||||
|
||||
(cons* (service greetd-service-type
|
||||
(greetd-configuration
|
||||
(greeter-supplementary-groups '("video" "input"))
|
||||
(terminals
|
||||
(map (lambda (x)
|
||||
(greetd-terminal-configuration
|
||||
(terminal-vt (number->string x))
|
||||
(terminal-switch (eqv? 1 x))
|
||||
(default-session-command
|
||||
(cond
|
||||
((eqv? 1 x)
|
||||
(greetd-tuigreet-session))
|
||||
(else
|
||||
(greetd-agreety-session
|
||||
(command
|
||||
(greetd-user-session
|
||||
(command #~(getenv "SHELL"))))))))))
|
||||
(iota 6 1)))))
|
||||
|
||||
(service bluetooth-service-type
|
||||
(bluetooth-configuration
|
||||
(auto-enable? #t)))
|
||||
|
||||
(service gvfs-service-type)
|
||||
|
||||
;; Screen lockers for Wayland environment. No dependencies are pulled
|
||||
;; in since we're using empty files.
|
||||
(service screen-locker-service-type
|
||||
(screen-locker-configuration
|
||||
(name "swaylock")
|
||||
(program (plain-file "empty" "")) ;Not used.
|
||||
(using-setuid? #f)))
|
||||
(service screen-locker-service-type
|
||||
(screen-locker-configuration
|
||||
(name "waylock")
|
||||
(program (plain-file "empty" "")) ;Not used.
|
||||
(using-setuid? #f)))
|
||||
|
||||
;; Add udev rules for backlight control.
|
||||
(simple-service 'backlight udev-service-type (specs->pkgs "light"))
|
||||
|
||||
(modify-services %desktop-services
|
||||
(delete mingetty-service-type)
|
||||
(delete %display-manager-service-type)
|
||||
(delete screen-locker-service-type)
|
||||
|
||||
;; Use a font suitable for HiDPI monitors.
|
||||
(console-font-service-type
|
||||
_ => (map (lambda (num)
|
||||
(cons (string-append "tty" (number->string num))
|
||||
%term-font))
|
||||
(iota 6 1))))))
|
||||
|
||||
(define-syntax %rosenthal-desktop-services
|
||||
(identifier-syntax (rosenthal-desktop-services-for-system)))
|
||||
|
||||
(define %rosenthal-desktop-home-services
|
||||
(cons* (service home-shepherd-service-type
|
||||
(home-shepherd-configuration
|
||||
;; Start by WM to inherit environment variables for graphical session.
|
||||
(auto-start? #f)
|
||||
(daemonize? #f)))
|
||||
|
||||
(service home-dbus-service-type)
|
||||
(service home-pipewire-service-type)
|
||||
|
||||
(service home-blueman-applet-service-type)
|
||||
(service home-network-manager-applet-service-type)
|
||||
|
||||
%base-home-services))
|
||||
@@ -0,0 +1,48 @@
|
||||
;;; SPDX-FileCopyrightText: 2022, 2023 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal services dns)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix records)
|
||||
#:use-module (gnu services)
|
||||
#:use-module (gnu services configuration)
|
||||
#:use-module (gnu packages dns)
|
||||
#:use-module (gnu services shepherd)
|
||||
#:export (smartdns-configuration
|
||||
smartdns-service-type))
|
||||
|
||||
;;;
|
||||
;;; Smartdns
|
||||
;;;
|
||||
|
||||
|
||||
(define-configuration smartdns-configuration
|
||||
(smartdns
|
||||
(file-like smartdns)
|
||||
"The Smartdns package.")
|
||||
(config-file
|
||||
(file-like (plain-file "empty" ""))
|
||||
"Configuration file for Smartdns.")
|
||||
(no-serialization))
|
||||
|
||||
(define smartdns-shepherd-service
|
||||
(match-record-lambda <smartdns-configuration>
|
||||
(smartdns config-file)
|
||||
(list (shepherd-service
|
||||
(documentation "Run smartdns.")
|
||||
(provision '(smartdns dns))
|
||||
(requirement '(loopback networking))
|
||||
(start #~(make-forkexec-constructor
|
||||
(list #$(file-append smartdns "/sbin/smartdns")
|
||||
"-f" "-c" #$(file-append config-file))))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
|
||||
(define smartdns-service-type
|
||||
(service-type
|
||||
(name 'smartdns)
|
||||
(extensions
|
||||
(list (service-extension shepherd-root-service-type
|
||||
smartdns-shepherd-service)))
|
||||
(default-value (smartdns-configuration))
|
||||
(description "Run Smartdns daemon.")))
|
||||
@@ -0,0 +1,180 @@
|
||||
;;; SPDX-FileCopyrightText: 2024, 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal services file-systems)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix records)
|
||||
#:use-module (gnu packages backup)
|
||||
#:use-module (gnu packages file-systems)
|
||||
#:use-module (rosenthal packages admin)
|
||||
#:use-module (gnu services)
|
||||
#:use-module (gnu services base)
|
||||
#:use-module (gnu services configuration)
|
||||
#:use-module (gnu services linux)
|
||||
#:use-module (gnu services mcron)
|
||||
#:use-module (gnu services shepherd)
|
||||
#:use-module (gnu system pam)
|
||||
#:export (btrbk-service-type
|
||||
btrbk-configuration
|
||||
|
||||
dumb-runtime-dir-service-type
|
||||
|
||||
zfs-service-type
|
||||
zfs-configuration))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Btrbk
|
||||
;;;
|
||||
|
||||
|
||||
(define-configuration btrbk-configuration
|
||||
(btrbk
|
||||
(file-like btrbk)
|
||||
"@code{btrbk} package to use.")
|
||||
(config-file
|
||||
(file-like (plain-file "empty" ""))
|
||||
"File-like object for btrbk configuration, see also @code{btrbk.conf(5)}.")
|
||||
(no-serialization))
|
||||
|
||||
(define (btrbk-etc-service config)
|
||||
`(("btrbk/btrbk.conf" ,(btrbk-configuration-config-file config))))
|
||||
|
||||
(define (btrbk-mcron-jobs config)
|
||||
(list #~(job next-hour-from
|
||||
#$(file-append (btrbk-configuration-btrbk config)
|
||||
"/bin/btrbk run --quiet"))))
|
||||
|
||||
(define btrbk-service-type
|
||||
(service-type
|
||||
(name 'btrbk)
|
||||
(extensions
|
||||
(list (service-extension etc-service-type
|
||||
btrbk-etc-service)
|
||||
(service-extension mcron-service-type
|
||||
btrbk-mcron-jobs)))
|
||||
(default-value (btrbk-configuration))
|
||||
(description "Configure and run btrbk hourly.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; pam-dumb-runtime-dir
|
||||
;;;
|
||||
|
||||
|
||||
(define dumb-runtime-dir-activation
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(mkdir-p "/run/user")
|
||||
(chmod "/run/user" #o0755)))
|
||||
|
||||
(define dumb-runtime-dir-pam-service
|
||||
(let ((optional-pam-entry
|
||||
(pam-entry
|
||||
(control "optional")
|
||||
(module
|
||||
(file-append
|
||||
pam-dumb-runtime-dir "/lib/security/pam_dumb_runtime_dir.so")))))
|
||||
(list (pam-extension
|
||||
(transformer
|
||||
(lambda (pam)
|
||||
(if (string=? (pam-service-name pam) "login")
|
||||
(pam-service
|
||||
(inherit pam)
|
||||
(session
|
||||
(cons optional-pam-entry
|
||||
(pam-service-session pam))))
|
||||
pam)))))))
|
||||
|
||||
(define dumb-runtime-dir-service-type
|
||||
(service-type
|
||||
(name 'dumb-runtime-dir)
|
||||
(extensions
|
||||
(list (service-extension activation-service-type
|
||||
(const dumb-runtime-dir-activation))
|
||||
(service-extension pam-root-service-type
|
||||
(const dumb-runtime-dir-pam-service))))
|
||||
(default-value #f) ;No default value required.
|
||||
(description "Create @code{XDG_RUNTIME_DIR} on login and never remove it.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; ZFS
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization zfs-configuration
|
||||
(volumes?
|
||||
(boolean #f)
|
||||
"")
|
||||
(auto-mount?
|
||||
(boolean #t)
|
||||
""))
|
||||
|
||||
(define zfs-shepherd
|
||||
(match-record-lambda <zfs-configuration>
|
||||
(volumes? auto-mount?)
|
||||
(append
|
||||
(list
|
||||
(shepherd-service
|
||||
(provision '(file-system-zfs))
|
||||
(requirement
|
||||
`(zfs-import
|
||||
,@(if volumes? '(zfs-volumes) '())
|
||||
,@(if auto-mount? '(zfs-mount) '())))
|
||||
(start #~(const #t))
|
||||
(stop #~(const #f)))
|
||||
(shepherd-service
|
||||
(provision '(zfs-import))
|
||||
(requirement '(kernel-module-loader))
|
||||
(start
|
||||
#~(make-system-constructor
|
||||
(string-join
|
||||
(list #$(file-append zfs "/sbin/zpool") "import" "-a" "-N"))))
|
||||
(stop #~(const #f))))
|
||||
(if volumes?
|
||||
(list
|
||||
(shepherd-service
|
||||
(provision '(zfs-volumes))
|
||||
(requirement '(zfs-import))
|
||||
(start
|
||||
#~(make-system-constructor
|
||||
(string-join
|
||||
;; TODO: Patch references within zfs package instead.
|
||||
(list "PATH=/run/current-system/profile/bin:/run/current-system/profile/sbin"
|
||||
#$(file-append zfs "/bin/zvol_wait")))))
|
||||
(stop #~(const #f))))
|
||||
'())
|
||||
(if auto-mount?
|
||||
(list
|
||||
(shepherd-service
|
||||
(provision '(zfs-mount))
|
||||
(requirement '(zfs-import))
|
||||
(start
|
||||
#~(make-system-constructor
|
||||
(string-join
|
||||
(list #$(file-append zfs "/sbin/zfs") "mount" "-a" "-l"))))
|
||||
(stop
|
||||
#~(make-system-destructor
|
||||
(string-join
|
||||
(list #$(file-append zfs "/sbin/zfs") "unmount" "-a"))))))
|
||||
'()))))
|
||||
|
||||
(define zfs-service-type
|
||||
(service-type
|
||||
(name 'zfs)
|
||||
(extensions
|
||||
(list (service-extension linux-loadable-module-service-type
|
||||
(const (list `(,zfs "module"))))
|
||||
(service-extension udev-service-type
|
||||
(const (list zfs)))
|
||||
(service-extension kernel-module-loader-service-type
|
||||
(const '("zfs")))
|
||||
(service-extension shepherd-root-service-type
|
||||
zfs-shepherd)
|
||||
(service-extension user-processes-service-type
|
||||
(const '(file-system-zfs)))
|
||||
(service-extension profile-service-type
|
||||
(const (list zfs)))))
|
||||
(default-value (zfs-configuration))
|
||||
(description "")))
|
||||
@@ -0,0 +1,28 @@
|
||||
;;; SPDX-FileCopyrightText: 2021 Andrew Tropin <andrew@trop.in>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal services keyboard)
|
||||
#:use-module (gnu system keyboard)
|
||||
#:use-module (gnu home services)
|
||||
#:export (home-keyboard-service-type))
|
||||
|
||||
(define (set-xkb-variables layout)
|
||||
(if layout
|
||||
`(("XKB_DEFAULT_LAYOUT" . ,(keyboard-layout-name layout))
|
||||
("XKB_DEFAULT_VARIANT" . ,(keyboard-layout-variant layout))
|
||||
("XKB_DEFAULT_OPTIONS" . ,(string-join
|
||||
(keyboard-layout-options layout) ","))
|
||||
("XKB_DEFAULT_MODEL" . ,(keyboard-layout-model layout)))
|
||||
'()))
|
||||
|
||||
(define home-keyboard-service-type
|
||||
(service-type (name 'home-keyboard)
|
||||
(extensions
|
||||
(list (service-extension
|
||||
home-environment-variables-service-type
|
||||
set-xkb-variables)))
|
||||
(default-value #f)
|
||||
(description "Set layouts by configuring XKB_*
|
||||
environment variables. Service accepts an instance of
|
||||
@code{keyboard-layout} from @code{(gnu system keyboard)}.")))
|
||||
@@ -0,0 +1,126 @@
|
||||
;;; SPDX-FileCopyrightText: 2024, 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal services mail)
|
||||
#:use-module (srfi srfi-26)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix records)
|
||||
#:use-module (rosenthal utils serializers yaml)
|
||||
#:use-module (gnu services)
|
||||
#:use-module (gnu services admin)
|
||||
#:use-module (gnu services configuration)
|
||||
#:use-module (gnu services docker)
|
||||
#:use-module (gnu services shepherd)
|
||||
#:use-module (gnu home services)
|
||||
#:use-module (gnu home services shepherd)
|
||||
#:use-module (gnu packages mail)
|
||||
#:export (docker-mailserver-configuration
|
||||
docker-mailserver-service-type
|
||||
|
||||
home-goimapnotify-service-type
|
||||
home-goimapnotify-configuration))
|
||||
|
||||
;;;
|
||||
;;; Docker Mailserver
|
||||
;;; https://docker-mailserver.github.io/docker-mailserver/latest/
|
||||
;;;
|
||||
|
||||
(define-configuration docker-mailserver-configuration
|
||||
(data-directory
|
||||
(string "/var/lib/docker-mailserver")
|
||||
"Directory to store Docker Mailserver data.")
|
||||
(log-file
|
||||
(string "/var/log/docker-mailserver.log")
|
||||
"Path to log file.")
|
||||
(shepherd-requirement
|
||||
(list-of-symbols '())
|
||||
"List of Shepherd service dependencies.")
|
||||
(options
|
||||
(alist '())
|
||||
"Alist of Docker Mailserver configuration. See also
|
||||
@url{https://docker-mailserver.github.io/docker-mailserver/latest/config/environment/}.")
|
||||
(extra-arguments
|
||||
(list '())
|
||||
"List of extra Docker arguments.")
|
||||
(no-serialization))
|
||||
|
||||
(define docker-mailserver-oci-containers
|
||||
(match-record-lambda <docker-mailserver-configuration>
|
||||
(data-directory log-file shepherd-requirement options extra-arguments)
|
||||
(let ((docker-mailserver-path
|
||||
(cut string-append data-directory <>)))
|
||||
(list (oci-container-configuration
|
||||
(environment options)
|
||||
(image "ghcr.io/docker-mailserver/docker-mailserver:latest")
|
||||
(provision "docker-mailserver")
|
||||
(requirement shepherd-requirement)
|
||||
(log-file log-file)
|
||||
(network "host")
|
||||
(volumes
|
||||
`((,(docker-mailserver-path "/data") . "/var/mail")
|
||||
(,(docker-mailserver-path "/state") . "/var/mail-state")
|
||||
(,(docker-mailserver-path "/logs") . "/var/log/mail")
|
||||
(,(docker-mailserver-path "/config") . "/tmp/docker-mailserver")
|
||||
("/etc/localtime" . "/etc/localtime:ro")))
|
||||
(extra-arguments extra-arguments))))))
|
||||
|
||||
(define docker-mailserver-service-type
|
||||
(service-type
|
||||
(name 'docker-mailserver)
|
||||
(extensions
|
||||
(list (service-extension oci-container-service-type
|
||||
docker-mailserver-oci-containers)
|
||||
(service-extension log-rotation-service-type
|
||||
(compose list docker-mailserver-configuration-log-file))))
|
||||
(default-value (docker-mailserver-configuration))
|
||||
(description "Run Docker Mailserver.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; goimapnotify
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization home-goimapnotify-configuration
|
||||
(goimapnotify
|
||||
(file-like goimapnotify)
|
||||
"")
|
||||
(config
|
||||
yaml-config
|
||||
"")
|
||||
(wait
|
||||
(integer 1)
|
||||
"")
|
||||
(shepherd-provision
|
||||
(list-of-symbols '(goimapnotify))
|
||||
"")
|
||||
(shepherd-requirement
|
||||
(list-of-symbols '())
|
||||
"")
|
||||
(auto-start?
|
||||
(boolean #t)
|
||||
""))
|
||||
|
||||
(define home-goimapnotify-shepherd
|
||||
(match-record-lambda <home-goimapnotify-configuration>
|
||||
(goimapnotify config wait shepherd-provision shepherd-requirement auto-start?)
|
||||
(let ((config-file
|
||||
(mixed-text-file "goimapnotify.yaml" (yaml-serialize config))))
|
||||
(list (shepherd-service
|
||||
(provision shepherd-provision)
|
||||
(requirement shepherd-requirement)
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append goimapnotify "/bin/goimapnotify")
|
||||
"-conf" #$config-file
|
||||
"-wait" (number->string #$wait))))
|
||||
(stop #~(make-kill-destructor))
|
||||
(auto-start? auto-start?))))))
|
||||
|
||||
(define home-goimapnotify-service-type
|
||||
(service-type
|
||||
(name 'home-goimapnotify)
|
||||
(extensions
|
||||
(list (service-extension home-shepherd-service-type
|
||||
home-goimapnotify-shepherd)))
|
||||
(description "")))
|
||||
@@ -0,0 +1,429 @@
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal services monitoring)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix modules)
|
||||
#:use-module (guix records)
|
||||
#:use-module (rosenthal utils serializers ini)
|
||||
#:use-module (rosenthal utils serializers yaml)
|
||||
#:use-module (gnu system shadow)
|
||||
#:use-module (gnu services)
|
||||
#:use-module (gnu services configuration)
|
||||
#:use-module (gnu services databases)
|
||||
#:use-module (gnu services shepherd)
|
||||
#:use-module (gnu packages guile-xyz)
|
||||
#:use-module (rosenthal packages binaries)
|
||||
#:export (alloy-configuration
|
||||
alloy-service-type
|
||||
|
||||
grafana-service-type
|
||||
grafana-configuration
|
||||
|
||||
loki-service-type
|
||||
loki-configuration
|
||||
|
||||
mimir-service-type
|
||||
mimir-configuration
|
||||
|
||||
prometheus-service-type
|
||||
prometheus-configuration))
|
||||
|
||||
;;;
|
||||
;;; alloy
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization alloy-configuration
|
||||
(alloy
|
||||
(file-like alloy-bin)
|
||||
"")
|
||||
(config
|
||||
file-like
|
||||
"")
|
||||
(shepherd-provision
|
||||
(list-of-symbols '(alloy))
|
||||
"")
|
||||
(shepherd-requirement
|
||||
(list-of-symbols '())
|
||||
"")
|
||||
(auto-start?
|
||||
(boolean #t)
|
||||
""))
|
||||
|
||||
(define alloy-activation
|
||||
(lambda _
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((directory "/var/lib/alloy"))
|
||||
(unless (file-exists? directory)
|
||||
(mkdir-p directory)
|
||||
(chmod directory #o755))))))
|
||||
|
||||
(define alloy-shepherd
|
||||
(match-record-lambda <alloy-configuration>
|
||||
(alloy config shepherd-provision shepherd-requirement auto-start?)
|
||||
(list (shepherd-service
|
||||
(provision shepherd-provision)
|
||||
(requirement `(loopback user-processes ,@shepherd-requirement))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append alloy "/bin/alloy") "run" #$config)
|
||||
#:directory "/var/lib/alloy"
|
||||
#:log-file "/var/log/alloy.log"))
|
||||
(stop #~(make-kill-destructor))
|
||||
(auto-start? auto-start?)))))
|
||||
|
||||
(define alloy-service-type
|
||||
(service-type
|
||||
(name 'alloy)
|
||||
(extensions
|
||||
(list (service-extension activation-service-type
|
||||
alloy-activation)
|
||||
(service-extension shepherd-root-service-type
|
||||
alloy-shepherd)))
|
||||
(description "")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Grafana
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization grafana-configuration
|
||||
(grafana
|
||||
(file-like grafana-bin)
|
||||
"")
|
||||
(config
|
||||
ini-config
|
||||
"")
|
||||
(postgresql-password-file
|
||||
string
|
||||
"")
|
||||
(shepherd-provision
|
||||
(list-of-symbols '(grafana))
|
||||
"")
|
||||
(shepherd-requirement
|
||||
(list-of-symbols '())
|
||||
"")
|
||||
(auto-start?
|
||||
(boolean #t)
|
||||
""))
|
||||
|
||||
(define grafana-account
|
||||
(lambda _
|
||||
(list (user-group (name "grafana") (system? #t))
|
||||
(user-account
|
||||
(name "grafana")
|
||||
(group "grafana")
|
||||
(system? #t)
|
||||
(comment "Grafana user")
|
||||
(home-directory "/var/lib/grafana")))))
|
||||
|
||||
(define grafana-postgresql-role
|
||||
(match-record-lambda <grafana-configuration>
|
||||
(postgresql-password-file)
|
||||
(list (postgresql-role
|
||||
(name "grafana")
|
||||
(create-database? #t)
|
||||
(password-file postgresql-password-file)))))
|
||||
|
||||
(define grafana-activation
|
||||
(lambda _
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((user (getpwnam "grafana")))
|
||||
(for-each
|
||||
(lambda (directory)
|
||||
(unless (file-exists? directory)
|
||||
(mkdir-p directory)
|
||||
(chown directory (passwd:uid user) (passwd:gid user))))
|
||||
'("/var/log/grafana" "/var/lib/grafana"))))))
|
||||
|
||||
(define grafana-shepherd
|
||||
(match-record-lambda <grafana-configuration>
|
||||
(grafana config shepherd-provision shepherd-requirement auto-start?)
|
||||
(let ((config-file
|
||||
(computed-file "grafana.ini"
|
||||
(with-extensions (list guile-ini guile-lib guile-smc)
|
||||
#~(begin
|
||||
(use-modules (srfi srfi-26) (ini))
|
||||
(call-with-output-file #$output
|
||||
(cut scm->ini '#$config #:port <>)))))))
|
||||
(list (shepherd-service
|
||||
(provision shepherd-provision)
|
||||
(requirement `(loopback postgresql user-processes
|
||||
,@shepherd-requirement))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append grafana "/bin/grafana")
|
||||
"server" "--config" #$config-file)
|
||||
#:user "grafana"
|
||||
#:group "grafana"
|
||||
#:directory #$(file-append grafana "/share/grafana")
|
||||
#:log-file "/var/log/grafana.log"))
|
||||
(stop #~(make-kill-destructor))
|
||||
(auto-start? auto-start?))))))
|
||||
|
||||
(define grafana-service-type
|
||||
(service-type
|
||||
(name 'grafana)
|
||||
(extensions
|
||||
(list (service-extension account-service-type
|
||||
grafana-account)
|
||||
(service-extension postgresql-role-service-type
|
||||
grafana-postgresql-role)
|
||||
(service-extension activation-service-type
|
||||
grafana-activation)
|
||||
(service-extension shepherd-root-service-type
|
||||
grafana-shepherd)))
|
||||
(description "")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; loki
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization loki-configuration
|
||||
(loki
|
||||
(file-like loki-bin)
|
||||
"")
|
||||
(config
|
||||
yaml-config
|
||||
"")
|
||||
(shepherd-provision
|
||||
(list-of-symbols '(loki))
|
||||
"")
|
||||
(shepherd-requirement
|
||||
(list-of-symbols '())
|
||||
"")
|
||||
(auto-start?
|
||||
(boolean #t)
|
||||
""))
|
||||
|
||||
(define loki-account
|
||||
(lambda _
|
||||
(list (user-group (name "loki") (system? #t))
|
||||
(user-account
|
||||
(name "loki")
|
||||
(group "loki")
|
||||
(system? #t)
|
||||
(comment "Loki user")
|
||||
(home-directory "/var/lib/loki")))))
|
||||
|
||||
(define loki-activation
|
||||
(lambda _
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((user (getpwnam "loki"))
|
||||
(directory "/var/lib/loki"))
|
||||
(unless (file-exists? directory)
|
||||
(mkdir-p directory)
|
||||
(chown directory (passwd:uid user) (passwd:gid user))
|
||||
(chmod directory #o755))))))
|
||||
|
||||
(define loki-shepherd
|
||||
(match-record-lambda <loki-configuration>
|
||||
(loki config shepherd-provision shepherd-requirement auto-start?)
|
||||
(let ((config-file
|
||||
(computed-file "loki.yaml"
|
||||
(with-extensions (list guile-yamlpp)
|
||||
#~(begin
|
||||
(use-modules (yamlpp))
|
||||
(call-with-output-file #$output
|
||||
(lambda (port)
|
||||
(let ((emitter (make-yaml-emitter)))
|
||||
(yaml-emit! emitter '#$config)
|
||||
(display (yaml-emitter-string emitter) port)))))))))
|
||||
(list (shepherd-service
|
||||
(provision shepherd-provision)
|
||||
(requirement `(loopback user-processes ,@shepherd-requirement))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append loki "/bin/loki")
|
||||
(string-append "-config.file=" #$config-file))
|
||||
#:user "loki"
|
||||
#:group "loki"
|
||||
#:directory "/var/lib/loki"
|
||||
#:log-file "/var/log/loki.log"))
|
||||
(stop #~(make-kill-destructor))
|
||||
(auto-start? auto-start?))))))
|
||||
|
||||
(define loki-service-type
|
||||
(service-type
|
||||
(name 'loki)
|
||||
(extensions
|
||||
(list (service-extension account-service-type
|
||||
loki-account)
|
||||
(service-extension activation-service-type
|
||||
loki-activation)
|
||||
(service-extension shepherd-root-service-type
|
||||
loki-shepherd)))
|
||||
(description "")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; mimir
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization mimir-configuration
|
||||
(mimir
|
||||
(file-like mimir-bin)
|
||||
"")
|
||||
(config
|
||||
yaml-config
|
||||
"")
|
||||
(shepherd-provision
|
||||
(list-of-symbols '(mimir))
|
||||
"")
|
||||
(shepherd-requirement
|
||||
(list-of-symbols '())
|
||||
"")
|
||||
(auto-start?
|
||||
(boolean #t)
|
||||
""))
|
||||
|
||||
(define mimir-account
|
||||
(lambda _
|
||||
(list (user-group (name "mimir") (system? #t))
|
||||
(user-account
|
||||
(name "mimir")
|
||||
(group "mimir")
|
||||
(system? #t)
|
||||
(comment "Mimir user")
|
||||
(home-directory "/var/lib/mimir")))))
|
||||
|
||||
(define mimir-activation
|
||||
(lambda _
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((user (getpwnam "mimir"))
|
||||
(directory "/var/lib/mimir"))
|
||||
(unless (file-exists? directory)
|
||||
(mkdir-p directory)
|
||||
(chown directory (passwd:uid user) (passwd:gid user))
|
||||
(chmod directory #o755))))))
|
||||
|
||||
(define mimir-shepherd
|
||||
(match-record-lambda <mimir-configuration>
|
||||
(mimir config shepherd-provision shepherd-requirement auto-start?)
|
||||
(let ((config-file
|
||||
(computed-file "mimir.yaml"
|
||||
(with-extensions (list guile-yamlpp)
|
||||
#~(begin
|
||||
(use-modules (yamlpp))
|
||||
(call-with-output-file #$output
|
||||
(lambda (port)
|
||||
(let ((emitter (make-yaml-emitter)))
|
||||
(yaml-emit! emitter '#$config)
|
||||
(display (yaml-emitter-string emitter) port)))))))))
|
||||
(list (shepherd-service
|
||||
(provision shepherd-provision)
|
||||
(requirement `(loopback user-processes ,@shepherd-requirement))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append mimir "/bin/mimir")
|
||||
(string-append "-config.file=" #$config-file))
|
||||
#:user "mimir"
|
||||
#:group "mimir"
|
||||
#:directory "/var/lib/mimir"
|
||||
#:log-file "/var/log/mimir.log"))
|
||||
(stop #~(make-kill-destructor))
|
||||
(auto-start? auto-start?))))))
|
||||
|
||||
(define mimir-service-type
|
||||
(service-type
|
||||
(name 'mimir)
|
||||
(extensions
|
||||
(list (service-extension account-service-type
|
||||
mimir-account)
|
||||
(service-extension activation-service-type
|
||||
mimir-activation)
|
||||
(service-extension shepherd-root-service-type
|
||||
mimir-shepherd)))
|
||||
(description "")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; prometheus
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization prometheus-configuration
|
||||
(prometheus
|
||||
(file-like prometheus-bin)
|
||||
"")
|
||||
(listen-address
|
||||
(string "0.0.0.0:9090")
|
||||
"")
|
||||
(config
|
||||
yaml-config
|
||||
"")
|
||||
(shepherd-provision
|
||||
(list-of-symbols '(prometheus))
|
||||
"")
|
||||
(shepherd-requirement
|
||||
(list-of-symbols '())
|
||||
"")
|
||||
(auto-start?
|
||||
(boolean #t)
|
||||
""))
|
||||
|
||||
(define prometheus-account
|
||||
(lambda _
|
||||
(list (user-group (name "prometheus") (system? #t))
|
||||
(user-account
|
||||
(name "prometheus")
|
||||
(group "prometheus")
|
||||
(system? #t)
|
||||
(comment "Prometheus user")
|
||||
(home-directory "/var/lib/prometheus")))))
|
||||
|
||||
(define prometheus-activation
|
||||
(lambda _
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((user (getpwnam "prometheus"))
|
||||
(directory "/var/lib/prometheus"))
|
||||
(unless (file-exists? directory)
|
||||
(mkdir-p directory)
|
||||
(chown directory (passwd:uid user) (passwd:gid user))
|
||||
(chmod directory #o775))))))
|
||||
|
||||
(define prometheus-shepherd
|
||||
(match-record-lambda <prometheus-configuration>
|
||||
(prometheus listen-address config shepherd-provision shepherd-requirement auto-start?)
|
||||
(let ((config-file
|
||||
(computed-file "prometheus.yml"
|
||||
(with-extensions (list guile-yamlpp)
|
||||
#~(begin
|
||||
(use-modules (yamlpp))
|
||||
(call-with-output-file #$output
|
||||
(lambda (port)
|
||||
(let ((emitter (make-yaml-emitter)))
|
||||
(yaml-emit! emitter '#$config)
|
||||
(display (yaml-emitter-string emitter) port)))))))))
|
||||
(list (shepherd-service
|
||||
(provision shepherd-provision)
|
||||
(requirement `(loopback user-processes ,@shepherd-requirement))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append prometheus "/bin/prometheus")
|
||||
(string-append "--config.file=" #$config-file)
|
||||
(string-append "--web.listen-address=" #$listen-address))
|
||||
#:user "prometheus"
|
||||
#:group "prometheus"
|
||||
#:directory "/var/lib/prometheus"
|
||||
#:log-file "/var/log/prometheus.log"))
|
||||
(stop #~(make-kill-destructor))
|
||||
(auto-start? auto-start?))))))
|
||||
|
||||
(define prometheus-service-type
|
||||
(service-type
|
||||
(name 'prometheus)
|
||||
(extensions
|
||||
(list (service-extension account-service-type
|
||||
prometheus-account)
|
||||
(service-extension activation-service-type
|
||||
prometheus-activation)
|
||||
(service-extension shepherd-root-service-type
|
||||
prometheus-shepherd)))
|
||||
(description "")))
|
||||
@@ -0,0 +1,171 @@
|
||||
;;; SPDX-FileCopyrightText: 2023 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal services networking)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (ice-9 match)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix records)
|
||||
#:use-module (gnu packages linux)
|
||||
#:use-module (gnu packages networking)
|
||||
#:use-module (rosenthal packages networking)
|
||||
#:use-module (gnu services)
|
||||
#:use-module (gnu services admin)
|
||||
#:use-module (gnu services configuration)
|
||||
#:use-module (gnu services dbus)
|
||||
#:use-module (gnu services shepherd)
|
||||
#:use-module (gnu system shadow)
|
||||
#:export (sing-box-service-type
|
||||
sing-box-configuration
|
||||
|
||||
tailscale-configuration
|
||||
tailscale-service-type))
|
||||
|
||||
;;;
|
||||
;;; sing-box
|
||||
;;;
|
||||
|
||||
(define (file-object? val)
|
||||
(or (string? val)
|
||||
(file-like? val)))
|
||||
|
||||
(define-configuration/no-serialization sing-box-configuration
|
||||
(sing-box
|
||||
(file-like sing-box)
|
||||
"")
|
||||
(config-file
|
||||
file-object
|
||||
"")
|
||||
(data-directory
|
||||
(string "/var/lib/sing-box")
|
||||
"")
|
||||
;; Shepherd
|
||||
(shepherd-provision
|
||||
(list-of-symbols '(sing-box))
|
||||
"")
|
||||
(shepherd-requirement
|
||||
(list-of-symbols '(networking))
|
||||
"")
|
||||
(log-file
|
||||
(string "/var/log/sing-box.log")
|
||||
"")
|
||||
(auto-start?
|
||||
(boolean #t)
|
||||
""))
|
||||
|
||||
(define sing-box-account
|
||||
(list (user-group (name "sing-box") (system? #t))))
|
||||
|
||||
(define sing-box-activation
|
||||
(match-record-lambda <sing-box-configuration>
|
||||
(data-directory)
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(mkdir-p #$data-directory))))
|
||||
|
||||
(define sing-box-shepherd-service
|
||||
(match-record-lambda <sing-box-configuration>
|
||||
(sing-box data-directory config-file
|
||||
shepherd-provision shepherd-requirement log-file auto-start?)
|
||||
(list (shepherd-service
|
||||
(provision shepherd-provision)
|
||||
(requirement `(user-processes ,@shepherd-requirement))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append sing-box "/bin/sing-box")
|
||||
"--config" #$config-file
|
||||
"--directory" #$data-directory
|
||||
"--disable-color"
|
||||
"run")
|
||||
#:log-file #$log-file))
|
||||
(stop #~(make-kill-destructor))
|
||||
(auto-start? auto-start?)))))
|
||||
|
||||
(define sing-box-service-type
|
||||
(service-type
|
||||
(name 'sing-box)
|
||||
(extensions
|
||||
(list (service-extension account-service-type
|
||||
(const sing-box-account))
|
||||
(service-extension activation-service-type
|
||||
sing-box-activation)
|
||||
(service-extension shepherd-root-service-type
|
||||
sing-box-shepherd-service)
|
||||
(service-extension log-rotation-service-type
|
||||
(compose list sing-box-configuration-log-file))))
|
||||
(description "")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Tailscale
|
||||
;;;
|
||||
|
||||
|
||||
(define-configuration tailscale-configuration
|
||||
(tailscale
|
||||
(file-like tailscale)
|
||||
"The tailscale package to use.")
|
||||
|
||||
(log-file
|
||||
(string "/var/log/tailscaled.log")
|
||||
"Path to log file.")
|
||||
|
||||
(socket
|
||||
(string "/var/run/tailscale/tailscaled.sock")
|
||||
"Path of the service UNIX socket.")
|
||||
|
||||
(state-directory
|
||||
(string "/var/lib/tailscale")
|
||||
"Path to directory for storage of config state, TLS certs, temporary incoming
|
||||
Taildrop files, etc. If empty, it's derived from @code{state-file} when
|
||||
possible.")
|
||||
|
||||
(upload-log?
|
||||
(boolean #f)
|
||||
"Whether to upload logs or not, technical support is also disabled when set
|
||||
to #f.")
|
||||
|
||||
(verbosity
|
||||
(integer 0)
|
||||
"Log verbosity level; 0 is default, 1 or higher are increasingly verbose.")
|
||||
|
||||
(extra-options
|
||||
(list-of-strings '())
|
||||
"List of extra options.")
|
||||
(no-serialization))
|
||||
|
||||
(define tailscale-shepherd-service
|
||||
(match-record-lambda <tailscale-configuration>
|
||||
(tailscale log-file socket state-directory
|
||||
upload-log? verbosity extra-options)
|
||||
(list (shepherd-service
|
||||
(documentation "Run tailscaled")
|
||||
(provision '(tailscaled))
|
||||
(requirement '(user-processes))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list
|
||||
#$(file-append tailscale "/bin/tailscaled")
|
||||
#$@(if upload-log?
|
||||
'()
|
||||
'("-no-logs-no-support"))
|
||||
"-socket" #$socket
|
||||
"-statedir" #$state-directory
|
||||
"-verbose" #$(number->string verbosity)
|
||||
#$@extra-options)
|
||||
#:log-file #$log-file))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
|
||||
(define tailscale-service-type
|
||||
(service-type
|
||||
(name 'tailscaled)
|
||||
(extensions
|
||||
(list (service-extension shepherd-root-service-type
|
||||
tailscale-shepherd-service)
|
||||
(service-extension profile-service-type
|
||||
(compose list tailscale-configuration-tailscale))
|
||||
(service-extension log-rotation-service-type
|
||||
(compose list tailscale-configuration-log-file))))
|
||||
(default-value (tailscale-configuration))
|
||||
(description "Run tailscaled.")))
|
||||
@@ -0,0 +1,137 @@
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal services shellutils)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (srfi srfi-26)
|
||||
|
||||
#:use-module (guix deprecation)
|
||||
#:use-module (guix diagnostics)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix i18n)
|
||||
#:use-module (guix records)
|
||||
#:use-module (rosenthal utils packages)
|
||||
|
||||
#:use-module (gnu services)
|
||||
#:use-module (gnu services configuration)
|
||||
|
||||
#:use-module (gnu home services shells)
|
||||
|
||||
#:use-module (rosenthal packages rust-apps)
|
||||
|
||||
#:export (home-fish-plugin-atuin-service-type
|
||||
home-atuin-configuration
|
||||
|
||||
home-fish-plugin-direnv-service-type
|
||||
home-direnv-configuration
|
||||
|
||||
home-fish-plugin-zoxide-service-type
|
||||
home-zoxide-configuration))
|
||||
|
||||
(define (warn-deprecated-shells-field configuration)
|
||||
(lambda (value)
|
||||
(when (maybe-value-set? value)
|
||||
(warning #f (G_ "'~a': '~a' field is deprecated~%")
|
||||
configuration 'shells))))
|
||||
|
||||
;;;
|
||||
;;; atuin
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization home-atuin-configuration
|
||||
(atuin
|
||||
(file-like atuin)
|
||||
"")
|
||||
(shells
|
||||
list
|
||||
"Deprecated."
|
||||
(sanitizer (warn-deprecated-shells-field 'home-atuin-configuration))))
|
||||
|
||||
(define %home-atuin-fish
|
||||
(match-record-lambda <home-atuin-configuration>
|
||||
(atuin)
|
||||
(home-fish-extension
|
||||
(config
|
||||
(list (mixed-text-file "atuin.fish"
|
||||
atuin "/bin/atuin init fish | source\n"))))))
|
||||
|
||||
(define home-fish-plugin-atuin-service-type
|
||||
(service-type
|
||||
(name 'atuin)
|
||||
(extensions
|
||||
(list (service-extension home-fish-service-type
|
||||
%home-atuin-fish)))
|
||||
(default-value (home-atuin-configuration))
|
||||
(description "")))
|
||||
|
||||
(define-deprecated/public-alias home-atuin-service-type
|
||||
home-fish-plugin-atuin-service-type)
|
||||
|
||||
|
||||
;;;
|
||||
;;; direnv
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization home-direnv-configuration
|
||||
(direnv
|
||||
(file-like (spec->pkg "direnv"))
|
||||
"")
|
||||
(shells
|
||||
list
|
||||
"Deprecated."
|
||||
(sanitizer (warn-deprecated-shells-field 'home-atuin-configuration))))
|
||||
|
||||
(define %home-direnv-fish
|
||||
(match-record-lambda <home-direnv-configuration>
|
||||
(direnv)
|
||||
(home-fish-extension
|
||||
(config
|
||||
(list (mixed-text-file "direnv.fish"
|
||||
direnv "/bin/direnv hook fish | source\n"))))))
|
||||
|
||||
(define home-fish-plugin-direnv-service-type
|
||||
(service-type
|
||||
(name 'direnv)
|
||||
(extensions
|
||||
(list (service-extension home-fish-service-type
|
||||
%home-direnv-fish)))
|
||||
(default-value (home-direnv-configuration))
|
||||
(description "")))
|
||||
|
||||
(define-deprecated/public-alias home-direnv-service-type
|
||||
home-fish-plugin-direnv-service-type)
|
||||
|
||||
|
||||
;;;
|
||||
;;; zoxide
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization home-zoxide-configuration
|
||||
(zoxide
|
||||
(file-like (spec->pkg "zoxide"))
|
||||
"")
|
||||
(shells
|
||||
list
|
||||
"Deprecated."
|
||||
(sanitizer (warn-deprecated-shells-field 'home-atuin-configuration))))
|
||||
|
||||
(define %home-zoxide-fish
|
||||
(match-record-lambda <home-zoxide-configuration>
|
||||
(zoxide)
|
||||
(home-fish-extension
|
||||
(config
|
||||
(list (mixed-text-file "zoxide.fish"
|
||||
zoxide "/bin/zoxide init --cmd cd fish | source\n"))))))
|
||||
|
||||
(define home-fish-plugin-zoxide-service-type
|
||||
(service-type
|
||||
(name 'zoxide)
|
||||
(extensions
|
||||
(list (service-extension home-fish-service-type
|
||||
%home-zoxide-fish)))
|
||||
(default-value (home-zoxide-configuration))
|
||||
(description "")))
|
||||
|
||||
(define-deprecated/public-alias home-zoxide-service-type
|
||||
home-fish-plugin-zoxide-service-type)
|
||||
@@ -0,0 +1,767 @@
|
||||
;;; SPDX-FileCopyrightText: 2024 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal services web)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix modules)
|
||||
#:use-module (guix records)
|
||||
#:use-module (gnu packages admin)
|
||||
#:use-module (gnu packages guile-xyz)
|
||||
#:use-module (gnu packages version-control)
|
||||
#:use-module (gnu packages video)
|
||||
#:use-module (rosenthal packages binaries)
|
||||
#:use-module (rosenthal packages web)
|
||||
#:use-module (gnu services)
|
||||
#:use-module (gnu services admin)
|
||||
#:use-module (gnu services configuration)
|
||||
#:use-module (gnu services databases)
|
||||
#:use-module (gnu services docker)
|
||||
#:use-module (gnu services shepherd)
|
||||
#:use-module (gnu system privilege)
|
||||
#:use-module (gnu system shadow)
|
||||
#:use-module (rosenthal utils serializers ini)
|
||||
#:use-module (rosenthal utils serializers yaml)
|
||||
#:export (caddy-configuration
|
||||
caddy-service-type
|
||||
|
||||
forgejo-configuration
|
||||
forgejo-service-type
|
||||
|
||||
iocaine-service-type
|
||||
iocaine-configuration
|
||||
|
||||
jellyfin-configuration
|
||||
jellyfin-service-type
|
||||
|
||||
komga-configuration
|
||||
komga-service-type
|
||||
|
||||
misskey-configuration
|
||||
misskey-service-type
|
||||
|
||||
navidrome-configuration
|
||||
navidrome-service-type
|
||||
|
||||
vaultwarden-configuration
|
||||
vaultwarden-service-type))
|
||||
|
||||
;;;
|
||||
;;; Caddy
|
||||
;;;
|
||||
|
||||
(define-configuration/no-serialization caddy-configuration
|
||||
(caddy
|
||||
(file-like caddy)
|
||||
"")
|
||||
(caddyfile
|
||||
file-like
|
||||
"")
|
||||
;; Shepherd
|
||||
(shepherd-provision
|
||||
(list-of-symbols '(caddy))
|
||||
"")
|
||||
(shepherd-requirement
|
||||
(list-of-symbols '())
|
||||
"")
|
||||
(auto-start?
|
||||
(boolean #t)
|
||||
""))
|
||||
|
||||
(define (caddy-accounts config)
|
||||
(list (user-group (name "caddy") (system? #t))
|
||||
(user-account
|
||||
(name "caddy")
|
||||
(group "caddy")
|
||||
(system? #t)
|
||||
(comment "Caddy user")
|
||||
(home-directory "/var/lib/caddy"))))
|
||||
|
||||
(define caddy-privileged-programs
|
||||
(match-record-lambda <caddy-configuration>
|
||||
(caddy)
|
||||
(list (privileged-program
|
||||
(program (file-append caddy "/bin/caddy"))
|
||||
(capabilities "cap_net_bind_service=+ep")))))
|
||||
|
||||
(define (caddy-activation config)
|
||||
(with-imported-modules
|
||||
(source-module-closure '((guix build utils)
|
||||
(gnu build activation)))
|
||||
#~(begin
|
||||
(use-modules (srfi srfi-26)
|
||||
(guix build utils)
|
||||
(gnu build activation))
|
||||
(let ((user (getpwnam "caddy")))
|
||||
(mkdir-p/perms "/var/lib/caddy" user #o750)
|
||||
(mkdir-p/perms "/var/log/caddy" user #o755)))))
|
||||
|
||||
(define caddy-etc
|
||||
(match-record-lambda <caddy-configuration>
|
||||
(caddyfile)
|
||||
`(("caddy/Caddyfile" ,caddyfile))))
|
||||
|
||||
(define caddy-shepherd-services
|
||||
(match-record-lambda <caddy-configuration>
|
||||
(shepherd-provision shepherd-requirement auto-start?)
|
||||
(list (shepherd-service
|
||||
(provision shepherd-provision)
|
||||
(requirement `(user-processes loopback ,@shepherd-requirement))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list "/run/privileged/bin/caddy" "run"
|
||||
"--environ" "--config" "/etc/caddy/Caddyfile")
|
||||
#:user "caddy"
|
||||
#:group "caddy"
|
||||
#:directory "/var/lib/caddy"
|
||||
#:log-file "/var/log/caddy.log"
|
||||
#:resource-limits '((nofile 1048576 1048576))
|
||||
#:environment-variables '("HOME=/var/lib/caddy")))
|
||||
(stop
|
||||
#~(make-kill-destructor))
|
||||
(actions
|
||||
(list (shepherd-configuration-action "/etc/caddy/Caddyfile")
|
||||
(shepherd-action
|
||||
(name 'reload)
|
||||
(documentation "Reload Caddy configuration file.")
|
||||
(procedure
|
||||
#~(lambda (pid)
|
||||
(if pid
|
||||
(begin
|
||||
(invoke "/run/privileged/bin/caddy" "reload"
|
||||
"--config" "/etc/caddy/Caddyfile")
|
||||
(display "Service caddy has been asked to \
|
||||
reload its configuration file."))
|
||||
(display "Service caddy is not running.")))))))
|
||||
(auto-start? auto-start?)))))
|
||||
|
||||
(define caddy-service-type
|
||||
(service-type
|
||||
(name 'caddy)
|
||||
(extensions
|
||||
(list (service-extension account-service-type
|
||||
caddy-accounts)
|
||||
(service-extension activation-service-type
|
||||
caddy-activation)
|
||||
(service-extension etc-service-type
|
||||
caddy-etc)
|
||||
(service-extension privileged-program-service-type
|
||||
caddy-privileged-programs)
|
||||
(service-extension shepherd-root-service-type
|
||||
caddy-shepherd-services)))
|
||||
(description "")))
|
||||
|
||||
|
||||
|
||||
;;;
|
||||
;;; Forgejo
|
||||
;;;
|
||||
|
||||
|
||||
(define (file-object? val)
|
||||
(or (string? val)
|
||||
(file-like? val)))
|
||||
|
||||
(define list-of-file-likes?
|
||||
(list-of file-like?))
|
||||
|
||||
(define-configuration forgejo-configuration
|
||||
(forgejo
|
||||
(file-like forgejo)
|
||||
"Package to provide @file{/bin/forgejo}.")
|
||||
(git-packages
|
||||
(list-of-file-likes (list git git-lfs))
|
||||
"@code{git} and extension packages to install.")
|
||||
(config
|
||||
ini-config
|
||||
"")
|
||||
(postgresql-password-file
|
||||
string
|
||||
"")
|
||||
(no-serialization))
|
||||
|
||||
(define %forgejo-accounts
|
||||
(list (user-group (name "forgejo") (system? #t))
|
||||
(user-account
|
||||
(name "forgejo")
|
||||
(group "forgejo")
|
||||
(system? #t)
|
||||
(comment "Forgejo user")
|
||||
(home-directory "/var/lib/forgejo"))))
|
||||
|
||||
(define forgejo-postgresql-role
|
||||
(match-record-lambda <forgejo-configuration>
|
||||
(postgresql-password-file)
|
||||
(list (postgresql-role
|
||||
(name "forgejo")
|
||||
(create-database? #t)
|
||||
(password-file postgresql-password-file)))))
|
||||
|
||||
(define forgejo-activation
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((user (getpwnam "forgejo")))
|
||||
(for-each
|
||||
(lambda (dir)
|
||||
(mkdir-p dir)
|
||||
(chown dir (passwd:uid user) (passwd:gid user))
|
||||
(chmod dir #o750))
|
||||
'("/var/lib/forgejo" "/var/log/forgejo")))))
|
||||
|
||||
(define forgejo-shepherd-service
|
||||
(match-record-lambda <forgejo-configuration>
|
||||
(forgejo config)
|
||||
(let ((config-file
|
||||
(computed-file "forgejo.ini"
|
||||
(with-extensions (list guile-ini guile-lib guile-smc)
|
||||
#~(begin
|
||||
(use-modules (srfi srfi-26) (ini))
|
||||
(call-with-output-file #$output
|
||||
(cut scm->ini '#$config #:port <>)))))))
|
||||
(list (shepherd-service
|
||||
(documentation "Run Forgejo.")
|
||||
(provision '(forgejo))
|
||||
(requirement '(loopback postgresql))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append forgejo "/bin/forgejo")
|
||||
"--config" #$config-file)
|
||||
#:user "forgejo"
|
||||
#:group "forgejo"
|
||||
#:log-file "/var/log/forgejo.log"
|
||||
#:environment-variables
|
||||
'("GIT_EXEC_PATH=/run/current-system/profile/libexec/git-core"
|
||||
"GIT_SSL_CAINFO=/run/current-system/profile/etc/ssl/certs/ca-certificates.crt"
|
||||
"HOME=/var/lib/forgejo"
|
||||
"PATH=/run/current-system/profile/bin"
|
||||
"SSL_CERT_DIR=/run/current-system/profile/etc/ssl/certs"
|
||||
"SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt")
|
||||
#:resource-limits '((nofile 524288 524288))))
|
||||
(stop
|
||||
#~(make-kill-destructor))
|
||||
(actions
|
||||
(list (shepherd-configuration-action config-file))))))))
|
||||
|
||||
(define forgejo-service-type
|
||||
(service-type
|
||||
(name 'forgejo)
|
||||
(extensions
|
||||
(list (service-extension account-service-type
|
||||
(const %forgejo-accounts))
|
||||
(service-extension postgresql-role-service-type
|
||||
forgejo-postgresql-role)
|
||||
(service-extension profile-service-type
|
||||
(lambda (config)
|
||||
(cons (forgejo-configuration-forgejo config)
|
||||
(forgejo-configuration-git-packages config))))
|
||||
(service-extension activation-service-type
|
||||
(const forgejo-activation))
|
||||
(service-extension shepherd-root-service-type
|
||||
forgejo-shepherd-service)))
|
||||
(description "Run Forgejo.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Iocaine
|
||||
;;;
|
||||
|
||||
|
||||
(define-configuration/no-serialization iocaine-configuration
|
||||
(iocaine
|
||||
(file-like iocaine/dolly)
|
||||
"")
|
||||
(config
|
||||
file-object
|
||||
"")
|
||||
(log-file
|
||||
(string "/var/log/iocaine.log")
|
||||
"")
|
||||
(shepherd-provision
|
||||
(list-of-symbols '(iocaine))
|
||||
"")
|
||||
(shepherd-requirement
|
||||
(list-of-symbols '(loopback))
|
||||
"")
|
||||
(auto-start?
|
||||
(boolean #t)
|
||||
""))
|
||||
|
||||
(define iocaine-accounts
|
||||
(list (user-group (name "iocaine") (system? #t))
|
||||
(user-account
|
||||
(name "iocaine")
|
||||
(group "iocaine")
|
||||
(system? #t)
|
||||
(comment "Iocaine user")
|
||||
(home-directory "/var/empty"))))
|
||||
|
||||
(define iocaine-etc
|
||||
(match-record-lambda <iocaine-configuration>
|
||||
(config)
|
||||
`(("iocaine/iocaine.toml" ,config))))
|
||||
|
||||
(define iocaine-shepherd-service
|
||||
(match-record-lambda <iocaine-configuration>
|
||||
(iocaine log-file shepherd-provision shepherd-requirement auto-start?)
|
||||
(list (shepherd-service
|
||||
(provision shepherd-provision)
|
||||
(requirement (cons 'user-processes shepherd-requirement))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append iocaine "/bin/iocaine")
|
||||
"--config-file" "/etc/iocaine/iocaine.toml")
|
||||
#:user "iocaine"
|
||||
#:group "iocaine"
|
||||
#:log-file #$log-file))
|
||||
(stop #~(make-kill-destructor))
|
||||
(actions
|
||||
(list (shepherd-configuration-action "/etc/iocaine/iocaine.toml")
|
||||
(shepherd-action
|
||||
(name 'test)
|
||||
(documentation "Test Iocaine configuration file.")
|
||||
(procedure
|
||||
#~(lambda (pid)
|
||||
(if pid
|
||||
(begin
|
||||
(invoke #$(file-append iocaine "/bin/iocaine")
|
||||
"--config-file" "/etc/iocaine/iocaine.toml"
|
||||
"test")
|
||||
(display "Service iocaine has been asked to \
|
||||
test its configuration file."))
|
||||
(display "Service iocaine is not running.")))))))
|
||||
(auto-start? auto-start?)))))
|
||||
|
||||
(define iocaine-service-type
|
||||
(service-type
|
||||
(name 'iocaine)
|
||||
(extensions
|
||||
(list (service-extension account-service-type
|
||||
(const iocaine-accounts))
|
||||
(service-extension etc-service-type
|
||||
iocaine-etc)
|
||||
(service-extension shepherd-root-service-type
|
||||
iocaine-shepherd-service)
|
||||
(service-extension log-rotation-service-type
|
||||
(compose list iocaine-configuration-log-file))))
|
||||
(description "")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Jellyfin
|
||||
;;;
|
||||
|
||||
|
||||
(define-maybe string)
|
||||
|
||||
(define-configuration jellyfin-configuration
|
||||
(cache-directory
|
||||
(string "/var/cache/jellyfin")
|
||||
"Path to cache directory.")
|
||||
(config-directory
|
||||
(string "/var/lib/jellyfin")
|
||||
"Path to configuration directory.")
|
||||
(proxy-url
|
||||
maybe-string
|
||||
"Proxy URL.")
|
||||
(log-file
|
||||
(string "/var/log/jellyfin.log")
|
||||
"Path to log file.")
|
||||
(auto-start?
|
||||
(boolean #t)
|
||||
"Whether to start automatically.")
|
||||
(extra-options
|
||||
(list '())
|
||||
"List of extra options.")
|
||||
(no-serialization))
|
||||
|
||||
(define %jellyfin-accounts
|
||||
(list (user-account
|
||||
(name "jellyfin")
|
||||
(group "docker")
|
||||
(system? #t)
|
||||
(home-directory "/var/empty")
|
||||
(shell (file-append shadow "/sbin/nologin")))))
|
||||
|
||||
(define jellyfin-activation
|
||||
(match-record-lambda <jellyfin-configuration>
|
||||
(cache-directory config-directory)
|
||||
#~(let ((user (getpwnam "jellyfin")))
|
||||
(for-each
|
||||
(lambda (directory)
|
||||
(unless (file-exists? directory)
|
||||
(mkdir-p directory)
|
||||
(chown directory (passwd:uid user) (passwd:gid user))))
|
||||
'#$(list cache-directory config-directory)))))
|
||||
|
||||
(define jellyfin-oci-containers
|
||||
(match-record-lambda <jellyfin-configuration>
|
||||
(cache-directory config-directory
|
||||
proxy-url log-file auto-start? extra-options)
|
||||
(list (oci-container-configuration
|
||||
(user "jellyfin")
|
||||
(group "docker")
|
||||
(environment
|
||||
(if (maybe-value-set? proxy-url)
|
||||
`(("http_proxy" . ,proxy-url)
|
||||
("https_proxy" . ,proxy-url))
|
||||
'()))
|
||||
(image "jellyfin/jellyfin:latest")
|
||||
(provision "jellyfin")
|
||||
(log-file log-file)
|
||||
(auto-start? auto-start?)
|
||||
(respawn? #t)
|
||||
(network "host")
|
||||
(volumes
|
||||
`((,cache-directory . "/cache")
|
||||
(,config-directory . "/config")))
|
||||
(extra-arguments extra-options)))))
|
||||
|
||||
(define jellyfin-service-type
|
||||
(service-type
|
||||
(name 'jellyfin)
|
||||
(extensions
|
||||
(list (service-extension account-service-type
|
||||
(const %jellyfin-accounts))
|
||||
(service-extension activation-service-type
|
||||
jellyfin-activation)
|
||||
(service-extension log-rotation-service-type
|
||||
(compose list jellyfin-configuration-log-file))
|
||||
(service-extension oci-container-service-type
|
||||
jellyfin-oci-containers)))
|
||||
(default-value (jellyfin-configuration))
|
||||
(description "Run Jellyfin, a media system.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Komga
|
||||
;;;
|
||||
|
||||
|
||||
(define-configuration komga-configuration
|
||||
(komga
|
||||
(file-like komga-bin)
|
||||
"Package to provide @file{/bin/komga}.")
|
||||
(port
|
||||
(integer 25600)
|
||||
"Port to listen to for the API and web interface.")
|
||||
(auto-start?
|
||||
(boolean #t)
|
||||
"Whether to start automatically.")
|
||||
(no-serialization))
|
||||
|
||||
(define %komga-accounts
|
||||
(list (user-group (name "komga") (system? #t))
|
||||
(user-account
|
||||
(name "komga")
|
||||
(group "komga")
|
||||
(system? #t)
|
||||
(comment "Komga user")
|
||||
(home-directory "/var/lib/komga"))))
|
||||
|
||||
(define komga-shepherd-service
|
||||
(match-record-lambda <komga-configuration>
|
||||
(komga port auto-start?)
|
||||
(list (shepherd-service
|
||||
(documentation "Run Komga.")
|
||||
(provision '(komga))
|
||||
(requirement '(loopback))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append komga "/bin/komga"))
|
||||
#:user "komga"
|
||||
#:group "komga"
|
||||
#:log-file "/var/log/komga.log"
|
||||
#:environment-variables
|
||||
'("KOMGA_CONFIGDIR=/var/lib/komga"
|
||||
#$(string-append "SERVER_PORT=" (number->string port)))))
|
||||
(stop
|
||||
#~(make-kill-destructor))
|
||||
(auto-start? auto-start?)))))
|
||||
|
||||
(define komga-service-type
|
||||
(service-type
|
||||
(name 'komga)
|
||||
(extensions
|
||||
(list (service-extension account-service-type
|
||||
(const %komga-accounts))
|
||||
(service-extension shepherd-root-service-type
|
||||
komga-shepherd-service)))
|
||||
(default-value (komga-configuration))
|
||||
(description "Run Komga.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Misskey
|
||||
;;;
|
||||
|
||||
|
||||
(define-configuration misskey-configuration
|
||||
(image
|
||||
(string "misskey/misskey:latest")
|
||||
"Misskey docker image to use.")
|
||||
(config
|
||||
yaml-config
|
||||
"Alist of Misskey configuration, to be serialized to YAML format.")
|
||||
(data-directory
|
||||
(string "/var/lib/misskey")
|
||||
"Directory to store @file{files} in.")
|
||||
(log-file
|
||||
(string "/var/log/misskey.log")
|
||||
"Log file to use.")
|
||||
(postgresql-password-file
|
||||
string
|
||||
"")
|
||||
(no-serialization))
|
||||
|
||||
(define %misskey-accounts
|
||||
(list (user-account
|
||||
(name "misskey")
|
||||
(group "docker")
|
||||
(system? #t)
|
||||
(home-directory "/var/empty")
|
||||
(shell (file-append shadow "/sbin/nologin")))))
|
||||
|
||||
(define misskey-postgresql-role
|
||||
(match-record-lambda <misskey-configuration>
|
||||
(postgresql-password-file)
|
||||
(list (postgresql-role
|
||||
(name "misskey")
|
||||
(create-database? #t)
|
||||
(password-file postgresql-password-file)))))
|
||||
|
||||
(define misskey-activation
|
||||
(match-record-lambda <misskey-configuration>
|
||||
(data-directory)
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((user (getpwnam "misskey")))
|
||||
(unless (file-exists? #$data-directory)
|
||||
(mkdir-p #$data-directory)
|
||||
(chown #$data-directory (passwd:uid user) (passwd:gid user)))))))
|
||||
|
||||
(define misskey-oci-containers
|
||||
(match-record-lambda <misskey-configuration>
|
||||
(image config data-directory log-file )
|
||||
(let ((config-file
|
||||
(computed-file "misskey.yaml"
|
||||
(with-extensions (list guile-yamlpp)
|
||||
#~(begin
|
||||
(use-modules (yamlpp))
|
||||
(call-with-output-file #$output
|
||||
(lambda (port)
|
||||
(let ((emitter (make-yaml-emitter)))
|
||||
(yaml-emit! emitter '#$config)
|
||||
(display (yaml-emitter-string emitter) port)))))))))
|
||||
(list (oci-container-configuration
|
||||
(user "misskey")
|
||||
(group "docker")
|
||||
(image image)
|
||||
(provision "misskey")
|
||||
(requirement '(postgresql redis))
|
||||
(log-file log-file)
|
||||
(respawn? #t)
|
||||
(network "host")
|
||||
(volumes
|
||||
`((,(string-append data-directory "/files") . "/misskey/files")
|
||||
(,config-file . "/misskey/.config/default.yml"))))))))
|
||||
|
||||
(define misskey-service-type
|
||||
(service-type
|
||||
(name 'misskey)
|
||||
(extensions
|
||||
(list (service-extension account-service-type
|
||||
(const %misskey-accounts))
|
||||
(service-extension postgresql-role-service-type
|
||||
misskey-postgresql-role)
|
||||
(service-extension log-rotation-service-type
|
||||
(compose list misskey-configuration-log-file))
|
||||
(service-extension activation-service-type
|
||||
misskey-activation)
|
||||
(service-extension oci-container-service-type
|
||||
misskey-oci-containers)))
|
||||
(description "Run Misskey, an interplanetary microblogging platform.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Navidrome
|
||||
;;;
|
||||
|
||||
|
||||
(define-configuration navidrome-configuration
|
||||
(navidrome
|
||||
(file-like navidrome-bin)
|
||||
"")
|
||||
(ffmpeg
|
||||
(file-like ffmpeg)
|
||||
"")
|
||||
(auto-start?
|
||||
(boolean #t)
|
||||
"")
|
||||
(extra-config
|
||||
(string "")
|
||||
"")
|
||||
(no-serialization))
|
||||
|
||||
(define %navidrome-accounts
|
||||
(list (user-group (name "navidrome") (system? #t))
|
||||
(user-account
|
||||
(name "navidrome")
|
||||
(group "navidrome")
|
||||
(system? #t)
|
||||
(comment "Navidrome user")
|
||||
(home-directory "/var/lib/navidrome"))))
|
||||
|
||||
(define navidrome-shepherd-service
|
||||
(match-record-lambda <navidrome-configuration>
|
||||
(navidrome ffmpeg auto-start? extra-config)
|
||||
(let ((config-file
|
||||
(mixed-text-file
|
||||
"navidrome.toml"
|
||||
"DataFolder = '/var/lib/navidrome'\n"
|
||||
"CacheFolder = '/var/lib/navidrome/cache'\n"
|
||||
"EnableInsightsCollector = false\n"
|
||||
extra-config)))
|
||||
(list (shepherd-service
|
||||
(documentation "Run Navidrome.")
|
||||
(provision '(navidrome))
|
||||
(requirement '(loopback user-processes))
|
||||
(start
|
||||
#~(make-forkexec-constructor
|
||||
(list #$(file-append navidrome "/bin/navidrome")
|
||||
"--configfile" #$config-file)
|
||||
#:user "navidrome"
|
||||
#:group "navidrome"
|
||||
#:log-file "/var/log/navidrome.log"
|
||||
#:environment-variables
|
||||
(list "LC_ALL=C.UTF-8"
|
||||
(string-append "PATH=" #$ffmpeg "/bin"))))
|
||||
(stop
|
||||
#~(make-kill-destructor))
|
||||
(auto-start? auto-start?)
|
||||
(actions
|
||||
(list (shepherd-configuration-action config-file))))))))
|
||||
|
||||
(define navidrome-service-type
|
||||
(service-type
|
||||
(name 'navidrome)
|
||||
(extensions
|
||||
(list (service-extension account-service-type
|
||||
(const %navidrome-accounts))
|
||||
(service-extension shepherd-root-service-type
|
||||
navidrome-shepherd-service)))
|
||||
(default-value (navidrome-configuration))
|
||||
(description "Run Navidrome.")))
|
||||
|
||||
|
||||
;;;
|
||||
;;; Vaultwarden
|
||||
;;;
|
||||
|
||||
|
||||
(define-configuration vaultwarden-configuration
|
||||
(admin-token
|
||||
maybe-string
|
||||
"Token for the admin interface, preferably an Argon2 PCH string.")
|
||||
(database-url
|
||||
(string "postgresql://user:password@host:port/database")
|
||||
"Database URL.")
|
||||
(port
|
||||
(integer 8000)
|
||||
"Port to listen on.")
|
||||
(data-directory
|
||||
(string "/var/lib/vaultwarden")
|
||||
"Main data folder.")
|
||||
(log-file
|
||||
(string "/var/log/vaultwarden.log")
|
||||
"Logging to this file.")
|
||||
(proxy-url
|
||||
maybe-string
|
||||
"Proxy URL to use.")
|
||||
(extra-options
|
||||
(alist '())
|
||||
"Extra options.")
|
||||
(postgresql-password-file
|
||||
string
|
||||
"")
|
||||
(no-serialization))
|
||||
|
||||
(define %vaultwarden-accounts
|
||||
(list (user-account
|
||||
(name "vaultwarden")
|
||||
(group "docker")
|
||||
(system? #t)
|
||||
(home-directory "/var/empty")
|
||||
(shell (file-append shadow "/sbin/nologin")))))
|
||||
|
||||
(define vaultwarden-postgresql-role
|
||||
(match-record-lambda <vaultwarden-configuration>
|
||||
(postgresql-password-file)
|
||||
(list (postgresql-role
|
||||
(name "vaultwarden")
|
||||
(create-database? #t)
|
||||
(password-file postgresql-password-file)))))
|
||||
|
||||
(define vaultwarden-activation
|
||||
(match-record-lambda <vaultwarden-configuration>
|
||||
(data-directory log-file)
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((user (getpwnam "vaultwarden")))
|
||||
(unless (file-exists? #$data-directory)
|
||||
(mkdir-p #$data-directory)
|
||||
(chown #$data-directory (passwd:uid user) (passwd:gid user)))
|
||||
(unless (file-exists? #$log-file)
|
||||
(mkdir-p (dirname #$log-file))
|
||||
(call-with-output-file #$log-file
|
||||
(lambda (port)
|
||||
(write-char #\newline port)))
|
||||
(chown #$log-file (passwd:uid user) (passwd:gid user)))))))
|
||||
|
||||
(define vaultwarden-oci-containers
|
||||
(match-record-lambda <vaultwarden-configuration>
|
||||
(admin-token database-url port data-directory log-file proxy-url extra-options)
|
||||
(list (oci-container-configuration
|
||||
(user "vaultwarden")
|
||||
(group "docker")
|
||||
(host-environment
|
||||
`(,@(if (maybe-value-set? admin-token)
|
||||
`(("ADMIN_TOKEN" . ,admin-token))
|
||||
'())
|
||||
("DATABASE_URL" . ,database-url)))
|
||||
(environment
|
||||
`(,@(if (maybe-value-set? proxy-url)
|
||||
`(("HTTP_PROXY" . ,proxy-url))
|
||||
'())
|
||||
("LOG_FILE" . "vaultwarden.log")
|
||||
("ROCKET_PORT" . ,(number->string port))
|
||||
("USE_SYSLOG" . "True")
|
||||
,@extra-options))
|
||||
(image "vaultwarden/server:latest-alpine")
|
||||
(provision "vaultwarden")
|
||||
(requirement '(postgresql))
|
||||
(respawn? #t)
|
||||
(network "host")
|
||||
(volumes
|
||||
`((,data-directory . "/data")
|
||||
(,log-file . "/vaultwarden.log")))
|
||||
(extra-arguments
|
||||
`(,@(if (maybe-value-set? admin-token)
|
||||
'("--env" "ADMIN_TOKEN")
|
||||
'())
|
||||
"--env" "DATABASE_URL"))))))
|
||||
|
||||
(define vaultwarden-service-type
|
||||
(service-type
|
||||
(name 'vaultwarden)
|
||||
(extensions
|
||||
(list (service-extension account-service-type
|
||||
(const %vaultwarden-accounts))
|
||||
(service-extension postgresql-role-service-type
|
||||
vaultwarden-postgresql-role)
|
||||
(service-extension activation-service-type
|
||||
vaultwarden-activation)
|
||||
(service-extension log-rotation-service-type
|
||||
(compose list vaultwarden-configuration-log-file))
|
||||
(service-extension oci-container-service-type
|
||||
vaultwarden-oci-containers)))
|
||||
(description "Run Vaultwarden, a Bitwarden compatible server.")))
|
||||
@@ -0,0 +1,11 @@
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal utils cargo)
|
||||
#:use-module (srfi srfi-26)
|
||||
#:use-module (guix build-system cargo)
|
||||
#:export (rosenthal-cargo-inputs))
|
||||
|
||||
(define rosenthal-cargo-inputs
|
||||
(cut cargo-inputs <> #:module '(rosenthal packages rust-crates)))
|
||||
@@ -0,0 +1,46 @@
|
||||
;;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal utils download)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix build-system gnu)
|
||||
#:export (go-mod-vendor))
|
||||
|
||||
;;;
|
||||
;;; ‘go mod vendor’ based fetcher
|
||||
;;;
|
||||
|
||||
(define* (go-mod-vendor #:key go)
|
||||
(lambda* (src hash-algo hash #:optional name #:key (system (%current-system)))
|
||||
(define nss-certs
|
||||
(module-ref (resolve-interface '(gnu packages nss)) 'nss-certs))
|
||||
|
||||
(gexp->derivation
|
||||
(or name "vendored-go-dependencies")
|
||||
(with-imported-modules %default-gnu-imported-modules
|
||||
#~(begin
|
||||
(use-modules (guix build gnu-build-system)
|
||||
(guix build utils))
|
||||
;; Support Unicode in file name.
|
||||
(setlocale LC_ALL "C.UTF-8")
|
||||
;; For HTTPS support.
|
||||
(setenv "SSL_CERT_DIR" #+(file-append nss-certs "/etc/ssl/certs"))
|
||||
|
||||
((assoc-ref %standard-phases 'unpack) #:source #+src)
|
||||
(invoke #+(file-append go "/bin/go") "mod" "vendor")
|
||||
(copy-recursively "vendor" #$output)))
|
||||
#:system system
|
||||
#:hash-algo hash-algo
|
||||
#:hash hash
|
||||
;; Is a directory.
|
||||
#:recursive? #t
|
||||
#:env-vars '(("GOCACHE" . "/tmp/go-cache")
|
||||
("GOPATH" . "/tmp/go"))
|
||||
;; Honor the user's proxy and locale settings.
|
||||
#:leaked-env-vars '("GOPROXY"
|
||||
"http_proxy" "https_proxy"
|
||||
"LC_ALL" "LC_MESSAGES" "LANG"
|
||||
"COLUMNS")
|
||||
#:local-build? #t)))
|
||||
@@ -0,0 +1,45 @@
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
;;; Copyright © 2025 Hilton Chain <hako@ultrarare.space>
|
||||
|
||||
(define-module (rosenthal utils file)
|
||||
#:use-module (ice-9 textual-ports)
|
||||
#:use-module (guix gexp)
|
||||
#:export (computed-substitution-with-inputs
|
||||
file-content
|
||||
hidden-desktop-entry))
|
||||
|
||||
;; XXX: ‘substitute*’ doesn't fully support Unicode:
|
||||
;; https://codeberg.org/guix/guix/src/commit/a88d6a45e422cede96d57d7a953439dc27c6a50c/guix/build/utils.scm#L964
|
||||
|
||||
(define (computed-substitution-with-inputs name file inputs)
|
||||
(with-imported-modules '((guix build utils))
|
||||
(computed-file
|
||||
name
|
||||
#~(begin
|
||||
(use-modules (ice-9 match)
|
||||
(guix build utils))
|
||||
(copy-file #$file #$output)
|
||||
(substitute* #$output
|
||||
(("\\$\\$([^\\$]+)\\$\\$" _ path)
|
||||
(let loop ((candidates '#$inputs))
|
||||
(if (null? candidates)
|
||||
(error "file '~a' not found" path)
|
||||
(match candidates
|
||||
((candidate . rest)
|
||||
(let ((full-path (in-vicinity candidate path)))
|
||||
(if (file-exists? full-path)
|
||||
full-path
|
||||
(loop rest)))))))))))))
|
||||
|
||||
(define (file-content file)
|
||||
(call-with-input-file (canonicalize-path file) get-string-all))
|
||||
|
||||
(define (hidden-desktop-entry name file)
|
||||
(computed-file name
|
||||
(with-imported-modules '((guix build utils))
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(copy-file #$file #$output)
|
||||
(substitute* #$output
|
||||
(("^\\[Desktop Entry\\].*" all)
|
||||
(string-append all "NoDisplay=true\n")))))))
|
||||
@@ -0,0 +1,131 @@
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
;;; Copyright © 2015, 2018 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2025 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;; Copyright © 2025 Hilton Chain <hako@ultrarare.space>
|
||||
|
||||
(define-module (rosenthal utils packages)
|
||||
#:use-module (gnu packages)
|
||||
#:use-module (guix deprecation)
|
||||
#:use-module (guix diagnostics)
|
||||
#:use-module (guix discovery)
|
||||
#:use-module (guix i18n)
|
||||
#:use-module (guix memoization)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix ui)
|
||||
#:use-module (ice-9 match)
|
||||
#:use-module (srfi srfi-34)
|
||||
#:replace (%patch-path
|
||||
search-patch)
|
||||
#:export (rosenthal-patches
|
||||
%rosenthal-package-module-path
|
||||
all-rosenthal-packages
|
||||
|
||||
rosenthal-disable-updater?
|
||||
delete-package-from-list
|
||||
|
||||
spec->pkg
|
||||
spec->pkg+out
|
||||
specs->pkgs
|
||||
specs->pkgs+out))
|
||||
|
||||
(define %rosenthal-root-directory
|
||||
;; This is like %distro-root-directory from (gnu packages), with adjusted
|
||||
;; paths.
|
||||
(letrec-syntax ((dirname* (syntax-rules ()
|
||||
((_ file)
|
||||
(dirname file))
|
||||
((_ file head tail ...)
|
||||
(dirname (dirname* file tail ...)))))
|
||||
(try (syntax-rules ()
|
||||
((_ (file things ...) rest ...)
|
||||
(match (search-path %load-path file)
|
||||
(#f
|
||||
(try rest ...))
|
||||
(absolute
|
||||
(dirname* absolute things ...))))
|
||||
((_)
|
||||
#f))))
|
||||
(try ("rosenthal/packages/binaries.scm" rosenthal/ packages/)
|
||||
("rosenthal/packages.scm" rosenthal/))))
|
||||
|
||||
(define %rosenthal-package-module-path
|
||||
`((,%rosenthal-root-directory . "rosenthal/packages")))
|
||||
|
||||
(define %patch-path
|
||||
;; Define it after '%package-module-path' so that '%load-path' contains user
|
||||
;; directories, allowing patches in $GUIX_PACKAGE_PATH to be found.
|
||||
(make-parameter
|
||||
(map (lambda (directory)
|
||||
(if (string=? directory %rosenthal-root-directory)
|
||||
(string-append directory "/rosenthal/packages/patches")
|
||||
directory))
|
||||
%load-path)))
|
||||
|
||||
;;; XXX: The following must be redefined to make use of the overridden
|
||||
;;; %patch-path parameter above.
|
||||
(define (search-patch file-name)
|
||||
"Search the patch FILE-NAME. Raise an error if not found."
|
||||
(or (search-path (%patch-path) file-name)
|
||||
(raise (formatted-message (G_ "~a: patch not found")
|
||||
file-name))))
|
||||
|
||||
;;; XXX: `search-patches' being syntax, it can't be overridden by the module
|
||||
;;; system, or so it seems, so we simply rename it.
|
||||
(define-syntax-rule (rosenthal-patches file-name ...)
|
||||
"Return the list of absolute file names corresponding to each
|
||||
FILE-NAME found in %PATCH-PATH."
|
||||
(list (search-patch file-name) ...))
|
||||
|
||||
;; Adapted from (@ (gnu packages) all-packages).
|
||||
(define all-rosenthal-packages
|
||||
(mlambda ()
|
||||
"Return the list of all public packages, including replacements and hidden
|
||||
packages, excluding superseded packages."
|
||||
;; Note: 'fold-packages' never traverses the same package twice but
|
||||
;; replacements break that (they may or may not be visible to
|
||||
;; 'fold-packages'), hence this hash table to track visited packages.
|
||||
(define visited (make-hash-table))
|
||||
|
||||
(fold-packages (lambda (package result)
|
||||
(if (hashq-ref visited package)
|
||||
result
|
||||
(begin
|
||||
(hashq-set! visited package #t)
|
||||
(match (package-replacement package)
|
||||
((? package? replacement)
|
||||
(hashq-set! visited replacement #t)
|
||||
(cons* replacement package result))
|
||||
(#f
|
||||
(cons package result))))))
|
||||
'()
|
||||
(all-modules %rosenthal-package-module-path #:warn warn-about-load-error)
|
||||
;; Dismiss deprecated packages but keep hidden packages.
|
||||
#:select? (negate package-superseded))))
|
||||
|
||||
|
||||
|
||||
(define (rosenthal-disable-updater? p)
|
||||
(assq-ref (package-properties p) 'disable-updater?))
|
||||
|
||||
(define (delete-package-from-list name lst)
|
||||
"Return a copy of package list LST, removing packages named NAME."
|
||||
(filter (lambda (pkg)
|
||||
(not (string=? name (package-name pkg))))
|
||||
lst))
|
||||
|
||||
(define (spec->pkg spec)
|
||||
(specification->package spec))
|
||||
|
||||
(define (spec->pkg+out spec)
|
||||
(specification->package+output spec))
|
||||
|
||||
(define (specs->pkgs . specs)
|
||||
(map spec->pkg specs))
|
||||
|
||||
(define (specs->pkgs+out . specs)
|
||||
(map spec->pkg+out specs))
|
||||
|
||||
(define-deprecated/public-alias pkg spec->pkg)
|
||||
(define-deprecated/public-alias pkg+out spec->pkg+out)
|
||||
(define-deprecated/public-alias pkgs specs->pkgs)
|
||||
(define-deprecated/public-alias pkgs+out specs->pkgs+out)
|
||||
@@ -0,0 +1,30 @@
|
||||
;;; SPDX-FileCopyrightText: Copyright © 2022 Andrew Tropin <andrew@trop.in>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal utils serializers)
|
||||
#:use-module (gnu services configuration)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (srfi srfi-1)
|
||||
|
||||
#:export (path?
|
||||
serialize-path
|
||||
|
||||
string-or-gexp?
|
||||
serialize-string-or-gexp
|
||||
|
||||
gexp-text-config?
|
||||
serialize-gexp-text-config)
|
||||
#:re-export (interpose))
|
||||
|
||||
(define path? string?)
|
||||
(define (serialize-path field-name val) val)
|
||||
|
||||
(define (string-or-gexp? sg) (or (string? sg) (gexp? sg)))
|
||||
(define (serialize-string-or-gexp field-name val) "")
|
||||
|
||||
;; Guix proper has a different version of text-config.
|
||||
(define (gexp-text-config? config)
|
||||
(and (list? config) (every string-or-gexp? config)))
|
||||
(define (serialize-gexp-text-config field-name val)
|
||||
#~(string-append #$@(interpose val "\n" 'suffix)))
|
||||
@@ -0,0 +1,152 @@
|
||||
;;; SPDX-FileCopyrightText: Copyright © 2022 Andrew Tropin <andrew@trop.in>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal utils serializers ini)
|
||||
#:use-module (ice-9 match)
|
||||
#:use-module (ice-9 format)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (rosenthal utils serializers)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix diagnostics)
|
||||
#:use-module (guix ui)
|
||||
#:use-module (gnu services configuration)
|
||||
#:export (ini-serialize
|
||||
ini-print
|
||||
ini-merge
|
||||
ini-append
|
||||
|
||||
serialize-ini-config
|
||||
ini-config?))
|
||||
|
||||
(define ini-config? list?)
|
||||
|
||||
(define sample-ini
|
||||
`((global ((daemon)
|
||||
(log . file)))
|
||||
(http ((host . 127.0.0.1)
|
||||
(port . 1234)))))
|
||||
|
||||
(define (format-ini-section section)
|
||||
(match section
|
||||
('global "")
|
||||
(name (format #f "[~a]\n" (symbol->string name)))))
|
||||
|
||||
(define* (ini-serialize
|
||||
config
|
||||
#:key
|
||||
(equal-string " = ")
|
||||
(format-ini-section format-ini-section))
|
||||
"For global properties use global section, the properties will be added to the
|
||||
beginning of the list before any section, this behavior can be adjusted with
|
||||
FORMAT-INI-SECTION argument.
|
||||
|
||||
@lisp
|
||||
`((global ((daemon)
|
||||
(log . file)))
|
||||
(http ((host . 127.0.0.1)
|
||||
(port . 1234))))
|
||||
@end lisp
|
||||
|
||||
would yeld
|
||||
|
||||
@example
|
||||
@end example
|
||||
"
|
||||
(define (serialize-ini-term term)
|
||||
(match term
|
||||
(#t "true")
|
||||
(#f "false")
|
||||
((? symbol? e) (symbol->string e))
|
||||
((? number? e) (number->string e))
|
||||
((? string? e) (object->string e))
|
||||
((lst ...)
|
||||
(raise (formatted-message
|
||||
(G_ "INI term should be a non-list value (string, \
|
||||
boolean, number, symbol, or gexp). Provided term is:\n ~a") lst)))
|
||||
(e e)))
|
||||
|
||||
(define (serialize-ini-properties properties)
|
||||
(unless (alist? properties)
|
||||
(raise (formatted-message
|
||||
(G_ "INI properties should be an alist, \
|
||||
but provided value is:\n ~a") properties)))
|
||||
(append-map
|
||||
(match-lambda
|
||||
((? gexp? e)
|
||||
(list e "\n"))
|
||||
((k)
|
||||
(list (serialize-ini-term k) equal-string "\n"))
|
||||
((k . v)
|
||||
(list (serialize-ini-term k) equal-string
|
||||
(serialize-ini-term v) "\n")))
|
||||
properties))
|
||||
|
||||
(define (serialize-ini-section section)
|
||||
(match section
|
||||
((name properties)
|
||||
(append
|
||||
(list (format-ini-section name))
|
||||
(serialize-ini-properties properties)))
|
||||
(e
|
||||
(raise (formatted-message
|
||||
(G_ "INI section should be a list containing a section name as \
|
||||
the first element and alist of properties as the second, but provided value \
|
||||
is:\n~a") e)))))
|
||||
|
||||
;; TODO: serialize global section before all other sections.
|
||||
(append-map
|
||||
(lambda (expr)
|
||||
(append
|
||||
(match expr
|
||||
((? gexp? e) (list e))
|
||||
(e (serialize-ini-section e)))
|
||||
(list "\n")))
|
||||
config))
|
||||
|
||||
(define (ini-merge ini1 ini2)
|
||||
"Combine to INIs. Naive quadratic implementation, which can be rediculously
|
||||
slow."
|
||||
(define keys-to-merge
|
||||
(fold
|
||||
(match-lambda*
|
||||
(((k v) acc) (if (assoc-ref ini2 k) (cons k acc) acc))
|
||||
(((? gexp? e) acc) acc))
|
||||
'() ini1))
|
||||
|
||||
(define enriched-ini1
|
||||
(fold-right
|
||||
(match-lambda*
|
||||
(((k v) acc)
|
||||
(cons
|
||||
(cons k (list (append v (car (or (assoc-ref ini2 k) '(()))))))
|
||||
acc))
|
||||
(((? gexp? e) acc) (cons e acc)))
|
||||
'()
|
||||
ini1))
|
||||
|
||||
(define stripped-ini2
|
||||
(remove (match-lambda
|
||||
((k . v) (memq k keys-to-merge))
|
||||
(e #f))
|
||||
ini2))
|
||||
(append enriched-ini1 stripped-ini2))
|
||||
|
||||
(define (ini-append x acc)
|
||||
(ini-merge acc x))
|
||||
|
||||
(define serialize-ini-config ini-serialize)
|
||||
;; (display
|
||||
;; (merge-ini
|
||||
;; '((section1 ((k1 . v1)))
|
||||
;; (section2 ((k4 . v4))))
|
||||
;; '((section1 ((k2 . v2)
|
||||
;; (k3 . v3)))
|
||||
;; (section3 ((k5 . v5))))))
|
||||
|
||||
;; (cdr '(a ((k . v) (k2 . v2))))
|
||||
|
||||
(define (ini-print ini)
|
||||
"Prints generated INI, useful for debugging."
|
||||
(display (apply string-append (ini-serialize ini))))
|
||||
@@ -0,0 +1,153 @@
|
||||
;;; SPDX-FileCopyrightText: Copyright © 2023 Miguel Ángel Moreno <mail@migalmoreno.com>
|
||||
;;;
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
(define-module (rosenthal utils serializers yaml)
|
||||
#:use-module (rosenthal utils serializers)
|
||||
#:use-module (gnu home services utils)
|
||||
#:use-module (gnu services configuration)
|
||||
#:use-module (guix diagnostics)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix ui)
|
||||
#:use-module (ice-9 match)
|
||||
#:use-module (ice-9 format)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (srfi srfi-43)
|
||||
#:export (yaml-print
|
||||
yaml-config?
|
||||
yaml-serialize
|
||||
|
||||
serialize-yaml-term
|
||||
serialize-yaml-element
|
||||
serialize-yaml-config))
|
||||
|
||||
(define yaml-config? list?)
|
||||
|
||||
(define (yaml-term? t)
|
||||
(fold (lambda (x acc) (or acc (x t)))
|
||||
#f
|
||||
(list boolean? symbol? number? string? file-like? gexp?)))
|
||||
|
||||
(define (serialize-yaml-string v)
|
||||
(format #f "~s" v))
|
||||
|
||||
(define (serialize-yaml-symbol v)
|
||||
(format #f "~a" v))
|
||||
|
||||
(define (serialize-yaml-term term)
|
||||
(match term
|
||||
((? boolean? v) (if v "true" "false"))
|
||||
((? number? v) (number->string v))
|
||||
((? string? v) (serialize-yaml-string v))
|
||||
((? symbol? v) (serialize-yaml-symbol v))
|
||||
((or (? gexp? v)
|
||||
(? file-like? v))
|
||||
v)
|
||||
(v (raise (formatted-message
|
||||
(G_ "\
|
||||
YAML term should be boolean, number, string, symbol, or gexp. Provided term
|
||||
is:\n ~a") v)))))
|
||||
|
||||
(define (serialize-yaml-key k)
|
||||
(list
|
||||
(cond
|
||||
((symbol? k) (serialize-yaml-symbol k))
|
||||
((string? k) (serialize-yaml-string k))
|
||||
(else (raise (formatted-message
|
||||
(G_ "\
|
||||
YAML key should be symbol or string. Provided key is:\n ~a")
|
||||
k))))))
|
||||
|
||||
(define (serialize-yaml-newline pretty?)
|
||||
(if pretty? (list "\n") '()))
|
||||
|
||||
(define (serialize-yaml-space pretty?)
|
||||
(if pretty? (list " ") '()))
|
||||
|
||||
(define (serialize-yaml-indentation level pretty?)
|
||||
(if pretty?
|
||||
(list (format #f "~v_" (- (* 2 level) 2)))
|
||||
'()))
|
||||
|
||||
(define (serialize-yaml-vector v level pretty?)
|
||||
(append
|
||||
(serialize-yaml-newline pretty?)
|
||||
(vector-fold
|
||||
(lambda (i acc e)
|
||||
(append acc
|
||||
(if (> i 0)
|
||||
(serialize-yaml-newline pretty?)
|
||||
'())
|
||||
(serialize-yaml-indentation (1+ level) pretty?)
|
||||
(list "- ")
|
||||
(match e
|
||||
((? alist? e)
|
||||
(serialize-yaml-vector-alist e (+ 1 level) pretty?))
|
||||
(_ (serialize-yaml-element e (1+ level) pretty?)))))
|
||||
'() v)))
|
||||
|
||||
(define (serialize-yaml-list v pretty?)
|
||||
(append
|
||||
(list "[")
|
||||
(interpose
|
||||
(append-map
|
||||
(lambda (x)
|
||||
(serialize-yaml-element x 0 pretty?))
|
||||
v)
|
||||
", ")
|
||||
(list "]")))
|
||||
|
||||
(define (serialize-yaml-pair v level pretty?)
|
||||
(append
|
||||
(serialize-yaml-indentation level pretty?)
|
||||
(serialize-yaml-key (car v))
|
||||
(list ":")
|
||||
(serialize-yaml-space pretty?)
|
||||
(if (alist? (cdr v))
|
||||
(serialize-yaml-newline pretty?)
|
||||
(list ""))
|
||||
(serialize-yaml-element (cdr v) level pretty?)))
|
||||
|
||||
(define (serialize-yaml-alist v level pretty?)
|
||||
(append
|
||||
(serialize-yaml-pair (car v) (1+ level) pretty?)
|
||||
(append-map
|
||||
(lambda (x)
|
||||
(append
|
||||
(serialize-yaml-newline pretty?)
|
||||
(serialize-yaml-pair x (1+ level) pretty?)))
|
||||
(cdr v))))
|
||||
|
||||
(define (serialize-yaml-vector-alist v level pretty?)
|
||||
(append
|
||||
(serialize-yaml-pair (car v) (- level (- level 1)) pretty?)
|
||||
(append-map
|
||||
(lambda (x)
|
||||
(append
|
||||
(serialize-yaml-newline pretty?)
|
||||
(serialize-yaml-pair x (1+ level) pretty?)))
|
||||
(cdr v))))
|
||||
|
||||
(define (serialize-yaml-element yaml level pretty?)
|
||||
(append
|
||||
(match yaml
|
||||
(() (list ""))
|
||||
((? yaml-term? v) (list (serialize-yaml-term v)))
|
||||
((? alist? v) (serialize-yaml-alist v level pretty?))
|
||||
((? list? v) (serialize-yaml-list v pretty?))
|
||||
((? vector? v) (serialize-yaml-vector v level pretty?))
|
||||
(e (throw 'yaml-invalid yaml)))))
|
||||
|
||||
(define (serialize-yaml-config f c)
|
||||
#~(apply string-append
|
||||
(list #$@(serialize-yaml-element c 0 #t))))
|
||||
|
||||
(define* (yaml-serialize config)
|
||||
"Returns a list of YAML strings which have to be concatenated. It supports
|
||||
gexps, file-likes, vectors -> arrays, alists -> dictionaries, etc."
|
||||
(serialize-yaml-config #f config))
|
||||
|
||||
(define* (yaml-print yaml #:key (pretty? #t))
|
||||
"Prints the generated YAML, useful for debugging purposes."
|
||||
(display (apply string-append
|
||||
(serialize-yaml-element yaml 0 pretty?))))
|
||||
@@ -0,0 +1,85 @@
|
||||
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
;;; Copyright © 2025 Hilton Chain <hako@ultrarare.space>
|
||||
|
||||
(define-module (rosenthal utils transformations)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (guix channels)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (gnu system)
|
||||
#:use-module (gnu services)
|
||||
#:use-module (gnu services base)
|
||||
#:use-module (rosenthal services file-systems)
|
||||
#:use-module (gnu packages package-management)
|
||||
#:use-module (gnu packages file-systems)
|
||||
#:export (rosenthal-transformation-guix
|
||||
rosenthal-transformation-zfs))
|
||||
|
||||
|
||||
(define* (rosenthal-transformation-guix #:key (substitutes? #t)
|
||||
(channel? #t)
|
||||
(guix-source? #f))
|
||||
(define %rosenthal-signing-key
|
||||
(plain-file "rosenthal.pub" "
|
||||
(public-key
|
||||
(ecc
|
||||
(curve Ed25519)
|
||||
(q #374EC58F5F2EC0412431723AF2D527AD626B049D657B5633AAAEBC694F3E33F9#)))"))
|
||||
|
||||
(define %rosenthal-channel
|
||||
(channel
|
||||
(name 'rosenthal)
|
||||
(url "https://codeberg.org/hako/rosenthal.git")
|
||||
(branch "trunk")
|
||||
(introduction
|
||||
(make-channel-introduction
|
||||
"7677db76330121a901604dfbad19077893865f35"
|
||||
(openpgp-fingerprint
|
||||
"13E7 6CD6 E649 C28C 3385 4DF5 5E5A A665 6149 17F7")))))
|
||||
|
||||
(lambda (os)
|
||||
(operating-system
|
||||
(inherit os)
|
||||
(services
|
||||
(cons* (simple-service 'guix-moe guix-service-type
|
||||
(guix-extension
|
||||
(authorized-keys
|
||||
(list %rosenthal-signing-key))
|
||||
(substitute-urls
|
||||
'("https://cache-cdn.guix.moe"))))
|
||||
|
||||
(modify-services (operating-system-user-services os)
|
||||
(guix-service-type
|
||||
config => (guix-configuration
|
||||
(inherit config)
|
||||
(channels
|
||||
(let ((configured-channels
|
||||
(guix-configuration-channels config)))
|
||||
(if channel?
|
||||
(cons %rosenthal-channel
|
||||
(or configured-channels
|
||||
%default-channels))
|
||||
configured-channels)))
|
||||
(guix
|
||||
(if guix-source?
|
||||
(guix-for-channels channels)
|
||||
(guix-configuration-guix config)))))))))))
|
||||
|
||||
;; NOTE: Booting from ZFS requires patching Guix.
|
||||
(define* (rosenthal-transformation-zfs #:key boot? (config (zfs-configuration)))
|
||||
(lambda (os)
|
||||
(operating-system
|
||||
(inherit os)
|
||||
(kernel-loadable-modules
|
||||
`(,@(if boot?
|
||||
`((,(package/inherit zfs
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments zfs)
|
||||
((#:linux _ #f) (operating-system-kernel os)))))
|
||||
"module"))
|
||||
'())
|
||||
,@(operating-system-kernel-loadable-modules os)))
|
||||
(services
|
||||
(cons* (service zfs-service-type config)
|
||||
(operating-system-user-services os))))))
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
# SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
|
||||
#
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
load_path="$(dirname "$(realpath "$0")")/modules"
|
||||
|
||||
export GUILE_LOAD_PATH="${load_path}${GUILE_LOAD_PATH:+:}${GUILE_LOAD_PATH}"
|
||||
export GUIX_PACKAGE_PATH="${load_path}${GUIX_PACKAGE_PATH:+:}${GUIX_PACKAGE_PATH}"
|
||||
|
||||
exec "$@"
|
||||
Reference in new issue
Block a user