mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
Compare commits
1168 Commits
release-20
...
release-22
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b372d7f8d5 | ||
|
|
f9edbedaf0 | ||
|
|
d6f3ba090e | ||
|
|
dd73caf55c | ||
|
|
7da74ff66d | ||
|
|
83110c2598 | ||
|
|
97b452d868 | ||
|
|
9154cd519a | ||
|
|
68163d27e9 | ||
|
|
74e0b590c0 | ||
|
|
b0be47978d | ||
|
|
07b0b43a92 | ||
|
|
86bb69b0b1 | ||
|
|
a7d3f51e9e | ||
|
|
71c6073ee0 | ||
|
|
550809881b | ||
|
|
2928097823 | ||
|
|
00efa2d4c2 | ||
|
|
2cb27c7911 | ||
|
|
65c47ced08 | ||
|
|
89a8ba0b5b | ||
|
|
6b8836ce6c | ||
|
|
2d5b55d23d | ||
|
|
2bfcc6be42 | ||
|
|
d965d248aa | ||
|
|
d977182704 | ||
|
|
0e8125916b | ||
|
|
06fbc3a480 | ||
|
|
7eee2b197a | ||
|
|
9ad9dfe371 | ||
|
|
44ca0df409 | ||
|
|
50cee5be70 | ||
|
|
3cd5c21b80 | ||
|
|
e704ef9ec7 | ||
|
|
3c3af4bbff | ||
|
|
32c336c767 | ||
|
|
6ee09246d9 | ||
|
|
3bf287ef12 | ||
|
|
c4c5ef1fa8 | ||
|
|
e006495c15 | ||
|
|
e66194675f | ||
|
|
6b71989c0d | ||
|
|
6d3912c6db | ||
|
|
8f26dec249 | ||
|
|
9cbe8a2888 | ||
|
|
e891b060e7 | ||
|
|
73dbcfbca6 | ||
|
|
f7641a3ff3 | ||
|
|
3ce1c4787a | ||
|
|
c3690701d1 | ||
|
|
433e8de330 | ||
|
|
c0f9cbcf93 | ||
|
|
948d1f8a5c | ||
|
|
5589b28e66 | ||
|
|
c94c9c342f | ||
|
|
fe85cc4c37 | ||
|
|
bc90de24d8 | ||
|
|
651db464dc | ||
|
|
6ce3493a3c | ||
|
|
d20e3d070c | ||
|
|
b0cf7245c4 | ||
|
|
886675991b | ||
|
|
d67776563e | ||
|
|
5dd3ce3f1e | ||
|
|
1ef0da3212 | ||
|
|
c5adf29545 | ||
|
|
989d4fa536 | ||
|
|
ccc9164b76 | ||
|
|
c728307482 | ||
|
|
b764068a50 | ||
|
|
9333581075 | ||
|
|
39c1e6704a | ||
|
|
f520832a47 | ||
|
|
916811c8f9 | ||
|
|
04e844090e | ||
|
|
183a62f356 | ||
|
|
824202b4c4 | ||
|
|
8957d53199 | ||
|
|
722e8d65d3 | ||
|
|
25344cb808 | ||
|
|
2464c21ab2 | ||
|
|
fad4e7c79c | ||
|
|
160025ca46 | ||
|
|
423211401c | ||
|
|
213a06295d | ||
|
|
f67649307d | ||
|
|
d3f21617ac | ||
|
|
32fe7d2ebb | ||
|
|
7dc4e4ebd7 | ||
|
|
186d9399f9 | ||
|
|
69d19b9839 | ||
|
|
c485669ca5 | ||
|
|
d1191c6d05 | ||
|
|
42f81ac107 | ||
|
|
e901c8d860 | ||
|
|
a50c0c6fe0 | ||
|
|
bc7432fbcc | ||
|
|
04f5399978 | ||
|
|
da3b8049fd | ||
|
|
86bc0e349f | ||
|
|
2ecb3ea990 | ||
|
|
8cbc6500df | ||
|
|
8eaa3ba56e | ||
|
|
618ab0f882 | ||
|
|
2d8e5a9934 | ||
|
|
5597b3a742 | ||
|
|
b37a909508 | ||
|
|
ebe6d2c747 | ||
|
|
e1f1160284 | ||
|
|
bd87a34bb4 | ||
|
|
3b5a8d3dc7 | ||
|
|
9fcae11ff2 | ||
|
|
be2cade373 | ||
|
|
8c297e1816 | ||
|
|
7fee13eb4c | ||
|
|
599e22b1c7 | ||
|
|
6427ae9578 | ||
|
|
1a8e35d2e5 | ||
|
|
e4e639dd4d | ||
|
|
a7f0cc2d7b | ||
|
|
7a3384c796 | ||
|
|
9727190b80 | ||
|
|
5c5a5b9b45 | ||
|
|
a053da0f22 | ||
|
|
e7be7c4688 | ||
|
|
864ff685fe | ||
|
|
9da6c0232e | ||
|
|
68ea28d330 | ||
|
|
28334988db | ||
|
|
6dc8a43f39 | ||
|
|
1f5ef2bb41 | ||
|
|
65b65ce5ef | ||
|
|
9e7394523e | ||
|
|
707cb75ed3 | ||
|
|
9b91709899 | ||
|
|
3eaadd82b8 | ||
|
|
de3758e31a | ||
|
|
bd83eab622 | ||
|
|
f17819f4f1 | ||
|
|
f5e4614c11 | ||
|
|
41790ba656 | ||
|
|
df79df8be1 | ||
|
|
22ef57a54c | ||
|
|
b4bfe3b2d9 | ||
|
|
9555918151 | ||
|
|
610b1d988c | ||
|
|
5427f3d1f0 | ||
|
|
b0247ceedc | ||
|
|
5408e27961 | ||
|
|
6745da6dce | ||
|
|
ebd7830814 | ||
|
|
60c6bfe322 | ||
|
|
9f7fe353b6 | ||
|
|
b92826d0c4 | ||
|
|
f9f4c8e1e7 | ||
|
|
4cfc0a1e02 | ||
|
|
6ec6b2e362 | ||
|
|
340ec22f6f | ||
|
|
2e41a1bab3 | ||
|
|
22113a3ae3 | ||
|
|
de94878b6b | ||
|
|
583a99f016 | ||
|
|
140aaed3df | ||
|
|
de079ec371 | ||
|
|
960c009ce0 | ||
|
|
66cc5c7ef9 | ||
|
|
f9a35cacdc | ||
|
|
7b512c94ff | ||
|
|
5bd66dc6cd | ||
|
|
d89bdff445 | ||
|
|
8e4220e6c6 | ||
|
|
375631f35b | ||
|
|
0884d6c6e4 | ||
|
|
5bb1f67568 | ||
|
|
3d3bbdfe95 | ||
|
|
4c8c1c9977 | ||
|
|
76fbb1b15e | ||
|
|
7bb4576f46 | ||
|
|
ae474885f7 | ||
|
|
c5b4177bda | ||
|
|
b382b59faf | ||
|
|
1d81e6295c | ||
|
|
353d21e108 | ||
|
|
8ea0e4d6d8 | ||
|
|
991ff35249 | ||
|
|
ee8e99add5 | ||
|
|
0160a0cef0 | ||
|
|
688e5c85b7 | ||
|
|
ff5133843c | ||
|
|
44dcad5604 | ||
|
|
8675cfa549 | ||
|
|
78f964347c | ||
|
|
324fedcf9f | ||
|
|
c1addfdad3 | ||
|
|
389f2b2037 | ||
|
|
f5e9879e74 | ||
|
|
d9e03b7f8c | ||
|
|
91f26e0b0e | ||
|
|
d8d9ff0b2d | ||
|
|
77648a07e4 | ||
|
|
d1c677ac25 | ||
|
|
7146638e9e | ||
|
|
0e2f7876d2 | ||
|
|
b13946438f | ||
|
|
119febc464 | ||
|
|
0b7fd187e2 | ||
|
|
dbed4c794d | ||
|
|
8419dfd39d | ||
|
|
a3b778e672 | ||
|
|
572f348a10 | ||
|
|
1d3380afba | ||
|
|
d86c189158 | ||
|
|
218cb3aee2 | ||
|
|
f91fb470bc | ||
|
|
f47611fb17 | ||
|
|
9cf40a43fc | ||
|
|
70d5929885 | ||
|
|
4a724cb84c | ||
|
|
30dda628bc | ||
|
|
64c745fe1c | ||
|
|
4c5106ed0f | ||
|
|
8385408c65 | ||
|
|
3b5330c80f | ||
|
|
2c94b9801f | ||
|
|
66d7007e43 | ||
|
|
241a375f49 | ||
|
|
602f2ce59c | ||
|
|
d6d600e76d | ||
|
|
d4081057e5 | ||
|
|
b8bb5f291a | ||
|
|
c5fc157554 | ||
|
|
1e66e035e1 | ||
|
|
45ef70cc73 | ||
|
|
43ea4c5123 | ||
|
|
6311f4adc3 | ||
|
|
177f1887d4 | ||
|
|
b908e61dfa | ||
|
|
0639aa34f1 | ||
|
|
c645cc9f82 | ||
|
|
f2b216c320 | ||
|
|
8d5b07fc83 | ||
|
|
8160b3b45b | ||
|
|
25a9948361 | ||
|
|
12cfcc1b9d | ||
|
|
ef990143b6 | ||
|
|
face4094d4 | ||
|
|
f2445620d1 | ||
|
|
3bf16c0fd1 | ||
|
|
be3adf9920 | ||
|
|
9550595502 | ||
|
|
0434f8e4ca | ||
|
|
0ca0b91088 | ||
|
|
72a135b093 | ||
|
|
1dbac84b84 | ||
|
|
f26946858e | ||
|
|
e0baf8ee0c | ||
|
|
da55d18ba2 | ||
|
|
223b9deead | ||
|
|
65bcfaccc5 | ||
|
|
fd047c84f7 | ||
|
|
e622bad163 | ||
|
|
06bb67ab24 | ||
|
|
77f1c7636a | ||
|
|
d059b9448a | ||
|
|
467617947d | ||
|
|
1ebbef8642 | ||
|
|
206ded407e | ||
|
|
ce563f5911 | ||
|
|
60b064249d | ||
|
|
931e610552 | ||
|
|
3c710201d5 | ||
|
|
3d8265c5ef | ||
|
|
ce8266dedc | ||
|
|
5197e5df7d | ||
|
|
931653b99f | ||
|
|
586ac1fd58 | ||
|
|
69e804839e | ||
|
|
2ff38c646f | ||
|
|
a0e7ffe7aa | ||
|
|
1de492f6f8 | ||
|
|
504d6de6a0 | ||
|
|
a9b027b826 | ||
|
|
68edbc7f28 | ||
|
|
1342f4a07c | ||
|
|
07dbd4c0dd | ||
|
|
87d30c1648 | ||
|
|
cd3dd2188c | ||
|
|
935ecea67d | ||
|
|
70824bb5c7 | ||
|
|
64ab7d6e8d | ||
|
|
2070389247 | ||
|
|
a3638db009 | ||
|
|
684e85d01d | ||
|
|
ac2287df5a | ||
|
|
1808cb66aa | ||
|
|
acad715f78 | ||
|
|
8f3e267051 | ||
|
|
bda2c80b4c | ||
|
|
64831f938b | ||
|
|
51ea4217f7 | ||
|
|
2c8489e57a | ||
|
|
9042c756fa | ||
|
|
d73ba6a534 | ||
|
|
e66f0ff69a | ||
|
|
94780dd888 | ||
|
|
02b15de8ad | ||
|
|
97fac4f282 | ||
|
|
e6869735d2 | ||
|
|
cb9f03d519 | ||
|
|
32a7da69dc | ||
|
|
273598f53e | ||
|
|
f735a8502b | ||
|
|
4293902b64 | ||
|
|
882bd8118b | ||
|
|
538343be86 | ||
|
|
4036f1a751 | ||
|
|
267462dfb3 | ||
|
|
c13ffa3ed4 | ||
|
|
ac722cddf4 | ||
|
|
0304f0f58b | ||
|
|
af828536ed | ||
|
|
5872aad1d0 | ||
|
|
d7b97de51a | ||
|
|
26858fc0db | ||
|
|
df6010551d | ||
|
|
f8b51be714 | ||
|
|
778af87a98 | ||
|
|
223a73c2ba | ||
|
|
09f3e67950 | ||
|
|
5997c43458 | ||
|
|
845aaaf4db | ||
|
|
6f025b3825 | ||
|
|
65a32578d9 | ||
|
|
93a69d0738 | ||
|
|
8ec13d33b1 | ||
|
|
8d38ca8868 | ||
|
|
742c6cb3e9 | ||
|
|
c2726860a2 | ||
|
|
5ac84ebeef | ||
|
|
f47001cec9 | ||
|
|
bb860e3e11 | ||
|
|
c82b8ac5ad | ||
|
|
620ed197f3 | ||
|
|
8ab155c61f | ||
|
|
2e473a7b09 | ||
|
|
0586d2d42a | ||
|
|
a640dddc9a | ||
|
|
7add9ce2e5 | ||
|
|
d49d68f419 | ||
|
|
92f58b6728 | ||
|
|
7da4e6680f | ||
|
|
e39a9d0103 | ||
|
|
f911ebbec9 | ||
|
|
55779b20cd | ||
|
|
47b3719f51 | ||
|
|
8a046f36eb | ||
|
|
3071ea205d | ||
|
|
e361373b5f | ||
|
|
3604a20b67 | ||
|
|
66ffa7a0a6 | ||
|
|
07b941f0c4 | ||
|
|
399a3dfeaf | ||
|
|
a985e711e8 | ||
|
|
3549f5d0f5 | ||
|
|
0382c5f75e | ||
|
|
cfab869fce | ||
|
|
38156bd4ed | ||
|
|
e1fab012e8 | ||
|
|
cf62e96bf7 | ||
|
|
9580f6c42a | ||
|
|
8db712a6a2 | ||
|
|
f5a44afa19 | ||
|
|
80583677e7 | ||
|
|
c607ae8671 | ||
|
|
888eac32bd | ||
|
|
d123fca83c | ||
|
|
0520e387dc | ||
|
|
b23bb05890 | ||
|
|
2f58d0a3de | ||
|
|
171702dd88 | ||
|
|
8afee75d0d | ||
|
|
ac94041153 | ||
|
|
b030278dc6 | ||
|
|
9970d23218 | ||
|
|
70c4696619 | ||
|
|
e2ebc3a3af | ||
|
|
0cf9dadf5b | ||
|
|
6c730bc054 | ||
|
|
48a1584d8b | ||
|
|
80b4360678 | ||
|
|
bbc5e0c1e1 | ||
|
|
64823066c2 | ||
|
|
835797f3a4 | ||
|
|
46dc2e5d9f | ||
|
|
57476b5d28 | ||
|
|
0fad959df8 | ||
|
|
e96fc6d8f9 | ||
|
|
7cf15b19a9 | ||
|
|
e2a85ac43f | ||
|
|
32e433d07d | ||
|
|
590da80ceb | ||
|
|
a4b0a3faa4 | ||
|
|
e01facc340 | ||
|
|
970b57fd3c | ||
|
|
8eb7c009f0 | ||
|
|
472e67d1bb | ||
|
|
8bdfa41b4e | ||
|
|
da92196a95 | ||
|
|
5d4327cff4 | ||
|
|
da1f6fab90 | ||
|
|
e6e19ea5a8 | ||
|
|
afe96e7433 | ||
|
|
abd221c4b3 | ||
|
|
4e6856397e | ||
|
|
87beebc7a2 | ||
|
|
d119cea376 | ||
|
|
541874f55d | ||
|
|
e58a7cb13d | ||
|
|
ea85f4b1fd | ||
|
|
2499b91692 | ||
|
|
1d90b6065a | ||
|
|
ccd00e3c93 | ||
|
|
c7a13f76a7 | ||
|
|
662350bee2 | ||
|
|
650cfe60f3 | ||
|
|
8f7d925503 | ||
|
|
1faefcded3 | ||
|
|
2248ea1831 | ||
|
|
1950eb878b | ||
|
|
0b1745b4ef | ||
|
|
838d40d61a | ||
|
|
69536af27e | ||
|
|
b3af91d293 | ||
|
|
0232fe1b75 | ||
|
|
4f4165a8b9 | ||
|
|
5b208b42b2 | ||
|
|
c859a5265a | ||
|
|
30082a623a | ||
|
|
5375afb2fb | ||
|
|
498c188e62 | ||
|
|
2116fe6b50 | ||
|
|
810e5f3613 | ||
|
|
2a7e247202 | ||
|
|
a3c18a60d5 | ||
|
|
50204cea94 | ||
|
|
23a9f9127c | ||
|
|
03b7495183 | ||
|
|
7c2ae0bdd2 | ||
|
|
44934a1a91 | ||
|
|
4160629af7 | ||
|
|
ae95406f86 | ||
|
|
54c2cf7fb8 | ||
|
|
37f0a161a0 | ||
|
|
be7f132a12 | ||
|
|
b784f588ee | ||
|
|
68cf4bef2e | ||
|
|
ec5c5ae9a8 | ||
|
|
e448c3c123 | ||
|
|
a2363ceb1d | ||
|
|
6d9d9294d0 | ||
|
|
85bbc6cc12 | ||
|
|
e2aa1f5986 | ||
|
|
1ca6293c8f | ||
|
|
63dccc4e60 | ||
|
|
11c0e5d188 | ||
|
|
1fa809f783 | ||
|
|
9d369c75ce | ||
|
|
933b6d97b4 | ||
|
|
184b0154f2 | ||
|
|
a52aed72c8 | ||
|
|
d30f46934d | ||
|
|
774d6e35a5 | ||
|
|
95d39e13a4 | ||
|
|
acf824c9ed | ||
|
|
418ae217dd | ||
|
|
fb939d1acf | ||
|
|
4e92ec84f9 | ||
|
|
aa6261bb96 | ||
|
|
8d3fe1366b | ||
|
|
24ed6e6d4d | ||
|
|
86248a2d5c | ||
|
|
cbc176010b | ||
|
|
93b52ce0bd | ||
|
|
990ca662c4 | ||
|
|
f206f94ac5 | ||
|
|
462d4a7abd | ||
|
|
192675b149 | ||
|
|
c47c350f65 | ||
|
|
e622c5d836 | ||
|
|
54b8b13a9b | ||
|
|
d469b9bf8a | ||
|
|
32da35f65b | ||
|
|
e8a68de7ab | ||
|
|
7eb5106548 | ||
|
|
c491331718 | ||
|
|
5e4f439e0c | ||
|
|
eccd704756 | ||
|
|
4d4c1f343b | ||
|
|
8cf13abffc | ||
|
|
b59752b9ff | ||
|
|
9bceb8292e | ||
|
|
60d2c9660b | ||
|
|
a69f3e9b03 | ||
|
|
f71d41ba36 | ||
|
|
94281669fd | ||
|
|
986cf41b3b | ||
|
|
46bba772f2 | ||
|
|
46978d2047 | ||
|
|
b2592ae67c | ||
|
|
1477eb1555 | ||
|
|
a5dd5d5f19 | ||
|
|
85f13acb81 | ||
|
|
d07df8d9a8 | ||
|
|
8a431023c0 | ||
|
|
5209ea0d8c | ||
|
|
204f9808d3 | ||
|
|
5a8b29bc7a | ||
|
|
8a5550aea3 | ||
|
|
f3be3cda6a | ||
|
|
05d655146b | ||
|
|
a90ddcd627 | ||
|
|
c751aeb19e | ||
|
|
2989c0f6b2 | ||
|
|
a2307ff6f3 | ||
|
|
65434ef33c | ||
|
|
95823b5639 | ||
|
|
a726f7e3e8 | ||
|
|
cf0fc744c2 | ||
|
|
5fb55d51e2 | ||
|
|
426ab2cf11 | ||
|
|
65e5b835a9 | ||
|
|
8e7a10602d | ||
|
|
5f00024e75 | ||
|
|
adaea605db | ||
|
|
7c0dc519e1 | ||
|
|
c2f151258a | ||
|
|
89bdef7994 | ||
|
|
cc3b979893 | ||
|
|
a5dcd2ac0a | ||
|
|
3d86640269 | ||
|
|
bc859aeed7 | ||
|
|
2f40cd05dc | ||
|
|
a3457d3f85 | ||
|
|
eeafec5103 | ||
|
|
04342bd7a2 | ||
|
|
c24c494e69 | ||
|
|
907e63250a | ||
|
|
eb4a1ad68f | ||
|
|
7a0a7d6427 | ||
|
|
6b1f56407b | ||
|
|
87d0fed9bc | ||
|
|
a95fd897f2 | ||
|
|
b1b55c983f | ||
|
|
5705ba1366 | ||
|
|
ec79a7d830 | ||
|
|
bad529983e | ||
|
|
c9dbe2847e | ||
|
|
0b197562ab | ||
|
|
48f2b381dd | ||
|
|
3b5ebdefd8 | ||
|
|
76c50cecf8 | ||
|
|
0fd86c66fe | ||
|
|
f15b151ca1 | ||
|
|
3b9c625b64 | ||
|
|
1b03a8ab7a | ||
|
|
02426bb52f | ||
|
|
7ec50b1f77 | ||
|
|
aef97988da | ||
|
|
679e07e32e | ||
|
|
3db6036775 | ||
|
|
8b44e81978 | ||
|
|
6c6f934f0b | ||
|
|
25e5a900de | ||
|
|
d8f9dcfbd3 | ||
|
|
78aa7cceff | ||
|
|
4108989d19 | ||
|
|
fd7c5e9346 | ||
|
|
1acbc5ad8b | ||
|
|
f97e921c94 | ||
|
|
42ba7b6304 | ||
|
|
c61fc1c288 | ||
|
|
3d9eb1cecd | ||
|
|
c1677de31a | ||
|
|
9b70b22948 | ||
|
|
ea5591d225 | ||
|
|
0c6180c714 | ||
|
|
2ff170d91c | ||
|
|
1fad70e995 | ||
|
|
0422d1f87f | ||
|
|
9bcad20013 | ||
|
|
3d46c011d2 | ||
|
|
543484d298 | ||
|
|
0ebed30a10 | ||
|
|
6fe3b539e0 | ||
|
|
fa73c3167e | ||
|
|
c7592b747b | ||
|
|
829e89a16f | ||
|
|
736581f113 | ||
|
|
78ff6b851c | ||
|
|
781d25b315 | ||
|
|
1aaa1a033b | ||
|
|
290a188dad | ||
|
|
f46972e466 | ||
|
|
fbb80207f3 | ||
|
|
0d58582887 | ||
|
|
de54d513c7 | ||
|
|
f23073f1da | ||
|
|
7c320a5325 | ||
|
|
9de77227d7 | ||
|
|
3ec7f6fb43 | ||
|
|
a28cf79a78 | ||
|
|
ea1794a798 | ||
|
|
579f2e8beb | ||
|
|
2889ee2363 | ||
|
|
dc2a4e4146 | ||
|
|
c27c8f49c0 | ||
|
|
18461b5dda | ||
|
|
81fc0c6fbf | ||
|
|
e28185a2c0 | ||
|
|
609370699f | ||
|
|
df931a59a5 | ||
|
|
c4c761ba55 | ||
|
|
c2aa831491 | ||
|
|
15ae861e1b | ||
|
|
1abd311eef | ||
|
|
c82bc787b8 | ||
|
|
a19f40d39d | ||
|
|
8a16d62e95 | ||
|
|
8230decb3f | ||
|
|
398c0b36a3 | ||
|
|
2452979efe | ||
|
|
d85bf67c48 | ||
|
|
5559ef0023 | ||
|
|
42915b78af | ||
|
|
05a3116091 | ||
|
|
a7c5b00d44 | ||
|
|
2dcd9eb021 | ||
|
|
c855cdde20 | ||
|
|
e785e67977 | ||
|
|
cbcb2976b6 | ||
|
|
3f12ce5f7d | ||
|
|
accfbdf215 | ||
|
|
0f5d93119c | ||
|
|
426830a174 | ||
|
|
f7a37ad0b6 | ||
|
|
520adafcb9 | ||
|
|
39c5c7397e | ||
|
|
be1ad30503 | ||
|
|
1e5c8e9bff | ||
|
|
2917ef23b3 | ||
|
|
c678162e20 | ||
|
|
7f416c9e2f | ||
|
|
f6f013f764 | ||
|
|
70c5b268e1 | ||
|
|
288faaa5a6 | ||
|
|
21590d40c1 | ||
|
|
2e1a5b53ec | ||
|
|
7523252f97 | ||
|
|
275f955db9 | ||
|
|
34327e067f | ||
|
|
e377556818 | ||
|
|
abe12a4bad | ||
|
|
3ccddfc48d | ||
|
|
71902bc913 | ||
|
|
134c5ccdd3 | ||
|
|
e28a720ce9 | ||
|
|
78afc2fa74 | ||
|
|
0f72441821 | ||
|
|
7e30aec282 | ||
|
|
bb72555852 | ||
|
|
bc0acdad8c | ||
|
|
cf4866d218 | ||
|
|
158bc59398 | ||
|
|
9282dbc1fa | ||
|
|
46a69810cb | ||
|
|
da8a78eec9 | ||
|
|
406eeec0b9 | ||
|
|
8278c14f5f | ||
|
|
cfe82d9f44 | ||
|
|
3e4fedc1d9 | ||
|
|
91155a98ed | ||
|
|
b5d738b5a3 | ||
|
|
5961c64e03 | ||
|
|
0d110a0936 | ||
|
|
d244ca125f | ||
|
|
309808afbc | ||
|
|
13e00b70a4 | ||
|
|
223a4a17a4 | ||
|
|
b88c863b40 | ||
|
|
b22004bf1f | ||
|
|
b78b584368 | ||
|
|
4fa1ba72a3 | ||
|
|
bd11e2c5e6 | ||
|
|
468c461139 | ||
|
|
a77a01d1f6 | ||
|
|
83f5ce2aec | ||
|
|
0b47ded208 | ||
|
|
32285d8fe6 | ||
|
|
82c92a18ba | ||
|
|
fd2f746016 | ||
|
|
d9fe208f3c | ||
|
|
60ebc273c9 | ||
|
|
854406680b | ||
|
|
8bbade4b01 | ||
|
|
c100bd0c4b | ||
|
|
592da767bd | ||
|
|
80d23ee06c | ||
|
|
af2007bb77 | ||
|
|
1719495bdf | ||
|
|
e4df31dcea | ||
|
|
88f9b33384 | ||
|
|
9b04ff5e3b | ||
|
|
81ec2aed8a | ||
|
|
099cbcf13e | ||
|
|
179ce0aacf | ||
|
|
e0a87d75e9 | ||
|
|
095f3e32ae | ||
|
|
f15cd0f087 | ||
|
|
0f3dfc94ef | ||
|
|
d5151186ac | ||
|
|
8f1d8c2ef1 | ||
|
|
ad05443e04 | ||
|
|
66d9dbfa36 | ||
|
|
52e84a040e | ||
|
|
959217e51d | ||
|
|
cb09a968e9 | ||
|
|
b0651cc217 | ||
|
|
eee807560b | ||
|
|
58aa667e28 | ||
|
|
821299e90e | ||
|
|
4320399a3e | ||
|
|
7cb118c9d2 | ||
|
|
371576cdc2 | ||
|
|
562449b503 | ||
|
|
514acaebb9 | ||
|
|
4b964d2f7b | ||
|
|
2cfea84e6f | ||
|
|
5199bc841a | ||
|
|
208e310e94 | ||
|
|
039f786e60 | ||
|
|
275f39611d | ||
|
|
0dab813748 | ||
|
|
5e46262cb1 | ||
|
|
2952168ed5 | ||
|
|
bd747c5a53 | ||
|
|
21a2ff4496 | ||
|
|
61ca2fc1c0 | ||
|
|
33db7cc6a6 | ||
|
|
f637e145d7 | ||
|
|
521a03d8bf | ||
|
|
84d54402a5 | ||
|
|
2cf19d1d98 | ||
|
|
9029fd2b9d | ||
|
|
f6d1cad6ba | ||
|
|
c5b3069145 | ||
|
|
4367119ca3 | ||
|
|
bf6b85136b | ||
|
|
1a6df903e3 | ||
|
|
49a03303e1 | ||
|
|
a5c609b4b1 | ||
|
|
ec260995e2 | ||
|
|
72394f6d6b | ||
|
|
d11afee973 | ||
|
|
5569770d1e | ||
|
|
8d68dbd144 | ||
|
|
7ef3db3730 | ||
|
|
ad0fc085c7 | ||
|
|
763b1a1c55 | ||
|
|
5ed3a41afa | ||
|
|
2c3a968f57 | ||
|
|
e60dca7bb3 | ||
|
|
447f80f676 | ||
|
|
e4553546cc | ||
|
|
7226c2db46 | ||
|
|
6eb88173e9 | ||
|
|
72f3bc6fa4 | ||
|
|
654d82f888 | ||
|
|
a965b097b1 | ||
|
|
a3d691c053 | ||
|
|
d819e0741a | ||
|
|
479e26dc8c | ||
|
|
3d93e1e802 | ||
|
|
604561ba9a | ||
|
|
c049a09d1a | ||
|
|
a4a8307897 | ||
|
|
a57ef9dad1 | ||
|
|
5515ec99cc | ||
|
|
2c4234cb79 | ||
|
|
59be1f4983 | ||
|
|
b0d769691c | ||
|
|
29ea37374d | ||
|
|
d490797179 | ||
|
|
ab6517d34a | ||
|
|
7f976da068 | ||
|
|
7c19bcb822 | ||
|
|
5f6364fc28 | ||
|
|
2272fc312d | ||
|
|
e08c696524 | ||
|
|
ae8cb242f2 | ||
|
|
47ad3655ec | ||
|
|
f6f6990fc8 | ||
|
|
addc78bea0 | ||
|
|
0423a7b40c | ||
|
|
996b439739 | ||
|
|
cc6909d407 | ||
|
|
784da32958 | ||
|
|
6c984bd675 | ||
|
|
ddeeb031fd | ||
|
|
41101d0e62 | ||
|
|
fa483b82ab | ||
|
|
d7e089699a | ||
|
|
2b75633b2c | ||
|
|
41903a14b0 | ||
|
|
82b06103ae | ||
|
|
5f433eb164 | ||
|
|
1617e56c2f | ||
|
|
c476cc61b2 | ||
|
|
f56a087cbc | ||
|
|
775cb20bd4 | ||
|
|
9e3c402972 | ||
|
|
4971b9cad0 | ||
|
|
3ab254aff4 | ||
|
|
9ed7a73ae2 | ||
|
|
ae636c09f4 | ||
|
|
2c9fe368c1 | ||
|
|
d7d7bbbf20 | ||
|
|
06ee8ec8df | ||
|
|
97d183e2e4 | ||
|
|
ac319fd314 | ||
|
|
7df6656b11 | ||
|
|
9ad0024d4d | ||
|
|
3f6cb409ca | ||
|
|
5b08b33e8f | ||
|
|
9b7a90daa1 | ||
|
|
85d67b0a6e | ||
|
|
dc4337d9fe | ||
|
|
a17bc3217f | ||
|
|
2aeaf65e8f | ||
|
|
f4998f0adc | ||
|
|
8d3b273afe | ||
|
|
8eee5f5272 | ||
|
|
0ada50fc9c | ||
|
|
7e2b1a42aa | ||
|
|
ab0e6c3e0e | ||
|
|
21ac4c499b | ||
|
|
b42fce7aaa | ||
|
|
49864a4370 | ||
|
|
762f860cfb | ||
|
|
04955ca970 | ||
|
|
cd11c02c28 | ||
|
|
a73e619377 | ||
|
|
dc1b6b8349 | ||
|
|
e70524cd2b | ||
|
|
2f6d5c90f4 | ||
|
|
6d9bff77ed | ||
|
|
d04e52b0c0 | ||
|
|
3aa479d551 | ||
|
|
a01fe9f81e | ||
|
|
6cd92c643a | ||
|
|
5a19e0ea9c | ||
|
|
63af2d3e4c | ||
|
|
e92f5bb79e | ||
|
|
1e8d0beae4 | ||
|
|
9b39fd7eb4 | ||
|
|
be0e73a308 | ||
|
|
e0f2949c98 | ||
|
|
1375fd4a03 | ||
|
|
b6613a8544 | ||
|
|
c982c19f53 | ||
|
|
4ed6705b0f | ||
|
|
25bf3d7953 | ||
|
|
fb50102daf | ||
|
|
666eee4f72 | ||
|
|
42847469b3 | ||
|
|
aa36e2d6b4 | ||
|
|
06a98ba0fd | ||
|
|
f74dc9c70b | ||
|
|
9424f31f86 | ||
|
|
3ffe2a4cdf | ||
|
|
afb5fd962c | ||
|
|
7591c8041d | ||
|
|
5060262b79 | ||
|
|
ac82c036d8 | ||
|
|
e9ed9c2e11 | ||
|
|
5eb199e937 | ||
|
|
dba802c1d9 | ||
|
|
e4c55ed4e6 | ||
|
|
19d95258ac | ||
|
|
5c1415d67f | ||
|
|
45f9cb06a9 | ||
|
|
c12d53dd7c | ||
|
|
d3cdabb5c9 | ||
|
|
c7e79b5337 | ||
|
|
95da56b783 | ||
|
|
30102ea9e5 | ||
|
|
d6bbd02e95 | ||
|
|
b917624670 | ||
|
|
cb227dc6c2 | ||
|
|
2a4ab0d891 | ||
|
|
9e253a8c30 | ||
|
|
5573c10ea4 | ||
|
|
0e329cee4c | ||
|
|
d2aaeac42c | ||
|
|
07ad6a4f76 | ||
|
|
ab64dc3249 | ||
|
|
3591cd2b3b | ||
|
|
0e6c61a440 | ||
|
|
ddf35436b7 | ||
|
|
b840707a87 | ||
|
|
90493027e3 | ||
|
|
64607f58b7 | ||
|
|
4f70f49cec | ||
|
|
82ab1ad467 | ||
|
|
3d18912f5a | ||
|
|
b449cb77b1 | ||
|
|
cced902dda | ||
|
|
91450f23ce | ||
|
|
ff616b2734 | ||
|
|
73ecbd3722 | ||
|
|
3612ca58e8 | ||
|
|
f9e45390de | ||
|
|
adbabcd0a0 | ||
|
|
e9b7d12e06 | ||
|
|
794d08a1d8 | ||
|
|
b0688a631b | ||
|
|
6a471f1b11 | ||
|
|
01ec2aaefe | ||
|
|
77188bcd6e | ||
|
|
23769994e8 | ||
|
|
3b799f6ea4 | ||
|
|
7d765d8f46 | ||
|
|
15a2953c81 | ||
|
|
e42e147b58 | ||
|
|
4896c50074 | ||
|
|
b2dec35b86 | ||
|
|
ff959fd49a | ||
|
|
86944b0fb1 | ||
|
|
30355f8ee6 | ||
|
|
f298705ae4 | ||
|
|
90dd375eba | ||
|
|
64c5228c08 | ||
|
|
9ffb206050 | ||
|
|
e0ee5068dd | ||
|
|
225bf275ba | ||
|
|
cdc774f337 | ||
|
|
ca7868dc29 | ||
|
|
2f857761d0 | ||
|
|
5709b5f953 | ||
|
|
19fc0917c0 | ||
|
|
614a5b55bf | ||
|
|
2eed138026 | ||
|
|
5e6f09795c | ||
|
|
d57c59e7cb | ||
|
|
137a584e22 | ||
|
|
55ef8d3a10 | ||
|
|
5ae7817dc5 | ||
|
|
4727b0543d | ||
|
|
4edc2091e0 | ||
|
|
2d421b30ad | ||
|
|
b706d101eb | ||
|
|
19ebab97e8 | ||
|
|
a759143ae1 | ||
|
|
a513fbc395 | ||
|
|
c0ba8c526d | ||
|
|
18ad12d52b | ||
|
|
d437baa41c | ||
|
|
865e404826 | ||
|
|
d4278212b5 | ||
|
|
b4e3f069f1 | ||
|
|
827636c619 | ||
|
|
c2c26120d7 | ||
|
|
839645caf3 | ||
|
|
e00dd0d7d2 | ||
|
|
26fa84ebce | ||
|
|
db00b39a9a | ||
|
|
0c236e13bc | ||
|
|
1e7e8ac75d | ||
|
|
6aa6556bca | ||
|
|
ebbbd4f2b5 | ||
|
|
348b5a5a69 | ||
|
|
0a6227d667 | ||
|
|
7cf69a3b8d | ||
|
|
073710d7f2 | ||
|
|
f7159a0f76 | ||
|
|
18930aaf75 | ||
|
|
5c5d562266 | ||
|
|
91418d3e57 | ||
|
|
f567ea8228 | ||
|
|
17a10287d2 | ||
|
|
56f5f41ed4 | ||
|
|
be56b6f2c5 | ||
|
|
c12897e8e1 | ||
|
|
4fd4066d2f | ||
|
|
7fcfd9b565 | ||
|
|
3a16ebdf72 | ||
|
|
e5a260a569 | ||
|
|
33edf558a0 | ||
|
|
cc60c22c69 | ||
|
|
25a6a6d298 | ||
|
|
6e3d93d7cc | ||
|
|
ad04237d51 | ||
|
|
447ed0fbcb | ||
|
|
90223cf3eb | ||
|
|
cbf0667037 | ||
|
|
c1761366b5 | ||
|
|
7b30fc9922 | ||
|
|
fedfd430f9 | ||
|
|
ddcd476603 | ||
|
|
f30b62a74d | ||
|
|
f9b5172d95 | ||
|
|
de1fa8defb | ||
|
|
6245dd11cf | ||
|
|
ffbc3819e4 | ||
|
|
920ea74afe | ||
|
|
b42d987ad9 | ||
|
|
07f6c6481e | ||
|
|
1ee1835a3e | ||
|
|
42bb553544 | ||
|
|
19c7d4e29f | ||
|
|
a4e146693e | ||
|
|
040ea28e44 | ||
|
|
57a7e5e2c5 | ||
|
|
5fbb33cff5 | ||
|
|
abc9d96d19 | ||
|
|
73559e0dbc | ||
|
|
0e2dc4be30 | ||
|
|
39e4991856 | ||
|
|
69e2693342 | ||
|
|
ddee030dc7 | ||
|
|
e72e241d7a | ||
|
|
9068ff292c | ||
|
|
f45c7000d5 | ||
|
|
aa479b0124 | ||
|
|
3327cbe1f9 | ||
|
|
fb9bf032fb | ||
|
|
e7b1491fb8 | ||
|
|
0933fb8765 | ||
|
|
7582090eb0 | ||
|
|
21952f1cab | ||
|
|
029767ca63 | ||
|
|
aa9affb53f | ||
|
|
82d6ba7003 | ||
|
|
eb3a0342a8 | ||
|
|
2b7a73071a | ||
|
|
da92360208 | ||
|
|
55030c8302 | ||
|
|
2e795f3efd | ||
|
|
1ee1d01daa | ||
|
|
87e2ec341b | ||
|
|
e6f2687a83 | ||
|
|
b220d5c446 | ||
|
|
88e05a5472 | ||
|
|
d8dd2a09b0 | ||
|
|
ef4370bedc | ||
|
|
bdee1be7b3 | ||
|
|
dd6ee694df | ||
|
|
6dfa9ef85c | ||
|
|
fc87ac92af | ||
|
|
d420287583 | ||
|
|
46a750f94f | ||
|
|
63d5d28db6 | ||
|
|
22ecd0e568 | ||
|
|
3f2f7f8efa | ||
|
|
9dad146639 | ||
|
|
bbb6d30001 | ||
|
|
0fa2b16a07 | ||
|
|
df7d81b0b3 | ||
|
|
98d030f723 | ||
|
|
7313258b45 | ||
|
|
db88b625f9 | ||
|
|
7de0d07dd9 | ||
|
|
6b15b03898 | ||
|
|
c137866bd7 | ||
|
|
3d634914ce | ||
|
|
e44faef21c | ||
|
|
6f7074d21d | ||
|
|
9a12cd7e81 | ||
|
|
08fc1586c0 | ||
|
|
4e86d65aee | ||
|
|
2c0e3f61da | ||
|
|
5280360d6c | ||
|
|
c33b1777b6 | ||
|
|
b0c8727286 | ||
|
|
6f5fa6350d | ||
|
|
9d680ec662 | ||
|
|
7e80e034cc | ||
|
|
8f24ed4c7f | ||
|
|
3fe2a57b95 | ||
|
|
8127799f79 | ||
|
|
4b772fd698 | ||
|
|
65d0e2d241 | ||
|
|
d62bdaf938 | ||
|
|
45e3b0ce0e | ||
|
|
cc89be5a30 | ||
|
|
e8358125d9 | ||
|
|
cb1ed0d2f3 | ||
|
|
32371301d3 | ||
|
|
cf5dad76c1 | ||
|
|
a361541c10 | ||
|
|
b9597e5774 | ||
|
|
68dfc86173 | ||
|
|
73506f947c | ||
|
|
f0e6396b78 | ||
|
|
6acc6bc651 | ||
|
|
f6fd7e3fa4 | ||
|
|
05448dcedb | ||
|
|
374649a15b | ||
|
|
118b36bf45 | ||
|
|
3e218f2600 | ||
|
|
f4b5ae026c | ||
|
|
9d53afb709 | ||
|
|
4dedfcfd95 | ||
|
|
8e0c1c55fb | ||
|
|
99f0074362 | ||
|
|
5263fe4594 | ||
|
|
cd86c2638b | ||
|
|
bcbf09a202 | ||
|
|
ca7fd5a643 | ||
|
|
3627ec4de5 | ||
|
|
2901044520 | ||
|
|
cb136f37c7 | ||
|
|
76de0632ac | ||
|
|
8b3fca4ec5 | ||
|
|
2b1892e646 | ||
|
|
a1162e04b3 | ||
|
|
e87bccabc3 | ||
|
|
1a7f190cb9 | ||
|
|
66a68b4a58 | ||
|
|
6dc8de259a | ||
|
|
708cb61e82 | ||
|
|
b6ed605d4a | ||
|
|
6739d8bb50 | ||
|
|
4f0b0d78af | ||
|
|
9d775bad07 | ||
|
|
e6a58a7e71 | ||
|
|
e3828769e8 | ||
|
|
275d1b5212 | ||
|
|
aaa5329d39 | ||
|
|
005ea6cc18 | ||
|
|
0654364426 | ||
|
|
0027b0e76b | ||
|
|
33407189c1 | ||
|
|
44f9d68d8c | ||
|
|
c1faa848c5 | ||
|
|
c6263347de | ||
|
|
a3a0f1289a | ||
|
|
7b6ebf2785 | ||
|
|
6dc68b1d16 | ||
|
|
99b75f99df | ||
|
|
964f698095 | ||
|
|
4f20ee61c2 | ||
|
|
9e01441c5c | ||
|
|
9fe15dc83b | ||
|
|
b9b8a42fda | ||
|
|
b04aa56503 | ||
|
|
cde1d33e61 | ||
|
|
b3fdbfdf42 | ||
|
|
f3372bf982 | ||
|
|
234de0270a | ||
|
|
9c14bbe988 | ||
|
|
7c3c64208e | ||
|
|
b5e7817de2 | ||
|
|
fe849640ad | ||
|
|
fd79015c0f | ||
|
|
4cc1b77c3f | ||
|
|
9e9d8ffc7c | ||
|
|
faca77d77d | ||
|
|
ef72617c4a |
350
.github/CODEOWNERS
vendored
350
.github/CODEOWNERS
vendored
@@ -2,9 +2,24 @@
|
||||
|
||||
/flake.nix @bqv @kisik21
|
||||
|
||||
Makefile @thiagokokada
|
||||
|
||||
/modules/config/home-cursor.nix @polykernel @league
|
||||
|
||||
/modules/config/i18n.nix @midchildan
|
||||
/tests/modules/config/i18n @midchildan
|
||||
|
||||
/modules/home-environment.nix @rycee
|
||||
|
||||
/modules/misc/dconf.nix @gnidorah @rycee
|
||||
/modules/i18n/input-method @Kranzes
|
||||
/tests/modules/i18n/input-method @Kranzes
|
||||
|
||||
/modules/launchd @midchildan
|
||||
|
||||
/modules/misc/dconf.nix @rycee
|
||||
|
||||
/modules/misc/editorconfig.nix @loicreynier
|
||||
/test/modules/misc/editorconfig @loicreynier
|
||||
|
||||
/modules/misc/fontconfig.nix @rycee
|
||||
/tests/modules/misc/fontconfig @rycee
|
||||
@@ -13,6 +28,11 @@
|
||||
|
||||
/modules/misc/news.nix @rycee
|
||||
|
||||
/modules/misc/nix.nix @polykernel
|
||||
/tests/modules/misc/nix @polykernel
|
||||
|
||||
/modules/misc/nixpkgs-disabled.nix @thiagokokada
|
||||
|
||||
/modules/misc/numlock.nix @evanjs
|
||||
/tests/modules/misc/numlock @evanjs
|
||||
|
||||
@@ -31,73 +51,185 @@
|
||||
|
||||
/modules/misc/xdg-user-dirs.nix @pacien
|
||||
|
||||
/modules/misc/xdg-system-dirs.nix @tadfisher
|
||||
/tests/modules/misc/xdg/system-dirs.nix @tadfisher
|
||||
|
||||
/modules/misc/xdg-desktop-entries.nix @cwyc
|
||||
/tests/modules/misc/xdg/desktop-entries.nix @cwyc
|
||||
/tests/modules/misc/xdg/desktop-full-expected.desktop @cwyc
|
||||
/tests/modules/misc/xdg/desktop-min-expected.desktop @cwyc
|
||||
|
||||
/modules/misc/xfconf.nix @chuangzhu
|
||||
|
||||
/modules/programs/aerc.nix @lukasngl
|
||||
/modules/programs/aerc-accounts.nix @lukasngl
|
||||
/tests/modules/programs/aerc @lukasngl
|
||||
|
||||
/modules/programs/aria2.nix @JustinLovinger
|
||||
|
||||
/modules/programs/autojump.nix @evanjs
|
||||
/tests/modules/programs/autojump @evanjs
|
||||
|
||||
/modules/programs/atuin.nix @hawkw
|
||||
/tests/modules/programs/atuin @hawkw
|
||||
|
||||
/modules/programs/autorandr.nix @uvNikita
|
||||
|
||||
/modules/programs/bash.nix @rycee
|
||||
|
||||
/modules/programs/bashmount.nix @AndersonTorres
|
||||
|
||||
/modules/programs/bat.nix @marsam
|
||||
|
||||
/modules/programs/beets.nix @rycee
|
||||
|
||||
/modules/programs/broot.nix @aheaume
|
||||
/modules/programs/bottom.nix @polykernel
|
||||
/tests/modules/programs/bottom @polykernel
|
||||
|
||||
/modules/programs/broot.nix @aheaume @dermetfan
|
||||
|
||||
/modules/programs/btop.nix @GaetanLepage
|
||||
/tests/modules/programs/btop.nix @GaetanLepage
|
||||
|
||||
/modules/programs/dircolors.nix @JustinLovinger
|
||||
|
||||
/modules/programs/direnv.nix @rycee
|
||||
|
||||
/modules/programs/discocss.nix @Kranzes
|
||||
|
||||
/modules/programs/eclipse.nix @rycee
|
||||
|
||||
/modules/programs/emacs.nix @rycee
|
||||
|
||||
/modules/programs/eww.nix @mainrs
|
||||
|
||||
/modules/programs/exa.nix @kalhauge
|
||||
|
||||
/modules/programs/firefox.nix @rycee
|
||||
|
||||
/modules/programs/gh.nix @Gerschtli
|
||||
/tests/modules/programs/gh @Gerschtli
|
||||
/modules/programs/foot.nix @plabadens
|
||||
/tests/modules/programs/foot @plabadens
|
||||
|
||||
/modules/services/fusuma.nix @iosmanthus
|
||||
/tests/modules/services/fusuma @iosmanthus
|
||||
|
||||
/modules/programs/gallery-dl.nix @marsam
|
||||
/tests/modules/programs/gallery-dl @marsam
|
||||
|
||||
/modules/programs/gh.nix @Gerschtli @berbiche
|
||||
/tests/modules/programs/gh @Gerschtli @berbiche
|
||||
|
||||
/modules/programs/git.nix @rycee
|
||||
|
||||
/modules/programs/gnome-terminal.nix @rycee
|
||||
/modules/programs/gitui/gitui.nix @mifom
|
||||
/modules/programs/gitui/default_key_config.ron @mifom
|
||||
|
||||
/modules/programs/gnome-terminal.nix @kamadorueda @rycee
|
||||
|
||||
/modules/programs/go.nix @rvolosatovs
|
||||
|
||||
/modules/programs/havoc.nix @AndersonTorres
|
||||
|
||||
/modules/programs/helix.nix @Philipp-M
|
||||
/tests/modules/programs/helix @Philipp-M
|
||||
|
||||
/modules/programs/hexchat.nix @thiagokokada
|
||||
/tests/modules/programs/hexchat @thiagokokada
|
||||
|
||||
/modules/programs/himalaya.nix @toastal
|
||||
/tests/modules/programs/himalaya @toastal
|
||||
|
||||
/modules/programs/home-manager.nix @rycee
|
||||
|
||||
/modules/programs/htop.nix @bjpbakker
|
||||
/tests/modules/htop @bjpbakker
|
||||
|
||||
/modules/programs/hyfetch.nix @lilyinstarlight
|
||||
/tests/modules/programs/hyfetch @lilyinstarlight
|
||||
|
||||
/modules/programs/i3status.nix @JustinLovinger
|
||||
|
||||
/modules/programs/i3status-rust.nix @workflow
|
||||
|
||||
/modules/programs/ion.nix @jo1gi
|
||||
|
||||
/modules/programs/java.nix @ShamrockLee
|
||||
|
||||
/modules/programs/just.nix @maximsmol
|
||||
|
||||
/modules/programs/k9s.nix @katexochen
|
||||
/tests/modules/programs/k9s @katexochen
|
||||
|
||||
/modules/programs/keychain.nix @marsam
|
||||
|
||||
/modules/programs/kodi.nix @dwagenk
|
||||
/tests/modules/programs/kodi @dwagenk
|
||||
|
||||
/modules/programs/lazygit.nix @kalhauge
|
||||
|
||||
/modules/programs/ledger.nix @marsam
|
||||
|
||||
/modules/programs/less.nix @pamplemousse
|
||||
/tests/modules/programs/less @pamplemousse
|
||||
|
||||
/modules/programs/lesspipe.nix @rycee
|
||||
|
||||
/modules/programs/lf.nix @owm111
|
||||
/tests/modules/programs/lf @owm111
|
||||
|
||||
/modules/programs/librewolf.nix @onny
|
||||
|
||||
/modules/programs/lieer.nix @tadfisher
|
||||
|
||||
/modules/programs/looking-glass-client.nix @j-brn
|
||||
/tests/modules/programs/looking-glass-client @j-brn
|
||||
|
||||
/modules/programs/lsd.nix @marsam
|
||||
|
||||
/modules/programs/matplotlib.nix @rprospero
|
||||
|
||||
/modules/programs/mangohud.nix @ZerataX
|
||||
/tests/modules/programs/mangohud @ZerataX
|
||||
|
||||
/modules/programs/mbsync.nix @KarlJoad
|
||||
/tests/modules/programs/mbsync @KarlJoad
|
||||
|
||||
/modules/programs/mcfly.nix @marsam
|
||||
|
||||
/modules/programs/mpv.nix @tadeokondrak
|
||||
/modules/programs/micro.nix @MForster
|
||||
/tests/modules/programs/micro @MForster
|
||||
|
||||
/modules/programs/mpv.nix @tadeokondrak @thiagokokada
|
||||
/tests/modules/programs/mpv @thiagokokada
|
||||
|
||||
/modules/programs/mu.nix @KarlJoad
|
||||
|
||||
/modules/programs/mujmap.nix @elizagamedev
|
||||
/tests/modules/programs/mujmap @elizagamedev
|
||||
|
||||
/modules/programs/navi.nix @marsam
|
||||
|
||||
/modules/programs/ncmpcpp.nix @olmokramer
|
||||
/tests/modules/programs/ncmpcpp @olmokramer
|
||||
/tests/modules/programs/ncmpcpp-linux @olmokramer
|
||||
|
||||
/modules/programs/ncspot.nix @marsam
|
||||
|
||||
/modules/programs/ne.nix @cwyc
|
||||
/tests/modules/programs/ne @cwyc
|
||||
|
||||
/modules/programs/newsboat.nix @sumnerevans
|
||||
/tests/modules/programs/newsboat @sumnerevans
|
||||
|
||||
/modules/programs/nheko.nix @gvolpe
|
||||
/tests/modules/programs/nheko @gvolpe
|
||||
|
||||
/modules/programs/nix-index.nix @ambroisie
|
||||
/tests/modules/programs/nix-index @ambroisie
|
||||
|
||||
/modules/programs/nnn.nix @thiagokokada
|
||||
/tests/modules/programs/nnn @thiagokokada
|
||||
|
||||
/modules/programs/noti.nix @marsam
|
||||
|
||||
/modules/programs/nushell.nix @Philipp-M
|
||||
@@ -105,55 +237,164 @@
|
||||
|
||||
/modules/programs/obs-studio.nix @adisbladis
|
||||
|
||||
/modules/programs/octant.nix @06kellyjac
|
||||
|
||||
/modules/programs/oh-my-posh.nix @arjan-s
|
||||
/tests/modules/programs/oh-my-posh @arjan-s
|
||||
|
||||
/modules/programs/opam.nix @marsam
|
||||
|
||||
/modules/programs/openssh.nix @rycee
|
||||
|
||||
/modules/programs/pandoc.nix @kirelagin
|
||||
/tests/modules/programs/pandoc @kirelagin
|
||||
|
||||
/modules/programs/password-store.nix @pacien
|
||||
|
||||
/modules/programs/pazi.nix @marsam
|
||||
|
||||
/modules/programs/pidgin.nix @rycee
|
||||
|
||||
/modules/programs/pistol.nix @mtoohey31
|
||||
/tests/modules/programs/pistol @mtoohey31
|
||||
|
||||
/modules/programs/piston-cli.nix @ethancedwards8
|
||||
|
||||
/modules/programs/pls.nix @arjan-s
|
||||
/tests/modules/programs/pls @arjan-s
|
||||
|
||||
/modules/programs/polybar.nix @h7x4
|
||||
/tests/modules/programs/polybar @h7x4
|
||||
|
||||
/modules/programs/powerline-go.nix @DamienCassou
|
||||
|
||||
/modules/programs/pubs.nix @loicreynier
|
||||
/tests/modules/programs/pubs @loicreynier
|
||||
|
||||
/modules/programs/pylint.nix @florpe
|
||||
|
||||
/modules/programs/rbw.nix @ambroisie
|
||||
/tests/modules/programs/rbw @ambroisie
|
||||
|
||||
/modules/programs/rofi.nix @thiagokokada
|
||||
/tests/modules/programs/rofi @thiagokokada
|
||||
|
||||
/modules/programs/rofi-pass.nix @seylerius
|
||||
/tests/modules/programs/rofi-pass @seylerius
|
||||
|
||||
/modules/programs/rtorrent.nix @marsam
|
||||
|
||||
/modules/programs/sagemath.nix @kirelagin
|
||||
/tests/modules/programs/sagemath @kirelagin
|
||||
|
||||
/modules/programs/sbt.nix @kubukoz
|
||||
/tests/modules/programs/sbt @kubukoz
|
||||
|
||||
/modules/programs/scmpuff.nix @cpcloud
|
||||
/tests/modules/programs/scmpuff @cpcloud
|
||||
|
||||
/modules/programs/senpai.nix @malte-v
|
||||
|
||||
/modules/programs/sioyek.nix @podocarp
|
||||
|
||||
/modules/programs/sm64ex.nix @ivarwithoutbones
|
||||
/tests/modules/programs/sm64ex @ivarwithoutbones
|
||||
|
||||
/modules/programs/sqls.nix @marsam
|
||||
|
||||
/modules/programs/ssh.nix @rycee
|
||||
|
||||
/modules/programs/starship.nix @marsam
|
||||
|
||||
/modules/programs/swaylock.nix @rcerc
|
||||
/tests/modules/programs/swaylock @rcerc
|
||||
|
||||
/modules/programs/tealdeer.nix @marsam
|
||||
|
||||
/modules/programs/terminator.nix @chisui
|
||||
|
||||
/modules/programs/texlive.nix @rycee
|
||||
|
||||
/modules/programs/thunderbird.nix @d-dervishi
|
||||
/tests/modules/programs/thunderbird @d-dervishi
|
||||
|
||||
/modules/programs/timidity.nix @amesgen
|
||||
|
||||
/modules/programs/tint2.nix @CarlosLoboxyz
|
||||
|
||||
/modules/programs/tiny.nix @kmaasrud
|
||||
|
||||
/modules/programs/tmate.nix @jlesquembre
|
||||
/tests/modules/programs/tmate @jlesquembre
|
||||
|
||||
/modules/programs/topgrade.nix @msfjarvis
|
||||
/tests/modules/programs/topgrade @msfjarvis
|
||||
|
||||
/modules/programs/watson.nix @polykernel
|
||||
/tests/modules/programs/watson @polykernel
|
||||
|
||||
/modules/programs/waybar.nix @berbiche
|
||||
/tests/modules/programs/waybar @berbiche
|
||||
|
||||
/modules/programs/wezterm.nix @blmhemu
|
||||
/tests/modules/programs/wezterm @blmhemu
|
||||
|
||||
/modules/programs/xmobar.nix @t4ccer
|
||||
/tests/modules/programs/xmobar @t4ccer
|
||||
|
||||
/modules/programs/yt-dlp.nix @marsam
|
||||
/tests/modules/programs/yt-dlp @marsam
|
||||
|
||||
/modules/programs/z-lua.nix @marsam
|
||||
|
||||
/modules/programs/zathura.nix @rprospero
|
||||
|
||||
/modules/programs/zellij.nix @mainrs
|
||||
|
||||
/modules/programs/zoxide.nix @marsam
|
||||
|
||||
/modules/programs/zsh/prezto.nix @NickHu
|
||||
|
||||
/modules/services/barrier.nix @Kritnich
|
||||
/tests/modules/services/barrier @Kritnich
|
||||
|
||||
/modules/services/betterlockscreen.nix @SebTM
|
||||
|
||||
/modules/programs/borgmatic.nix @DamienCassou
|
||||
/modules/services/borgmatic.nix @DamienCassou
|
||||
/tests/modules/programs/borgmatic @DamienCassou
|
||||
/tests/modules/services/borgmatic @DamienCassou
|
||||
|
||||
/modules/services/caffeine.nix @uvNikita
|
||||
|
||||
/modules/services/cbatticon.nix @pmiddend
|
||||
|
||||
/modules/services/clipmenu.nix @DamienCassou
|
||||
|
||||
/modules/services/devilspie2.nix @dawidsowa
|
||||
/tests/modules/services/devilspie2 @dawidsowa
|
||||
|
||||
/modules/services/dropbox.nix @eyJhb
|
||||
/tests/modules/services/dropbox @eyJhb
|
||||
|
||||
/modules/services/dunst.nix @rycee
|
||||
|
||||
/modules/services/easyeffects.nix @fufexan
|
||||
|
||||
/modules/services/emacs.nix @tadfisher
|
||||
|
||||
/modules/services/etesync-dav.nix @Valodim
|
||||
|
||||
/modules/services/espanso.nix @lucasew
|
||||
|
||||
/modules/services/flameshot.nix @moredhel
|
||||
|
||||
/modules/services/fluidsynth.nix @Valodim
|
||||
|
||||
/modules/services/gammastep.nix @petabyteboy
|
||||
/modules/services/fnott.nix @polykernel
|
||||
/tests/modules/services/fnott @polykernel
|
||||
|
||||
/modules/services/git-sync.nix @IvanMalison @cab404
|
||||
|
||||
/modules/services/gnome-keyring.nix @rycee
|
||||
|
||||
@@ -161,6 +402,12 @@
|
||||
|
||||
/modules/services/grobi.nix @mbrgm
|
||||
|
||||
/modules/services/gromit-mpx.nix @pjones
|
||||
/tests/modules/services/gromit-mpx @pjones
|
||||
|
||||
/modules/services/home-manager-auto-upgrade.nix @pinage404
|
||||
/tests/modules/services/home-manager-auto-upgrade @pinage404
|
||||
|
||||
/modules/services/hound.nix @adisbladis
|
||||
|
||||
/modules/services/imapnotify.nix @nickhu
|
||||
@@ -180,51 +427,134 @@
|
||||
|
||||
/modules/services/mbsync.nix @pjones
|
||||
|
||||
/modules/services/mopidy.nix @foo-dogsquared
|
||||
/tests/modules/services/mopidy @foo-dogsquared
|
||||
|
||||
/modules/services/mpdris2.nix @pjones
|
||||
|
||||
/modules/services/mpd-discord-rpc.nix @Kranzes
|
||||
|
||||
/modules/services/mpris-proxy.nix @ThibautMarty
|
||||
|
||||
/modules/services/muchsync.nix @pacien
|
||||
|
||||
/modules/services/network-manager-applet.nix @rycee
|
||||
|
||||
/modules/services/notify-osd.nix @imalison
|
||||
|
||||
/modules/services/opensnitch-ui.nix @onny
|
||||
|
||||
/modules/services/pantalaimon.nix @jojosch
|
||||
/tests/modules/services/pantalaimon @jojosch
|
||||
|
||||
/modules/services/parcellite.nix @gleber
|
||||
|
||||
/modules/services/pass-secret-service.nix @cab404
|
||||
|
||||
/modules/services/password-store-sync.nix @pacien
|
||||
|
||||
/modules/services/pasystray.nix @pltanton
|
||||
|
||||
/modules/services/picom.nix @thiagokokada
|
||||
/tests/modules/services/picom @thiagokokada
|
||||
|
||||
/modules/services/pbgopy.nix @ivarwithoutbones
|
||||
/tests/modules/services/pbgopy @ivarwithoutbones
|
||||
|
||||
/modules/services/plan9port.nix @ehmry
|
||||
|
||||
/modules/services/playerctld.nix @fendse
|
||||
/tests/modules/playerctld @fendse
|
||||
|
||||
/modules/services/plex-mpv-shim.nix @starcraft66
|
||||
|
||||
/modules/services/poweralertd.nix @ThibautMarty
|
||||
|
||||
/modules/services/pueue.nix @AndersonTorres
|
||||
|
||||
/modules/services/pulseeffects.nix @jonringer
|
||||
|
||||
/modules/services/random-background.nix @rycee
|
||||
|
||||
/modules/services/redshift.nix @rycee
|
||||
/modules/services/recoll.nix @foo-dogsquared
|
||||
/tests/modules/recoll @foo-dogsquared
|
||||
|
||||
/modules/services/redshift-gammastep @rycee @petabyteboy @thiagokokada
|
||||
/tests/modules/redshift-gammastep @thiagokokada
|
||||
|
||||
/modules/services/safeeyes @Rosuavio
|
||||
|
||||
/modules/services/screen-locker.nix @jrobsonchase @rszamszur
|
||||
/tests/modules/services/screen-locker @jrobsonchase @rszamszur
|
||||
|
||||
/modules/services/sctd.nix @somasis
|
||||
|
||||
/modules/services/status-notifier-watcher.nix @pltanton
|
||||
|
||||
/modules/services/swayidle.nix @c0deaddict
|
||||
/tests/modules/services/swayidle @c0deaddict
|
||||
|
||||
/modules/services/syncthing.nix @rycee
|
||||
|
||||
/modules/services/systembus-notify.nix @asymmetric
|
||||
|
||||
/modules/services/taffybar.nix @rycee
|
||||
|
||||
/modules/services/tahoe-lafs.nix @rycee
|
||||
|
||||
/modules/services/taskwarrior-sync.nix @minijackson @pacien
|
||||
|
||||
/modules/services/trayer.nix @AndreasMager
|
||||
/tests/modules/services/trayer @AndreasMager
|
||||
|
||||
/modules/services/twmn.nix @Austreelis
|
||||
/tests/modules/services/twmn @Austreelis
|
||||
|
||||
/modules/services/udiskie.nix @rycee
|
||||
/tests/modules/services/udiskie @rycee
|
||||
|
||||
/modules/services/unison.nix @pacien
|
||||
|
||||
/modules/services/window-managers/i3-sway/sway.nix @alexarice
|
||||
/modules/services/volnoti.nix @IvanMalison
|
||||
|
||||
/modules/services/window-managers/bspwm @ncfavier
|
||||
/tests/modules/services/window-managers/bspwm @ncfavier
|
||||
|
||||
/modules/services/window-managers/fluxbox.nix @AndersonTorres
|
||||
|
||||
/modules/services/window-managers/herbstluftwm @olmokramer
|
||||
/tests/modules/services/window-managers/herbstluftwm @olmokramer
|
||||
|
||||
/modules/services/window-managers/i3-sway/i3.nix @sumnerevans @sebtm
|
||||
/tests/modules/services/window-managers/i3 @sumnerevans @sebtm
|
||||
|
||||
/modules/services/window-managers/i3-sway/lib @sumnerevans @sebtm
|
||||
|
||||
/modules/services/window-managers/i3-sway/sway.nix @alexarice @sumnerevans @sebtm
|
||||
/tests/modules/services/window-managers/sway @sumnerevans @sebtm
|
||||
|
||||
/modules/services/window-managers/i3-sway/swaynag.nix @polykernel
|
||||
|
||||
/modules/services/window-managers/spectrwm @loicreynier
|
||||
/tests/modules/services/window-managers/spectrwm @loicreynier
|
||||
|
||||
/modules/services/wlsunset.nix @matrss
|
||||
/tests/modules/services/wlsunset @matrss
|
||||
|
||||
/modules/services/xcape.nix @nickhu
|
||||
|
||||
/modules/services/xembed-sni-proxy.nix @rycee
|
||||
|
||||
/modules/services/xidlehook.nix @dschrempf @bertof
|
||||
|
||||
/modules/services/xscreensaver.nix @rycee
|
||||
|
||||
/modules/services/xsuspender.nix @offlinehacker
|
||||
|
||||
/modules/systemd.nix @rycee
|
||||
|
||||
/modules/xcursor.nix @league
|
||||
/modules/targets/darwin @midchildan
|
||||
/tests/modules/targets-darwin @midchildan
|
||||
|
||||
/modules/xresources.nix @rycee
|
||||
|
||||
|
||||
38
.github/ISSUE_TEMPLATE.md
vendored
38
.github/ISSUE_TEMPLATE.md
vendored
@@ -1,38 +0,0 @@
|
||||
<!--
|
||||
|
||||
If you are encountering the error
|
||||
|
||||
element xref: validity error : IDREF attribute linkend references an unknown ID "opt-home.file._name__.source"
|
||||
|
||||
then it means that you are using an old version of Home Manager, such
|
||||
as the release-20.03 branch, with a recent version of Nixpkgs, such as
|
||||
version 20.09 or master. See https://git.io/JTb6K for more.
|
||||
|
||||
In general, please check if there already exists a relevant issue
|
||||
before creating a new one.
|
||||
|
||||
-->
|
||||
|
||||
### Issue description
|
||||
|
||||
<!--
|
||||
Please describe the issue. For support and help please use the IRC
|
||||
channel #home-manager @ freenode.net instead.
|
||||
-->
|
||||
|
||||
### Meta
|
||||
|
||||
#### Maintainer CC
|
||||
|
||||
<!--
|
||||
Please @ people who are in the `meta.maintainers` list of the
|
||||
offending module. If in doubt, check `git blame` for whoever last
|
||||
touched something.
|
||||
-->
|
||||
|
||||
#### Technical details
|
||||
|
||||
<!--
|
||||
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the
|
||||
result.
|
||||
-->
|
||||
15
.github/ISSUE_TEMPLATE/feature-request.md
vendored
Normal file
15
.github/ISSUE_TEMPLATE/feature-request.md
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Ask for a new feature to be added (module, program, etc.)
|
||||
title: ''
|
||||
labels: feature request
|
||||
assignees: rycee, berbiche, sumnerevans
|
||||
|
||||
---
|
||||
|
||||
<!--
|
||||
Note: Please search to see if the feature has already been requested
|
||||
-->
|
||||
|
||||
### Description
|
||||
|
||||
55
.github/ISSUE_TEMPLATE/issue.yaml
vendored
Normal file
55
.github/ISSUE_TEMPLATE/issue.yaml
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
name: Bug Report
|
||||
description: File a bug/issue
|
||||
title: 'bug: '
|
||||
labels: [bug, triage]
|
||||
|
||||
# We cannot use nix-community/home-manager
|
||||
# See https://github.com/dear-github/dear-github/issues/170
|
||||
assignees: [rycee, berbiche, sumnerevans]
|
||||
|
||||
body:
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Are you following the right branch?
|
||||
description: |
|
||||
You should follow the branch of Home Manager that corresponds to your
|
||||
version of Nixpkgs; see [the README](https://github.com/nix-community/home-manager#releases) for details.
|
||||
options:
|
||||
- label: My Nixpkgs and Home Manager versions are in sync
|
||||
required: true
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Is there an existing issue for this?
|
||||
description: |
|
||||
Please search to see if an issue already exists for the bug you encountered.
|
||||
options:
|
||||
- label: I have searched the existing issues
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Issue description
|
||||
description: |
|
||||
Please describe the issue.
|
||||
|
||||
For support and help please use the IRC channel #home-manager at irc.oftc.net or
|
||||
Matrix room <https://matrix.to/#/#hm:rycee.net> instead.
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Maintainer CC
|
||||
description: |
|
||||
Please @ people who are in the `meta.maintainers` list of the offending module.
|
||||
If in doubt, check `git blame` for whoever last touched something.
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
id: system
|
||||
attributes:
|
||||
label: System information
|
||||
description: |
|
||||
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result.
|
||||
render: markdown
|
||||
validations:
|
||||
required: true
|
||||
|
||||
4
.github/PULL_REQUEST_TEMPLATE.md
vendored
4
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -15,7 +15,7 @@ pull-request.
|
||||
|
||||
Also make sure to read the guidelines found at
|
||||
|
||||
https://github.com/nix-community/home-manager/blob/master/doc/contributing.adoc#sec-guidelines
|
||||
https://github.com/nix-community/home-manager/blob/master/docs/contributing.adoc#sec-guidelines
|
||||
|
||||
-->
|
||||
|
||||
@@ -35,7 +35,7 @@ Also make sure to read the guidelines found at
|
||||
{long description}
|
||||
```
|
||||
|
||||
See [CONTRIBUTING](https://github.com/nix-community/home-manager/blob/master/doc/contributing.adoc#sec-commit-style) for more information and [recent commit messages](https://github.com/nix-community/home-manager/commits/master) for examples.
|
||||
See [CONTRIBUTING](https://github.com/nix-community/home-manager/blob/master/docs/contributing.adoc#sec-commit-style) for more information and [recent commit messages](https://github.com/nix-community/home-manager/commits/master) for examples.
|
||||
|
||||
- If this PR adds a new module
|
||||
|
||||
|
||||
17
.github/dependabot.yml
vendored
Normal file
17
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
target-branch: "master"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
commit-message:
|
||||
prefix: "ci:"
|
||||
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
target-branch: "release-22.05"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
commit-message:
|
||||
prefix: "ci:"
|
||||
16
.github/labeler.yml
vendored
Normal file
16
.github/labeler.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
"mail":
|
||||
- modules/programs/alot*.nix
|
||||
- tests/modules/programs/alot/*
|
||||
- modules/programs/mujmap.nix
|
||||
- tests/modules/programs/mujmap/*
|
||||
- modules/programs/notmuch.nix
|
||||
- modules/programs/neomutt*
|
||||
- tests/modules/programs/neomutt/*
|
||||
- modules/programs/getmail*
|
||||
- modules/*/mbsync*
|
||||
- tests/modules/programs/mbsync/*
|
||||
|
||||
"neovim":
|
||||
- modules/programs/neovim.nix
|
||||
- tests/modules/programs/neovim/**/*
|
||||
|
||||
71
.github/stale.yml
vendored
Normal file
71
.github/stale.yml
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
# Configuration for probot-stale - https://github.com/probot/stale
|
||||
daysUntilStale: 90
|
||||
daysUntilClose: false
|
||||
staleLabel: "status: stale"
|
||||
issues:
|
||||
markComment: |
|
||||
<p>
|
||||
Thank you for your contribution!
|
||||
I marked this issue as stale due to inactivity.
|
||||
Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'.
|
||||
We welcome additional information that will help resolve this issue.
|
||||
<b>Please read the relevant sections below before commenting.</b>
|
||||
</p>
|
||||
|
||||
<details>
|
||||
<summary><b>If you are the original author of the issue</b></summary>
|
||||
<p>
|
||||
|
||||
* If this is resolved, please consider closing it so that the maintainers know not to focus on this.
|
||||
* If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough.
|
||||
* If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
|
||||
|
||||
</p>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b>If you are <i>not</i> the original author of the issue</b></summary>
|
||||
<p>
|
||||
|
||||
* If you are also experiencing this issue, please add details of your situation to help with the debugging process.
|
||||
* If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
|
||||
|
||||
</p>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b>Memorandum on closing issues</b></summary>
|
||||
<p>
|
||||
Don't be afraid to manually close an issue, even if it holds valuable information.
|
||||
Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost!
|
||||
Closing obsolete issues is an important way to help maintainers focus their time and effort.
|
||||
</p>
|
||||
</details>
|
||||
pulls:
|
||||
markComment: |
|
||||
<p>
|
||||
Thank you for your contribution!
|
||||
I marked this pull request as stale due to inactivity.
|
||||
<b>Please read the relevant sections below before commenting.</b>
|
||||
</p>
|
||||
|
||||
<details>
|
||||
<summary><b>If you are the original author of the PR</b></summary>
|
||||
<p>
|
||||
|
||||
* GitHub sometimes doesn't notify people who commented / reviewed a PR previously when you (force) push commits. *If you have addressed the reviews* you can [officially ask for a review](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/requesting-a-pull-request-review) from those who commented to you or anyone else.
|
||||
* If it is unfinished but you plan to finish it, please mark it as a draft.
|
||||
* If you don't expect to work on it any time soon, please consider closing it with a short comment encouraging someone else to pick up your work.
|
||||
* To get things rolling again, rebase the PR against the target branch and address valid comments.
|
||||
|
||||
</p>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b>If you are <i>not</i> the original author of the PR</b></summary>
|
||||
<p>
|
||||
|
||||
* If you want to pick up the work on this PR, please create a new PR and indicate that it supercedes and closes this PR.
|
||||
|
||||
</p>
|
||||
</details>
|
||||
9
.github/workflows/github_pages.yml
vendored
9
.github/workflows/github_pages.yml
vendored
@@ -10,14 +10,15 @@ jobs:
|
||||
os: [ubuntu-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: cachix/install-nix-action@v10
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v21
|
||||
with:
|
||||
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- uses: cachix/cachix-action@v6
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
name: nix-community
|
||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- run: |
|
||||
nix-build -A docs.html
|
||||
cp -r result/share/doc/home-manager public
|
||||
|
||||
24
.github/workflows/labeler.yml
vendored
Normal file
24
.github/workflows/labeler.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: "Label PR"
|
||||
|
||||
on:
|
||||
- pull_request_target
|
||||
|
||||
# WARNING:
|
||||
# When extending this action, be aware that $GITHUB_TOKEN allows some write
|
||||
# access to the GitHub API. This means that it should not evaluate user input in
|
||||
# a way that allows code injection.
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
labels:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository_owner == 'nix-community'
|
||||
steps:
|
||||
- uses: actions/labeler@v4
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
sync-labels: true
|
||||
|
||||
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
@@ -6,17 +6,26 @@ on:
|
||||
jobs:
|
||||
tests:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: cachix/install-nix-action@v11
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v21
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- uses: cachix/cachix-action@v6
|
||||
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
|
||||
nix_path: nixpkgs=channel:nixos-22.11
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
name: nix-community
|
||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- run: |
|
||||
if grep -R --exclude stdlib-extended.nix literalExample modules ; then
|
||||
echo "Error: literalExample should be replaced by literalExpression" > /dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
- run: nix-build -A docs.jsonModuleMaintainers
|
||||
- run: ./format -c
|
||||
- run: nix-shell . -A install
|
||||
- run: nix-shell --pure --max-jobs 4 tests -A run.all
|
||||
- run: nix-shell --arg enableBig false --pure tests -A run.all
|
||||
|
||||
22
.github/workflows/update-flake.yml
vendored
Normal file
22
.github/workflows/update-flake.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Update flake inputs
|
||||
on:
|
||||
schedule:
|
||||
# Update every Sunday and Wednesday
|
||||
- cron: "51 3 * * 0,3"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v21
|
||||
with:
|
||||
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
|
||||
- name: Update flake.lock
|
||||
uses: DeterminateSystems/update-flake-lock@v19
|
||||
with:
|
||||
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
||||
pr-labels: dependencies
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1 @@
|
||||
/flake.lock
|
||||
/result*
|
||||
|
||||
@@ -1,29 +1,17 @@
|
||||
image: nixos/nix:latest
|
||||
|
||||
variables:
|
||||
# Pinned 2020-09-11.
|
||||
NIX_PATH: "nixpkgs=https://github.com/NixOS/nixpkgs/archive/6d4b93323e7f78121f8d6db6c59f3889aa1dd931.tar.gz"
|
||||
NIX_PATH: "nixpkgs=channel:nixos-unstable"
|
||||
|
||||
stages:
|
||||
- test
|
||||
- deploy
|
||||
|
||||
Run tests:
|
||||
stage: test
|
||||
script:
|
||||
- nix-shell --pure tests -A run.files-text
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "master"
|
||||
when: always
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
script:
|
||||
- mkdir -p ~/.config/nixpkgs
|
||||
- echo '{ manual.html.enable = true; }' > ~/.config/nixpkgs/home.nix
|
||||
- nix-shell . -A install
|
||||
- nix-build -A docs.html
|
||||
- mkdir public
|
||||
- cp -r ~/.nix-profile/share/doc/home-manager/* public/
|
||||
- cp -r ./result/share/doc/home-manager/* public/
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
doc/contributing.adoc
|
||||
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017-2020 Home Manager contributors
|
||||
Copyright (c) 2017-2022 Home Manager contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
20
Makefile
Normal file
20
Makefile
Normal file
@@ -0,0 +1,20 @@
|
||||
.PHONY: all all-tests test test-install format
|
||||
NIXPKGS_REV := nixpkgs-unstable
|
||||
NIX_PATH := nixpkgs=https://github.com/NixOS/nixpkgs/archive/${NIXPKGS_REV}.tar.gz
|
||||
|
||||
all: all-tests test-install
|
||||
|
||||
all-tests:
|
||||
$(MAKE) test TEST=all
|
||||
|
||||
test:
|
||||
ifndef TEST
|
||||
$(error Use 'make test TEST=<test_name>' to run desired test)
|
||||
endif
|
||||
nix-shell --pure tests -I ${NIX_PATH} -A run.${TEST}
|
||||
|
||||
test-install:
|
||||
HOME=$(shell mktemp -d) NIX_PATH=${NIX_PATH} nix-shell . -A install
|
||||
|
||||
format:
|
||||
./format
|
||||
411
README.md
411
README.md
@@ -3,38 +3,53 @@ Home Manager using Nix
|
||||
|
||||
This project provides a basic system for managing a user environment
|
||||
using the [Nix][] package manager together with the Nix libraries
|
||||
found in [Nixpkgs][]. Before attempting to use Home Manager please
|
||||
read the warning below.
|
||||
found in [Nixpkgs][]. It allows declarative configuration of user
|
||||
specific (non global) packages and dotfiles.
|
||||
|
||||
For a more systematic overview of Home Manager and its available
|
||||
options, please see the [Home Manager manual][manual].
|
||||
Usage
|
||||
-----
|
||||
|
||||
Before attempting to use Home Manager please read the warning below.
|
||||
|
||||
For a systematic overview of Home Manager and its available options,
|
||||
please see
|
||||
|
||||
- the [Home Manager manual][manual],
|
||||
- the [Home Manager configuration options][configuration options], and
|
||||
- the 3rd party [Home Manager option search](https://mipmip.github.io/home-manager-option-search/).
|
||||
|
||||
If you would like to contribute to Home Manager
|
||||
then please have a look at the [contributing][] chapter of the manual.
|
||||
|
||||
Words of warning
|
||||
----------------
|
||||
|
||||
This project is under development. I personally use it to manage
|
||||
several user configurations but it may fail catastrophically for you.
|
||||
So beware!
|
||||
Unfortunately, it is quite possible to get difficult to understand
|
||||
errors when working with Home Manager, such as infinite loops with no
|
||||
clear source reference. You should therefore be comfortable using the
|
||||
Nix language and the various tools in the Nix ecosystem. Reading
|
||||
through the [Nix Pills][] document is a good way to familiarize
|
||||
yourself with them.
|
||||
|
||||
Before using Home Manager you should be comfortable using the Nix
|
||||
language and the various tools in the Nix ecosystem. Reading through
|
||||
the [Nix Pills][] document is a good way to familiarize yourself with
|
||||
them.
|
||||
If you are not very familiar with Nix but still want to use Home
|
||||
Manager then you are strongly encouraged to start with a small and
|
||||
very simple configuration and gradually make it more elaborate as you
|
||||
learn.
|
||||
|
||||
In some cases Home Manager cannot detect whether it will overwrite a
|
||||
previous manual configuration. For example, the Gnome Terminal module
|
||||
will write to your dconf store and cannot tell whether a configuration
|
||||
that it is about to be overwrite was from a previous Home Manager
|
||||
that it is about to be overwritten was from a previous Home Manager
|
||||
generation or from manual configuration.
|
||||
|
||||
Home Manager targets [NixOS][] unstable and NixOS version 20.09 (the
|
||||
Home Manager targets [NixOS][] unstable and NixOS version 22.11 (the
|
||||
current stable version), it may or may not work on other Linux
|
||||
distributions and NixOS versions.
|
||||
|
||||
Also, the `home-manager` tool does not explicitly support rollbacks at
|
||||
the moment so if your home directory gets messed up you'll have to fix
|
||||
it yourself. See the [rollbacks](#rollbacks) section for instructions
|
||||
on how to manually perform a rollback.
|
||||
it yourself. See the [rollbacks][] section for instructions on how to
|
||||
manually perform a rollback.
|
||||
|
||||
Now when your expectations have been built up and you are eager to try
|
||||
all this out you can go ahead and read the rest of this text.
|
||||
@@ -42,305 +57,48 @@ all this out you can go ahead and read the rest of this text.
|
||||
Contact
|
||||
-------
|
||||
|
||||
You can chat with us on IRC in the channel [#home-manager][] on
|
||||
[freenode][]. The [channel logs][] are hosted courtesy of
|
||||
[samueldr][].
|
||||
You can chat with us on IRC in the channel [#home-manager][] on [OFTC][].
|
||||
There is also a [Matrix room](https://matrix.to/#/#hm:rycee.net),
|
||||
which is bridged to the IRC channel.
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
Currently the easiest way to install Home Manager is as follows:
|
||||
|
||||
1. Make sure you have a working Nix installation. Specifically, make
|
||||
sure that your user is able to build and install Nix packages. For
|
||||
example, you should be able to successfully run a command like
|
||||
`nix-instantiate '<nixpkgs>' -A hello` without having to switch to
|
||||
the root user. For a multi-user install of Nix this means that
|
||||
your user must be covered by the
|
||||
[`allowed-users`][nixAllowedUsers] Nix option. On NixOS you can
|
||||
control this option using the
|
||||
[`nix.allowedUsers`][nixosAllowedUsers] system option.
|
||||
|
||||
Note that Nix 2.4 (`nixUnstable`) is not yet supported.
|
||||
|
||||
2. Add the appropriate Home Manager channel. Typically this is
|
||||
|
||||
```console
|
||||
$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||
$ nix-channel --update
|
||||
```
|
||||
|
||||
if you are following Nixpkgs master or an unstable channel and
|
||||
|
||||
```console
|
||||
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-20.09.tar.gz home-manager
|
||||
$ nix-channel --update
|
||||
```
|
||||
|
||||
if you follow a Nixpkgs version 20.09 channel.
|
||||
|
||||
On NixOS you may need to log out and back in for the channel to
|
||||
become available. On non-NixOS you may have to add
|
||||
|
||||
```shell
|
||||
export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH
|
||||
```
|
||||
|
||||
to your shell (see [nix#2033](https://github.com/NixOS/nix/issues/2033)).
|
||||
|
||||
3. Install Home Manager and create the first Home Manager generation:
|
||||
|
||||
```console
|
||||
$ nix-shell '<home-manager>' -A install
|
||||
```
|
||||
|
||||
Once finished, Home Manager should be active and available in your
|
||||
user environment.
|
||||
|
||||
3. If you do not plan on having Home Manager manage your shell
|
||||
configuration then you must source the
|
||||
|
||||
```
|
||||
$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||
```
|
||||
|
||||
file in your shell configuration. Unfortunately, in this specific
|
||||
case we currently only support POSIX.2-like shells such as
|
||||
[Bash][] or [Z shell][].
|
||||
|
||||
For example, if you use Bash then add
|
||||
|
||||
```bash
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
```
|
||||
|
||||
to your `~/.profile` file.
|
||||
|
||||
If instead of using channels you want to run Home Manager from a Git
|
||||
checkout of the repository then you can use the
|
||||
`programs.home-manager.path` option to specify the absolute path to
|
||||
the repository.
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
Home Manager is typically managed through the `home-manager` tool.
|
||||
This tool can, for example, apply configurations to your home
|
||||
directory, list user packages installed by the tool, and list the
|
||||
configuration generations.
|
||||
|
||||
As an example, let us expand the initial configuration file from the
|
||||
installation above to install the htop and fortune packages, install
|
||||
Emacs with a few extra packages enabled, install Firefox with
|
||||
smooth scrolling enabled, and enable the user gpg-agent service.
|
||||
|
||||
To satisfy the above setup we should elaborate the
|
||||
`~/.config/nixpkgs/home.nix` file as follows:
|
||||
|
||||
```nix
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.htop
|
||||
pkgs.fortune
|
||||
];
|
||||
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
extraPackages = epkgs: [
|
||||
epkgs.nix-mode
|
||||
epkgs.magit
|
||||
];
|
||||
};
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
profiles = {
|
||||
myprofile = {
|
||||
settings = {
|
||||
"general.smoothScroll" = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
defaultCacheTtl = 1800;
|
||||
enableSshSupport = true;
|
||||
};
|
||||
|
||||
programs.home-manager = {
|
||||
enable = true;
|
||||
path = "…";
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
To activate this configuration you can then run
|
||||
|
||||
```console
|
||||
$ home-manager switch
|
||||
```
|
||||
|
||||
or if you are not feeling so lucky,
|
||||
|
||||
```console
|
||||
$ home-manager build
|
||||
```
|
||||
|
||||
which will create a `result` link to a directory containing an
|
||||
activation script and the generated home directory files.
|
||||
|
||||
Documentation of available configuration options, including
|
||||
descriptions and usage examples, is available in the [Home Manager
|
||||
manual][configuration options] or offline by running
|
||||
|
||||
```console
|
||||
$ man home-configuration.nix
|
||||
```
|
||||
|
||||
Rollbacks
|
||||
---------
|
||||
|
||||
While the `home-manager` tool does not explicitly support rollbacks at
|
||||
the moment it is relatively easy to perform one manually. The steps to
|
||||
do so are
|
||||
|
||||
1. Run `home-manager generations` to determine which generation you
|
||||
wish to rollback to:
|
||||
|
||||
```console
|
||||
$ home-manager generations
|
||||
2018-01-04 11:56 : id 765 -> /nix/store/kahm1rxk77mnvd2l8pfvd4jkkffk5ijk-home-manager-generation
|
||||
2018-01-03 10:29 : id 764 -> /nix/store/2wsmsliqr5yynqkdyjzb1y57pr5q2lsj-home-manager-generation
|
||||
2018-01-01 12:21 : id 763 -> /nix/store/mv960kl9chn2lal5q8lnqdp1ygxngcd1-home-manager-generation
|
||||
2017-12-29 21:03 : id 762 -> /nix/store/6c0k1r03fxckql4vgqcn9ccb616ynb94-home-manager-generation
|
||||
2017-12-25 18:51 : id 761 -> /nix/store/czc5y6vi1rvnkfv83cs3rn84jarcgsgh-home-manager-generation
|
||||
…
|
||||
```
|
||||
|
||||
2. Copy the Nix store path of the generation you chose, e.g.,
|
||||
|
||||
/nix/store/mv960kl9chn2lal5q8lnqdp1ygxngcd1-home-manager-generation
|
||||
|
||||
for generation 763.
|
||||
|
||||
3. Run the `activate` script inside the copied store path:
|
||||
|
||||
```console
|
||||
$ /nix/store/mv960kl9chn2lal5q8lnqdp1ygxngcd1-home-manager-generation/activate
|
||||
Starting home manager activation
|
||||
…
|
||||
```
|
||||
|
||||
Keeping your ~ safe from harm
|
||||
-----------------------------
|
||||
|
||||
To configure programs and services Home Manager must write various
|
||||
things to your home directory. To prevent overwriting any existing
|
||||
files when switching to a new generation, Home Manager will attempt to
|
||||
detect collisions between existing files and generated files. If any
|
||||
such collision is detected the activation will terminate before
|
||||
changing anything on your computer.
|
||||
|
||||
For example, suppose you have a wonderful, painstakingly created
|
||||
`~/.config/git/config` and add
|
||||
|
||||
```nix
|
||||
{
|
||||
# …
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Jane Doe";
|
||||
userEmail = "jane.doe@example.org";
|
||||
};
|
||||
|
||||
# …
|
||||
}
|
||||
```
|
||||
|
||||
to your configuration. Attempting to switch to the generation will
|
||||
then result in
|
||||
|
||||
```console
|
||||
$ home-manager switch
|
||||
…
|
||||
Activating checkLinkTargets
|
||||
Existing file '/home/jdoe/.gitconfig' is in the way
|
||||
Please move the above files and try again
|
||||
```
|
||||
|
||||
Graphical services
|
||||
------------------
|
||||
|
||||
Home Manager includes a number of services intended to run in a
|
||||
graphical session, for example `xscreensaver` and `dunst`.
|
||||
Unfortunately, such services will not be started automatically unless
|
||||
you let Home Manager start your X session. That is, you have something
|
||||
like
|
||||
|
||||
```nix
|
||||
{
|
||||
# …
|
||||
|
||||
services.xserver.enable = true;
|
||||
|
||||
# …
|
||||
}
|
||||
```
|
||||
|
||||
in your system configuration and
|
||||
|
||||
```nix
|
||||
{
|
||||
# …
|
||||
|
||||
xsession.enable = true;
|
||||
xsession.windowManager.command = "…";
|
||||
|
||||
# …
|
||||
}
|
||||
```
|
||||
|
||||
in your Home Manager configuration.
|
||||
|
||||
Nix Flakes
|
||||
----------
|
||||
|
||||
Home Manager includes a `flake.nix` file for compatibility with [Nix Flakes][]
|
||||
for those that wish to use it as a module. A bare-minimum `flake.nix` would be
|
||||
as follows:
|
||||
|
||||
```nix
|
||||
{
|
||||
description = "NixOS configuration";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
};
|
||||
|
||||
outputs = { home-manager, nixpkgs, ... }: {
|
||||
nixosConfigurations = {
|
||||
hostname = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.user = import ./home.nix;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
Home Manager can be used in three primary ways:
|
||||
|
||||
1. Using the standalone `home-manager` tool. For platforms other than
|
||||
NixOS and Darwin, this is the only available choice. It is also
|
||||
recommended for people on NixOS or Darwin that want to manage their
|
||||
home directory independently of the system as a whole. See
|
||||
[Standalone installation][manual standalone install] in the manual
|
||||
for instructions on how to perform this installation.
|
||||
|
||||
2. As a module within a NixOS system configuration. This allows the
|
||||
user profiles to be built together with the system when running
|
||||
`nixos-rebuild`. See [NixOS module installation][manual nixos
|
||||
install] in the manual for a description of this setup.
|
||||
|
||||
3. As a module within a [nix-darwin][] system configuration. This
|
||||
allows the user profiles to be built together with the system when
|
||||
running `darwin-rebuild`. See [nix-darwin module
|
||||
installation][manual nix-darwin install] in the manual for a
|
||||
description of this setup.
|
||||
|
||||
Home Manager provides both the channel-based setup and the flake-based one.
|
||||
See [Nix Flakes][manual nix flakes] for a description of the flake-based setup.
|
||||
|
||||
Translations
|
||||
------------
|
||||
|
||||
Home Manager has basic support for internationalization through
|
||||
[gettext](https://www.gnu.org/software/gettext/). The translations are
|
||||
hosted by [Weblate](https://weblate.org/). If you would like to
|
||||
contribute to the translation effort then start by going to the
|
||||
[Home Manager Weblate project](https://hosted.weblate.org/engage/home-manager/).
|
||||
|
||||
<a href="https://hosted.weblate.org/engage/home-manager/">
|
||||
<img src="https://hosted.weblate.org/widgets/home-manager/-/multi-auto.svg" alt="Translation status" />
|
||||
</a>
|
||||
|
||||
Releases
|
||||
--------
|
||||
@@ -349,22 +107,29 @@ Home Manager is developed against `nixpkgs-unstable` branch, which
|
||||
often causes it to contain tweaks for changes/packages not yet
|
||||
released in stable NixOS. To avoid breaking users' configurations,
|
||||
Home Manager is released in branches corresponding to NixOS releases
|
||||
(e.g. `release-20.09`). These branches get fixes, but usually not new
|
||||
(e.g. `release-22.11`). These branches get fixes, but usually not new
|
||||
modules. If you need a module to be backported, then feel free to open
|
||||
an issue.
|
||||
|
||||
[Bash]: https://www.gnu.org/software/bash/
|
||||
[Nix]: https://nixos.org/nix/
|
||||
License
|
||||
-------
|
||||
|
||||
This project is licensed under the terms of the [MIT license](LICENSE).
|
||||
|
||||
[Nix]: https://nixos.org/explore.html
|
||||
[NixOS]: https://nixos.org/
|
||||
[Nixpkgs]: https://nixos.org/nixpkgs/
|
||||
[nixAllowedUsers]: https://nixos.org/nix/manual/#conf-allowed-users
|
||||
[nixosAllowedUsers]: https://nixos.org/nixos/manual/options.html#opt-nix.allowedUsers
|
||||
[Z shell]: http://zsh.sourceforge.net/
|
||||
[manual]: https://nix-community.github.io/home-manager/
|
||||
[Nixpkgs]: https://github.com/NixOS/nixpkgs
|
||||
[manual]: https://nix-community.github.io/home-manager/index.html
|
||||
[contributing]: https://nix-community.github.io/home-manager/#ch-contributing
|
||||
[manual usage]: https://nix-community.github.io/home-manager/#ch-usage
|
||||
[configuration options]: https://nix-community.github.io/home-manager/options.html
|
||||
[#home-manager]: https://webchat.freenode.net/?url=irc%3A%2F%2Firc.freenode.net%2Fhome-manager
|
||||
[freenode]: https://freenode.net/
|
||||
[channel logs]: https://logs.nix.samueldr.com/home-manager/
|
||||
[samueldr]: https://github.com/samueldr/
|
||||
[Nix Pills]: https://nixos.org/nixos/nix-pills/
|
||||
[#home-manager]: https://webchat.oftc.net/?channels=home-manager
|
||||
[OFTC]: https://oftc.net/
|
||||
[Nix Pills]: https://nixos.org/guides/nix-pills/
|
||||
[Nix Flakes]: https://nixos.wiki/wiki/Flakes
|
||||
[nix-darwin]: https://github.com/LnL7/nix-darwin
|
||||
[manual standalone install]: https://nix-community.github.io/home-manager/index.html#sec-install-standalone
|
||||
[manual nixos install]: https://nix-community.github.io/home-manager/index.html#sec-install-nixos-module
|
||||
[manual nix-darwin install]: https://nix-community.github.io/home-manager/index.html#sec-install-nix-darwin-module
|
||||
[manual nix flakes]: https://nix-community.github.io/home-manager/index.html#ch-nix-flakes
|
||||
[rollbacks]: https://nix-community.github.io/home-manager/index.html#sec-usage-rollbacks
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
{ pkgs ? import <nixpkgs> { } }:
|
||||
|
||||
rec {
|
||||
docs = with import ./doc { inherit pkgs; }; {
|
||||
docs = with import ./docs { inherit pkgs; }; {
|
||||
html = manual.html;
|
||||
manPages = manPages;
|
||||
json = options.json;
|
||||
jsonModuleMaintainers = jsonModuleMaintainers; # Unstable, mainly for CI.
|
||||
};
|
||||
|
||||
home-manager = pkgs.callPackage ./home-manager { path = toString ./.; };
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
{ pkgs
|
||||
|
||||
# Note, this should be "the standard library" + HM extensions.
|
||||
, lib ? import ../modules/lib/stdlib-extended.nix pkgs.lib }:
|
||||
|
||||
let
|
||||
|
||||
nmdSrc = pkgs.fetchFromGitLab {
|
||||
name = "nmd";
|
||||
owner = "rycee";
|
||||
repo = "nmd";
|
||||
rev = "2398aa79ab12aa7aba14bc3b08a6efd38ebabdc5";
|
||||
sha256 = "0yxb48afvccn8vvpkykzcr4q1rgv8jsijqncia7a5ffzshcrwrnh";
|
||||
};
|
||||
|
||||
nmd = import nmdSrc { inherit lib pkgs; };
|
||||
|
||||
# Make sure the used package is scrubbed to avoid actually
|
||||
# instantiating derivations.
|
||||
scrubbedPkgsModule = {
|
||||
imports = [{
|
||||
_module.args = {
|
||||
pkgs = lib.mkForce (nmd.scrubDerivations "pkgs" pkgs);
|
||||
pkgs_i686 = lib.mkForce { };
|
||||
};
|
||||
}];
|
||||
};
|
||||
|
||||
hmModulesDocs = nmd.buildModulesDocs {
|
||||
modules = import ../modules/modules.nix {
|
||||
inherit lib pkgs;
|
||||
check = false;
|
||||
} ++ [ scrubbedPkgsModule ];
|
||||
moduleRootPaths = [ ./.. ];
|
||||
mkModuleUrl = path:
|
||||
"https://github.com/nix-community/home-manager/blob/master/${path}#blob-path";
|
||||
channelName = "home-manager";
|
||||
docBook.id = "home-manager-options";
|
||||
};
|
||||
|
||||
docs = nmd.buildDocBookDocs {
|
||||
pathName = "home-manager";
|
||||
modulesDocs = [ hmModulesDocs ];
|
||||
documentsDirectory = ./.;
|
||||
documentType = "book";
|
||||
chunkToc = ''
|
||||
<toc>
|
||||
<d:tocentry xmlns:d="http://docbook.org/ns/docbook" linkend="book-home-manager-manual"><?dbhtml filename="index.html"?>
|
||||
<d:tocentry linkend="ch-options"><?dbhtml filename="options.html"?></d:tocentry>
|
||||
<d:tocentry linkend="ch-tools"><?dbhtml filename="tools.html"?></d:tocentry>
|
||||
<d:tocentry linkend="ch-release-notes"><?dbhtml filename="release-notes.html"?></d:tocentry>
|
||||
</d:tocentry>
|
||||
</toc>
|
||||
'';
|
||||
};
|
||||
|
||||
in {
|
||||
inherit nmdSrc;
|
||||
|
||||
options = {
|
||||
json = hmModulesDocs.json.override {
|
||||
path = "share/doc/home-manager/options.json";
|
||||
};
|
||||
};
|
||||
|
||||
manPages = docs.manPages;
|
||||
|
||||
manual = { inherit (docs) html htmlOpenTool; };
|
||||
}
|
||||
@@ -1,334 +0,0 @@
|
||||
<chapter xmlns="http://docbook.org/ns/docbook"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
version="5.0"
|
||||
xml:id="ch-installation">
|
||||
<title>Installing Home Manager</title>
|
||||
<para>
|
||||
Home Manager can be used in three primary ways:
|
||||
<orderedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
Using the standalone <command>home-manager</command> tool. For platforms
|
||||
other than NixOS and Darwin, this is the only available choice. It is also
|
||||
recommended for people on NixOS or Darwin that want to manage their home
|
||||
directory independent of the system as a whole. See
|
||||
<xref linkend="sec-install-standalone"/> for instructions on how to
|
||||
perform this installation.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
As a module within a NixOS system configuration. This allows the user
|
||||
profiles to be built together with the system when running
|
||||
<command>nixos-rebuild</command>. See
|
||||
<xref linkend="sec-install-nixos-module"/> for a description of this
|
||||
setup.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
As a module within a
|
||||
<link xlink:href="https://github.com/LnL7/nix-darwin/">nix-darwin</link>
|
||||
system configuration. This allows the user profiles to be built together
|
||||
with the system when running <command>darwin-rebuild</command>. See
|
||||
<xref linkend="sec-install-nix-darwin-module"/> for a description of this
|
||||
setup.
|
||||
</para>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
</para>
|
||||
<section xml:id="sec-install-standalone">
|
||||
<title>Standalone installation</title>
|
||||
|
||||
<orderedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
Make sure you have a working Nix installation. Specifically, make
|
||||
sure that your user is able to build and install Nix packages.
|
||||
For example, you should be able to successfully run a command
|
||||
like <literal>nix-instantiate '<nixpkgs>' -A hello</literal>
|
||||
without having to switch to the root user. For a multi-user
|
||||
install of Nix this means that your user must be covered by the
|
||||
<link xlink:href="https://nixos.org/nix/manual/#conf-allowed-users"><literal>allowed-users</literal></link>
|
||||
Nix option. On NixOS you can control this option using the
|
||||
<link xlink:href="https://nixos.org/nixos/manual/options.html#opt-nix.allowedUsers"><literal>nix.allowedUsers</literal></link>
|
||||
system option.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Add the Home Manager channel that you wish to follow. This is done by
|
||||
running
|
||||
</para>
|
||||
<screen>
|
||||
<prompt>$</prompt> <userinput>nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager</userinput>
|
||||
<prompt>$</prompt> <userinput>nix-channel --update</userinput>
|
||||
</screen>
|
||||
<para>
|
||||
if you are following Nixpkgs master or an unstable channel and
|
||||
</para>
|
||||
<screen>
|
||||
<prompt>$</prompt> <userinput>nix-channel --add https://github.com/nix-community/home-manager/archive/release-20.09.tar.gz home-manager</userinput>
|
||||
<prompt>$</prompt> <userinput>nix-channel --update</userinput>
|
||||
</screen>
|
||||
<para>
|
||||
if you follow a Nixpkgs version 20.09 channel.
|
||||
</para>
|
||||
<para>
|
||||
On NixOS you may need to log out and back in for the channel to become
|
||||
available. On non-NixOS you may have to add
|
||||
<programlisting language="bash">
|
||||
export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH
|
||||
</programlisting>
|
||||
to your shell (see
|
||||
<link xlink:href="https://github.com/NixOS/nix/issues/2033">nix#2033</link>).
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Run the Home Manager installation command and create the first Home
|
||||
Manager generation:
|
||||
</para>
|
||||
<screen>
|
||||
<prompt>$</prompt> <userinput>nix-shell '<home-manager>' -A install</userinput>
|
||||
</screen>
|
||||
<para>
|
||||
Once finished, Home Manager should be active and available in your user
|
||||
environment.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
If you do not plan on having Home Manager manage your shell configuration
|
||||
then you must source the
|
||||
</para>
|
||||
<programlisting language="bash">
|
||||
$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||
</programlisting>
|
||||
<para>
|
||||
file in your shell configuration. Unfortunately, we currently only support
|
||||
POSIX.2-like shells such as
|
||||
<link xlink:href="https://www.gnu.org/software/bash/">Bash</link> or
|
||||
<link xlink:href="http://zsh.sourceforge.net/">Z shell</link>.
|
||||
</para>
|
||||
<para>
|
||||
For example, if you use Bash then add
|
||||
</para>
|
||||
<programlisting language="bash">
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
</programlisting>
|
||||
<para>
|
||||
to your <literal>~/.profile</literal> file.
|
||||
</para>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
|
||||
<para>
|
||||
If instead of using channels you want to run Home Manager from a Git
|
||||
checkout of the repository then you can use the
|
||||
<literal>programs.home-manager.path</literal> option to specify the absolute
|
||||
path to the repository.
|
||||
</para>
|
||||
</section>
|
||||
<section xml:id="sec-install-nixos-module">
|
||||
<title>NixOS module</title>
|
||||
|
||||
<para>
|
||||
Home Manager provides a NixOS module that allows you to prepare user
|
||||
environments directly from the system configuration file, which often is
|
||||
more convenient than using the <command>home-manager</command> tool. It also
|
||||
opens up additional possibilities, for example, to automatically configure
|
||||
user environments in NixOS declarative containers or on systems deployed
|
||||
through NixOps.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To make the NixOS module available for use you must <option>import</option>
|
||||
it into your system configuration. This is most conveniently done by adding
|
||||
a Home Manager channel, for example
|
||||
</para>
|
||||
|
||||
<screen language="console">
|
||||
<prompt>#</prompt> <userinput>nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager</userinput>
|
||||
<prompt>#</prompt> <userinput>nix-channel --update</userinput>
|
||||
</screen>
|
||||
|
||||
<para>
|
||||
if you are following Nixpkgs master or an unstable channel and
|
||||
</para>
|
||||
|
||||
<screen language="console">
|
||||
<prompt>#</prompt> <userinput>nix-channel --add https://github.com/nix-community/home-manager/archive/release-20.09.tar.gz home-manager</userinput>
|
||||
<prompt>#</prompt> <userinput>nix-channel --update</userinput>
|
||||
</screen>
|
||||
|
||||
<para>
|
||||
if you follow a Nixpkgs version 20.09 channel.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
It is then possible to add
|
||||
</para>
|
||||
|
||||
<programlisting language="nix">
|
||||
imports = [ <home-manager/nixos> ];
|
||||
</programlisting>
|
||||
|
||||
<para>
|
||||
to your system <filename>configuration.nix</filename> file, which will
|
||||
introduce a new NixOS option called <option>home-manager.users</option>
|
||||
whose type is an attribute set that maps user names to Home Manager
|
||||
configurations.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
For example, a NixOS configuration may include the lines
|
||||
</para>
|
||||
|
||||
<programlisting language="nix">
|
||||
users.users.eve.isNormalUser = true;
|
||||
home-manager.users.eve = { pkgs, ... }: {
|
||||
home.packages = [ pkgs.atool pkgs.httpie ];
|
||||
programs.bash.enable = true;
|
||||
};
|
||||
</programlisting>
|
||||
|
||||
<para>
|
||||
and after a <command>nixos-rebuild switch</command> the user eve's
|
||||
environment should include a basic Bash configuration and the packages atool
|
||||
and httpie.
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
By default packages will be installed to
|
||||
<filename>$HOME/.nix-profile</filename> but they can be installed to
|
||||
<filename>/etc/profiles</filename> if
|
||||
</para>
|
||||
<programlisting language="nix">
|
||||
home-manager.useUserPackages = true;
|
||||
</programlisting>
|
||||
<para>
|
||||
is added to the system configuration. This is necessary if, for example,
|
||||
you wish to use <command>nixos-rebuild build-vm</command>. This option may
|
||||
become the default value in the future.
|
||||
</para>
|
||||
</note>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
By default, Home Manager uses a private <literal>pkgs</literal> instance
|
||||
that is configured via the <option>home-manager.users.<name>.nixpkgs</option> options.
|
||||
To instead use the global <literal>pkgs</literal> that is configured via
|
||||
the system level <option>nixpkgs</option> options, set
|
||||
</para>
|
||||
<programlisting language="nix">
|
||||
home-manager.useGlobalPkgs = true;
|
||||
</programlisting>
|
||||
<para>
|
||||
This saves an extra Nixpkgs evaluation, adds consistency, and removes the
|
||||
dependency on <envar>NIX_PATH</envar>, which is otherwise used for
|
||||
importing Nixpkgs.
|
||||
</para>
|
||||
</note>
|
||||
</section>
|
||||
<section xml:id="sec-install-nix-darwin-module">
|
||||
<title>nix-darwin module</title>
|
||||
|
||||
<para>
|
||||
Home Manager provides a module that allows you to prepare user
|
||||
environments directly from the nix-darwin configuration file, which often is
|
||||
more convenient than using the <command>home-manager</command> tool.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To make the NixOS module available for use you must <option>import</option>
|
||||
it into your system configuration. This is most conveniently done by adding
|
||||
a Home Manager channel, for example
|
||||
</para>
|
||||
|
||||
<screen language="console">
|
||||
<prompt>#</prompt> <userinput>nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager</userinput>
|
||||
<prompt>#</prompt> <userinput>nix-channel --update</userinput>
|
||||
</screen>
|
||||
|
||||
<para>
|
||||
if you are following Nixpkgs master or an unstable channel and
|
||||
</para>
|
||||
|
||||
<screen language="console">
|
||||
<prompt>#</prompt> <userinput>nix-channel --add https://github.com/nix-community/home-manager/archive/release-20.09.tar.gz home-manager</userinput>
|
||||
<prompt>#</prompt> <userinput>nix-channel --update</userinput>
|
||||
</screen>
|
||||
|
||||
<para>
|
||||
if you follow a Nixpkgs version 20.09 channel.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
It is then possible to add
|
||||
</para>
|
||||
|
||||
<programlisting language="nix">
|
||||
imports = [ <home-manager/nix-darwin> ];
|
||||
</programlisting>
|
||||
|
||||
<para>
|
||||
to your nix-darwin <filename>configuration.nix</filename> file, which will
|
||||
introduce a new NixOS option called <option>home-manager</option> whose type
|
||||
is an attribute set that maps user names to Home Manager configurations.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
For example, a nix-darwin configuration may include the lines
|
||||
</para>
|
||||
|
||||
<programlisting language="nix">
|
||||
home-manager.users.eve = { pkgs, ... }: {
|
||||
home.packages = [ pkgs.atool pkgs.httpie ];
|
||||
programs.bash.enable = true;
|
||||
};
|
||||
</programlisting>
|
||||
|
||||
<para>
|
||||
and after a <command>darwin-rebuild --switch</command> the user eve's
|
||||
environment should include a basic Bash configuration and the packages atool
|
||||
and httpie.
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
By default user packages will not be ignored in favor of
|
||||
<option>environment.systemPackages</option>, but they will be intalled to
|
||||
<option>/etc/profiles/per-user/$USERNAME</option> if
|
||||
</para>
|
||||
|
||||
<programlisting language="nix">
|
||||
home-manager.useUserPackages = true;
|
||||
</programlisting>
|
||||
|
||||
<para>
|
||||
is added to the nix-darwin configuration. This option may become the default
|
||||
value in the future.
|
||||
</para>
|
||||
</note>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
By default, Home Manager uses a private <literal>pkgs</literal> instance
|
||||
that is configured via the <option>home-manager.users.<name>.nixpkgs</option> options.
|
||||
To instead use the global <literal>pkgs</literal> that is configured via
|
||||
the system level <option>nixpkgs</option> options, set
|
||||
</para>
|
||||
<programlisting language="nix">
|
||||
home-manager.useGlobalPkgs = true;
|
||||
</programlisting>
|
||||
<para>
|
||||
This saves an extra Nixpkgs evaluation, adds consistency, and removes the
|
||||
dependency on <envar>NIX_PATH</envar>, which is otherwise used for
|
||||
importing Nixpkgs.
|
||||
</para>
|
||||
</note>
|
||||
</section>
|
||||
</chapter>
|
||||
@@ -1,21 +0,0 @@
|
||||
[[sec-release-21.03]]
|
||||
== Release 21.03
|
||||
|
||||
This is the current unstable branch and the information in this
|
||||
section is therefore not final.
|
||||
|
||||
[[sec-release-21.03-highlights]]
|
||||
=== Highlights
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
* Nothing has happened.
|
||||
|
||||
[[sec-release-21.03-state-version-changes]]
|
||||
=== State Version Changes
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
"21.03" or later.
|
||||
|
||||
* Nothing has happened.
|
||||
@@ -44,9 +44,10 @@ The first option is good if you only temporarily want to use your clone.
|
||||
|
||||
[[sec-guidelines]]
|
||||
=== Guidelines
|
||||
:irc-home-manager: https://webchat.freenode.net/?url=irc%3A%2F%2Firc.freenode.net%2Fhome-manager
|
||||
:irc-home-manager: https://webchat.oftc.net/?channels=home-manager
|
||||
:valuable-options: https://github.com/Infinisil/rfcs/blob/config-option/rfcs/0042-config-option.md#valuable-options
|
||||
:rfc-42: https://github.com/Infinisil/rfcs/blob/config-option/rfcs/0042-config-option.md
|
||||
:assertions: https://nixos.org/manual/nixos/stable/index.html#sec-assertions
|
||||
|
||||
If your contribution satisfy the following rules then there is a good chance it will be merged without too much trouble. The rules are enforced by the Home Manager maintainers and to a lesser extent the Home Manager CI system.
|
||||
|
||||
@@ -55,7 +56,9 @@ If you are uncertain how these rules affect the change you would like to make th
|
||||
[[sec-guidelines-back-compat]]
|
||||
==== Maintain backward compatibility
|
||||
|
||||
Your contribution should never cause another user's existing configuration to break. Home Manager is used in many different environments and you should consider how you change may effect others. For example,
|
||||
Your contribution should not cause another user's existing configuration to break unless there is a very good reason and the change should be announced to the user through an {assertions}[assertion] or similar.
|
||||
|
||||
Remember that Home Manager is used in many different environments and you should consider how your change may effect others. For example,
|
||||
|
||||
- Does your change work for people that do not use NixOS? Consider other GNU/Linux distributions and macOS.
|
||||
- Does your change work for people whose configuration is built on one system and deployed on another system?
|
||||
@@ -88,7 +91,7 @@ All contributed code _must_ pass the test suite.
|
||||
==== Add relevant documentation
|
||||
:docbook: https://tdg.docbook.org/
|
||||
:asciidoc: https://asciidoc.org/
|
||||
:docbook-rocks: https://docbook.rocks/
|
||||
:docbook-rocks: https://berbiche.github.io/docbook.rocks/
|
||||
|
||||
Many code changes require changing the documentation as well. Module options should be documented with DocBook. See {docbook-rocks}[DocBook rocks!] for a quick introduction and {docbook}[DocBook 5: The Definitive Guide] for in-depth information of DocBook. Home Manager is itself documented using a combination of DocBook and {asciidoc}[AsciiDoc]. All text is hosted in Home Manager's Git repository.
|
||||
|
||||
@@ -102,7 +105,7 @@ When you have made changes to a module, it is a good idea to check that the man
|
||||
|
||||
[source,console]
|
||||
$ nix-build -A docs.manPages
|
||||
$ man ./result/share/man/man5/home-configuration.nix.5
|
||||
$ man ./result/share/man/man5/home-configuration.nix.5.gz
|
||||
|
||||
==== Add yourself as a module maintainer
|
||||
|
||||
@@ -152,7 +155,7 @@ A potential gotcha with respect to licensing are option descriptions. Often it i
|
||||
|
||||
The commits in your pull request should be reasonably self-contained, that is, each commit should make sense in isolation. In particular, you will be asked to amend any commit that introduces syntax errors or similar problems even if they are fixed in a later commit.
|
||||
|
||||
The commit messages should follow the {seven-rules}[seven rules]. We also ask you to include the affected code component or module in the first line. That is, a commit message should follow the template
|
||||
The commit messages should follow the {seven-rules}[seven rules], except for "Capitalize the subject line". We also ask you to include the affected code component or module in the first line. That is, a commit message should follow the template
|
||||
|
||||
----
|
||||
{component}: {description}
|
||||
@@ -160,7 +163,7 @@ The commit messages should follow the {seven-rules}[seven rules]. We also ask yo
|
||||
{long description}
|
||||
----
|
||||
|
||||
where `{component}` refers to the code component (or module) your change affects, `{description}` is a very brief description of your change, and `{long description}` is an optional clarifying description. Note, `{description}` should start with a lower case letter. As a rare exception, if there is no clear component, or your change affects many components, then the `{component}` part is optional. See <<ex-commit-message>> for a commit message that fulfills these requirements.
|
||||
where `{component}` refers to the code component (or module) your change affects, `{description}` is a very brief description of your change, and `{long description}` is an optional clarifying description. As a rare exception, if there is no clear component, or your change affects many components, then the `{component}` part is optional. See <<ex-commit-message>> for a commit message that fulfills these requirements.
|
||||
|
||||
[[ex-commit-message]]
|
||||
.Compliant commit message
|
||||
102
docs/default.nix
Normal file
102
docs/default.nix
Normal file
@@ -0,0 +1,102 @@
|
||||
{ pkgs
|
||||
|
||||
# Note, this should be "the standard library" + HM extensions.
|
||||
, lib ? import ../modules/lib/stdlib-extended.nix pkgs.lib }:
|
||||
|
||||
let
|
||||
|
||||
nmdSrc = fetchTarball {
|
||||
url =
|
||||
"https://gitlab.com/api/v4/projects/rycee%2Fnmd/repository/archive.tar.gz?sha=b75d312b4f33bd3294cd8ae5c2ca8c6da2afc169";
|
||||
sha256 = "0c2nq28rw4v559s3f1nf6y2p6fladgmbqgbsyf3vzs2przn5qn37";
|
||||
};
|
||||
|
||||
nmd = import nmdSrc { inherit lib pkgs; };
|
||||
|
||||
# Make sure the used package is scrubbed to avoid actually
|
||||
# instantiating derivations.
|
||||
scrubbedPkgsModule = {
|
||||
imports = [{
|
||||
_module.args = {
|
||||
pkgs = lib.mkForce (nmd.scrubDerivations "pkgs" pkgs);
|
||||
pkgs_i686 = lib.mkForce { };
|
||||
};
|
||||
}];
|
||||
};
|
||||
|
||||
dontCheckDefinitions = { _module.check = false; };
|
||||
|
||||
buildModulesDocs = args:
|
||||
nmd.buildModulesDocs ({
|
||||
moduleRootPaths = [ ./.. ];
|
||||
mkModuleUrl = path:
|
||||
"https://github.com/nix-community/home-manager/blob/master/${path}#blob-path";
|
||||
channelName = "home-manager";
|
||||
} // args);
|
||||
|
||||
hmModulesDocs = buildModulesDocs {
|
||||
modules = import ../modules/modules.nix {
|
||||
inherit lib pkgs;
|
||||
check = false;
|
||||
} ++ [ scrubbedPkgsModule ];
|
||||
docBook.id = "home-manager-options";
|
||||
};
|
||||
|
||||
nixosModuleDocs = buildModulesDocs {
|
||||
modules = [ ../nixos scrubbedPkgsModule dontCheckDefinitions ];
|
||||
docBook = {
|
||||
id = "nixos-options";
|
||||
optionIdPrefix = "nixos-opt";
|
||||
};
|
||||
};
|
||||
|
||||
nixDarwinModuleDocs = buildModulesDocs {
|
||||
modules = [ ../nix-darwin scrubbedPkgsModule dontCheckDefinitions ];
|
||||
docBook = {
|
||||
id = "nix-darwin-options";
|
||||
optionIdPrefix = "nix-darwin-opt";
|
||||
};
|
||||
};
|
||||
|
||||
docs = nmd.buildDocBookDocs {
|
||||
pathName = "home-manager";
|
||||
projectName = "Home Manager";
|
||||
modulesDocs = [ hmModulesDocs nixDarwinModuleDocs nixosModuleDocs ];
|
||||
documentsDirectory = ./.;
|
||||
documentType = "book";
|
||||
chunkToc = ''
|
||||
<toc>
|
||||
<d:tocentry xmlns:d="http://docbook.org/ns/docbook" linkend="book-home-manager-manual"><?dbhtml filename="index.html"?>
|
||||
<d:tocentry linkend="ch-options"><?dbhtml filename="options.html"?></d:tocentry>
|
||||
<d:tocentry linkend="ch-nixos-options"><?dbhtml filename="nixos-options.html"?></d:tocentry>
|
||||
<d:tocentry linkend="ch-nix-darwin-options"><?dbhtml filename="nix-darwin-options.html"?></d:tocentry>
|
||||
<d:tocentry linkend="ch-tools"><?dbhtml filename="tools.html"?></d:tocentry>
|
||||
<d:tocentry linkend="ch-release-notes"><?dbhtml filename="release-notes.html"?></d:tocentry>
|
||||
</d:tocentry>
|
||||
</toc>
|
||||
'';
|
||||
};
|
||||
|
||||
in {
|
||||
inherit nmdSrc;
|
||||
|
||||
options = {
|
||||
json = hmModulesDocs.json.override {
|
||||
path = "share/doc/home-manager/options.json";
|
||||
};
|
||||
};
|
||||
|
||||
manPages = docs.manPages;
|
||||
|
||||
manual = { inherit (docs) html htmlOpenTool; };
|
||||
|
||||
# Unstable, mainly for CI.
|
||||
jsonModuleMaintainers = pkgs.writeText "hm-module-maintainers.json" (let
|
||||
result = lib.evalModules {
|
||||
modules = import ../modules/modules.nix {
|
||||
inherit lib pkgs;
|
||||
check = false;
|
||||
} ++ [ scrubbedPkgsModule ];
|
||||
};
|
||||
in builtins.toJSON result.config.meta.maintainers);
|
||||
}
|
||||
@@ -40,18 +40,28 @@ error: build of ‘/nix/store/b37x3s7pzxbasfqhaca5dqbf3pjjw0ip-user-environment.
|
||||
|
||||
The solution is typically to uninstall the package from the environment using `nix-env --uninstall` and reattempt the Home Manager generation switch.
|
||||
|
||||
=== Why are the session variables not set?
|
||||
You could also opt to unistall _all_ of the packages from your profile with `nix-env --uninstall '*'`.
|
||||
|
||||
Home Manager is only able to set session variables automatically if it manages your Bash or Z shell configuration. If you don't want to let Home Manager manage your shell then you will have to manually source the `~/.nix-profile/etc/profile.d/hm-session-vars.sh` file in an appropriate way. In Bash and Z shell this can be done by adding
|
||||
=== Why are the session variables not set?
|
||||
:foreign-env: https://github.com/oh-my-fish/plugin-foreign-env
|
||||
|
||||
Home Manager is only able to set session variables automatically if it manages your Bash, Z shell, or fish shell configuration. To enable such management you use <<opt-programs.bash.enable>>, <<opt-programs.zsh.enable>>, or <<opt-programs.fish.enable>>.
|
||||
|
||||
If you don't want to let Home Manager manage your shell then you will have to manually source the `~/.nix-profile/etc/profile.d/hm-session-vars.sh` file in an appropriate way. In Bash and Z shell this can be done by adding
|
||||
|
||||
[source,bash]
|
||||
----
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
----
|
||||
|
||||
to your `.profile` and `.zshrc` files, respectively. The `hm-session-vars.sh` file should work in most Bourne-like shells.
|
||||
to your `.profile` and `.zshrc` files, respectively. The `hm-session-vars.sh` file should work in most Bourne-like shells. For fish shell, it is possible to source it using {foreign-env}[the foreign-env plugin]
|
||||
|
||||
=== How do set up a configuration for multiple users/machines?
|
||||
[source,bash]
|
||||
----
|
||||
fenv source "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" > /dev/null
|
||||
----
|
||||
|
||||
=== How to set up a configuration for multiple users/machines?
|
||||
:post-your-homenix: https://www.reddit.com/r/NixOS/comments/9bb9h9/post_your_homemanager_homenix_file/
|
||||
|
||||
A typical way to prepare a repository of configurations for multiple logins and machines is to prepare one "top-level" file for each unique combination.
|
||||
@@ -81,18 +91,26 @@ while the `common.nix` file contains configuration shared across the two logins.
|
||||
|
||||
You can get some inspiration from the {post-your-homenix}[Post your home-manager home.nix file!] Reddit thread.
|
||||
|
||||
=== Why do I get an error message about `ca.desrt.dconf`?
|
||||
=== Why do I get an error message about `ca.desrt.dconf` or `dconf.service`?
|
||||
|
||||
You are most likely trying to configure the GTK or Gnome Terminal but the DBus session is not aware of the dconf service. The full error you might get is
|
||||
You are most likely trying to configure something that uses dconf
|
||||
but the DBus session is not aware of the dconf service.
|
||||
The full error you might get is
|
||||
|
||||
----
|
||||
error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files
|
||||
----
|
||||
|
||||
or
|
||||
|
||||
----
|
||||
error: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit dconf.service not found.
|
||||
----
|
||||
|
||||
The solution on NixOS is to add
|
||||
|
||||
[source,nix]
|
||||
services.dbus.packages = with pkgs; [ gnome3.dconf ];
|
||||
programs.dconf.enable = true;
|
||||
|
||||
to your system configuration.
|
||||
|
||||
@@ -125,8 +143,8 @@ You can add the `nixpkgs-unstable` channel by running
|
||||
|
||||
[source,console]
|
||||
----
|
||||
# nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
|
||||
# nix-channel --update
|
||||
$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
|
||||
$ nix-channel --update
|
||||
----
|
||||
|
||||
Note, the package will not be affected by any package overrides, overlays, etc.
|
||||
332
docs/installation.adoc
Normal file
332
docs/installation.adoc
Normal file
@@ -0,0 +1,332 @@
|
||||
[[ch-installation]]
|
||||
== Installing Home Manager
|
||||
|
||||
:nix-darwin: https://github.com/LnL7/nix-darwin/
|
||||
|
||||
Home Manager can be used in three primary ways:
|
||||
|
||||
1. Using the standalone `home-manager` tool. For platforms other than
|
||||
NixOS and Darwin, this is the only available choice. It is also
|
||||
recommended for people on NixOS or Darwin that want to manage their
|
||||
home directory independently of the system as a whole. See
|
||||
<<sec-install-standalone>> for instructions on how to perform this
|
||||
installation.
|
||||
|
||||
2. As a module within a NixOS system configuration. This allows the
|
||||
user profiles to be built together with the system when running
|
||||
`nixos-rebuild`. See <<sec-install-nixos-module>> for a description of
|
||||
this setup.
|
||||
|
||||
3. As a module within a {nix-darwin}[nix-darwin] system configuration.
|
||||
This allows the user profiles to be built together with the system
|
||||
when running `darwin-rebuild`. See <<sec-install-nix-darwin-module>>
|
||||
for a description of this setup.
|
||||
|
||||
[[sec-install-standalone]]
|
||||
=== Standalone installation
|
||||
|
||||
:nix-allowed-users: https://nixos.org/nix/manual/#conf-allowed-users
|
||||
:nixos-allowed-users: https://nixos.org/nixos/manual/options.html#opt-nix.allowedUsers
|
||||
:bash: https://www.gnu.org/software/bash/
|
||||
:zsh: http://zsh.sourceforge.net/
|
||||
:fish: https://fishshell.com
|
||||
:plugin-foreign-env: https://github.com/oh-my-fish/plugin-foreign-env
|
||||
:babelfish: https://github.com/bouk/babelfish
|
||||
|
||||
1. Make sure you have a working Nix installation. Specifically, make
|
||||
sure that your user is able to build and install Nix packages. For
|
||||
example, you should be able to successfully run a command like
|
||||
`nix-instantiate '<nixpkgs>' -A hello` without having to switch to the
|
||||
root user. For a multi-user install of Nix this means that your user
|
||||
must be covered by the {nix-allowed-users}[`allowed-users`] Nix
|
||||
option. On NixOS you can control this option using the
|
||||
{nixos-allowed-users}[`nix.allowedUsers`] system option.
|
||||
|
||||
2. Add the appropriate Home Manager channel. If you are following
|
||||
Nixpkgs master or an unstable channel you can run
|
||||
+
|
||||
[source,console]
|
||||
----
|
||||
$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||
$ nix-channel --update
|
||||
----
|
||||
+
|
||||
and if you follow a Nixpkgs version 22.11 channel you can run
|
||||
+
|
||||
[source,console]
|
||||
----
|
||||
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.11.tar.gz home-manager
|
||||
$ nix-channel --update
|
||||
----
|
||||
+
|
||||
On non-NixOS, you may have to add
|
||||
+
|
||||
[source,bash]
|
||||
export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH}
|
||||
+
|
||||
to your shell (see https://github.com/NixOS/nix/issues/2033[nix#2033]
|
||||
and
|
||||
https://discourse.nixos.org/t/where-is-nix-path-supposed-to-be-set/16434/8[this
|
||||
reply on the Nix Discourse]).
|
||||
|
||||
3. Run the Home Manager installation command and create the first Home
|
||||
Manager generation:
|
||||
+
|
||||
[source,console]
|
||||
$ nix-shell '<home-manager>' -A install
|
||||
+
|
||||
Once finished, Home Manager should be active and available in your
|
||||
user environment.
|
||||
|
||||
4. If you do not plan on having Home Manager manage your shell
|
||||
configuration then you must source the
|
||||
+
|
||||
[source,bash]
|
||||
$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||
+
|
||||
file in your shell configuration. Alternatively source
|
||||
+
|
||||
[source,bash]
|
||||
/etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh
|
||||
+
|
||||
when managing home configuration together with system configuration.
|
||||
+
|
||||
This file can be sourced directly by POSIX.2-like shells such as
|
||||
{bash}[Bash] or {zsh}[Z shell]. {fish}[Fish] users can use utilities
|
||||
such as {plugin-foreign-env}[foreign-env] or {babelfish}[babelfish].
|
||||
+
|
||||
For example, if you use Bash then add
|
||||
+
|
||||
[source,bash]
|
||||
----
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
----
|
||||
+
|
||||
to your `~/.profile` file.
|
||||
|
||||
If instead of using channels you want to run Home Manager from a Git
|
||||
checkout of the repository then you can use the
|
||||
<<opt-programs.home-manager.path>> option to specify the absolute path
|
||||
to the repository.
|
||||
|
||||
Once installed you can see <<ch-usage>> for a more detailed
|
||||
description of Home Manager and how to use it.
|
||||
|
||||
[[sec-install-nixos-module]]
|
||||
=== NixOS module
|
||||
|
||||
Home Manager provides a NixOS module that allows you to prepare user
|
||||
environments directly from the system configuration file, which often
|
||||
is more convenient than using the `home-manager` tool. It also opens
|
||||
up additional possibilities, for example, to automatically configure
|
||||
user environments in NixOS declarative containers or on systems
|
||||
deployed through NixOps.
|
||||
|
||||
To make the NixOS module available for use you must `import` it into
|
||||
your system configuration. This is most conveniently done by adding a
|
||||
Home Manager channel to the root user. For example, if you are
|
||||
following Nixpkgs master or an unstable channel, you can run
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||
$ sudo nix-channel --update
|
||||
----
|
||||
|
||||
and if you follow a Nixpkgs version 22.11 channel, you can run
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.11.tar.gz home-manager
|
||||
$ sudo nix-channel --update
|
||||
----
|
||||
|
||||
It is then possible to add
|
||||
|
||||
[source,nix]
|
||||
imports = [ <home-manager/nixos> ];
|
||||
|
||||
to your system `configuration.nix` file, which will introduce a new
|
||||
NixOS option called `home-manager.users` whose type is an attribute
|
||||
set that maps user names to Home Manager configurations.
|
||||
|
||||
For example, a NixOS configuration may include the lines
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
users.users.eve.isNormalUser = true;
|
||||
home-manager.users.eve = { pkgs, ... }: {
|
||||
home.packages = [ pkgs.atool pkgs.httpie ];
|
||||
programs.bash.enable = true;
|
||||
};
|
||||
----
|
||||
|
||||
and after a `sudo nixos-rebuild switch` the user eve's environment should
|
||||
include a basic Bash configuration and the packages atool and httpie.
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
If `nixos-rebuild switch` does not result in the environment you expect,
|
||||
you can take a look at the output of the Home Manager activation script output using
|
||||
|
||||
[source,console]
|
||||
$ systemctl status "home-manager-$USER.service"
|
||||
====
|
||||
|
||||
If you do not plan on having Home Manager manage your shell
|
||||
configuration then you must add either
|
||||
|
||||
[source,bash]
|
||||
----
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
----
|
||||
|
||||
or
|
||||
|
||||
[source,bash]
|
||||
----
|
||||
. "/etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh"
|
||||
----
|
||||
|
||||
to your shell configuration, depending on whether
|
||||
<<nixos-opt-home-manager.useUserPackages>> is enabled. This file can
|
||||
be sourced directly by POSIX.2-like shells such as {bash}[Bash] or
|
||||
{zsh}[Z shell]. {fish}[Fish] users can use utilities such as
|
||||
{plugin-foreign-env}[foreign-env] or {babelfish}[babelfish].
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
By default packages will be installed to `$HOME/.nix-profile` but they
|
||||
can be installed to `/etc/profiles` if
|
||||
|
||||
[source,nix]
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
is added to the system configuration. This is necessary if, for
|
||||
example, you wish to use `nixos-rebuild build-vm`. This option may
|
||||
become the default value in the future.
|
||||
====
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
By default, Home Manager uses a private `pkgs` instance that is
|
||||
configured via the `home-manager.users.<name>.nixpkgs` options. To
|
||||
instead use the global `pkgs` that is configured via the system level
|
||||
`nixpkgs` options, set
|
||||
|
||||
[source,nix]
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
||||
This saves an extra Nixpkgs evaluation, adds consistency, and removes
|
||||
the dependency on `NIX_PATH`, which is otherwise used for importing
|
||||
Nixpkgs.
|
||||
====
|
||||
|
||||
Once installed you can see <<ch-usage>> for a more detailed
|
||||
description of Home Manager and how to use it.
|
||||
|
||||
[[sec-install-nix-darwin-module]]
|
||||
=== nix-darwin module
|
||||
|
||||
Home Manager provides a module that allows you to prepare user
|
||||
environments directly from the {nix-darwin}[nix-darwin] configuration
|
||||
file, which often is more convenient than using the `home-manager`
|
||||
tool.
|
||||
|
||||
To make the NixOS module available for use you must `import` it into
|
||||
your system configuration. This is most conveniently done by adding a
|
||||
Home Manager channel. For example, if you are following Nixpkgs master
|
||||
or an unstable channel, you can run
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||
$ nix-channel --update
|
||||
----
|
||||
|
||||
and if you follow a Nixpkgs version 22.11 channel, you can run
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.11.tar.gz home-manager
|
||||
$ nix-channel --update
|
||||
----
|
||||
|
||||
It is then possible to add
|
||||
|
||||
[source,nix]
|
||||
imports = [ <home-manager/nix-darwin> ];
|
||||
|
||||
to your nix-darwin `configuration.nix` file, which will introduce a
|
||||
new NixOS option called `home-manager` whose type is an attribute set
|
||||
that maps user names to Home Manager configurations.
|
||||
|
||||
For example, a nix-darwin configuration may include the lines
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
users.users.eve = {
|
||||
name = "eve";
|
||||
home = "/Users/eve";
|
||||
}
|
||||
home-manager.users.eve = { pkgs, ... }: {
|
||||
home.packages = [ pkgs.atool pkgs.httpie ];
|
||||
programs.bash.enable = true;
|
||||
};
|
||||
----
|
||||
|
||||
and after a `darwin-rebuild switch` the user eve's environment
|
||||
should include a basic Bash configuration and the packages atool and
|
||||
httpie.
|
||||
|
||||
If you do not plan on having Home Manager manage your shell
|
||||
configuration then you must add either
|
||||
|
||||
[source,bash]
|
||||
----
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
----
|
||||
|
||||
or
|
||||
|
||||
[source,bash]
|
||||
----
|
||||
. "/etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh"
|
||||
----
|
||||
|
||||
to your shell configuration, depending on whether
|
||||
<<nix-darwin-opt-home-manager.useUserPackages>> is enabled. This file
|
||||
can be sourced directly by POSIX.2-like shells such as {bash}[Bash] or
|
||||
{zsh}[Z shell]. {fish}[Fish] users can use utilities such as
|
||||
{plugin-foreign-env}[foreign-env] or {babelfish}[babelfish].
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
By default user packages will not be ignored in favor of
|
||||
`environment.systemPackages`, but they will be installed to
|
||||
`/etc/profiles/per-user/$USERNAME` if
|
||||
|
||||
[source,nix]
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
is added to the nix-darwin configuration. This option may become the
|
||||
default value in the future.
|
||||
====
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
By default, Home Manager uses a private `pkgs` instance that is
|
||||
configured via the `home-manager.users.<name>.nixpkgs` options. To
|
||||
instead use the global `pkgs` that is configured via the system level
|
||||
`nixpkgs` options, set
|
||||
|
||||
[source,nix]
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
||||
This saves an extra Nixpkgs evaluation, adds consistency, and removes
|
||||
the dependency on `NIX_PATH`, which is otherwise used for importing
|
||||
Nixpkgs.
|
||||
====
|
||||
|
||||
Once installed you can see <<ch-usage>> for a more detailed
|
||||
description of Home Manager and how to use it.
|
||||
@@ -12,47 +12,51 @@
|
||||
</refnamediv>
|
||||
<refsynopsisdiv>
|
||||
<cmdsynopsis>
|
||||
<command>home-manager</command> <group choice="req">
|
||||
<command>home-manager</command> <group choice="req">
|
||||
<arg choice="plain">
|
||||
build
|
||||
</arg>
|
||||
|
||||
|
||||
<arg choice="plain">
|
||||
instantiate
|
||||
</arg>
|
||||
|
||||
|
||||
<arg choice="plain">
|
||||
edit
|
||||
</arg>
|
||||
|
||||
|
||||
<arg choice="plain">
|
||||
expire-generations <replaceable>timestamp</replaceable>
|
||||
</arg>
|
||||
|
||||
|
||||
<arg choice="plain">
|
||||
generations
|
||||
</arg>
|
||||
|
||||
|
||||
<arg choice="plain">
|
||||
help
|
||||
</arg>
|
||||
|
||||
|
||||
<arg choice="plain">
|
||||
news
|
||||
</arg>
|
||||
|
||||
|
||||
<arg choice="plain">
|
||||
option <replaceable>option.name</replaceable>
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
packages
|
||||
</arg>
|
||||
|
||||
|
||||
<arg choice="plain">
|
||||
remove-generations <replaceable>ID …</replaceable>
|
||||
</arg>
|
||||
|
||||
|
||||
<arg choice="plain">
|
||||
switch
|
||||
</arg>
|
||||
|
||||
|
||||
<arg choice="plain">
|
||||
uninstall
|
||||
</arg>
|
||||
@@ -61,85 +65,126 @@
|
||||
<arg>
|
||||
-A <replaceable>attrPath</replaceable>
|
||||
</arg>
|
||||
|
||||
|
||||
<arg>
|
||||
-I <replaceable>path</replaceable>
|
||||
</arg>
|
||||
|
||||
|
||||
<arg>
|
||||
--flake <replaceable>flake-uri</replaceable>
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
-b <replaceable>ext</replaceable>
|
||||
</arg>
|
||||
|
||||
|
||||
<arg>
|
||||
<group choice="req">
|
||||
<group choice="req">
|
||||
<arg choice="plain">
|
||||
-f
|
||||
</arg>
|
||||
|
||||
|
||||
<arg choice="plain">
|
||||
--file
|
||||
</arg>
|
||||
</group> <replaceable>path</replaceable>
|
||||
</arg>
|
||||
|
||||
|
||||
<arg>
|
||||
<group choice="req">
|
||||
<group choice="req">
|
||||
<arg choice="plain">
|
||||
-h
|
||||
</arg>
|
||||
|
||||
|
||||
<arg choice="plain">
|
||||
--help
|
||||
</arg>
|
||||
</group>
|
||||
</arg>
|
||||
|
||||
|
||||
<arg>
|
||||
<group choice="req">
|
||||
--version
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
<group choice="req">
|
||||
<arg choice="plain">
|
||||
-n
|
||||
</arg>
|
||||
|
||||
|
||||
<arg choice="plain">
|
||||
--dry-run
|
||||
</arg>
|
||||
</group>
|
||||
</arg>
|
||||
|
||||
|
||||
<arg>
|
||||
--option <replaceable>name</replaceable> <replaceable>value</replaceable>
|
||||
</arg>
|
||||
|
||||
|
||||
<arg>
|
||||
--cores <replaceable>number</replaceable>
|
||||
</arg>
|
||||
|
||||
|
||||
<arg>
|
||||
--max-jobs <replaceable>number</replaceable>
|
||||
<group choice="req">
|
||||
<arg choice="plain">
|
||||
-j
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
--max-jobs
|
||||
</arg>
|
||||
</group>
|
||||
<replaceable>number</replaceable>
|
||||
</arg>
|
||||
|
||||
|
||||
<arg>
|
||||
--debug
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
--impure
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
--keep-failed
|
||||
</arg>
|
||||
|
||||
|
||||
<arg>
|
||||
--keep-going
|
||||
</arg>
|
||||
|
||||
|
||||
<arg>
|
||||
<group choice="req">
|
||||
<arg choice="plain">
|
||||
-L
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
--print-build-logs
|
||||
</arg>
|
||||
</group>
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
--show-trace
|
||||
</arg>
|
||||
|
||||
|
||||
<arg>
|
||||
--(no-)substitute
|
||||
</arg>
|
||||
|
||||
|
||||
<arg>
|
||||
<group choice="req">
|
||||
--no-out-link
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
<group choice="req">
|
||||
<arg choice="plain">
|
||||
-v
|
||||
</arg>
|
||||
|
||||
|
||||
<arg choice="plain">
|
||||
--verbose
|
||||
</arg>
|
||||
@@ -151,7 +196,7 @@
|
||||
<title>Description</title>
|
||||
<para>
|
||||
This command updates the user environment so that it corresponds to the
|
||||
configuration specified in <filename>~/.config/nixpkgs/home.nix</filename>.
|
||||
configuration specified in <filename>~/.config/nixpkgs/home.nix</filename> or <filename>~/.config/nixpkgs/flake.nix</filename>.
|
||||
</para>
|
||||
<para>
|
||||
All operations using this tool expects a sub-command that indicates the
|
||||
@@ -233,6 +278,18 @@
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>option <replaceable>option.name</replaceable></option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Inspect the given option name in the home configuration, like <citerefentry>
|
||||
<refentrytitle>nixos-option</refentrytitle>
|
||||
<manvolnum>8</manvolnum> </citerefentry>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>packages</option>
|
||||
@@ -334,6 +391,18 @@
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--flake <replaceable>flake-uri[#name]</replaceable></option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Build Home Manager configuration from the flake, which must contain the
|
||||
output homeConfigurations.name. If no name is specified it will first try
|
||||
username@hostname and then username.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>-b <replaceable>extension</replaceable></option>
|
||||
@@ -361,7 +430,7 @@
|
||||
<listitem>
|
||||
<para>
|
||||
Indicates the path to the Home Manager configuration file. If not given,
|
||||
<filename>~/.config/nixpkgs/home.nix</filename> is used.
|
||||
<filename>$XDG_CONFIG_HOME/nixpkgs/home.nix</filename> is used.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@@ -378,6 +447,16 @@
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--version</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Prints the version number of the <command>home-manager</command> tool.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>-n</option>
|
||||
@@ -417,6 +496,9 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>-j <replaceable>number</replaceable></option>
|
||||
</term>
|
||||
<term>
|
||||
<option>--max-jobs <replaceable>number</replaceable></option>
|
||||
</term>
|
||||
@@ -428,6 +510,30 @@
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--debug</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix-build</refentrytitle>
|
||||
<manvolnum>1</manvolnum> </citerefentry>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--impure</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix-build</refentrytitle>
|
||||
<manvolnum>1</manvolnum> </citerefentry>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--keep-failed</option>
|
||||
@@ -452,6 +558,22 @@
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>-L</option>
|
||||
</term>
|
||||
<term>
|
||||
<option>--print-build-logs</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix build</refentrytitle>
|
||||
</citerefentry>
|
||||
when building from a flake.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--show-trace</option>
|
||||
@@ -476,6 +598,19 @@
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--no-out-link</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix-build</refentrytitle>
|
||||
<manvolnum>1</manvolnum> </citerefentry>
|
||||
when running <command>home-manager build</command>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>-v</option>
|
||||
@@ -496,7 +631,7 @@
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<filename>~/.local/share/home-manager/news-read-ids</filename>
|
||||
<filename>$XDG_DATA_HOME/home-manager/news-read-ids</filename>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
@@ -4,7 +4,7 @@
|
||||
<title>Home Manager Reference Pages</title>
|
||||
<info>
|
||||
<author><personname>Home Manager contributors</personname></author>
|
||||
<copyright><year>2017–2020</year><holder>Home Manager contributors</holder>
|
||||
<copyright><year>2017–2022</year><holder>Home Manager contributors</holder>
|
||||
</copyright>
|
||||
</info>
|
||||
<xi:include href="man-configuration.xml" />
|
||||
@@ -9,28 +9,30 @@
|
||||
<preface>
|
||||
<title>Preface</title>
|
||||
<para>
|
||||
This manual will eventually describes how to install, use, and extend Home
|
||||
This manual will eventually describe how to install, use, and extend Home
|
||||
Manager.
|
||||
</para>
|
||||
<para>
|
||||
If you encounter problems then please reach out on the IRC channel
|
||||
<link xlink:href="https://webchat.freenode.net/?url=irc%3A%2F%2Firc.freenode.net%2Fhome-manager">#home-manager</link>
|
||||
hosted by <link xlink:href="https://freenode.net/">freenode</link>.
|
||||
The <link xlink:href="https://logs.nix.samueldr.com/home-manager/">channel logs</link>
|
||||
are hosted courtesy of <link xlink:href="https://github.com/samueldr/">samueldr</link>.
|
||||
<link xlink:href="https://webchat.oftc.net/?channels=home-manager">#home-manager</link>
|
||||
hosted by <link xlink:href="https://oftc.net/">OFTC</link>.
|
||||
There is also a <link xlink:href="https://matrix.to/#/%23hm:rycee.net">Matrix room</link>,
|
||||
which is bridged to the IRC channel.
|
||||
If your problem is caused by a bug in Home Manager then it should
|
||||
be reported on the
|
||||
<link xlink:href="https://github.com/nix-community/home-manager/issues">Home Manager issue tracker</link>.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Commands prefixed with <literal>#</literal> have to be run as root, either
|
||||
Commands prefixed with <literal>$ sudo</literal> have to be run as root, either
|
||||
requiring to login as root user or temporarily switching to it using
|
||||
<literal>sudo</literal> for example.
|
||||
</para>
|
||||
</note>
|
||||
</preface>
|
||||
<xi:include href="installation.xml" />
|
||||
<xi:include href="usage.xml" />
|
||||
<xi:include href="nix-flakes.xml" />
|
||||
<xi:include href="writing-modules.xml" />
|
||||
<xi:include href="contributing.xml" />
|
||||
<xi:include href="faq.xml" />
|
||||
@@ -38,6 +40,14 @@
|
||||
<title>Configuration Options</title>
|
||||
<xi:include href="./nmd-result/home-manager-options.xml" />
|
||||
</appendix>
|
||||
<appendix xml:id="ch-nixos-options">
|
||||
<title>NixOS Module Options</title>
|
||||
<xi:include href="./nmd-result/nixos-options.xml" />
|
||||
</appendix>
|
||||
<appendix xml:id="ch-nix-darwin-options">
|
||||
<title>nix-darwin Module Options</title>
|
||||
<xi:include href="./nmd-result/nix-darwin-options.xml" />
|
||||
</appendix>
|
||||
<appendix xml:id="ch-tools">
|
||||
<title>Tools</title>
|
||||
<xi:include href="./man-home-manager.xml" />
|
||||
241
docs/nix-flakes.adoc
Normal file
241
docs/nix-flakes.adoc
Normal file
@@ -0,0 +1,241 @@
|
||||
[[ch-nix-flakes]]
|
||||
== Nix Flakes
|
||||
|
||||
:nixos-wiki-flakes: https://nixos.wiki/wiki/Flakes
|
||||
|
||||
Home Manager includes a `flake.nix` file for compatibility with {nixos-wiki-flakes}[Nix Flakes].
|
||||
The support is still experimental and may change in backwards incompatible ways.
|
||||
|
||||
[[sec-flakes-prerequisties]]
|
||||
=== Prerequisites
|
||||
|
||||
* Install Nix 2.4 or later, or have it in `nix-shell`.
|
||||
|
||||
* Enable experimental features `nix-command` and `flakes`.
|
||||
+
|
||||
** When using NixOS, add the following to your `configuration.nix` and rebuild your system.
|
||||
+
|
||||
[source,nix]
|
||||
nix = {
|
||||
package = pkgs.nixFlakes;
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
};
|
||||
+
|
||||
** If you are not using NixOS, add the following to `nix.conf` (located at `~/.config/nix/` or `/etc/nix/nix.conf`).
|
||||
+
|
||||
[source,bash]
|
||||
experimental-features = nix-command flakes
|
||||
+
|
||||
You may need to restart the Nix daemon with, for example, `sudo systemctl restart nix-daemon.service`.
|
||||
+
|
||||
** Alternatively, you can enable flakes on a per-command basis with the following additional flags to `nix` and `home-manager`:
|
||||
+
|
||||
[source,console]
|
||||
----
|
||||
$ nix --extra-experimental-features "nix-command flakes" <sub-commands>
|
||||
$ home-manager --extra-experimental-features "nix-command flakes" <sub-commands>
|
||||
----
|
||||
|
||||
* Prepare your Home Manager configuration (`home.nix`).
|
||||
+
|
||||
Unlike the channel-based setup,
|
||||
`home.nix` will be evaluated when the flake is built,
|
||||
so it must be present before bootstrap of Home Manager from the flake.
|
||||
See <<sec-usage-configuration>> for introduction about
|
||||
writing a Home Manager configuration.
|
||||
|
||||
[[sec-flakes-standalone]]
|
||||
=== Standalone setup
|
||||
|
||||
1. Set up a flake with a `flake.nix` as follows:
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
description = "Home Manager configuration of Jane Doe";
|
||||
|
||||
inputs = {
|
||||
# Specify the source of Home Manager and Nixpkgs.
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, home-manager, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
homeConfigurations.jdoe = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
|
||||
# Specify your home configuration modules here, for example,
|
||||
# the path to your home.nix.
|
||||
modules = [
|
||||
./home.nix
|
||||
];
|
||||
|
||||
# Optionally use extraSpecialArgs
|
||||
# to pass through arguments to home.nix
|
||||
};
|
||||
};
|
||||
}
|
||||
----
|
||||
+
|
||||
[NOTE]
|
||||
====
|
||||
* The above example tracks the master branch of Home Manager
|
||||
and nixos-unstable branch of Nixpkgs.
|
||||
If you would like to use the `release-22.11` branch,
|
||||
change the `home-manager` input url to `github:nix-community/home-manager/release-22.11`
|
||||
and `nixpkgs` url to `github:NixOS/nixpkgs/nixos-22.11`.
|
||||
|
||||
* The Home Manager library is exported by the flake under
|
||||
`lib.hm`.
|
||||
|
||||
* You can use the above `flake.nix` as a template in `~/.config/nixpkgs` by
|
||||
[source,console]
|
||||
$ nix flake new ~/.config/nixpkgs -t github:nix-community/home-manager
|
||||
====
|
||||
|
||||
2. Install Home Manager and apply the configuration by
|
||||
+
|
||||
[source,console]
|
||||
----
|
||||
$ nix build --no-link <flake-uri>#homeConfigurations.jdoe.activationPackage
|
||||
$ "$(nix path-info <flake-uri>#homeConfigurations.jdoe.activationPackage)"/activate
|
||||
----
|
||||
+
|
||||
Substitute `<flake-uri>` with the flake URI of the configuration flake.
|
||||
If `flake.nix` resides in `~/.config/nixpkgs`,
|
||||
`<flake-uri>` may be `~/.config/nixpkgs`
|
||||
as a Git tree or `path:~/.config/nixpkgs` if not.
|
||||
|
||||
3. Since the release `21.05`,
|
||||
building a flake-based configuration is as simple as
|
||||
+
|
||||
[source,console]
|
||||
$ home-manager switch --flake '<flake-uri>#jdoe'
|
||||
+
|
||||
once home-manager is installed.
|
||||
+
|
||||
Here, `jdoe` is a configuration specified in the flake file,
|
||||
and `<flake-uri>#jdoe` will be expanded to
|
||||
`<flake-uri>#homeConfigurations.jdoe.activationPackage`
|
||||
and be built by Nix.
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
The flake inputs are not upgraded automatically when switching.
|
||||
The analogy to the command `home-manager --update ...` is `nix flake update`.
|
||||
|
||||
If updating more than one input is undesirable,
|
||||
the command `nix flake lock --update-input <input-name>` can be used.
|
||||
|
||||
You can also pass flake-related options
|
||||
such as `--recreate-lock-file` or `--update-input [input]`
|
||||
to `home-manager` when building/switching,
|
||||
and these options will be forwarded to `nix build`.
|
||||
See the {nixos-wiki-flakes}[NixOS Wiki page] for detail.
|
||||
====
|
||||
|
||||
[[sec-flakes-nixos-module]]
|
||||
=== NixOS module
|
||||
|
||||
To use Home Manager as a NixOS module,
|
||||
a bare-minimum `flake.nix` would be as follows:
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
description = "NixOS configuration";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = inputs@{ nixpkgs, home-manager, ... }: {
|
||||
nixosConfigurations = {
|
||||
hostname = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.jdoe = import ./home.nix;
|
||||
|
||||
# Optionally, use home-manager.extraSpecialArgs to pass
|
||||
# arguments to home.nix
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
----
|
||||
|
||||
The Home Manager configuration is then part of the NixOS configuration
|
||||
and is automatically rebuilt with the system when using the appropriate command
|
||||
for the system, such as `nixos-rebuild switch --flake <flake-uri>`.
|
||||
|
||||
You can use the above `flake.nix` as a template in `/etc/nixos` by
|
||||
|
||||
[source,console]
|
||||
$ nix flake new /etc/nixos -t github:nix-community/home-manager#nixos
|
||||
|
||||
[[sec-flakes-nix-darwin-module]]
|
||||
=== nix-darwin module
|
||||
|
||||
The flake-based setup of the Home Manager nix-darwin module
|
||||
is similar to that of NixOS. The `flake.nix` would be:
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
description = "Darwin configuration";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
darwin.url = "github:lnl7/nix-darwin";
|
||||
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = inputs@{ nixpkgs, home-manager, darwin, ... }: {
|
||||
darwinConfigurations = {
|
||||
hostname = darwin.lib.darwinSystem {
|
||||
system = "x86_64-darwin";
|
||||
modules = [
|
||||
./configuration.nix
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.jdoe = import ./home.nix;
|
||||
|
||||
# Optionally, use home-manager.extraSpecialArgs to pass
|
||||
# arguments to home.nix
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
----
|
||||
|
||||
and it is also rebuilt with the nix-darwin generations.
|
||||
The rebuild command here may be `darwin-rebuild switch --flake <flake-uri>`.
|
||||
|
||||
You can use the above `flake.nix` as a template in `~/.config/darwin` by
|
||||
|
||||
[source,console]
|
||||
$ nix flake new ~/.config/darwin -t github:nix-community/home-manager#nix-darwin
|
||||
@@ -6,7 +6,13 @@ This section lists the release notes for stable versions of Home Manager and the
|
||||
|
||||
:leveloffset: 1
|
||||
|
||||
include::rl-2103.adoc[]
|
||||
include::rl-2211.adoc[]
|
||||
|
||||
include::rl-2205.adoc[]
|
||||
|
||||
include::rl-2111.adoc[]
|
||||
|
||||
include::rl-2105.adoc[]
|
||||
|
||||
include::rl-2009.adoc[]
|
||||
|
||||
200
docs/release-notes/rl-2105.adoc
Normal file
200
docs/release-notes/rl-2105.adoc
Normal file
@@ -0,0 +1,200 @@
|
||||
[[sec-release-21.05]]
|
||||
== Release 21.05
|
||||
|
||||
The 21.05 release branch became the stable branch in May, 2021.
|
||||
|
||||
[[sec-release-21.05-highlights]]
|
||||
=== Highlights
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
* The `opt-programs.broot.verbs` option is now a list rather than an
|
||||
attribute set. To migrate, move the keys of the attrset into the list
|
||||
items' `invocation` keys. For example,
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.broot.verbs = {
|
||||
"p" = { execution = ":parent"; };
|
||||
};
|
||||
----
|
||||
+
|
||||
becomes
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.broot.verbs = [
|
||||
{
|
||||
invocation = "p";
|
||||
execution = ":parent";
|
||||
}
|
||||
];
|
||||
----
|
||||
|
||||
* The <<opt-programs.mpv.package>> option has been changed to allow custom
|
||||
derivations. The following configuration is now possible:
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.mpv.package = (pkgs.wrapMpv (pkgs.mpv-unwrapped.override {
|
||||
vapoursynthSupport = true;
|
||||
}) {
|
||||
extraMakeWrapperArgs = [
|
||||
"--prefix" "LD_LIBRARY_PATH" ":" "${pkgs.vapoursynth-mvtools}/lib/vapoursynth"
|
||||
];
|
||||
});
|
||||
----
|
||||
+
|
||||
As a result of this change, <<opt-programs.mpv.package>> is no longer the
|
||||
resulting derivation. Use the newly introduced `programs.mpv.finalPackage`
|
||||
instead.
|
||||
|
||||
* The <<opt-programs.rofi.extraConfig>> option is now an attribute set rather
|
||||
than a string. To migrate, move each line into the attribute set,
|
||||
removing the `rofi.` prefix from the keys. For example,
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.rofi.extraConfig = ''
|
||||
rofi.show-icons: true
|
||||
rofi.modi: drun,emoji,ssh
|
||||
'';
|
||||
----
|
||||
+
|
||||
becomes
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.rofi.extraConfig = {
|
||||
show-icons = true;
|
||||
modi = "drun,emoji,ssh";
|
||||
};
|
||||
----
|
||||
+
|
||||
* The <<opt-programs.rofi.theme>> option now supports defining a theme
|
||||
using an attribute set, the following configuration is now possible:
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.rofi.theme = let
|
||||
# Necessary to avoid quoting non-string values
|
||||
inherit (config.lib.formats.rasi) mkLiteral;
|
||||
in {
|
||||
"@import" = "~/.config/rofi/theme.rasi";
|
||||
|
||||
"*" = {
|
||||
background-color = mkLiteral "#000000";
|
||||
foreground-color = mkLiteral "rgba ( 250, 251, 252, 100 % )";
|
||||
border-color = mkLiteral "#FFFFFF";
|
||||
width = 512;
|
||||
};
|
||||
|
||||
"#textbox-prompt-colon" = {
|
||||
expand = false;
|
||||
str = ":";
|
||||
margin = mkLiteral "0px 0.3em 0em 0em";
|
||||
text-color = mkLiteral "@foreground-color";
|
||||
};
|
||||
};
|
||||
----
|
||||
|
||||
|
||||
* The `services.redshift.extraOptions` and `services.gammastep.extraOptions`
|
||||
options were removed in favor of <<opt-services.redshift.settings>> and
|
||||
`services.gammastep.settings`, that are now an attribute set rather
|
||||
than a string. They also support new features not available before, for
|
||||
example:
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
services.redshift = {
|
||||
dawnTime = "6:00-7:45";
|
||||
duskTime = "18:35-20:15";
|
||||
settings = {
|
||||
redshift = {
|
||||
gamma = 0.8;
|
||||
adjustment-method = "randr";
|
||||
};
|
||||
|
||||
randr = {
|
||||
screen = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
----
|
||||
+
|
||||
It is recommended to check either
|
||||
https://github.com/jonls/redshift/blob/master/redshift.conf.sample[redshift.conf.sample] or
|
||||
https://gitlab.com/chinstrap/gammastep/-/blob/master/gammastep.conf.sample[gammastep.conf.sample]
|
||||
for the available additional options in each program.
|
||||
|
||||
* Specifying `programs.neomutt.binds.map` or `programs.neomutt.macros.map` as a
|
||||
single string is now deprecated in favor of specfiying it as a list of
|
||||
strings.
|
||||
|
||||
* The `programs.neovim.configure` is deprecated in favor of other `programs.neovim` options;
|
||||
please use the other options at your disposal:
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
configure.packages.*.opt -> programs.neovim.plugins = [ { plugin = ...; optional = true; }]
|
||||
configure.packages.*.start -> programs.neovim.plugins = [ { plugin = ...; }]
|
||||
configure.customRC -> programs.neovim.extraConfig
|
||||
----
|
||||
|
||||
* Home Manager now respects the `NO_COLOR` environment variable as per
|
||||
https://no-color.org/[].
|
||||
|
||||
* Qt module now supports <<opt-qt.style.name>> to specify a theme name and
|
||||
<<opt-qt.style.package>> to specify a theme package. If you have set
|
||||
<<opt-qt.platformTheme>> to `gnome`, a <<opt-qt.style.package>> compatible
|
||||
with both Qt and Gtk is now required to be set. For instance:
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
qt = {
|
||||
platformTheme = "gnome";
|
||||
style = {
|
||||
name = "adwaita-dark";
|
||||
package = pkgs.adwaita-qt;
|
||||
};
|
||||
};
|
||||
----
|
||||
|
||||
* The library type `fontType` now has a `size` attribute in addition to `name`. For example:
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
font = {
|
||||
name = "DejaVu Sans";
|
||||
size = 8;
|
||||
};
|
||||
----
|
||||
|
||||
* The <<opt-programs.htop.settings>> option is introduced to replace individual
|
||||
options in `programs.htop`. To migrate, set the htop options directly in
|
||||
<<opt-programs.htop.settings>>. For example:
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.htop = {
|
||||
enabled = true;
|
||||
settings = {
|
||||
color_scheme = 5;
|
||||
delay = 15;
|
||||
highlight_base_name = 1;
|
||||
highlight_megabytes = 1;
|
||||
highlight_threads = 1;
|
||||
};
|
||||
};
|
||||
----
|
||||
|
||||
[[sec-release-21.05-state-version-changes]]
|
||||
=== State Version Changes
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
"21.05" or later.
|
||||
|
||||
* The `newsboat` module now stores generated configuration in
|
||||
`$XDG_CONFIG_HOME/newsboat`.
|
||||
73
docs/release-notes/rl-2111.adoc
Normal file
73
docs/release-notes/rl-2111.adoc
Normal file
@@ -0,0 +1,73 @@
|
||||
[[sec-release-21.11]]
|
||||
== Release 21.11
|
||||
|
||||
The 21.11 release branch became the stable branch in November, 2021.
|
||||
|
||||
[[sec-release-21.11-highlights]]
|
||||
=== Highlights
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
* All Home Manager modules are now loaded on all platforms. With this
|
||||
change you will get a more descriptive error message if you attempt to
|
||||
enable a module that is incompatible with the host platform.
|
||||
+
|
||||
Previously, modules that were platform specific would only be loaded
|
||||
on that particular platform. For example, a module defining a
|
||||
https://systemd.io/[systemd] service would only be loaded when the
|
||||
host platform was Linux. This reduced evaluation times, simplified the
|
||||
generated documentation, and made it impossible to accidentally use
|
||||
modules that do not support the host platform.
|
||||
+
|
||||
While the above benefits are quite nice, avoiding module loads also
|
||||
brings a few problems. For example, the
|
||||
https://nix-community.github.io/home-manager/[public documentation]
|
||||
will only show the options available for Linux hosts and the
|
||||
documentation cannot make references to options within modules that
|
||||
are unavailable on some hosts. Finally, users who wish to use the same
|
||||
configuration file for different platforms cannot do so, even if the
|
||||
platform incompatible options are unused.
|
||||
+
|
||||
Ultimately, the benefits of loading all modules won and the behavior
|
||||
has now changed. For associated discussion see
|
||||
https://github.com/nix-community/home-manager/issues/1906[issue #1906].
|
||||
|
||||
* Rofi version 1.7.0 removed many options that were used by the module and replaced them with custom themes, which are more flexible and powerful.
|
||||
+
|
||||
You can replicate your old configuration by moving those options to <<opt-programs.rofi.theme>>. Keep in mind that the syntax is different so you may need to do some changes.
|
||||
|
||||
* Taskwarrior version 2.6.0 respects XDG Specification for the config file now.
|
||||
Option <<opt-programs.taskwarrior.config>> and friends now generate the config file at
|
||||
`$XDG_CONFIG_HOME/task/taskrc` instead of `~/.taskrc`.
|
||||
|
||||
[[sec-release-21.11-state-version-changes]]
|
||||
=== State Version Changes
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
"21.11" or later.
|
||||
|
||||
* The <<opt-home.keyboard>> option now defaults to `null`, meaning that Home Manager won't do any keyboard layout management. For example, `setxkbmap` won't be run in X sessions.
|
||||
|
||||
* The <<opt-programs.pet.settings>> option no longer place its value inside a `General` attribute.
|
||||
For example,
|
||||
+
|
||||
[source,nix]
|
||||
programs.pet.settings.editor = "nvim";
|
||||
+
|
||||
becomes
|
||||
+
|
||||
[source,nix]
|
||||
programs.pet.settings.General.editor = "nvim";
|
||||
|
||||
* The <<opt-programs.waybar.settings>> option now allows defining modules directly under <<opt-programs.waybar.settings>>.
|
||||
For example,
|
||||
+
|
||||
[source,nix]
|
||||
programs.waybar.settings.modules."custom/my-module" = { };
|
||||
+
|
||||
becomes
|
||||
+
|
||||
[source,nix]
|
||||
programs.waybar.settings."custom/my-module" = { };
|
||||
|
||||
44
docs/release-notes/rl-2205.adoc
Normal file
44
docs/release-notes/rl-2205.adoc
Normal file
@@ -0,0 +1,44 @@
|
||||
[[sec-release-22.05]]
|
||||
== Release 22.05
|
||||
|
||||
The 22.05 release branch became the stable branch in May, 2022.
|
||||
|
||||
[[sec-release-22.05-highlights]]
|
||||
=== Highlights
|
||||
|
||||
:hm-weblate: https://hosted.weblate.org/projects/home-manager/
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
* The `programs.waybar.settings.modules` option was removed.
|
||||
Waybar modules should now be declared directly under `programs.waybar.settings`.
|
||||
|
||||
* Home Manager now partially support translation of texts into different languages.
|
||||
Note, the support is quite limited at the moment.
|
||||
Specifically, it only applies to parts of the system written in the Bash language,
|
||||
such as the `home-manager` command line tool and the activation script.
|
||||
+
|
||||
If you would like to contribute to the translation effort
|
||||
then you can do so through the {hm-weblate}[Home Manager Weblate project].
|
||||
|
||||
* A new module, `launchd.agents` was added.
|
||||
Use this to enable services based on macOS LaunchAgents.
|
||||
|
||||
[[sec-release-22.05-state-version-changes]]
|
||||
=== State Version Changes
|
||||
|
||||
The state version in this release includes the changes below.
|
||||
These changes are only active if the `home.stateVersion` option is set to "22.05" or later.
|
||||
|
||||
* The <<opt-programs.waybar.settings>> option now allows defining modules directly under <<opt-programs.waybar.settings>>.
|
||||
Defining modules under `programs.waybar.settings.modules` will now be an error.
|
||||
For example,
|
||||
+
|
||||
[source,nix]
|
||||
programs.waybar.settings.modules."custom/my-module" = { };
|
||||
+
|
||||
becomes
|
||||
+
|
||||
[source,nix]
|
||||
programs.waybar.settings."custom/my-module" = { };
|
||||
|
||||
113
docs/release-notes/rl-2211.adoc
Normal file
113
docs/release-notes/rl-2211.adoc
Normal file
@@ -0,0 +1,113 @@
|
||||
[[sec-release-22.11]]
|
||||
== Release 22.11
|
||||
|
||||
This is the current unstable branch and the information in this section is therefore not final.
|
||||
|
||||
[[sec-release-22.11-highlights]]
|
||||
=== Highlights
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
* The <<opt-home.stateVersion>> option no longer has a default value.
|
||||
It used to default to ``18.09'', which was the Home Manager version
|
||||
that introduced the option. If your configuration does not explicitly
|
||||
set this option then you need to add
|
||||
+
|
||||
[source,nix]
|
||||
home.stateVersion = "18.09";
|
||||
+
|
||||
to your configuration.
|
||||
|
||||
* The Flake function `homeManagerConfiguration` has been simplified.
|
||||
Specifically, the arguments
|
||||
+
|
||||
--
|
||||
- `configuration`,
|
||||
- `username`,
|
||||
- `homeDirectory`,
|
||||
- `stateVersion`,
|
||||
- `extraModules`, and
|
||||
- `system`
|
||||
--
|
||||
+
|
||||
have been removed. Instead use the new `modules` argument, which
|
||||
accepts a list of NixOS modules.
|
||||
+
|
||||
Further, the `pkgs` argument is now mandatory and should be set to
|
||||
`nixpkgs.legacyPackages.${system}` where `nixpkgs` is the Nixpkgs
|
||||
input of your choice.
|
||||
+
|
||||
For example, if your Flake currently contains
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
homeManagerConfiguration {
|
||||
configuration = import ./home.nix;
|
||||
system = "x86_64-linux";
|
||||
username = "jdoe";
|
||||
homeDirectory = "/home/jdoe";
|
||||
stateVersion = "22.05";
|
||||
extraModules = [ ./some-extra-module.nix ];
|
||||
}
|
||||
----
|
||||
+
|
||||
then you can change it to
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
modules = [
|
||||
./home.nix
|
||||
./some-extra-module.nix
|
||||
{
|
||||
home = {
|
||||
username = "jdoe";
|
||||
homeDirectory = "/home/jdoe";
|
||||
stateVersion = "22.05";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
----
|
||||
+
|
||||
Of course, you can move the assignment of <<opt-home.username>>,
|
||||
<<opt-home.homeDirectory>>, and <<opt-home.stateVersion>> to some
|
||||
other file or simply place them in your `home.nix`.
|
||||
|
||||
* The `services.picom` module has been refactored to use structural
|
||||
settings.
|
||||
+
|
||||
As a result `services.picom.extraOptions` has been removed in favor of
|
||||
<<opt-services.picom.settings>>. Also, `services.picom.blur*` were
|
||||
removed since upstream changed the blur settings to be more flexible.
|
||||
You can migrate the blur settings to use
|
||||
<<opt-services.picom.settings>> instead.
|
||||
|
||||
* The `services.compton` module has been removed. It was deprecated in
|
||||
release 20.03. Use `services.picom` instead.
|
||||
|
||||
[[sec-release-22.11-state-version-changes]]
|
||||
=== State Version Changes
|
||||
|
||||
The state version in this release includes the changes below.
|
||||
These changes are only active if the `home.stateVersion` option is set to "22.11" or later.
|
||||
|
||||
* The <<opt-services.mpd.musicDirectory>> option now defaults to the
|
||||
value of <<opt-xdg.userDirs.music>> if <<opt-xdg.userDirs.enable>> is
|
||||
enabled. Otherwise it is undefined and must be specified in the user
|
||||
configuration.
|
||||
|
||||
* The activation script now resets `PATH` before running. Before, the
|
||||
user's `PATH` environment variable would be used in the script and
|
||||
this made it possible for commands in the activation script to run
|
||||
arbitrary commands accessible to the user. We now restrict the
|
||||
activation script to commands that are explicitly specified.
|
||||
+
|
||||
There is no official way to restore the old behavior. We attempt to
|
||||
make the activation script as reproducible as possible and honoring
|
||||
the user's `PATH` reduces reproducibility.
|
||||
+
|
||||
If you need to run a command in an activation script block then refer
|
||||
to the command by its absolute command path, such as
|
||||
`${pkgs.hello}/bin/hello`.
|
||||
245
docs/usage.adoc
Normal file
245
docs/usage.adoc
Normal file
@@ -0,0 +1,245 @@
|
||||
[[ch-usage]]
|
||||
== Using Home Manager
|
||||
|
||||
Your use of Home Manager is centered around the configuration file, which is typically found at `~/.config/nixpkgs/home.nix`.
|
||||
|
||||
This configuration file can be _built_ and _activated_.
|
||||
|
||||
Building a configuration produces a directory in the Nix store that contains all files and programs that should be available in your home directory and Nix user profile, respectively. The build step also checks that the configuration is valid and it will fail with an error if you, for example, assign a value to an option that does not exist or assign a value of the wrong type. Some modules also have custom assertions that perform more detailed, module specific, checks.
|
||||
|
||||
Concretely, if your configuration contains
|
||||
|
||||
[source,nix]
|
||||
programs.emacs.enable = "yes";
|
||||
|
||||
then building it, for example using `home-manager build`, will result in an error message saying something like
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ home-manager build
|
||||
error: A definition for option `programs.emacs.enable' is not of type `boolean'. Definition values:
|
||||
- In `/home/jdoe/.config/nixpkgs/home.nix': "yes"
|
||||
(use '--show-trace' to show detailed location information)
|
||||
----
|
||||
|
||||
The message indicates that you must provide a Boolean value for this option, that is, either `true` or `false`. The documentation of each option will state the expected type, for <<opt-programs.emacs.enable>> you will see ``Type: boolean''. You there also find information about the default value and a description of the option. You can find the complete option documentation in <<ch-options>> or directly in the terminal by running
|
||||
|
||||
[source,console]
|
||||
man home-configuration.nix
|
||||
|
||||
Once a configuration is successfully built, it can be activated. The activation performs the steps necessary to make the files, programs, and services available in your user environment. The `home-manager switch` command performs a combined build and activation.
|
||||
|
||||
[[sec-usage-configuration]]
|
||||
=== Configuration Example
|
||||
|
||||
A fresh install of Home Manager will generate a minimal `~/.config/nixpkgs/home.nix` file containing something like
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home.username = "jdoe";
|
||||
home.homeDirectory = "/home/jdoe";
|
||||
|
||||
# This value determines the Home Manager release that your
|
||||
# configuration is compatible with. This helps avoid breakage
|
||||
# when a new Home Manager release introduces backwards
|
||||
# incompatible changes.
|
||||
#
|
||||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
home.stateVersion = "22.11";
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
----
|
||||
|
||||
You can use this as a base for your further configurations.
|
||||
|
||||
[NOTE]
|
||||
If you are not very familiar with the Nix language and NixOS modules then it is encouraged to start with small and simple changes. As you learn you can gradually grow the configuration with confidence.
|
||||
|
||||
As an example, let us expand the initial configuration file to also install the htop and fortune packages, install Emacs with a few extra packages available, and enable the user gpg-agent service.
|
||||
|
||||
To satisfy the above setup we should elaborate the `home.nix` file as follows:
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home.username = "jdoe";
|
||||
home.homeDirectory = "/home/jdoe";
|
||||
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = [ <1>
|
||||
pkgs.htop
|
||||
pkgs.fortune
|
||||
];
|
||||
|
||||
# This value determines the Home Manager release that your
|
||||
# configuration is compatible with. This helps avoid breakage
|
||||
# when a new Home Manager release introduces backwards
|
||||
# incompatible changes.
|
||||
#
|
||||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
home.stateVersion = "22.11";
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
programs.emacs = { <2>
|
||||
enable = true;
|
||||
extraPackages = epkgs: [
|
||||
epkgs.nix-mode
|
||||
epkgs.magit
|
||||
];
|
||||
};
|
||||
|
||||
services.gpg-agent = { <3>
|
||||
enable = true;
|
||||
defaultCacheTtl = 1800;
|
||||
enableSshSupport = true;
|
||||
};
|
||||
}
|
||||
----
|
||||
<1> Nixpkgs packages can be installed to the user profile using <<opt-home.packages>>.
|
||||
<2> The option names of a program module typically start with `programs.<package name>`.
|
||||
<3> Similarly, for a service module, the names start with `services.<package name>`. Note in some cases a package has both programs _and_ service options – Emacs is such an example.
|
||||
|
||||
To activate this configuration you can run
|
||||
|
||||
[source,console]
|
||||
home-manager switch
|
||||
|
||||
or if you are not feeling so lucky,
|
||||
|
||||
[source,console]
|
||||
home-manager build
|
||||
|
||||
which will create a `result` link to a directory containing an
|
||||
activation script and the generated home directory files.
|
||||
|
||||
[[sec-usage-rollbacks]]
|
||||
=== Rollbacks
|
||||
|
||||
While the `home-manager` tool does not explicitly support rollbacks at the moment it is relatively easy to perform one manually. The steps to do so are
|
||||
|
||||
1. Run `home-manager generations` to determine which generation you wish to rollback to:
|
||||
+
|
||||
[source,console]
|
||||
----
|
||||
$ home-manager generations
|
||||
2018-01-04 11:56 : id 765 -> /nix/store/kahm1rxk77mnvd2l8pfvd4jkkffk5ijk-home-manager-generation
|
||||
2018-01-03 10:29 : id 764 -> /nix/store/2wsmsliqr5yynqkdyjzb1y57pr5q2lsj-home-manager-generation
|
||||
2018-01-01 12:21 : id 763 -> /nix/store/mv960kl9chn2lal5q8lnqdp1ygxngcd1-home-manager-generation
|
||||
2017-12-29 21:03 : id 762 -> /nix/store/6c0k1r03fxckql4vgqcn9ccb616ynb94-home-manager-generation
|
||||
2017-12-25 18:51 : id 761 -> /nix/store/czc5y6vi1rvnkfv83cs3rn84jarcgsgh-home-manager-generation
|
||||
…
|
||||
----
|
||||
|
||||
2. Copy the Nix store path of the generation you chose, e.g.,
|
||||
+
|
||||
----
|
||||
/nix/store/mv960kl9chn2lal5q8lnqdp1ygxngcd1-home-manager-generation
|
||||
----
|
||||
+
|
||||
for generation 763.
|
||||
|
||||
3. Run the `activate` script inside the copied store path:
|
||||
+
|
||||
[source,console]
|
||||
----
|
||||
$ /nix/store/mv960kl9chn2lal5q8lnqdp1ygxngcd1-home-manager-generation/activate
|
||||
Starting home manager activation
|
||||
…
|
||||
----
|
||||
|
||||
[[sec-usage-dotfiles]]
|
||||
=== Keeping your ~ safe from harm
|
||||
|
||||
To configure programs and services Home Manager must write various things to your home directory. To prevent overwriting any existing files when switching to a new generation, Home Manager will attempt to detect collisions between existing files and generated files. If any such collision is detected the activation will terminate before changing anything on your computer.
|
||||
|
||||
For example, suppose you have a wonderful, painstakingly created `~/.config/git/config` and add
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
# …
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Jane Doe";
|
||||
userEmail = "jane.doe@example.org";
|
||||
};
|
||||
|
||||
# …
|
||||
}
|
||||
----
|
||||
|
||||
to your configuration. Attempting to switch to the generation will then result in
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ home-manager switch
|
||||
…
|
||||
Activating checkLinkTargets
|
||||
Existing file '/home/jdoe/.config/git/config' is in the way
|
||||
Please move the above files and try again
|
||||
----
|
||||
|
||||
[[sec-usage-graphical]]
|
||||
=== Graphical services
|
||||
|
||||
Home Manager includes a number of services intended to run in a graphical session, for example `xscreensaver` and `dunst`. Unfortunately, such services will not be started automatically unless you let Home Manager start your X session. That is, you have something like
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
# …
|
||||
|
||||
services.xserver.enable = true;
|
||||
|
||||
# …
|
||||
}
|
||||
----
|
||||
|
||||
in your system configuration and
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
# …
|
||||
|
||||
xsession.enable = true;
|
||||
xsession.windowManager.command = "…";
|
||||
|
||||
# …
|
||||
}
|
||||
----
|
||||
|
||||
in your Home Manager configuration.
|
||||
|
||||
[[sec-updating]]
|
||||
=== Updating
|
||||
|
||||
If you have installed Home Manager using the Nix channel method
|
||||
then updating Home Manager is done by first updating the channel.
|
||||
You can then switch to the updated Home Manager environment.
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ nix-channel --update
|
||||
…
|
||||
unpacking channels...
|
||||
$ home-manager switch
|
||||
----
|
||||
@@ -167,9 +167,11 @@ Builds a GVariant array containing the given list of elements, where each elemen
|
||||
- `hm.gvariant.type.int64`
|
||||
- `hm.gvariant.type.uint64`
|
||||
- `hm.gvariant.type.double`
|
||||
- `hm.gvariant.type.variant`
|
||||
- `hm.gvariant.type.arrayOf type`
|
||||
- `hm.gvariant.type.maybeOf type`
|
||||
- `hm.gvariant.type.tupleOf types`
|
||||
- `hm.gvariant.type.dictionaryEntryOf types`
|
||||
--
|
||||
+
|
||||
where `type` and `types` are themselves a type and list of types, respectively.
|
||||
@@ -185,3 +187,9 @@ Builds a GVariant maybe value containing the given GVariant element.
|
||||
+
|
||||
`hm.gvariant.mkTuple elements`:::
|
||||
Builds a GVariant tuple containing the given list of elements, where each element is a GVariant value.
|
||||
+
|
||||
`hm.gvariant.mkVariant element`:::
|
||||
Builds a GVariant variant which contains the value of a GVariant element.
|
||||
+
|
||||
`hm.gvariant.mkDictionaryEntry elements`:::
|
||||
Builds a GVariant dictionary entry containing the given list of elements, where each element is a GVariant value.
|
||||
43
flake.lock
generated
Normal file
43
flake.lock
generated
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1667629849,
|
||||
"narHash": "sha256-P+v+nDOFWicM4wziFK9S/ajF2lc0N2Rg9p6Y35uMoZI=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "3bacde6273b09a21a8ccfba15586fb165078fb62",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs",
|
||||
"utils": "utils"
|
||||
}
|
||||
},
|
||||
"utils": {
|
||||
"locked": {
|
||||
"lastModified": 1667395993,
|
||||
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
111
flake.nix
111
flake.nix
@@ -1,23 +1,102 @@
|
||||
{
|
||||
description = "Home Manager for Nix";
|
||||
|
||||
outputs = { self, nixpkgs }: rec {
|
||||
nixosModules.home-manager = import ./nixos;
|
||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
inputs.utils.url = "github:numtide/flake-utils";
|
||||
|
||||
darwinModules.home-manager = import ./nix-darwin;
|
||||
outputs = { self, nixpkgs, utils, ... }:
|
||||
{
|
||||
nixosModules = rec {
|
||||
home-manager = import ./nixos;
|
||||
default = home-manager;
|
||||
};
|
||||
# deprecated in Nix 2.8
|
||||
nixosModule = self.nixosModules.default;
|
||||
|
||||
lib = {
|
||||
homeManagerConfiguration = { configuration, system, homeDirectory
|
||||
, username
|
||||
, pkgs ? builtins.getAttr system nixpkgs.outputs.legacyPackages
|
||||
, check ? true }@args:
|
||||
import ./modules {
|
||||
inherit pkgs check;
|
||||
configuration = { ... }: {
|
||||
imports = [ configuration ];
|
||||
home = { inherit homeDirectory username; };
|
||||
};
|
||||
darwinModules = rec {
|
||||
home-manager = import ./nix-darwin;
|
||||
default = home-manager;
|
||||
};
|
||||
# unofficial; deprecated in Nix 2.8
|
||||
darwinModule = self.darwinModules.default;
|
||||
|
||||
templates = {
|
||||
standalone = {
|
||||
path = ./templates/standalone;
|
||||
description = "Standalone setup";
|
||||
};
|
||||
};
|
||||
};
|
||||
nixos = {
|
||||
path = ./templates/nixos;
|
||||
description = "Home Manager as a NixOS module,";
|
||||
};
|
||||
nix-darwin = {
|
||||
path = ./templates/nix-darwin;
|
||||
description = "Home Manager as a nix-darwin module,";
|
||||
};
|
||||
};
|
||||
|
||||
defaultTemplate = self.templates.standalone;
|
||||
|
||||
lib = {
|
||||
hm = (import ./modules/lib/stdlib-extended.nix nixpkgs.lib).hm;
|
||||
homeManagerConfiguration = { modules ? [ ], pkgs, lib ? pkgs.lib
|
||||
, extraSpecialArgs ? { }, check ? true
|
||||
# Deprecated:
|
||||
, configuration ? null, extraModules ? null, stateVersion ? null
|
||||
, username ? null, homeDirectory ? null, system ? null }@args:
|
||||
let
|
||||
msgForRemovedArg = ''
|
||||
The 'homeManagerConfiguration' arguments
|
||||
|
||||
- 'configuration',
|
||||
- 'username',
|
||||
- 'homeDirectory'
|
||||
- 'stateVersion',
|
||||
- 'extraModules', and
|
||||
- 'system'
|
||||
|
||||
have been removed. Instead use the arguments 'pkgs' and
|
||||
'modules'. See the 22.11 release notes for more.
|
||||
'';
|
||||
|
||||
throwForRemovedArgs = v:
|
||||
let
|
||||
used = builtins.filter (n: (args.${n} or null) != null) [
|
||||
"configuration"
|
||||
"username"
|
||||
"homeDirectory"
|
||||
"stateVersion"
|
||||
"extraModules"
|
||||
"system"
|
||||
];
|
||||
msg = msgForRemovedArg + ''
|
||||
|
||||
|
||||
Deprecated args passed: ''
|
||||
+ builtins.concatStringsSep " " used;
|
||||
in lib.throwIf (used != [ ]) msg v;
|
||||
|
||||
in throwForRemovedArgs (import ./modules {
|
||||
inherit pkgs lib check extraSpecialArgs;
|
||||
configuration = { ... }: {
|
||||
imports = modules;
|
||||
nixpkgs = { inherit (pkgs) config overlays; };
|
||||
};
|
||||
});
|
||||
};
|
||||
} // utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
docs = import ./docs { inherit pkgs; };
|
||||
in {
|
||||
packages = rec {
|
||||
home-manager = pkgs.callPackage ./home-manager { };
|
||||
docs-html = docs.manual.html;
|
||||
docs-manpages = docs.manPages;
|
||||
docs-json = docs.options.json;
|
||||
default = home-manager;
|
||||
};
|
||||
# deprecated in Nix 2.7
|
||||
defaultPackage = self.packages.${system}.default;
|
||||
});
|
||||
}
|
||||
|
||||
37
format
37
format
@@ -1,5 +1,5 @@
|
||||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/05f0934825c2a0750d4888c4735f9420c906b388.tar.gz -i bash -p findutils nixfmt
|
||||
#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/6616de389ed55fba6eeba60377fc04732d5a207c.tar.gz -i bash -p findutils nixfmt
|
||||
|
||||
CHECK_ARG=
|
||||
|
||||
@@ -12,48 +12,17 @@ case $1 in
|
||||
;;
|
||||
esac
|
||||
|
||||
# The first block of excludes are files where nixfmt does a poor job,
|
||||
# IMHO. The second block of excludes are files touched by open pull
|
||||
# requests and we want to avoid merge conflicts.
|
||||
# The excludes are for files touched by open pull requests and we want
|
||||
# to avoid merge conflicts.
|
||||
find . -name '*.nix' \
|
||||
! -path ./modules/programs/irssi.nix \
|
||||
\
|
||||
! -path ./home-manager/default.nix \
|
||||
! -path ./home-manager/home-manager.nix \
|
||||
! -path ./modules/default.nix \
|
||||
! -path ./modules/files.nix \
|
||||
! -path ./modules/home-environment.nix \
|
||||
! -path ./modules/lib/default.nix \
|
||||
! -path ./modules/lib/file-type.nix \
|
||||
! -path ./modules/manual.nix \
|
||||
! -path ./modules/misc/dconf.nix \
|
||||
! -path ./modules/misc/news.nix \
|
||||
! -path ./modules/misc/nixpkgs.nix \
|
||||
! -path ./modules/misc/xdg.nix \
|
||||
! -path ./modules/modules.nix \
|
||||
! -path ./modules/programs/afew.nix \
|
||||
! -path ./modules/programs/bash.nix \
|
||||
! -path ./modules/programs/firefox.nix \
|
||||
! -path ./modules/programs/gpg.nix \
|
||||
! -path ./modules/programs/lesspipe.nix \
|
||||
! -path ./modules/programs/ssh.nix \
|
||||
! -path ./modules/programs/tmux.nix \
|
||||
! -path ./modules/programs/zsh.nix \
|
||||
! -path ./modules/services/gpg-agent.nix \
|
||||
! -path ./modules/services/kbfs.nix \
|
||||
! -path ./modules/services/keybase.nix \
|
||||
! -path ./modules/services/mpd.nix \
|
||||
! -path ./modules/services/sxhkd.nix \
|
||||
! -path ./modules/services/window-managers/i3.nix \
|
||||
! -path ./modules/systemd.nix \
|
||||
! -path ./nix-darwin/default.nix \
|
||||
! -path ./tests/default.nix \
|
||||
! -path ./tests/modules/home-environment/default.nix \
|
||||
! -path ./tests/modules/home-environment/session-variables.nix \
|
||||
! -path ./tests/modules/programs/gpg/override-defaults.nix \
|
||||
! -path ./tests/modules/programs/tmux/default.nix \
|
||||
! -path ./tests/modules/programs/zsh/session-variables.nix \
|
||||
! -path ./tests/modules/services/sxhkd/service.nix \
|
||||
! -path ./tests/modules/systemd/services.nix \
|
||||
! -path ./tests/modules/systemd/session-variables.nix \
|
||||
-exec nixfmt $CHECK_ARG {} +
|
||||
|
||||
@@ -62,6 +62,7 @@
|
||||
# generations
|
||||
# help
|
||||
# news
|
||||
# option
|
||||
# packages
|
||||
# remove-generations
|
||||
# switch
|
||||
@@ -86,6 +87,7 @@
|
||||
#
|
||||
# help
|
||||
# edit
|
||||
# option
|
||||
# build
|
||||
# switch
|
||||
# generations
|
||||
@@ -131,6 +133,9 @@
|
||||
#
|
||||
# edit Open the home configuration in $EDITOR
|
||||
#
|
||||
# option OPTION.NAME
|
||||
# Inspect configuration option named OPTION.NAME.
|
||||
#
|
||||
# build Build configuration into result directory
|
||||
#
|
||||
# switch Build and activate configuration
|
||||
@@ -278,14 +283,20 @@ _home-manager_completions ()
|
||||
#--------------------------#
|
||||
|
||||
local Subcommands
|
||||
Subcommands=( "help" "edit" "build" "instantiate" "switch" "generations" "remove-generations" "expire-generations" "packages" "news" "uninstall" )
|
||||
Subcommands=( "help" "edit" "option" "build" "instantiate" "switch" "generations" "remove-generations" "expire-generations" "packages" "news" "uninstall" )
|
||||
|
||||
# ^ « home-manager »'s subcommands.
|
||||
|
||||
#--------------------------#
|
||||
|
||||
local Options
|
||||
Options=( "-f" "--file" "-b" "-A" "-I" "-h" "--help" "-n" "--dry-run" "-v" "--verbose" "--show-trace" )
|
||||
Options=( "-f" "--file" "-b" "-A" "-I" "-h" "--help" "-n" "--dry-run" "-v" \
|
||||
"--verbose" "--cores" "--debug" "--impure" "--keep-failed" \
|
||||
"--keep-going" "-j" "--max-jobs" "--no-substitute" "--no-out-link" \
|
||||
"-L" "--print-build-logs" \
|
||||
"--show-trace" "--substitute" "--builders" "--version" \
|
||||
"--update-input" "--override-input" "--experimental-features" \
|
||||
"--extra-experimental-features" )
|
||||
|
||||
# ^ « home-manager »'s options.
|
||||
|
||||
@@ -353,4 +364,4 @@ _home-manager_completions ()
|
||||
|
||||
complete -F _home-manager_completions -o default home-manager
|
||||
|
||||
#complete -W "help edit build switch generations remove-generations expire-generations packages news" home-manager
|
||||
#complete -W "help edit option build switch generations remove-generations expire-generations packages news" home-manager
|
||||
|
||||
71
home-manager/completion.fish
Normal file
71
home-manager/completion.fish
Normal file
@@ -0,0 +1,71 @@
|
||||
#!/bin/env fish
|
||||
##################################################
|
||||
|
||||
# « home-manager » command-line fish completion
|
||||
#
|
||||
# © 2021 "Ariel AxionL" <i at axionl dot me>
|
||||
#
|
||||
# MIT License
|
||||
#
|
||||
|
||||
##################################################
|
||||
|
||||
### Functions
|
||||
function __home_manager_generations --description "Get all generations"
|
||||
for i in (home-manager generations)
|
||||
set -l split (string split " " $i)
|
||||
set -l gen_id $split[5]
|
||||
set -l gen_datetime $split[1..2]
|
||||
set -l gen_hash (string match -r '\w{32}' $i)
|
||||
echo $gen_id\t$gen_datetime $gen_hash
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
### SubCommands
|
||||
complete -c home-manager -n "__fish_use_subcommand" -f -a "help" -d "Print home-manager help"
|
||||
complete -c home-manager -n "__fish_use_subcommand" -f -a "edit" -d "Open the home configuration in $EDITOR"
|
||||
complete -c home-manager -n "__fish_use_subcommand" -f -a "option" -d "Inspect configuration option"
|
||||
complete -c home-manager -n "__fish_use_subcommand" -f -a "build" -d "Build configuration into result directory"
|
||||
complete -c home-manager -n "__fish_use_subcommand" -f -a "instantiate" -d "Instantiate the configuration and print the resulting derivation"
|
||||
complete -c home-manager -n "__fish_use_subcommand" -f -a "switch" -d "Build and activate configuration"
|
||||
complete -c home-manager -n "__fish_use_subcommand" -f -a "generations" -d "List all home environment generations"
|
||||
complete -c home-manager -n "__fish_use_subcommand" -f -a "packages" -d "List all packages installed in home-manager-path"
|
||||
complete -c home-manager -n "__fish_use_subcommand" -f -a "news" -d "Show news entries in a pager"
|
||||
complete -c home-manager -n "__fish_use_subcommand" -f -a "uninstall" -d "Remove Home Manager"
|
||||
|
||||
complete -c home-manager -n "__fish_use_subcommand" -x -a "remove-generations" -d "Remove indicated generations"
|
||||
complete -c home-manager -n "__fish_seen_subcommand_from remove-generations" -f -ka '(__home_manager_generations)'
|
||||
|
||||
complete -c home-manager -n "__fish_use_subcommand" -x -a "expire-generations" -d "Remove generations older than TIMESTAMP"
|
||||
|
||||
### Options
|
||||
complete -c home-manager -F -s f -l "file" -d "The home configuration file"
|
||||
complete -c home-manager -x -s A -d "Select an expression in the configuration file"
|
||||
complete -c home-manager -F -s I -d "Add a path to the Nix expression search path"
|
||||
complete -c home-manager -F -l "flake" -d "Use Home Manager configuration at specified flake-uri"
|
||||
complete -c home-manager -F -s b -d "Move existing files to new path rather than fail"
|
||||
complete -c home-manager -f -s v -l "verbose" -d "Verbose output"
|
||||
complete -c home-manager -f -s n -l "dry-run" -d "Do a dry run, only prints what actions would be taken"
|
||||
complete -c home-manager -f -s h -l "help" -d "Print this help"
|
||||
complete -c home-manager -f -s h -l "version" -d "Print the Home Manager version"
|
||||
|
||||
complete -c home-manager -x -l "arg" -d "Override inputs passed to home-manager.nix"
|
||||
complete -c home-manager -x -l "argstr" -d "Like --arg but the value is a string"
|
||||
complete -c home-manager -x -l "cores" -d "Threads per job (e.g. -j argument to make)"
|
||||
complete -c home-manager -x -l "debug"
|
||||
complete -c home-manager -x -l "impure"
|
||||
complete -c home-manager -f -l "keep-failed" -d "Keep temporary directory used by failed builds"
|
||||
complete -c home-manager -f -l "keep-going" -d "Keep going in case of failed builds"
|
||||
complete -c home-manager -x -s j -l "max-jobs" -d "Max number of build jobs in parallel"
|
||||
complete -c home-manager -x -l "option" -d "Set Nix configuration option"
|
||||
complete -c home-manager -x -l "builders" -d "Remote builders"
|
||||
complete -c home-manager -f -s L -l "print-build-logs" -d "Print full build logs on standard error"
|
||||
complete -c home-manager -f -l "show-trace" -d "Print stack trace of evaluation errors"
|
||||
complete -c home-manager -f -l "substitute"
|
||||
complete -c home-manager -f -l "no-substitute"
|
||||
complete -c home-manager -f -l "no-out-link"
|
||||
complete -c home-manager -f -l "update-input"
|
||||
complete -c home-manager -f -l "override-input"
|
||||
complete -c home-manager -f -l "experimental-features"
|
||||
complete -c home-manager -f -l "extra-experimental-features"
|
||||
74
home-manager/completion.zsh
Normal file
74
home-manager/completion.zsh
Normal file
@@ -0,0 +1,74 @@
|
||||
#compdef home-manager
|
||||
|
||||
local state ret=1
|
||||
|
||||
_arguments \
|
||||
'-A[attribute]:ATTRIBUTE:()' \
|
||||
'-I[search path]:PATH:_files -/' \
|
||||
'-b[backup files]:EXT:()' \
|
||||
'--cores[cores]:NUM:()' \
|
||||
'--debug[debug]' \
|
||||
'--impure[impure]' \
|
||||
'--keep-failed[keep failed]' \
|
||||
'--keep-going[keep going]' \
|
||||
'--version[version]' \
|
||||
'(-h --help)'{--help,-h}'[help]' \
|
||||
'(-v --verbose)'{--verbose,-v}'[verbose]' \
|
||||
'(-n --dry-run)'{--dry-run,-n}'[dry run]' \
|
||||
'(-f --file)'{--file,-f}'[configuration file]:FILE:_files' \
|
||||
'(-j --max-jobs)'{--max-jobs,-j}'[max jobs]:NUM:()' \
|
||||
'--option[option]:NAME VALUE:()' \
|
||||
'--builders[builders]:SPEC:()' \
|
||||
'(-L --print-build-logs)'{--print-build-logs,-L}'[print build logs]' \
|
||||
'--show-trace[show trace]' \
|
||||
'--override-input[override flake input]:NAME VALUE:()' \
|
||||
'--update-input[update flake input]:NAME:()' \
|
||||
'--experimental-features[set experimental Nix features]:VALUE:()' \
|
||||
'--extra-experimental-features:[append to experimental Nix features]:VALUE:()' \
|
||||
'1: :->cmds' \
|
||||
'*:: :->args' && ret=0
|
||||
|
||||
case "$state" in
|
||||
cmds)
|
||||
_values 'command' \
|
||||
'help[help]' \
|
||||
'edit[edit]' \
|
||||
'option[inspect option]' \
|
||||
'build[build]' \
|
||||
'switch[switch]' \
|
||||
'generations[list generations]' \
|
||||
'remove-generations[remove generations]' \
|
||||
'expire-generations[expire generations]' \
|
||||
'packages[managed packages]' \
|
||||
'news[read the news]' \
|
||||
'uninstall[uninstall]' && ret=0
|
||||
;;
|
||||
args)
|
||||
case $line[1] in
|
||||
remove-generations)
|
||||
_values 'generations' \
|
||||
$(home-manager generations | cut -d ' ' -f 5) && ret=0
|
||||
;;
|
||||
build|switch)
|
||||
_arguments \
|
||||
'--cores[cores]:NUM:()' \
|
||||
'--debug[debug]' \
|
||||
'--impure[impure]' \
|
||||
'--keep-failed[keep failed]' \
|
||||
'--keep-going[keep going]' \
|
||||
'--max-jobs[max jobs]:NUM:()' \
|
||||
'--no-out-link[no out link]' \
|
||||
'--no-substitute[no substitute]' \
|
||||
'--option[option]:NAME VALUE:()' \
|
||||
'--show-trace[show trace]' \
|
||||
'--substitute[substitute]' \
|
||||
'--builders[builders]:SPEC:()' \
|
||||
'--override-input[override flake input]:NAME VALUE:()' \
|
||||
'--update-input[update flake input]:NAME:()' \
|
||||
'--experimental-features[set experimental Nix features]:VALUE:()' \
|
||||
'--extra-experimental-features:[append to experimental Nix features]:VALUE:()'
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
return ret
|
||||
@@ -1,40 +1,65 @@
|
||||
{ runCommand, lib, bash, coreutils, findutils, gnused, less
|
||||
{ runCommand, lib, bash, callPackage, coreutils, findutils, gettext, gnused
|
||||
, less, ncurses, unixtools
|
||||
# used for pkgs.path for nixos-option
|
||||
, pkgs
|
||||
|
||||
# Extra path to Home Manager. If set then this path will be tried
|
||||
# before `$HOME/.config/nixpkgs/home-manager` and
|
||||
# `$HOME/.nixpkgs/home-manager`.
|
||||
, path ? null
|
||||
}:
|
||||
# Extra path to Home Manager. If set then this path will be tried
|
||||
# before `$HOME/.config/nixpkgs/home-manager` and
|
||||
# `$HOME/.nixpkgs/home-manager`.
|
||||
, path ? null }:
|
||||
|
||||
let
|
||||
|
||||
pathStr = if path == null then "" else path;
|
||||
|
||||
in
|
||||
nixos-option = pkgs.nixos-option or (callPackage
|
||||
(pkgs.path + "/nixos/modules/installer/tools/nixos-option") { });
|
||||
|
||||
runCommand
|
||||
"home-manager"
|
||||
{
|
||||
preferLocalBuild = true;
|
||||
allowSubstitutes = false;
|
||||
meta = with lib; {
|
||||
description = "A user environment configurator";
|
||||
maintainers = [ maintainers.rycee ];
|
||||
platforms = platforms.unix;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
''
|
||||
install -v -D -m755 ${./home-manager} $out/bin/home-manager
|
||||
in runCommand "home-manager" {
|
||||
preferLocalBuild = true;
|
||||
nativeBuildInputs = [ gettext ];
|
||||
meta = with lib; {
|
||||
mainProgram = "home-manager";
|
||||
description = "A user environment configurator";
|
||||
maintainers = [ maintainers.rycee ];
|
||||
platforms = platforms.unix;
|
||||
license = licenses.mit;
|
||||
};
|
||||
} ''
|
||||
install -v -D -m755 ${./home-manager} $out/bin/home-manager
|
||||
|
||||
substituteInPlace $out/bin/home-manager \
|
||||
--subst-var-by bash "${bash}" \
|
||||
--subst-var-by coreutils "${coreutils}" \
|
||||
--subst-var-by findutils "${findutils}" \
|
||||
--subst-var-by gnused "${gnused}" \
|
||||
--subst-var-by less "${less}" \
|
||||
--subst-var-by HOME_MANAGER_PATH '${pathStr}'
|
||||
substituteInPlace $out/bin/home-manager \
|
||||
--subst-var-by bash "${bash}" \
|
||||
--subst-var-by DEP_PATH "${
|
||||
lib.makeBinPath [
|
||||
coreutils
|
||||
findutils
|
||||
gettext
|
||||
gnused
|
||||
less
|
||||
ncurses
|
||||
nixos-option
|
||||
unixtools.hostname
|
||||
]
|
||||
}" \
|
||||
--subst-var-by HOME_MANAGER_LIB '${../lib/bash/home-manager.sh}' \
|
||||
--subst-var-by HOME_MANAGER_PATH '${pathStr}' \
|
||||
--subst-var-by OUT "$out"
|
||||
|
||||
install -D -m755 ${./completion.bash} \
|
||||
$out/share/bash-completion/completions/home-manager
|
||||
''
|
||||
install -D -m755 ${./completion.bash} \
|
||||
$out/share/bash-completion/completions/home-manager
|
||||
install -D -m755 ${./completion.zsh} \
|
||||
$out/share/zsh/site-functions/_home-manager
|
||||
install -D -m755 ${./completion.fish} \
|
||||
$out/share/fish/vendor_completions.d/home-manager.fish
|
||||
|
||||
install -D -m755 ${../lib/bash/home-manager.sh} \
|
||||
"$out/share/bash/home-manager.sh"
|
||||
|
||||
for path in ${./po}/*.po; do
|
||||
lang="''${path##*/}"
|
||||
lang="''${lang%%.*}"
|
||||
mkdir -p "$out/share/locale/$lang/LC_MESSAGES"
|
||||
msgfmt -o "$out/share/locale/$lang/LC_MESSAGES/home-manager.mo" "$path"
|
||||
done
|
||||
''
|
||||
|
||||
@@ -1,13 +1,31 @@
|
||||
#!@bash@/bin/bash
|
||||
|
||||
# Prepare to use tools from Nixpkgs.
|
||||
PATH=@coreutils@/bin:@findutils@/bin:@gnused@/bin:@less@/bin${PATH:+:}$PATH
|
||||
PATH=@DEP_PATH@${PATH:+:}$PATH
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
function errorEcho() {
|
||||
# shellcheck disable=2048,2086
|
||||
echo $* >&2
|
||||
export TEXTDOMAIN=home-manager
|
||||
export TEXTDOMAINDIR=@OUT@/share/locale
|
||||
|
||||
# shellcheck disable=1091
|
||||
source @HOME_MANAGER_LIB@
|
||||
|
||||
function removeByName() {
|
||||
nix profile list \
|
||||
| { grep "$1" || test $? = 1; } \
|
||||
| cut -d ' ' -f 4 \
|
||||
| xargs -t $DRY_RUN_CMD nix profile remove $VERBOSE_ARG
|
||||
}
|
||||
|
||||
function setNixProfileCommands() {
|
||||
if [[ -e ~/.nix-profile/manifest.json ]] ; then
|
||||
LIST_OUTPATH_CMD="nix profile list"
|
||||
REMOVE_CMD="removeByName"
|
||||
else
|
||||
LIST_OUTPATH_CMD="nix-env -q --out-path"
|
||||
REMOVE_CMD="nix-env -q"
|
||||
fi
|
||||
}
|
||||
|
||||
function setVerboseAndDryRun() {
|
||||
@@ -39,7 +57,8 @@ function setWorkDir() {
|
||||
function setConfigFile() {
|
||||
if [[ -v HOME_MANAGER_CONFIG ]] ; then
|
||||
if [[ ! -e "$HOME_MANAGER_CONFIG" ]] ; then
|
||||
errorEcho "No configuration file found at $HOME_MANAGER_CONFIG"
|
||||
_i "No configuration file found at %s" \
|
||||
"$HOME_MANAGER_CONFIG" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -57,8 +76,8 @@ function setConfigFile() {
|
||||
fi
|
||||
done
|
||||
|
||||
errorEcho "No configuration file found." \
|
||||
"Please create one at $defaultConfFile"
|
||||
_i "No configuration file found. Please create one at %s" \
|
||||
"$defaultConfFile" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
@@ -74,7 +93,82 @@ function setHomeManagerNixPath() {
|
||||
done
|
||||
}
|
||||
|
||||
function setFlakeAttribute() {
|
||||
local configFlake="${XDG_CONFIG_HOME:-$HOME/.config}/nixpkgs/flake.nix"
|
||||
if [[ -z $FLAKE_ARG && ! -v HOME_MANAGER_CONFIG && -e "$configFlake" ]]; then
|
||||
FLAKE_ARG="$(dirname "$(readlink -f "$configFlake")")"
|
||||
fi
|
||||
|
||||
if [[ -n "$FLAKE_ARG" ]]; then
|
||||
local flake="${FLAKE_ARG%#*}"
|
||||
case $FLAKE_ARG in
|
||||
*#*)
|
||||
local name="${FLAKE_ARG#*#}"
|
||||
;;
|
||||
*)
|
||||
local name="$USER"
|
||||
# Check both long and short hostnames; long first to preserve
|
||||
# pre-existing behaviour in case both happen to be defined.
|
||||
for n in "$USER@$(hostname)" "$USER@$(hostname -s)"; do
|
||||
if [[ "$(nix eval "$flake#homeConfigurations" --apply "x: x ? \"$n\"")" == "true" ]]; then
|
||||
name="$n"
|
||||
if [[ -v VERBOSE ]]; then
|
||||
echo "Using flake homeConfiguration for $name"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
;;
|
||||
esac
|
||||
export FLAKE_CONFIG_URI="$flake#homeConfigurations.\"$name\""
|
||||
fi
|
||||
}
|
||||
|
||||
function doInspectOption() {
|
||||
setFlakeAttribute
|
||||
if [[ -v FLAKE_CONFIG_URI ]]; then
|
||||
_iError "Can't inspect options of a flake configuration"
|
||||
exit 1
|
||||
fi
|
||||
setConfigFile
|
||||
setHomeManagerNixPath
|
||||
|
||||
local extraArgs=("$@")
|
||||
|
||||
for p in "${EXTRA_NIX_PATH[@]}"; do
|
||||
extraArgs=("${extraArgs[@]}" "-I" "$p")
|
||||
done
|
||||
|
||||
if [[ -v VERBOSE ]]; then
|
||||
extraArgs=("${extraArgs[@]}" "--show-trace")
|
||||
fi
|
||||
|
||||
local HOME_MANAGER_CONFIG_NIX HOME_MANAGER_CONFIG_ATTRIBUTE_NIX
|
||||
HOME_MANAGER_CONFIG_NIX=${HOME_MANAGER_CONFIG//'\'/'\\'}
|
||||
HOME_MANAGER_CONFIG_NIX=${HOME_MANAGER_CONFIG_NIX//'"'/'\"'}
|
||||
HOME_MANAGER_CONFIG_NIX=${HOME_MANAGER_CONFIG_NIX//$'\n'/$'\\n'}
|
||||
HOME_MANAGER_CONFIG_ATTRIBUTE_NIX=${HOME_MANAGER_CONFIG_ATTRIBUTE//'\'/'\\'}
|
||||
HOME_MANAGER_CONFIG_ATTRIBUTE_NIX=${HOME_MANAGER_CONFIG_ATTRIBUTE_NIX//'"'/'\"'}
|
||||
HOME_MANAGER_CONFIG_ATTRIBUTE_NIX=${HOME_MANAGER_CONFIG_ATTRIBUTE_NIX//$'\n'/$'\\n'}
|
||||
local modulesExpr
|
||||
modulesExpr="let confPath = \"${HOME_MANAGER_CONFIG_NIX}\"; "
|
||||
modulesExpr+="confAttr = \"${HOME_MANAGER_CONFIG_ATTRIBUTE_NIX}\"; in "
|
||||
modulesExpr+="(import <home-manager/modules> {"
|
||||
modulesExpr+=" configuration = if confAttr == \"\" then confPath else (import confPath).\${confAttr};"
|
||||
modulesExpr+=" pkgs = import <nixpkgs> {}; check = true; })"
|
||||
|
||||
nixos-option \
|
||||
--options_expr "$modulesExpr.options" \
|
||||
--config_expr "$modulesExpr.config" \
|
||||
"${extraArgs[@]}" \
|
||||
"${PASSTHROUGH_OPTS[@]}"
|
||||
}
|
||||
|
||||
function doInstantiate() {
|
||||
setFlakeAttribute
|
||||
if [[ -v FLAKE_CONFIG_URI ]]; then
|
||||
_i "Can't instantiate a flake configuration" >&2
|
||||
exit 1
|
||||
fi
|
||||
setConfigFile
|
||||
setHomeManagerNixPath
|
||||
|
||||
@@ -118,6 +212,18 @@ function doBuildAttr() {
|
||||
--argstr confAttr "$HOME_MANAGER_CONFIG_ATTRIBUTE"
|
||||
}
|
||||
|
||||
function doBuildFlake() {
|
||||
local extraArgs=("$@")
|
||||
|
||||
if [[ -v VERBOSE ]]; then
|
||||
extraArgs=("${extraArgs[@]}" "--verbose")
|
||||
fi
|
||||
|
||||
nix build \
|
||||
"${extraArgs[@]}" \
|
||||
"${PASSTHROUGH_OPTS[@]}"
|
||||
}
|
||||
|
||||
# Presents news to the user. Takes as argument the path to a "news
|
||||
# info" file as generated by `buildNews`.
|
||||
function presentNews() {
|
||||
@@ -132,20 +238,16 @@ function presentNews() {
|
||||
elif [[ "$newsDisplay" == "silent" ]]; then
|
||||
return
|
||||
elif [[ "$newsDisplay" == "notify" ]]; then
|
||||
local msg
|
||||
if [[ $newsNumUnread -eq 1 ]]; then
|
||||
msg="There is an unread and relevant news item.\n"
|
||||
msg+="Read it by running the command '$(basename "$0") news'."
|
||||
else
|
||||
msg="There are $newsNumUnread unread and relevant news items.\n"
|
||||
msg+="Read them by running the command '$(basename "$0") news'."
|
||||
fi
|
||||
local cmd msg
|
||||
cmd="$(basename "$0")"
|
||||
msg="$(_ip \
|
||||
$'There is %d unread and relevant news item.\nRead it by running the command "%s news".' \
|
||||
$'There are %d unread and relevant news items.\nRead them by running the command "%s news".' \
|
||||
"$newsNumUnread" "$newsNumUnread" "$cmd")"
|
||||
|
||||
# Not actually an error but here stdout is reserved for
|
||||
# nix-build output.
|
||||
errorEcho
|
||||
errorEcho -e "$msg"
|
||||
errorEcho
|
||||
echo $'\n'"$msg"$'\n' >&2
|
||||
|
||||
if [[ -v DISPLAY ]] && type -P notify-send > /dev/null; then
|
||||
notify-send "Home Manager" "$msg"
|
||||
@@ -153,13 +255,14 @@ function presentNews() {
|
||||
elif [[ "$newsDisplay" == "show" ]]; then
|
||||
doShowNews --unread
|
||||
else
|
||||
errorEcho "Unknown 'news.display' setting '$newsDisplay'."
|
||||
_i 'Unknown "news.display" setting "%s".' "$newsDisplay" >&2
|
||||
fi
|
||||
}
|
||||
|
||||
function doEdit() {
|
||||
if [[ ! -v EDITOR || -z $EDITOR ]]; then
|
||||
errorEcho "Please set the \$EDITOR environment variable"
|
||||
# shellcheck disable=2016
|
||||
_i 'Please set the $EDITOR environment variable' >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
@@ -174,33 +277,37 @@ function doEdit() {
|
||||
|
||||
function doBuild() {
|
||||
if [[ ! -w . ]]; then
|
||||
errorEcho "Cannot run build in read-only directory";
|
||||
_i 'Cannot run build in read-only directory' >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
setWorkDir
|
||||
|
||||
local newsInfo
|
||||
newsInfo=$(buildNews)
|
||||
setFlakeAttribute
|
||||
if [[ -v FLAKE_CONFIG_URI ]]; then
|
||||
doBuildFlake \
|
||||
"$FLAKE_CONFIG_URI.activationPackage" \
|
||||
${DRY_RUN+--dry-run} \
|
||||
${NO_OUT_LINK+--no-link} \
|
||||
${PRINT_BUILD_LOGS+--print-build-logs} \
|
||||
|| return
|
||||
else
|
||||
doBuildAttr \
|
||||
${NO_OUT_LINK+--no-out-link} \
|
||||
--attr activationPackage \
|
||||
|| return
|
||||
|
||||
local exitCode
|
||||
local newsInfo
|
||||
newsInfo=$(buildNews)
|
||||
|
||||
doBuildAttr --attr activationPackage \
|
||||
&& exitCode=0 || exitCode=1
|
||||
|
||||
presentNews "$newsInfo"
|
||||
|
||||
return $exitCode
|
||||
presentNews "$newsInfo"
|
||||
fi
|
||||
}
|
||||
|
||||
function doSwitch() {
|
||||
setWorkDir
|
||||
|
||||
local newsInfo
|
||||
newsInfo=$(buildNews)
|
||||
|
||||
local generation
|
||||
local exitCode=0
|
||||
|
||||
# Build the generation and run the activate script. Note, we
|
||||
# specify an output link so that it is treated as a GC root. This
|
||||
@@ -208,20 +315,30 @@ function doSwitch() {
|
||||
# before activation completes.
|
||||
generation="$WORK_DIR/generation"
|
||||
|
||||
doBuildAttr \
|
||||
--out-link "$generation" \
|
||||
--attr activationPackage \
|
||||
&& "$generation/activate" || exitCode=1
|
||||
setFlakeAttribute
|
||||
if [[ -v FLAKE_CONFIG_URI ]]; then
|
||||
doBuildFlake \
|
||||
"$FLAKE_CONFIG_URI.activationPackage" \
|
||||
--out-link "$generation" \
|
||||
${PRINT_BUILD_LOGS+--print-build-logs} \
|
||||
&& "$generation/activate" || return
|
||||
else
|
||||
doBuildAttr \
|
||||
--out-link "$generation" \
|
||||
--attr activationPackage \
|
||||
&& "$generation/activate" || return
|
||||
|
||||
presentNews "$newsInfo"
|
||||
local newsInfo
|
||||
newsInfo=$(buildNews)
|
||||
|
||||
return $exitCode
|
||||
presentNews "$newsInfo"
|
||||
fi
|
||||
}
|
||||
|
||||
function doListGens() {
|
||||
# Whether to colorize the generations output.
|
||||
local color="never"
|
||||
if [[ -t 1 ]]; then
|
||||
if [[ ! -v NO_COLOR && -t 1 ]]; then
|
||||
color="always"
|
||||
fi
|
||||
|
||||
@@ -244,11 +361,11 @@ function doRmGenerations() {
|
||||
local linkName="home-manager-$generationId-link"
|
||||
|
||||
if [[ ! -e $linkName ]]; then
|
||||
errorEcho "No generation with ID $generationId"
|
||||
_i 'No generation with ID %s' "$generationId" >&2
|
||||
elif [[ $linkName == $(readlink home-manager) ]]; then
|
||||
errorEcho "Cannot remove the current generation $generationId"
|
||||
_i 'Cannot remove the current generation %s' "$generationId" >&2
|
||||
else
|
||||
echo Removing generation $generationId
|
||||
_i 'Removing generation %s' "$generationId"
|
||||
$DRY_RUN_CMD rm $VERBOSE_ARG $linkName
|
||||
fi
|
||||
done
|
||||
@@ -274,17 +391,18 @@ function doExpireGenerations() {
|
||||
# shellcheck disable=2086
|
||||
doRmGenerations $generations
|
||||
elif [[ -v VERBOSE ]]; then
|
||||
echo "No generations to expire"
|
||||
_i "No generations to expire"
|
||||
fi
|
||||
}
|
||||
|
||||
function doListPackages() {
|
||||
setNixProfileCommands
|
||||
local outPath
|
||||
outPath="$(nix-env -q --out-path | grep -o '/.*home-manager-path$')"
|
||||
outPath="$($LIST_OUTPATH_CMD | grep -o '/.*home-manager-path$')"
|
||||
if [[ -n "$outPath" ]] ; then
|
||||
nix-store -q --references "$outPath" | sed 's/[^-]*-//'
|
||||
else
|
||||
errorEcho "No home-manager packages seem to be installed."
|
||||
_i 'No home-manager packages seem to be installed.' >&2
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -312,13 +430,13 @@ function buildNews() {
|
||||
output="$WORK_DIR/news-info.sh"
|
||||
|
||||
doBuildAttr \
|
||||
--out-link "$output" \
|
||||
--no-build-output \
|
||||
--quiet \
|
||||
--arg check false \
|
||||
--argstr newsReadIdsFile "$(newsReadIdsFile)" \
|
||||
--attr newsInfo \
|
||||
> /dev/null
|
||||
--out-link "$output" \
|
||||
--no-build-output \
|
||||
--quiet \
|
||||
--arg check false \
|
||||
--argstr newsReadIdsFile "$(newsReadIdsFile)" \
|
||||
--attr newsInfo \
|
||||
> /dev/null
|
||||
|
||||
echo "$output"
|
||||
}
|
||||
@@ -341,7 +459,7 @@ function doShowNews() {
|
||||
${PAGER:-less} "$newsFileUnread"
|
||||
;;
|
||||
*)
|
||||
errorEcho "Unknown argument $1"
|
||||
_i 'Unknown argument %s' "$1"
|
||||
return 1
|
||||
esac
|
||||
|
||||
@@ -355,24 +473,28 @@ function doShowNews() {
|
||||
|
||||
function doUninstall() {
|
||||
setVerboseAndDryRun
|
||||
setNixProfileCommands
|
||||
|
||||
echo "This will remove Home Manager from your system."
|
||||
_i 'This will remove Home Manager from your system.'
|
||||
|
||||
if [[ -v DRY_RUN ]]; then
|
||||
echo "This is a dry run, nothing will actually be uninstalled."
|
||||
_i 'This is a dry run, nothing will actually be uninstalled.'
|
||||
fi
|
||||
|
||||
local confirmation
|
||||
read -r -n 1 -p "Really uninstall Home Manager? [y/n] " confirmation
|
||||
read -r -n 1 -p "$(_i 'Really uninstall Home Manager?') [y/n] " confirmation
|
||||
echo
|
||||
|
||||
case $confirmation in
|
||||
y|Y)
|
||||
echo "Switching to empty Home Manager configuration..."
|
||||
_i "Switching to empty Home Manager configuration..."
|
||||
HOME_MANAGER_CONFIG="$(mktemp --tmpdir home-manager.XXXXXXXXXX)"
|
||||
echo "{ lib, ... }: { home.file = lib.mkForce {}; }" > "$HOME_MANAGER_CONFIG"
|
||||
echo "{ lib, ... }: {" > "$HOME_MANAGER_CONFIG"
|
||||
echo " home.file = lib.mkForce {};" >> "$HOME_MANAGER_CONFIG"
|
||||
echo " home.stateVersion = \"18.09\";" >> "$HOME_MANAGER_CONFIG"
|
||||
echo "}" >> "$HOME_MANAGER_CONFIG"
|
||||
doSwitch
|
||||
$DRY_RUN_CMD nix-env -e home-manager-path || true
|
||||
$DRY_RUN_CMD $REMOVE_CMD home-manager-path || true
|
||||
rm "$HOME_MANAGER_CONFIG"
|
||||
$DRY_RUN_CMD rm $VERBOSE_ARG -r \
|
||||
"${XDG_DATA_HOME:-$HOME/.local/share}/home-manager"
|
||||
@@ -380,28 +502,28 @@ function doUninstall() {
|
||||
"$NIX_STATE_DIR/gcroots/per-user/$USER/current-home"
|
||||
;;
|
||||
*)
|
||||
echo "Yay!"
|
||||
_i "Yay!"
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
local deleteProfiles
|
||||
read -r -n 1 \
|
||||
-p 'Remove all Home Manager generations? [y/n] ' \
|
||||
-p "$(_i 'Remove all Home Manager generations?') [y/n] " \
|
||||
deleteProfiles
|
||||
echo
|
||||
|
||||
case $deleteProfiles in
|
||||
y|Y)
|
||||
doRmAllGenerations
|
||||
echo "All generations are now eligible for garbage collection."
|
||||
_i 'All generations are now eligible for garbage collection.'
|
||||
;;
|
||||
*)
|
||||
echo "Leaving generations but they may still be garbage collected."
|
||||
_i 'Leaving generations but they may still be garbage collected.'
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
_i "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
}
|
||||
|
||||
function doHelp() {
|
||||
@@ -409,25 +531,34 @@ function doHelp() {
|
||||
echo
|
||||
echo "Options"
|
||||
echo
|
||||
echo " -f FILE The home configuration file."
|
||||
echo " Default is '~/.config/nixpkgs/home.nix'."
|
||||
echo " -A ATTRIBUTE Optional attribute that selects a configuration"
|
||||
echo " expression in the configuration file."
|
||||
echo " -I PATH Add a path to the Nix expression search path."
|
||||
echo " -b EXT Move existing files to new path rather than fail."
|
||||
echo " -v Verbose output"
|
||||
echo " -n Do a dry run, only prints what actions would be taken"
|
||||
echo " -h Print this help"
|
||||
echo " -f FILE The home configuration file."
|
||||
echo " Default is '~/.config/nixpkgs/home.nix'."
|
||||
echo " -A ATTRIBUTE Optional attribute that selects a configuration"
|
||||
echo " expression in the configuration file."
|
||||
echo " -I PATH Add a path to the Nix expression search path."
|
||||
echo " --flake flake-uri Use Home Manager configuration at flake-uri"
|
||||
echo " -b EXT Move existing files to new path rather than fail."
|
||||
echo " -v Verbose output"
|
||||
echo " -n Do a dry run, only prints what actions would be taken"
|
||||
echo " -h Print this help"
|
||||
echo " --version Print the Home Manager version"
|
||||
echo
|
||||
echo "Options passed on to nix-build(1)"
|
||||
echo
|
||||
echo " --arg(str) NAME VALUE Override inputs passed to home-manager.nix"
|
||||
echo " --cores NUM"
|
||||
echo " --debug"
|
||||
echo " --impure"
|
||||
echo " --keep-failed"
|
||||
echo " --keep-going"
|
||||
echo " --max-jobs NUM"
|
||||
echo " -j, --max-jobs NUM"
|
||||
echo " --option NAME VALUE"
|
||||
echo " -L, --print-build-logs"
|
||||
echo " --show-trace"
|
||||
echo " --(no-)substitute"
|
||||
echo " --no-out-link Do not create a symlink to the output path"
|
||||
echo " --no-write-lock-file"
|
||||
echo " --builders VALUE"
|
||||
echo
|
||||
echo "Commands"
|
||||
echo
|
||||
@@ -435,6 +566,9 @@ function doHelp() {
|
||||
echo
|
||||
echo " edit Open the home configuration in \$EDITOR"
|
||||
echo
|
||||
echo " option OPTION.NAME"
|
||||
echo " Inspect configuration option named OPTION.NAME."
|
||||
echo
|
||||
echo " build Build configuration into result directory"
|
||||
echo
|
||||
echo " instantiate Instantiate the configuration and print the resulting derivation"
|
||||
@@ -466,12 +600,13 @@ HOME_MANAGER_CONFIG_ATTRIBUTE=""
|
||||
PASSTHROUGH_OPTS=()
|
||||
COMMAND=""
|
||||
COMMAND_ARGS=()
|
||||
FLAKE_ARG=""
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
opt="$1"
|
||||
shift
|
||||
case $opt in
|
||||
build|instantiate|edit|expire-generations|generations|help|news|packages|remove-generations|switch|uninstall)
|
||||
build|instantiate|option|edit|expire-generations|generations|help|news|packages|remove-generations|switch|uninstall)
|
||||
COMMAND="$opt"
|
||||
;;
|
||||
-A)
|
||||
@@ -490,6 +625,35 @@ while [[ $# -gt 0 ]]; do
|
||||
HOME_MANAGER_CONFIG="$1"
|
||||
shift
|
||||
;;
|
||||
--flake)
|
||||
FLAKE_ARG="$1"
|
||||
shift
|
||||
;;
|
||||
--recreate-lock-file|--no-update-lock-file|--no-write-lock-file|--no-registries|--commit-lock-file)
|
||||
PASSTHROUGH_OPTS+=("$opt")
|
||||
;;
|
||||
--update-input)
|
||||
PASSTHROUGH_OPTS+=("$opt" "$1")
|
||||
shift
|
||||
;;
|
||||
--override-input)
|
||||
PASSTHROUGH_OPTS+=("$opt" "$1" "$2")
|
||||
shift 2
|
||||
;;
|
||||
--experimental-features)
|
||||
PASSTHROUGH_OPTS+=("$opt" "$1")
|
||||
shift
|
||||
;;
|
||||
--extra-experimental-features)
|
||||
PASSTHROUGH_OPTS+=("$opt" "$1")
|
||||
shift
|
||||
;;
|
||||
--no-out-link)
|
||||
NO_OUT_LINK=1
|
||||
;;
|
||||
-L|--print-build-logs)
|
||||
PRINT_BUILD_LOGS=1
|
||||
;;
|
||||
-h|--help)
|
||||
doHelp
|
||||
exit 0
|
||||
@@ -497,29 +661,33 @@ while [[ $# -gt 0 ]]; do
|
||||
-n|--dry-run)
|
||||
export DRY_RUN=1
|
||||
;;
|
||||
--option)
|
||||
--option|--arg|--argstr)
|
||||
PASSTHROUGH_OPTS+=("$opt" "$1" "$2")
|
||||
shift 2
|
||||
;;
|
||||
--max-jobs|--cores)
|
||||
-j|--max-jobs|--cores|--builders)
|
||||
PASSTHROUGH_OPTS+=("$opt" "$1")
|
||||
shift
|
||||
;;
|
||||
--keep-failed|--keep-going|--show-trace\
|
||||
|--substitute|--no-substitute)
|
||||
--debug|--keep-failed|--keep-going|--show-trace\
|
||||
|--substitute|--no-substitute|--impure)
|
||||
PASSTHROUGH_OPTS+=("$opt")
|
||||
;;
|
||||
-v|--verbose)
|
||||
export VERBOSE=1
|
||||
;;
|
||||
--version)
|
||||
echo 22.11
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
case $COMMAND in
|
||||
expire-generations|remove-generations)
|
||||
expire-generations|remove-generations|option)
|
||||
COMMAND_ARGS+=("$opt")
|
||||
;;
|
||||
*)
|
||||
errorEcho "$0: unknown option '$opt'"
|
||||
errorEcho "Run '$0 --help' for usage help"
|
||||
_iError "%s: unknown option '%s'" "$0" "$opt" >&2
|
||||
_i "Run '%s --help' for usage help" "$0" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@@ -553,12 +721,15 @@ case $COMMAND in
|
||||
;;
|
||||
expire-generations)
|
||||
if [[ ${#COMMAND_ARGS[@]} != 1 ]]; then
|
||||
errorEcho "expire-generations expects one argument, got ${#COMMAND_ARGS[@]}."
|
||||
_i 'expire-generations expects one argument, got %d.' "${#COMMAND_ARGS[@]}" >&2
|
||||
exit 1
|
||||
else
|
||||
doExpireGenerations "${COMMAND_ARGS[@]}"
|
||||
fi
|
||||
;;
|
||||
option)
|
||||
doInspectOption "${COMMAND_ARGS[@]}"
|
||||
;;
|
||||
packages)
|
||||
doListPackages
|
||||
;;
|
||||
@@ -572,8 +743,10 @@ case $COMMAND in
|
||||
doHelp
|
||||
;;
|
||||
*)
|
||||
errorEcho "Unknown command: $COMMAND"
|
||||
_iError 'Unknown command: %s' "$COMMAND" >&2
|
||||
doHelp >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# vim: ft=bash
|
||||
|
||||
@@ -1,77 +1,64 @@
|
||||
{ pkgs ? import <nixpkgs> {}
|
||||
, confPath
|
||||
, confAttr ? null
|
||||
, check ? true
|
||||
, newsReadIdsFile ? null
|
||||
}:
|
||||
|
||||
with pkgs.lib;
|
||||
{ pkgs ? import <nixpkgs> { }, confPath, confAttr ? null, check ? true
|
||||
, newsReadIdsFile ? null }:
|
||||
|
||||
let
|
||||
inherit (pkgs.lib)
|
||||
concatMapStringsSep fileContents filter length optionalString removeSuffix
|
||||
replaceStrings splitString;
|
||||
|
||||
env = import ../modules {
|
||||
configuration =
|
||||
if confAttr == "" || confAttr == null
|
||||
then confPath
|
||||
else (import confPath).${confAttr};
|
||||
configuration = if confAttr == "" || confAttr == null then
|
||||
confPath
|
||||
else
|
||||
(import confPath).${confAttr};
|
||||
pkgs = pkgs;
|
||||
check = check;
|
||||
};
|
||||
|
||||
newsReadIds =
|
||||
if newsReadIdsFile == null
|
||||
then {}
|
||||
else
|
||||
let
|
||||
ids = splitString "\n" (fileContents newsReadIdsFile);
|
||||
in
|
||||
builtins.listToAttrs (map (id: { name = id; value = null; }) ids);
|
||||
newsReadIds = if newsReadIdsFile == null then
|
||||
{ }
|
||||
else
|
||||
let ids = splitString "\n" (fileContents newsReadIdsFile);
|
||||
in builtins.listToAttrs (map (id: {
|
||||
name = id;
|
||||
value = null;
|
||||
}) ids);
|
||||
|
||||
newsIsRead = entry: builtins.hasAttr entry.id newsReadIds;
|
||||
|
||||
newsFiltered =
|
||||
let
|
||||
pred = entry: entry.condition && ! newsIsRead entry;
|
||||
in
|
||||
filter pred env.newsEntries;
|
||||
newsFiltered = let pred = entry: entry.condition && !newsIsRead entry;
|
||||
in filter pred env.newsEntries;
|
||||
|
||||
newsNumUnread = length newsFiltered;
|
||||
|
||||
newsFileUnread = pkgs.writeText "news-unread.txt" (
|
||||
concatMapStringsSep "\n\n" (entry:
|
||||
newsFileUnread = pkgs.writeText "news-unread.txt" (concatMapStringsSep "\n\n"
|
||||
(entry:
|
||||
let
|
||||
time = replaceStrings ["T"] [" "] (removeSuffix "+00:00" entry.time);
|
||||
in
|
||||
''
|
||||
* ${time}
|
||||
time =
|
||||
replaceStrings [ "T" ] [ " " ] (removeSuffix "+00:00" entry.time);
|
||||
in ''
|
||||
* ${time}
|
||||
|
||||
${replaceStrings ["\n"] ["\n "] entry.message}
|
||||
''
|
||||
) newsFiltered
|
||||
);
|
||||
${replaceStrings [ "\n" ] [ "\n " ] entry.message}
|
||||
'') newsFiltered);
|
||||
|
||||
newsFileAll = pkgs.writeText "news-all.txt" (
|
||||
concatMapStringsSep "\n\n" (entry:
|
||||
newsFileAll = pkgs.writeText "news-all.txt" (concatMapStringsSep "\n\n"
|
||||
(entry:
|
||||
let
|
||||
flag = if newsIsRead entry then "read" else "unread";
|
||||
time = replaceStrings ["T"] [" "] (removeSuffix "+00:00" entry.time);
|
||||
in
|
||||
''
|
||||
* ${time} [${flag}]
|
||||
time =
|
||||
replaceStrings [ "T" ] [ " " ] (removeSuffix "+00:00" entry.time);
|
||||
in ''
|
||||
* ${time} [${flag}]
|
||||
|
||||
${replaceStrings ["\n"] ["\n "] entry.message}
|
||||
''
|
||||
) env.newsEntries
|
||||
);
|
||||
${replaceStrings [ "\n" ] [ "\n " ] entry.message}
|
||||
'') env.newsEntries);
|
||||
|
||||
# File where each line corresponds to an unread news entry
|
||||
# identifier. If non-empty then the file ends in "\n".
|
||||
newsUnreadIdsFile = pkgs.writeText "news-unread-ids" (
|
||||
let
|
||||
text = concatMapStringsSep "\n" (entry: entry.id) newsFiltered;
|
||||
in
|
||||
text + optionalString (text != "") "\n"
|
||||
);
|
||||
newsUnreadIdsFile = pkgs.writeText "news-unread-ids"
|
||||
(let text = concatMapStringsSep "\n" (entry: entry.id) newsFiltered;
|
||||
in text + optionalString (text != "") "\n");
|
||||
|
||||
newsInfo = pkgs.writeText "news-info.sh" ''
|
||||
local newsNumUnread=${toString newsNumUnread}
|
||||
@@ -81,8 +68,7 @@ let
|
||||
local newsUnreadIdsFile="${newsUnreadIdsFile}"
|
||||
'';
|
||||
|
||||
in
|
||||
{
|
||||
inherit (env) activationPackage;
|
||||
inherit newsInfo;
|
||||
}
|
||||
in {
|
||||
inherit (env) activationPackage;
|
||||
inherit newsInfo;
|
||||
}
|
||||
|
||||
@@ -1,16 +1,25 @@
|
||||
{ home-manager, runCommand }:
|
||||
{ home-manager, gettext, runCommand, ncurses }:
|
||||
|
||||
runCommand "home-manager-install" {
|
||||
propagatedBuildInputs = [ home-manager ];
|
||||
let
|
||||
|
||||
hmBashLibInit = ''
|
||||
export TEXTDOMAIN=home-manager
|
||||
export TEXTDOMAINDIR=${home-manager}/share/locale
|
||||
source ${home-manager}/share/bash/home-manager.sh
|
||||
'';
|
||||
|
||||
in runCommand "home-manager-install" {
|
||||
propagatedBuildInputs = [ home-manager gettext ncurses ];
|
||||
preferLocalBuild = true;
|
||||
allowSubstitutes = false;
|
||||
shellHookOnly = true;
|
||||
shellHook = ''
|
||||
${hmBashLibInit}
|
||||
|
||||
confFile="''${XDG_CONFIG_HOME:-$HOME/.config}/nixpkgs/home.nix"
|
||||
|
||||
if [[ ! -e $confFile ]]; then
|
||||
echo
|
||||
echo "Creating initial Home Manager configuration..."
|
||||
_i "Creating initial Home Manager configuration..."
|
||||
|
||||
nl=$'\n'
|
||||
xdgVars=""
|
||||
@@ -23,15 +32,15 @@ runCommand "home-manager-install" {
|
||||
if [[ -v XDG_DATA_HOME && $XDG_DATA_HOME != "$HOME/.local/share" ]]; then
|
||||
xdgVars="$xdgVars xdg.dataHome = \"$XDG_DATA_HOME\";$nl"
|
||||
fi
|
||||
if [[ -v XDG_STATE_HOME && $XDG_STATE_HOME != "$HOME/.local/state" ]]; then
|
||||
xdgVars="$xdgVars xdg.stateHome = \"$XDG_STATE_HOME\";$nl"
|
||||
fi
|
||||
|
||||
mkdir -p "$(dirname "$confFile")"
|
||||
cat > $confFile <<EOF
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home.username = "$USER";
|
||||
@@ -45,40 +54,32 @@ runCommand "home-manager-install" {
|
||||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
home.stateVersion = "21.03";
|
||||
home.stateVersion = "22.11";
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
EOF
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "Creating initial Home Manager generation..."
|
||||
_i "Creating initial Home Manager generation..."
|
||||
echo
|
||||
|
||||
if home-manager switch; then
|
||||
cat <<EOF
|
||||
|
||||
All done! The home-manager tool should now be installed and you
|
||||
can edit
|
||||
|
||||
$confFile
|
||||
|
||||
to configure Home Manager. Run 'man home-configuration.nix' to
|
||||
see all available options.
|
||||
EOF
|
||||
if home-manager switch ; then
|
||||
# translators: The "%s" specifier will be replaced by a file path.
|
||||
_i $'All done! The home-manager tool should now be installed and you can edit\n\n %s\n\nto configure Home Manager. Run \'man home-configuration.nix\' to\nsee all available options.' \
|
||||
"$confFile"
|
||||
exit 0
|
||||
else
|
||||
cat <<EOF
|
||||
|
||||
Uh oh, the installation failed! Please create an issue at
|
||||
|
||||
https://github.com/nix-community/home-manager/issues
|
||||
|
||||
if the error seems to be the fault of Home Manager.
|
||||
EOF
|
||||
# translators: The "%s" specifier will be replaced by a URL.
|
||||
_i $'Uh oh, the installation failed! Please create an issue at\n\n %s\n\nif the error seems to be the fault of Home Manager.' \
|
||||
"https://github.com/nix-community/home-manager/issues"
|
||||
exit 1
|
||||
fi
|
||||
'';
|
||||
} ''
|
||||
echo This derivation is not buildable, instead run it using nix-shell.
|
||||
${hmBashLibInit}
|
||||
_iError 'This derivation is not buildable, please run it using nix-shell.'
|
||||
exit 1
|
||||
''
|
||||
|
||||
189
home-manager/po/ca.po
Normal file
189
home-manager/po/ca.po
Normal file
@@ -0,0 +1,189 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2022-06-09 11:16+0000\n"
|
||||
"Last-Translator: Leix b <abone9999@gmail.com>\n"
|
||||
"Language-Team: Catalan <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"ca/>\n"
|
||||
"Language: ca\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.13-dev\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "No s'ha trobat cap fitxer de configuració a %s"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "No s'ha trobat cap fitxer de configuració. Si us plau, creeu un a %s"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "No s'han pogut inspeccionar les opcions de configuració de flake"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "No es pot instanciar una configuració flake"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"Hi ha %d notícia rellevant no llegida.\n"
|
||||
"Llegeix-la executant la comanda \"%s news\"."
|
||||
msgstr[1] ""
|
||||
"Hi han %d notícies rellevants no llegides.\n"
|
||||
"Llegeix-les executant la comanda \"%s news\"."
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Configuració \"news.display\" no reconeguda \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Si us plau, defineix la variable d'entorn $EDITOR"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Impossible executar la compilació en un directori només lectura"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "No existeix la generació amb ID %s"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Impossible eliminar la generació actual %s"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Eliminant la generació %s"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "No s'han trobat generacions a expirar"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "Cap paquet home-manager sembla estar instal·lat."
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Argument desconegut %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Home Manager serà esborrat del sistema."
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Això és un simulacre, res serà realment desinstal·lat."
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Estàs segur que vols desinstal·lar Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Canviant a configuració buida de Home Manager..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "Visca!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "Eliminar totes les generacions de Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr ""
|
||||
"Totes les generacions són ara candidates per a la recol·lecció de brossa."
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr ""
|
||||
"Deixant generacions, però aquestes encara poden ser esborrades pel recol·"
|
||||
"lector de brossa."
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr ""
|
||||
"Home Manager ha estat desinstal·lat però el vostre home.nix es manté intacte."
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%: opció desconeguda '%s'"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Executa '%s --help' per veure l'ajuda d'ús"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations espera un argument, obtinguts %d."
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Comanda desconeguda: %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "Creant configuració inicial de Home Manager..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Creant generació inicial de Home Manager..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"Tot fet! L'eina home-manager hauria de estar instal·lada i pots editar\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"per a configurar Home Manager. Executa 'man home-configuration.nix' per\n"
|
||||
"a veure totes les opcions disponibles."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"Uh oh, la instal·lació ha fallat! Si us plau, notifica-ho a\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"si l'error sembla culpa de Home Manager."
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr ""
|
||||
"Aquesta derivació no es pot construir, si us plau executa-la utilitzant nix-"
|
||||
"shell."
|
||||
187
home-manager/po/da.po
Normal file
187
home-manager/po/da.po
Normal file
@@ -0,0 +1,187 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2022-09-19 18:22+0000\n"
|
||||
"Last-Translator: cafkafk <christina@cafkafk.com>\n"
|
||||
"Language-Team: Danish <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"da/>\n"
|
||||
"Language: da\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.14.1\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "Ingen konfigurationsfiler fundet ved %s"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "Ingen konfigurationsfiler fundet. Venligst lav en ved %s"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "Kan ikke inspicere indstillinger af en flake konfiguration"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "Kan ikke instantiere en flake konfiguration"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"Der er %d ulæst og relavante nyheder.\n"
|
||||
"Læs den ved at køre \"%s news\"."
|
||||
msgstr[1] ""
|
||||
"Der er %d ulæste og relavante nyheder.\n"
|
||||
"Læs dem ved at køre \"%s news\"."
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Ubekændt \"news.display\" indstilling \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Venligst sæt $EDITOR miljøvariablen"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Kan ikke bygge i en læs-kun folder"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "Ingen generation med ID %s"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Kan ikke fjerne den nuværende generation %s"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Fjern generation %s"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "Ingen generationer som skal udløbes"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr ""
|
||||
"Det virker ikke som om der er nogle home-manager pakker der er installeret."
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Ubekendt argument %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Dette vil fjerne Home Manager fra dit system."
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Dette er en tør kørsel, intet vil rent faktisk blive uinstalleret."
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Virkelig uinstaller Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Skifter til tom Home Manager konfiguration..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "Juhuu!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "Fjern alle Home Manager generationer?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr "Alle generationer kan nu blive tjekket for overflødige filer."
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr ""
|
||||
"Forlad generationer, men de kan stadig bliver fjernet som overflødige filer."
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr ""
|
||||
"Home Manager bliver uinstalleret, men din home.nix bliver forladt uberørt."
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: ukendt indstilling '%s'"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Kør '%s --help' for brugsvejledning"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations forventer et argument, fik %d."
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Ubekendt kommando: %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "Laver initial Home Manager konfiguration..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Laver initial Home Manager generation..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"Alt er færdigt! Home-manager værktøjet burde nu være installeret, og du kan "
|
||||
"ændre\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
" \n"
|
||||
"For at konfigurere Home Manager. Kør 'man home-configuration.nix' for at \n"
|
||||
"se alle de mulige indstillinger."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"Åh nej, installationen fejlede! Venligst opret en fejlrapport ved\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
" \n"
|
||||
"hvis fejlen fremstår som forskyldt af Home Manager."
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr "Denne derivation er ikke bygbar, venligst kør den gennem nix-shell."
|
||||
188
home-manager/po/de.po
Normal file
188
home-manager/po/de.po
Normal file
@@ -0,0 +1,188 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2022-07-12 19:40+0000\n"
|
||||
"Last-Translator: Frederik Engels <frederik.engels92@gmail.com>\n"
|
||||
"Language-Team: German <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"de/>\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.14-dev\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "Keine Konfigurationsdatei unter %s gefunden"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "Keine Konfigurationsdatei gefunden. Bitte erstellen Sie eine unter %s"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "Die Optionen einer Flake-Konfiguration können nicht inspiziert werden"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "Kann eine Flake-Konfiguration nicht instanziieren"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"Es gibt eine ungelesene und relevante Nachricht.\n"
|
||||
"Lesen Sie sie, indem Sie den Befehl \"%s news\" ausführen."
|
||||
msgstr[1] ""
|
||||
"Es gibt %d ungelesene und relevante Nachrichten.\n"
|
||||
"Lesen Sie sie, indem Sie den Befehl \"%s news\" ausführen."
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Unbekannte \"news.display\" Einstellung \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Bitte legen Sie die $EDITOR Variable fest"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Build kann nicht im schreibgeschützten Ordner ausgeführt werden"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "Keine Generation mit ID %s"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Die jetzige Generation %s kann nicht entfernt werden"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Entferne Generation %s"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "Keine ablaufenden Generationen"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "Es scheint, als ob keine Home Manager Pakete installiert sind."
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Unbekannte Argumente %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Dies wird Home Manager von Ihrem System entfernen."
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Dies ist ein Probelauf, es wird nichts vom System deinstalliert."
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Möchten Sie wirklich Home Manager deinstallieren?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Wechsle zu einer leeren Home Manager Konfiguration..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "Juhu!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "Entferne alle Home Manager Generationen?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr "Alle Generationen kommen nun für die Garbage Collection in Frage."
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr ""
|
||||
"Ignoriere Generationen, aber diese könnten immer noch mittels des Garbage "
|
||||
"Collectors aufgeräumt werden."
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr ""
|
||||
"Home Manager ist installiert, aber Ihre home.nix Datei bleibt unberührt."
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: unbekannte Option '%s'"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Führe '%s --help' aus, um Hilfe zur Verwendung zu erhalten"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations erwartet ein Argument, hat aber %d erhalten."
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Unbekannter Befehl: %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "Erstelle initiale Home Manager Konfiguration..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Erstelle initiale Home Manager Generation..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"Alles fertig! Das Home Manager Tool sollte nun installiert sein. Sie können\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"bearbeiten um Home Manager zu konfigurieren. Führen Sie\n"
|
||||
"'man home-configuration.nix' aus, um alle verfügbaren Optionen zu\n"
|
||||
"sehen."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"Ups, die Installation schlug fehl. Bitte erstellen Sie ein Issue unter\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"falls der Fehler auf Home Manager zurückzuführen ist."
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr ""
|
||||
"Diese Derivation ist nicht kompilierbar. Bitte führen Sie nix-shell aus."
|
||||
185
home-manager/po/es.po
Normal file
185
home-manager/po/es.po
Normal file
@@ -0,0 +1,185 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2022-01-11 21:45+0000\n"
|
||||
"Last-Translator: Robert Helgesson <robert@rycee.net>\n"
|
||||
"Language-Team: Spanish <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"es/>\n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.10.1\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "Archivo de configuración no encontrado en %s"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "Archivo de configuración no encontrado. Por favor cree uno en %s"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "No se pudo inspeccionar las opciones de la configuración flake"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "No se pudo instanciar una configuración flake"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"Hay %d noticia relevante no leída.\n"
|
||||
"Léala ejecutando el comando \"%s news\"."
|
||||
msgstr[1] ""
|
||||
"Hay %d noticias relevantes no leídas.\n"
|
||||
"Léalas ejecutando el comando \"%s news\"."
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Configuración \"news.display\" no reconocida \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Defina la variable de ambiente $EDITOR"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "No se puede ejecutar en un directorio de sólo lectura"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "No existe la generación con ID %s"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "No se pudo borrar la generación actual %s"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Borrando generación %s"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "No se encontraron generaciones para expirar"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "No se encontró ningún paquete home-manager instalado."
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Argumento desconocido %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Home Manager será borrado del sistema."
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Este es un simulacro, nada será realmente desinstalado."
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Desinstalar Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Cambiando a configuración vacía de Home Manager..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "Bien!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "Borrar todas las generaciones de Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr "Ahora todas las generaciones son aptas para recolección de basura."
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr ""
|
||||
"Dejando generaciones aunque podrían aún ser borradas por el recolector de "
|
||||
"basura."
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "Home Manager desinstalado pero no se ha modificado home.nix."
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: opción desconocida '%s'"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Ejecute '%s --help' para ver ayuda"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations espera un argumento pero se dieron %d."
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Comando desconocido %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "Creando configuración inicial de Home Manager..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Creando generación inicial de Home Manager..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"Listo! home-manager ha sido instalado y ahora puede editar\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"para configurar Home Manager. Ejecute 'man home-configuration.nix' para\n"
|
||||
"ver todas las opciones disponibles."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"La instalación ha fallado. Por favor notifíquelo en\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"si el error parecer ser culpa de Home Manager."
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr "Esta derivación no se puede construir, ejecute con nix-shell."
|
||||
169
home-manager/po/fa.po
Normal file
169
home-manager/po/fa.po
Normal file
@@ -0,0 +1,169 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2022-04-09 18:11+0000\n"
|
||||
"Last-Translator: Artin Mobasher <mobasherartin.icm@gmail.com>\n"
|
||||
"Language-Team: Persian <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"fa/>\n"
|
||||
"Language: fa\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: Weblate 4.12-dev\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "هیچ فایل تنظیماتی در %s پیدا نشد"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "هیچ فایل تنظیماتی پیدا نشد. لطفا یک فایل در %s بسازید"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
#, fuzzy
|
||||
msgid "Yay!"
|
||||
msgstr "آره!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "دستور ناشناخته: %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "ایجاد تنظیمات اولیه Home-Manager..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr ""
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr ""
|
||||
166
home-manager/po/fi.po
Normal file
166
home-manager/po/fi.po
Normal file
@@ -0,0 +1,166 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: Automatically generated\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: fi\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr ""
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr ""
|
||||
191
home-manager/po/fr.po
Normal file
191
home-manager/po/fr.po
Normal file
@@ -0,0 +1,191 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2021-12-19 16:51+0000\n"
|
||||
"Last-Translator: TheBlackBeans <adrien.mathieu.net@gmail.com>\n"
|
||||
"Language-Team: French <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"fr/>\n"
|
||||
"Language: fr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: Weblate 4.10\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "Aucun fichier de configuration trouvé à l'emplacement %s"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr ""
|
||||
"Aucun fichier de configuration trouvé. Veuillez en créer un à l'emplacement "
|
||||
"%s"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "Impossible d'inspecter les options d'une configuration en flocons"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "Impossible d'instancier une configuration flake"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"Il y a %d nouvel élément non lu et pertinent.\n"
|
||||
"Vous pouvez le lire en exécutant la commande \"%s news\"."
|
||||
msgstr[1] ""
|
||||
"Il y a %d nouveaux éléments non lus et pertinents.\n"
|
||||
"Vous pouvez les lire en exécutant la commande \"%s news\"."
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Configuration \"news.display\" iconnue \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Veuillez définir la variable d'environnement $EDITOR"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Impossible de lancer une compilation dans un dossier en écriture seule"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "Aucune génération avec l'identifiant %s"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Impossible de supprimer la génération courante %s"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Suppression de la génération %s"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "Aucune génération expirée"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "Aucun paquet home-manager ne semble être installé."
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Aucun argument %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Cela va supprimer Home Manager de votre système."
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "C'est un essai, rien ne sera réellement désinstallé."
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Voulez-vous vraiment désinstaller Home Manager ?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Changement vers une configuration vierge de Home Manager..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "Yay !"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "Supprimer toutes les générations de Home Manager ?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr ""
|
||||
"Toutes les générations sont maintenant éligibles pour la collecte des "
|
||||
"ordures."
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr ""
|
||||
"Les générations sortantes mais elles peuvent encore être collectées par les "
|
||||
"ordures."
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "Home Manager est désinstallé mais votre home.nix reste intact."
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s : option inconnue « %s »"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Exécuter « %s --help » pour de l'aide sur l'utilisation"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations attend un argument, a obtenu %d."
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Commande inconnue : %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "Création de la configuration initiale de Home Manager..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Création de la génération initiale de Home Manager..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"Tout est fait! Home Manager devrait désormais être installé et vous pouvez "
|
||||
"éditer\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"pour configurer Home Manager. Pour avoir une liste des options disponibles,\n"
|
||||
"essayez 'man home-configuration.nix'."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"Uh oh, l'installation n'a pas réussi! Veuillez signaler cette erreur à "
|
||||
"l'adresse suivante\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"si l'erreur semble être liée à Home Manager."
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr "Cette dérivation ne peut être construite, essayez avec nix-shell."
|
||||
167
home-manager/po/home-manager.pot
Normal file
167
home-manager/po/home-manager.pot
Normal file
@@ -0,0 +1,167 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr ""
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr ""
|
||||
185
home-manager/po/it.po
Normal file
185
home-manager/po/it.po
Normal file
@@ -0,0 +1,185 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2022-04-20 18:18+0000\n"
|
||||
"Last-Translator: Frankie McEyes <mceyes@protonmail.com>\n"
|
||||
"Language-Team: Italian <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"it/>\n"
|
||||
"Language: it\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.12-dev\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "Nessun file di configurazione trovato in %s"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "Nessun file di configurazione trovato. Per favore crearne uno in %s"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "Impossibile ispezionare le opzioni di configurazione flake"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "Impossibile istanziare una configurazione flake"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"C'è %d novità di elementi non letta.\n"
|
||||
"Leggila con il comando \"%s news\"."
|
||||
msgstr[1] ""
|
||||
"Ci sono %d novità di elementi non letti\n"
|
||||
"Leggile con il comando \"%s news\"."
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Opzione \"news.display\" sconosciuta \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Per favore impostare la variabile d'ambient $EDITOR"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Impossibile eseguire la build in una cartella in sola lettura"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "Nessuna generazione con ID %s"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Impossibile rimuovere la generazione corrente %s"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Rimuovo la generazione %s"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "Nessuna generazione in scadenza"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "Nessun pacchetto home-manager sembra essere installato."
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Argomento sconosciuto: %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Questo rimuoverà Home Manger dal tuo sistema."
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Questo è un avvio a secco, nulla verrà realmente disinstallato."
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Vuoi davvero disinstallare Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Cambio ad una configurazione Home Manager vuota..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "Urrà!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "Rimuovere tutte le generazioni Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr "Tutte le generazioni sono ora pronte per essere cestinate."
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr "Abbandono le generazioni, ma possono essere ancora cestinate."
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "Home Manager è disinstallato ma la tua home.Nix non è stata toccata."
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: opzione sconosciuta '%s'"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Esegui '%s --help' per ottenere aiuto"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations si aspetta un solo argomento, invece di %d."
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Comando sconosciuto: %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "Creando la configurazione iniziale di Home Manager..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Creando la generazione iniziale di Home Manager..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"Tutto fatto! Home-manager dovrebbe essere installato e puoi modificare\n"
|
||||
"\n"
|
||||
"%s\n"
|
||||
"\n"
|
||||
"per configurare Home Manager. Esegui 'man home-configurazion.nix' per\n"
|
||||
"consultare tutte le opzioni disponibili."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"Oh no, l'installazione non è andata a buon fine! Per favore aprire un ticket "
|
||||
"issue a\n"
|
||||
"\n"
|
||||
"%s\n"
|
||||
"\n"
|
||||
"se l'errore sembra essere causato da Home Manager."
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr ""
|
||||
"Questa derivazione non è compilabile, prova ad eseguila usando nix-shell."
|
||||
187
home-manager/po/ja.po
Normal file
187
home-manager/po/ja.po
Normal file
@@ -0,0 +1,187 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2022-07-02 02:18+0000\n"
|
||||
"Last-Translator: OKA, NETSURFER AND OBSERVER, FRONTEND, DEVELOPER "
|
||||
"(DOTFILES,OSINT,OSS), KEYBASE: (3B0E8E0895DAC8B8) <tetrapasta02@gmail.com>\n"
|
||||
"Language-Team: Japanese <https://hosted.weblate.org/projects/home-manager/"
|
||||
"cli/ja/>\n"
|
||||
"Language: ja\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Generator: Weblate 4.13.1-dev\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "%s に設定ファイルが見つかりません"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "設定ファイルがありません。ファイルを %s に作ってください"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "flake設定のオプションを検査できません"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "flake設定をインスタンス化できません"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"未読のお知らせが%d件あります。\n"
|
||||
"\"%s news\"コマンドで確認できます。"
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "知らない\"news.display\"設定\"%s\"."
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "$EDITOR環境変数を設定してください"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "読み込み専用ディレクトリ内ではbuild(作成)できません"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "ID %s を持つ世代はありません"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "現在使用中の世代 %s は削除できません"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "世代 %s を削除中です"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "期限切れで削除する世代はありません"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "home-managerパッケージはインストールされていないようです。"
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "不明な引数 %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "これはシステムからHome Managerを削除します。"
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "これはdry run (予行練習)で、実際にはアンインストールは行われません。"
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "本当にHome Managerをアンインストールしますか?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "空のHome Managerの設定に切り替え中です..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "イェイ!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "Home-managerの全ての世代を削除しますか?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr "全ての世代がガベージコレクションの対象になりました。"
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr ""
|
||||
"世代を残していますが、それらはガベージコレクションで回収されるかもしれませ"
|
||||
"ん。"
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr ""
|
||||
"Home Managerはアンインストールされましたが、home.nixはそのまま残してありま"
|
||||
"す。"
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: 不明なオプション '%s'"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "利用方法のヘルプは'%s --help' を実行してください"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations は一つの引数を期待しますが、%d が与えられました。"
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "不明なコマンド: %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "Home Managerの初期設定を生成しています..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Home Managerの最初の世代を生成しています..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"全て実行しました! 現在Home-managerツールはインストールされているはずで、\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"でHome Managerの設定を編集することができます。利用可能なオプションを見るに"
|
||||
"は\n"
|
||||
"'man home-configuration.nix' を実行してください。"
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"うあ、インストールに失敗しました!もしこのエラーがHome Managerの欠陥のせいで"
|
||||
"生じたようなら、\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"というissueを立ててください。"
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr "この派生はビルドできませんので、nix-shellを使って実行してください。"
|
||||
186
home-manager/po/ko.po
Normal file
186
home-manager/po/ko.po
Normal file
@@ -0,0 +1,186 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2022-01-30 21:50+0000\n"
|
||||
"Last-Translator: 박수원 <bboxone@gmail.com>\n"
|
||||
"Language-Team: Korean <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"ko/>\n"
|
||||
"Language: ko\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Generator: Weblate 4.11-dev\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "%s에서 설정 파일을 찾을 수 없음"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "설정 파일을 찾을 수 없음. %s에 설정 파일을 생성하십시오"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "flake 설정의 옵션들을 검사할 수 없음"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "flake 설정을 인스턴스화 할 수 없음"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"읽지 않은 관련된 뉴스 항목들이 %d 개 있습니다.\n"
|
||||
"\"%s news\" 명령어를 실행해 읽어보십시오."
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "알 수 없는 \"news.display\"의 설정 \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "환경변수 $EDITOR를 설정하십시오"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "읽기전용 폴더에서 빌드를 실행할 수 없습니다"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "ID %s를 갖는 세대가 존재하지 않음"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "현재 세대인 %s를 삭제할 수 없음"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "%s 세대를 삭제하는 중"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "유효 기간이 지난 세대가 없음"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "홈 매니저 패키지들이 설치되지 않은 것으로 보입니다."
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "알 수 없는 매개변수 %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "시스템에서 홈 매니저를 삭제할 것입니다."
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "모의 실행 중으로, 아무것도 실제로 설치되지 않습니다."
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "정말로 홈 매니저를 삭제할까요?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "빈 홈 매니저 설정으로 바꾸는 중..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "야호!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "모든 홈 매니저 세대를 지울까요?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr "이제 모든 세대가 쓰레기 수집(가비지 컬렉션)의 대상이 됩니다."
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr ""
|
||||
"세대들을 그대로 놔두지만 그들은 여전히 쓰레기 수집(가비지 컬렉션) 될 수 있습"
|
||||
"니다."
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "홈 매니저는 삭제되지만 home.nix 파일은 남겨집니다."
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: 알 수 없는 옵션 '%s'"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "도움말을 보려면 '%s --help'를 실행하십시오"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr ""
|
||||
"expire-generations 명령어는 매개변수가 한 개 필요한데, %d 개가 입력되었습니"
|
||||
"다."
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "알 수 없는 명령어: %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "최초의 홈 매니저 설정을 생성하는 중..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "최초의 홈 매니저 세대를 생성하는 중..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"완료! 홈 매니저 도구들이 설치 되었고 이제 \n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"파일을 수정해서 홈 매니저를 설정할 수 있습니다. 'man home-configuration."
|
||||
"nix'를\n"
|
||||
"실행해서 가능한 모든 옵션을 살펴보십시오."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"이런, 설치가 실패했습니다! 만약 에러가 홈 매니저의 문제라고 생각된다면\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"위 사이트에서 이슈를 생성하십시오."
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr ""
|
||||
"이 derivation은 빌드 할 수 없습니다. nix-shell을 이용해서 실행해 주십시오."
|
||||
172
home-manager/po/nb_NO.po
Normal file
172
home-manager/po/nb_NO.po
Normal file
@@ -0,0 +1,172 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2021-12-13 20:50+0000\n"
|
||||
"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n"
|
||||
"Language-Team: Norwegian Bokmål <https://hosted.weblate.org/projects/home-"
|
||||
"manager/cli/nb_NO/>\n"
|
||||
"Language: nb_NO\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.10-dev\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "Fant ingen oppsettsfil i %s"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "Fant ikke noenoppsettsfil. Opprett en i %s"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "Kan ikke inspisere alternativer for et flake-oppsett"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "Kan ikke igangsette flak-oppsett"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"Det er %d ulest og relevant nyhetselement.\n"
|
||||
"Les det ved å kjøre kommandoen «%s news»."
|
||||
msgstr[1] ""
|
||||
"Det er %d uleste og relevant nyhetselementer.\n"
|
||||
"Les det ved å kjøre kommandoen «%s news»."
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Ukjent «news.display»-innstilling «%s»."
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Sett «$EDITOR»-miljøvariabelen"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Kan ikke kjøre bygg i skrivebeskyttet mappe"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "Ingen generering med ID-en %s"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Kan ikke fjerne nåværende generering %s"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Fjerner generering %s"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "Ingen genereringer til utløp"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "Ingen «home-manager»-pakker ser ut til å være installert."
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Ukjent argument %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Dette vil fjerne Home Manager fra systemet ditt."
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Dette er en testkjøring. Ingenting vil bli avinstallert."
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Vil du avinstallere Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Bytter til tomt Home Manager-oppsett …"
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "Hurra."
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "Fjern alle Home Manager-genereringer?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr "Alle genereringer kan nå hentes av søppelinnsamling."
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr "Levner genereringer, men de kan fremdeles hentes av søppelinnsamling."
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "Home Manager er avinstallert, men din home.nix er levnet uforandret."
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: ukjent alternativ «%s»"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Kjør «%s --help» for brukshjelp"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "«expire-generations» forventet ett argument, mottok %d."
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Ukjent kommando: %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr ""
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr ""
|
||||
187
home-manager/po/nl.po
Normal file
187
home-manager/po/nl.po
Normal file
@@ -0,0 +1,187 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2022-11-16 13:47+0000\n"
|
||||
"Last-Translator: Pablo Bollansee <pablo.bollansee@gmail.com>\n"
|
||||
"Language-Team: Dutch <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"nl/>\n"
|
||||
"Language: nl\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.15-dev\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "Geen configuratiebestand gevonden op %s"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "Geen configuratiebestand gevonden, maak er alstublieft een aan op %s"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "Kan de opties van een flake configuratie niet inspecteren"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "Het is niet gelukt om de vlok-configuratie te creëren"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"Er is %d ongelezen and relevant nieuws artikel.\n"
|
||||
"Lees het door het commando \"%s news\" uit te voeren."
|
||||
msgstr[1] ""
|
||||
"Er zijn %d ongelezen and relevante nieuws artikelen.\n"
|
||||
"Lees ze door het commando \"%s news\" uit te voeren."
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Onbekende \"new.display\" instelling \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Gelieve de $EDITOR omgevingsvariabele in te stellen"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Het is niet mogelijk om te bouwen in een read-only map"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "Geen generatie met de ID %s"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Het is niet mogelijk om de huidige generatie %s te verwijderen"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Generatie %s aan het verwijderen"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "Geen generatie om te beëindigen"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "Er lijkt geen home-manager pakket geïnstalleerd te zijn."
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Onbekend argument %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Dit zal Home Manager van jouw systeem verwijderen."
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Dit is een oefening, niets wordt werkelijk geïnstalleerd."
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Wilt u zeker Home Manager verwijderen?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Naar een lege Home Manager configuratie aan het veranderen..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "Joepie!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "Alle Home Manager generaties verwijderen?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr "Alle generaties zijn nu in aanmerking voor afvalinzameling."
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr "Generaties blijven momenteel bestaan maar worden later opgekuist."
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "Home Manager is verwijdert maar jouw home.nix is onaangeraakt."
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: onbekende keuze '%s'"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Voer '%s --help' in om gebruiksinfo te zien"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations verwacht één argument, maar kreeg er %d."
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Onbekende opdracht: %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "Initiële Home Manager configuratie aan het maken..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Initiële Home Manager generatie aan het maken..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"Helemaal klaar! De home-manager tool zou nu geïnstalleerd moeten zijn en je "
|
||||
"kan\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"aanpassen om Home Manager te configureren. Draai 'man home-"
|
||||
"configuration.nix' om\n"
|
||||
"alle opties te zien."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"Oh nee, de installatie is mislukt. Gelieve een ticket aan te maken in\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"als de error de schuld van Home Manager lijkt te zijn."
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr ""
|
||||
"Deze afleiding kan niet gebouwd worden, voer het alstublieft uit met nix-"
|
||||
"shell."
|
||||
191
home-manager/po/pl.po
Normal file
191
home-manager/po/pl.po
Normal file
@@ -0,0 +1,191 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2021-12-29 08:48+0000\n"
|
||||
"Last-Translator: Tomasz Czyż <tomasz.czyz@eskapizm.pl>\n"
|
||||
"Language-Team: Polish <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"pl/>\n"
|
||||
"Language: pl\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
||||
"|| n%100>=20) ? 1 : 2;\n"
|
||||
"X-Generator: Weblate 4.10.1\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "Nie znaleziono pliku konfiguracyjnego %s"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "Nie znaleziono pliku konfiguracyjnego. Proszę utworzyć plik %s"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "Nie mogę sprawdzić konfiguracji flake'a"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "Nie mogę zinstancjować konfiguracji flake'a"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"Jest %d nieodczytana wiadomość.\n"
|
||||
"Możesz ją odczytać uruchamiając „%s news”."
|
||||
msgstr[1] ""
|
||||
"Jest %d nieodczytanych wiadomości.\n"
|
||||
"Możesz je odczytać uruchamiając „%s news”."
|
||||
msgstr[2] ""
|
||||
"Jest %d nieodczytanych wiadomości.\n"
|
||||
"Możesz je odczytać uruchamiając „%s news”."
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Nieznane ustawienie „%s” „news.display”."
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Proszę ustawić zmienną środowiskową $EDITOR"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Nie mogę uruchomić budowania w katalogu tylko-do-odczytu"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "Brak generacji z ID %s"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Nie mogę usunąć bieżącej generacji %s"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Usuwanie generacji %s"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "Brak wygasających generacji"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "Pakiety home-manager nie wydają się być zainstalowane."
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Nieznany argument %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "To usunie Home Managera z twojego systemu."
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "To jest próba, faktycznie nic nie będzie usunięte."
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Jesteś pewien usunięcia Home Managera?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Przełączanie do pustej konfiguracji Home Managera..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "Jej!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "Usunąć wszystkie generacje Home Managera?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr ""
|
||||
"Wszystkie generacje są uwzględnione przy oczyszczaniu (garbage collection)."
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr ""
|
||||
"Zostawiam generacje ale wciąż mogą zostać usunięte (garbage collection)."
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr ""
|
||||
"Home Manager jest usunięty ale twój home.nix jest pozostawiony nietknięty."
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: nieznana opcja „%s”"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Uruchom „%s --help” by otrzymać pomoc"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations oczekuje jednego argumentu, otrzymane %d."
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Nieznana komenda: %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "Tworzenie pierwotnej konfiguracji Home Managera..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Tworzenie pierwotnej generacji Home Managera..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"Skończone! Narzędzie home-manager powinno być zainstalowane i może edytować\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"by skonfigurować Home Managera. Uruchom „man home-configuration.nix” aby\n"
|
||||
"sprawdzić wszystkie możliwe opcje konfiguracyjne."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"Ojoj, instalacja nie powiodła się! Proszę opisz problem na\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"jeśli myślisz, że problem spowodowany jest przez błąd Home Managera."
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr ""
|
||||
"Ta paczka (derivation) nie da się budować, proszę uruchom używając nix-shell."
|
||||
188
home-manager/po/pt_BR.po
Normal file
188
home-manager/po/pt_BR.po
Normal file
@@ -0,0 +1,188 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2022-04-04 11:11+0000\n"
|
||||
"Last-Translator: Alex Miranda <alexmirandamoraes@gmail.com>\n"
|
||||
"Language-Team: Portuguese (Brazil) <https://hosted.weblate.org/projects/"
|
||||
"home-manager/cli/pt_BR/>\n"
|
||||
"Language: pt_BR\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: Weblate 4.12-dev\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "Nenhum arquivo de configuração encontrado no %s"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "Arquivo de configuração não encontrado. Por favor crie um em %s"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "Não é possivel inspecionar a opção de configuração do flake"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "Não foi possível instanciar a configuração de flake"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"Há %d novo item relevante não lido\n"
|
||||
"Leia executando o comando \"%s news\"."
|
||||
msgstr[1] ""
|
||||
"Há %d novos itens relevants não lidos\n"
|
||||
"Leia executando o comando \"%s news\"."
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Valor \"%s\" para configuração \"news.display\" não reconhecido."
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Por favor defina a variável de ambiente $EDITOR"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Não é possível fazer o build em um diretório somente leitura"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "Nenhuma geração com ID %s"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Não foi possível remover a geração atual %s"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Removendo geração %s"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "Nenhuma geração a expirar"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "Nenhum pacote parece instalado com home-manager."
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Argumento desconhecido %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Isso irá remover o Home Manager do seu sistema."
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Essa é uma execução de teste, nada de fato será desinstalado."
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Confirma a desinstalação do Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Trocando para configuração vazia do Home Manager..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "Boa!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "Remover todas as gerações do Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr "Todas gerações agora são elegíveis para coleta do garbage collector."
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr ""
|
||||
"Deixando gerações, entretanto elas ainda poderão ser limpas pelo garbage "
|
||||
"collector."
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "Home Manager foi desinstalado, mas o seu home.nix foi deixado intacto."
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: opção não reconhecida '%s'"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Execute '%s --help' para instruções de uso"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations espera um argumento, recebeu %d."
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Comando não reconhecido: %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "Criando a configuração inicial do Home Manager..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Criando a geração inicial do Home Manager..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"Pronto! O home-manager deve ser instalado agora e você poderá editar o "
|
||||
"arquivo\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"para configurar o Home Manager. Execute 'man home-configuration.nix' para\n"
|
||||
"ver todas as opções disponíveis."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"Ixi, a instalação falhou! Por favor crie um issue no\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"se o erro lhe parecer ser um problema do Home Manager."
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr ""
|
||||
"O build dessa derivation não pode ser feito, por favor rode usando o nix-"
|
||||
"shell."
|
||||
188
home-manager/po/ru.po
Normal file
188
home-manager/po/ru.po
Normal file
@@ -0,0 +1,188 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2021-12-21 19:55+0000\n"
|
||||
"Last-Translator: Mikhail Chekan <chekoopa@mail.ru>\n"
|
||||
"Language-Team: Russian <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"ru/>\n"
|
||||
"Language: ru\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||
"X-Generator: Weblate 4.10\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "Не найден файл конфигурации в %s"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "Не найден файл конфигурации. Пожалуйста, создайте его в %s"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "Не могу получить опции для flake-конфигурации"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "Не могу создать экземляр для flake-конфигурации"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"У вас есть %d непрочитанная и релевантная новость.\n"
|
||||
"Прочтите её, выполнив команду \"%s news\"."
|
||||
msgstr[1] ""
|
||||
"У вас есть %d непрочитанные и релевантные новости.\n"
|
||||
"Прочтите их, выполнив команду \"%s news\"."
|
||||
msgstr[2] ""
|
||||
"У вас есть %d непрочитанных и релевантных новостей.\n"
|
||||
"Прочтите их, выполнив команду \"%s news\"."
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Неизвестное значение \"news.display\": \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Пожалуйста, определите переменную среды $EDITOR"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Не могу начать сборку в директории, защищённой от записи"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "Поколение под номером %s не существует"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Не могу удалить текущее поколение %s"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Удаляю поколение %s"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "Нет поколений, которые можно просрочить"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "Не обнаружено пакетов, установленных через home-manager."
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Неизвестный аргумент %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Это удалит Home Manager из вашей системы."
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Это пробный запуск, на самом деле ничего не удаляется."
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Действительно хотите удалить Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Переключаюсь на пустую конфигурацию Home Manager..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "Ура!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "Удалить все поколения Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr "Теперь все поколения готовы к удалению сборщиком мусора."
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr "Поколения остаются, но их ещё можно удалить сборщиком мусора."
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "Home Manager удалён, но ваш home.nix остался нетронутым."
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: неизвестная опция '%s'"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Выполните '%s --help', чтобы получить справку"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations требует один аргумент, но передано %d."
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Неизвестная команда: %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "Создаю начальную конфигурацию Home Manager..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Создаю начальное поколение Home Manager..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"Готово! Теперь вам должна быть доступна утилита home-manager,\n"
|
||||
"и вы можете отредактировать настройки в файле\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"Выполните 'man home-configuration.nix', чтобы увидеть доступные опции."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"Ой, установка не удалась! Пожалуйста, создайте тему в багтрекере\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"если считаете, что в ошибке виноват Home Manager."
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr ""
|
||||
"Это определение нельзя собрать. Пожалуйста, запустите его через nix-shell."
|
||||
183
home-manager/po/sv.po
Normal file
183
home-manager/po/sv.po
Normal file
@@ -0,0 +1,183 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2021-12-17 20:50+0000\n"
|
||||
"Last-Translator: Robert Helgesson <robert@rycee.net>\n"
|
||||
"Language-Team: Swedish <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"sv/>\n"
|
||||
"Language: sv\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.10\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "Det finns ingen konfigurationsfil i %s"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "Hittade ingen konfigurationsfil. Skapa en i %s"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "Kan inte granska alternativ i en flake-konfiguration"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "Kan inte instansera en flake-konfiguration"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"Det finns %d oläst och relevant nyhet.\n"
|
||||
"Läs den genom att köra kommandot \"%s news\"."
|
||||
msgstr[1] ""
|
||||
"Det finns %d olästa och relevanta nyheter.\n"
|
||||
"Läs dem genom att köra kommandot \"%s news\"."
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Okänt \"news.display\"-värde \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Vänligen tilldela miljövariablen $EDITOR"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Kan inte bygga i katalog med bara läsrättigheter"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "Ingen generation med ID %s"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Kan inte ta bort nuvarande generation %s"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Tar bort generation %s"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "Ingen generation att förfalla"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "Paketet home-manager verkar inte vara installerat."
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Okänt argument %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Detta kommer att ta bort Home Manager från ditt system."
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Detta är en testkörning, inget kommer att bli avinstallerat."
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Verkligen avinstallera Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Byter till tom Home Manager-konfiguration..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "Hurra!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "Ta bort alla Home Manager-generationer?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr "Alla generationer kan nu skräpsamlas."
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr "Låter generationer vara kvar men de kan fortfarande skräpsamlas."
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "Home Manager är avinstallerad men din home.nix är orörd."
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: okänt val '%s'"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Kör '%s --help' för användarhjälp"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expect-generations förväntar sig ett argument, fick %d."
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Okänt kommando: %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "Skapar initial Home Manager-konfiguration..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Skapar initial Home Manager-generation..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"Färdig! Verktyget home-manager borde nu vara installerat och du kan editera\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"för att konfigurera Home Manager. Kör 'man home-configuration.nix' för\n"
|
||||
"att se alla tillgängliga alternativ."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"Ajdå, installationen misslyckades! Skapa gärna en rapport på\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"om problemet verkar bero på något Home Manager gör fel."
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr "Denna derivation är inte byggbar, kör den med nix-shell istället."
|
||||
186
home-manager/po/tr.po
Normal file
186
home-manager/po/tr.po
Normal file
@@ -0,0 +1,186 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2022-03-26 23:57+0000\n"
|
||||
"Last-Translator: Oğuz Ersen <oguz@ersen.moe>\n"
|
||||
"Language-Team: Turkish <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"tr/>\n"
|
||||
"Language: tr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.12-dev\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "%s konumunda yapılandırma dosyası bulunamadı"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr ""
|
||||
"Yapılandırma dosyası bulunamadı. Lütfen %s konumunda bir tane oluşturun"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "Flake yapılandırmasının ayarları incelenemiyor"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "Flake yapılandırması örneklendirilemiyor"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"%d tane okunmamış ilgili haber bulunmakta.\n"
|
||||
"Okumak için \"%s news\"."
|
||||
msgstr[1] ""
|
||||
"%d tane okunmamış ilgili haberler bulunmakta.\n"
|
||||
"Okumak için \"%s news\"."
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Bilinmeyen \"news.display\" seçeneği \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Lütfen $EDITOR ortam değişkenini tanımlayın"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "İnşa, sadece okunabilir bir klasörde çalıştırılamaz"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "%s ID'sine sahip inşa bulunamadı"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Kullanımda olan %s inşası silinemez"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "İnşa siliniyor %s"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "Süresi dolacak inşa yok"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "Galiba home-manager paketi kurulu değil."
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Bilinmeyen argüman %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Bu, sisteminizden Home Manager'ı kaldıracak."
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Bu sadece bir inşa denemesi, hiçbir şey silinmeyecek."
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Home Manager'ı silmek istediğinize emin misiniz?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Boş Home Manager yapılandırmasına geçiliyor..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "Güzel!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "Tüm Home Manager inşaları kaldırılsın mı?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr "Artık tüm inşalar çöp olarak toplanabilir."
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr "İnşalar yine de çöp olarak toplanabilir."
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "Home Manager kaldırıldı ama home.nix dosyasına dokunulmadı."
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: Bilinmeyen komut '%s'"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Yardım için '%s --help'"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations bir argüman istiyor, %d tane girildi."
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Bilinmeyen komut: %s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "İlk Home Manager yapılandırması oluşturuluyor..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "İlk Home Manager inşası oluşturuluyor..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"Herşey tamam! home-manager aracı kuruldu. Home Manager'ı yapılandırmak için\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"dosyasını düzenleyin. Kullanılabilir seçenekleri görmek için:\n"
|
||||
"'man home-configuration.nix'."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"Eyvah, kurulum başarısız! Eğer hatanın Home Manager'dan kaynaklandığını "
|
||||
"düşünüyorsanız\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"adresinden bildirin."
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr ""
|
||||
"Bu türetim inşa edilebilir değil, lütfen onu nix-shell kullanarak çalıştırın."
|
||||
180
home-manager/po/zh_Hans.po
Normal file
180
home-manager/po/zh_Hans.po
Normal file
@@ -0,0 +1,180 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2021-12-28 12:41+0000\n"
|
||||
"Last-Translator: WhiredPlanck <fungdaat31@outlook.com>\n"
|
||||
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/"
|
||||
"home-manager/cli/zh_Hans/>\n"
|
||||
"Language: zh_Hans\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Generator: Weblate 4.10.1\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "未在 %s 找到配置文件"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "未找到配置文件。请在 %s 处创建一份"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "无法检查 flake 配置中的选项"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "无法创建 flake 配置实例"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"有 %d 条未读的相关新闻或消息。\n"
|
||||
"可运行 “%s news” 命令进行阅读。"
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "未知的 “news.display” 设置项 “%s”。"
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "请设定 $EDITOR 环境变量"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "无法在只读目录中运行构建"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "没有 ID 为 %s 的世代"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "无法移除当前世代 %s"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "正在移除世代 %s"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "没有即将过期的世代"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "似乎没有安装 home-manager 软件包。"
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "未知参数 %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "这将会从系统中移除 Home Manager。"
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "这是试运行结果,没有实际卸载任何软件包。"
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "确定要卸载 Home Manager 吗?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "正在切换至空的 Home Manager 配置 ..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "好耶!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "要移除所有 Home Manager 配置世代吗?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr "所有世代现在均符合垃圾回收的条件。"
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr "保留世代,但它们仍然可能被垃圾回收。"
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "Home Manager 已卸载,但未改动您的 home.nix 配置文件。"
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s:未知选项 ‘%s’"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "运行 ‘%s --help’ 获取用法帮助"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations 须要一个参数,但获取到了 %d 个。"
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "未知命令:%s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "正在创建初始 Home Manager 配置 ..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "正在创建初始 Home Manager 世代 ..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"全部工作完成了!home-manager 工具现应已安装,您可以编辑\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"来配置 Home Manager。运行 ‘man home-configuration.nix’\n"
|
||||
"来查看所有可用选项。"
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"啊哦,安装失败了!如果感觉是 Home Manager 造成的错误,请在下方\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"处创建 Issue 告知我们。"
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr "此配置文件/变体不可构建,请在 nix-shell 中运行它。"
|
||||
180
home-manager/po/zh_Hant.po
Normal file
180
home-manager/po/zh_Hant.po
Normal file
@@ -0,0 +1,180 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||
"PO-Revision-Date: 2021-12-29 08:48+0000\n"
|
||||
"Last-Translator: WhiredPlanck <fungdaat31@outlook.com>\n"
|
||||
"Language-Team: Chinese (Traditional) <https://hosted.weblate.org/projects/"
|
||||
"home-manager/cli/zh_Hant/>\n"
|
||||
"Language: zh_Hant\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Generator: Weblate 4.10.1\n"
|
||||
|
||||
#: home-manager/home-manager:60
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "未在 %s 處找到配置檔案"
|
||||
|
||||
#: home-manager/home-manager:79
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "未找到配置檔案。請在 %s 處建立一份"
|
||||
|
||||
#: home-manager/home-manager:122
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "無法檢查 flake 配置中的選項"
|
||||
|
||||
#: home-manager/home-manager:162
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "無法建立 flake 配置例項"
|
||||
|
||||
#: home-manager/home-manager:237
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"有 %d 條未讀的相關新聞或訊息。\n"
|
||||
"可執行 “%s news” 命令進行閱讀。"
|
||||
|
||||
#: home-manager/home-manager:251
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "未知的 “news.display” 設定項 “%s”。"
|
||||
|
||||
#: home-manager/home-manager:258
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "請設定 $EDITOR 環境變數"
|
||||
|
||||
#: home-manager/home-manager:273
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "無法在只讀目錄中執行構建"
|
||||
|
||||
#: home-manager/home-manager:355
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "沒有 ID 為 %s 的世代"
|
||||
|
||||
#: home-manager/home-manager:357
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "無法移除當前世代 %s"
|
||||
|
||||
#: home-manager/home-manager:359
|
||||
msgid "Removing generation %s"
|
||||
msgstr "正在移除世代 %s"
|
||||
|
||||
#: home-manager/home-manager:385
|
||||
msgid "No generations to expire"
|
||||
msgstr "沒有即將過期的世代"
|
||||
|
||||
#: home-manager/home-manager:396
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "似乎沒有安裝 home-manager 軟體包。"
|
||||
|
||||
#: home-manager/home-manager:453
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "未知引數 %s"
|
||||
|
||||
#: home-manager/home-manager:469
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "這將會從系統中移除 Home Manager。"
|
||||
|
||||
#: home-manager/home-manager:472
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "這是試執行結果,沒有實際解除安裝任何軟體包。"
|
||||
|
||||
#: home-manager/home-manager:476
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "確定要解除安裝 Home Manager 嗎?"
|
||||
|
||||
#: home-manager/home-manager:481
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "正在切換至空的 Home Manager 配置 ..."
|
||||
|
||||
#: home-manager/home-manager:493
|
||||
msgid "Yay!"
|
||||
msgstr "好耶!"
|
||||
|
||||
#: home-manager/home-manager:500
|
||||
msgid "Remove all Home Manager generations?"
|
||||
msgstr "要移除所有 Home Manager 配置世代嗎?"
|
||||
|
||||
#: home-manager/home-manager:507
|
||||
msgid "All generations are now eligible for garbage collection."
|
||||
msgstr "所有世代現在均符合垃圾回收的條件。"
|
||||
|
||||
#: home-manager/home-manager:510
|
||||
msgid "Leaving generations but they may still be garbage collected."
|
||||
msgstr "保留世代,但它們仍然可能被垃圾回收。"
|
||||
|
||||
#: home-manager/home-manager:514
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "Home Manager 已解除安裝,但未改動您的 home.nix 配置檔案。"
|
||||
|
||||
#: home-manager/home-manager:673
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s:未知選項 ‘%s’"
|
||||
|
||||
#: home-manager/home-manager:674
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "執行 ‘%s --help’ 獲取用法幫助"
|
||||
|
||||
#: home-manager/home-manager:708
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations 須要一個引數,但獲取到了 %d 個。"
|
||||
|
||||
#: home-manager/home-manager:730
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "未知命令:%s"
|
||||
|
||||
#: home-manager/install.nix:22
|
||||
msgid "Creating initial Home Manager configuration..."
|
||||
msgstr "正在建立初始 Home Manager 配置 ..."
|
||||
|
||||
#: home-manager/install.nix:66
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "正在建立初始 Home Manager 世代 ..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/install.nix:71
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"全部工作完成了!home-manager 工具現應已安裝,您可以編輯\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"來配置 Home Manager。執行 ‘man home-configuration.nix’\n"
|
||||
"來檢視所有可用選項。"
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/install.nix:76
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"啊哦,安裝失敗了!如果感覺是 Home Manager 造成的錯誤,請在下方\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"處建立 Issue 告知我們。"
|
||||
|
||||
#: home-manager/install.nix:83
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr "此配置檔案/變體不可構建,請在 nix-shell 中執行它。"
|
||||
85
lib/bash/home-manager.sh
Normal file
85
lib/bash/home-manager.sh
Normal file
@@ -0,0 +1,85 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
# This file contains a number of utilities for use by the home-manager tool and
|
||||
# the generated Home Manager activation scripts. No guarantee is made about
|
||||
# backwards or forward compatibility.
|
||||
#
|
||||
|
||||
# Sets up colors suitable for the `errorEcho`, `warnEcho`, and `noteEcho`
|
||||
# functions.
|
||||
#
|
||||
# The check for terminal output and color support is heavily inspired by
|
||||
# https://unix.stackexchange.com/a/10065.
|
||||
#
|
||||
# The setup respects the `NO_COLOR` environment variable.
|
||||
function setupColors() {
|
||||
normalColor=""
|
||||
errorColor=""
|
||||
warnColor=""
|
||||
noteColor=""
|
||||
|
||||
# Enable colors for terminals, and allow opting out.
|
||||
if [[ ! -v NO_COLOR && -t 1 ]]; then
|
||||
# See if it supports colors.
|
||||
local ncolors
|
||||
ncolors=$(tput colors 2> /dev/null || echo 0)
|
||||
|
||||
if [[ -n "$ncolors" && "$ncolors" -ge 8 ]]; then
|
||||
normalColor="$(tput sgr0)"
|
||||
errorColor="$(tput bold)$(tput setaf 1)"
|
||||
warnColor="$(tput setaf 3)"
|
||||
noteColor="$(tput bold)$(tput setaf 6)"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
setupColors
|
||||
|
||||
function errorEcho() {
|
||||
echo "${errorColor}$*${normalColor}"
|
||||
}
|
||||
|
||||
function warnEcho() {
|
||||
echo "${warnColor}$*${normalColor}"
|
||||
}
|
||||
|
||||
function noteEcho() {
|
||||
echo "${noteColor}$*${normalColor}"
|
||||
}
|
||||
|
||||
function _i() {
|
||||
local msgid="$1"
|
||||
shift
|
||||
|
||||
# shellcheck disable=2059
|
||||
printf "$(gettext "$msgid")\n" "$@"
|
||||
}
|
||||
|
||||
function _ip() {
|
||||
local msgid="$1"
|
||||
local msgidPlural="$2"
|
||||
local count="$3"
|
||||
shift 3
|
||||
|
||||
# shellcheck disable=2059
|
||||
printf "$(ngettext "$msgid" "$msgidPlural" "$count")\n" "$@"
|
||||
}
|
||||
|
||||
function _iError() {
|
||||
echo -n "${errorColor}"
|
||||
_i "$@"
|
||||
echo -n "${normalColor}"
|
||||
}
|
||||
|
||||
function _iWarn() {
|
||||
echo -n "${warnColor}"
|
||||
_i "$@"
|
||||
echo -n "${normalColor}"
|
||||
}
|
||||
|
||||
function _iNote() {
|
||||
echo -n "${noteColor}"
|
||||
_i "$@"
|
||||
echo -n "${normalColor}"
|
||||
}
|
||||
@@ -44,6 +44,28 @@ let
|
||||
'';
|
||||
};
|
||||
|
||||
delimiter = mkOption {
|
||||
type = types.str;
|
||||
default = ''
|
||||
--
|
||||
'';
|
||||
example = literalExpression ''
|
||||
~*~*~*~*~*~*~*~*~*~*~*~
|
||||
'';
|
||||
description = ''
|
||||
The delimiter used between the document and the signature.
|
||||
'';
|
||||
};
|
||||
|
||||
command = mkOption {
|
||||
type = with types; nullOr path;
|
||||
default = null;
|
||||
example = literalExpression ''
|
||||
pkgs.writeScript "signature" "echo This is my signature"
|
||||
'';
|
||||
description = "A command that generates a signature.";
|
||||
};
|
||||
|
||||
showSignature = mkOption {
|
||||
type = types.enum [ "append" "attach" "none" ];
|
||||
default = "none";
|
||||
@@ -71,7 +93,7 @@ let
|
||||
};
|
||||
|
||||
certificatesFile = mkOption {
|
||||
type = types.path;
|
||||
type = types.nullOr types.path;
|
||||
default = config.accounts.email.certificatesFile;
|
||||
defaultText = "config.accounts.email.certificatesFile";
|
||||
description = ''
|
||||
@@ -114,6 +136,38 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
jmapModule = types.submodule {
|
||||
options = {
|
||||
host = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "jmap.example.org";
|
||||
description = ''
|
||||
Hostname of JMAP server.
|
||||
</para><para>
|
||||
If both this option and <xref
|
||||
linkend="opt-accounts.email.accounts._name_.jmap.sessionUrl"/> are specified,
|
||||
<code>host</code> is preferred by applications when establishing a
|
||||
session.
|
||||
'';
|
||||
};
|
||||
|
||||
sessionUrl = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
example = "https://jmap.example.org:443/.well-known/jmap";
|
||||
description = ''
|
||||
URL for the JMAP Session resource.
|
||||
</para><para>
|
||||
If both this option and <xref
|
||||
linkend="opt-accounts.email.accounts._name_.jmap.host"/> are specified,
|
||||
<code>host</code> is preferred by applications when establishing a
|
||||
session.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
smtpModule = types.submodule {
|
||||
options = {
|
||||
host = mkOption {
|
||||
@@ -188,7 +242,14 @@ let
|
||||
};
|
||||
|
||||
flavor = mkOption {
|
||||
type = types.enum [ "plain" "gmail.com" "runbox.com" ];
|
||||
type = types.enum [
|
||||
"plain"
|
||||
"gmail.com"
|
||||
"runbox.com"
|
||||
"fastmail.com"
|
||||
"yandex.com"
|
||||
"outlook.office365.com"
|
||||
];
|
||||
default = "plain";
|
||||
description = ''
|
||||
Some email providers have peculiar behavior that require
|
||||
@@ -196,7 +257,7 @@ let
|
||||
indicate the nature of the provider.
|
||||
</para><para>
|
||||
When this indicates a specific provider then, for example,
|
||||
the IMAP and SMTP server configuration may be set
|
||||
the IMAP, SMTP, and JMAP server configuration may be set
|
||||
automatically.
|
||||
'';
|
||||
};
|
||||
@@ -225,7 +286,7 @@ let
|
||||
default = null;
|
||||
description = ''
|
||||
The server username of this account. This will be used as
|
||||
the SMTP and IMAP user name.
|
||||
the SMTP, IMAP, and JMAP user name.
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -290,6 +351,14 @@ let
|
||||
'';
|
||||
};
|
||||
|
||||
jmap = mkOption {
|
||||
type = types.nullOr jmapModule;
|
||||
default = null;
|
||||
description = ''
|
||||
The JMAP configuration to use for this account.
|
||||
'';
|
||||
};
|
||||
|
||||
signature = mkOption {
|
||||
type = signatureModule;
|
||||
default = { };
|
||||
@@ -329,10 +398,67 @@ let
|
||||
maildir = mkOptionDefault { path = "${name}"; };
|
||||
}
|
||||
|
||||
(mkIf (config.flavor == "yandex.com") {
|
||||
userName = mkDefault config.address;
|
||||
|
||||
imap = {
|
||||
host = "imap.yandex.com";
|
||||
port = 993;
|
||||
tls.enable = true;
|
||||
};
|
||||
|
||||
smtp = {
|
||||
host = "smtp.yandex.com";
|
||||
port = 465;
|
||||
tls.enable = true;
|
||||
};
|
||||
})
|
||||
|
||||
(mkIf (config.flavor == "outlook.office365.com") {
|
||||
userName = mkDefault config.address;
|
||||
|
||||
imap = {
|
||||
host = "outlook.office365.com";
|
||||
port = 993;
|
||||
tls.enable = true;
|
||||
};
|
||||
|
||||
smtp = {
|
||||
host = "smtp.office365.com";
|
||||
port = 587;
|
||||
tls = {
|
||||
enable = true;
|
||||
useStartTls = true;
|
||||
};
|
||||
};
|
||||
})
|
||||
|
||||
(mkIf (config.flavor == "fastmail.com") {
|
||||
userName = mkDefault config.address;
|
||||
|
||||
imap = {
|
||||
host = "imap.fastmail.com";
|
||||
port = 993;
|
||||
};
|
||||
|
||||
smtp = {
|
||||
host = "smtp.fastmail.com";
|
||||
port = if config.smtp.tls.useStartTls then 587 else 465;
|
||||
};
|
||||
|
||||
jmap = {
|
||||
host = "fastmail.com";
|
||||
sessionUrl = "https://jmap.fastmail.com/.well-known/jmap";
|
||||
};
|
||||
})
|
||||
|
||||
(mkIf (config.flavor == "gmail.com") {
|
||||
userName = mkDefault config.address;
|
||||
|
||||
imap = { host = "imap.gmail.com"; };
|
||||
imap = {
|
||||
host = "imap.gmail.com";
|
||||
port = 993;
|
||||
};
|
||||
|
||||
smtp = {
|
||||
host = "smtp.gmail.com";
|
||||
@@ -351,7 +477,7 @@ let
|
||||
in {
|
||||
options.accounts.email = {
|
||||
certificatesFile = mkOption {
|
||||
type = types.path;
|
||||
type = types.nullOr types.path;
|
||||
default = "/etc/ssl/certs/ca-certificates.crt";
|
||||
description = ''
|
||||
Path to default file containing certificate authorities that
|
||||
|
||||
156
modules/config/home-cursor.nix
Normal file
156
modules/config/home-cursor.nix
Normal file
@@ -0,0 +1,156 @@
|
||||
{ config, options, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
|
||||
cfg = config.home.pointerCursor;
|
||||
|
||||
pointerCursorModule = types.submodule {
|
||||
options = {
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
example = literalExpression "pkgs.vanilla-dmz";
|
||||
description = "Package providing the cursor theme.";
|
||||
};
|
||||
|
||||
name = mkOption {
|
||||
type = types.str;
|
||||
example = "Vanilla-DMZ";
|
||||
description = "The cursor name within the package.";
|
||||
};
|
||||
|
||||
size = mkOption {
|
||||
type = types.int;
|
||||
default = 32;
|
||||
example = 64;
|
||||
description = "The cursor size.";
|
||||
};
|
||||
|
||||
x11 = {
|
||||
enable = mkEnableOption ''
|
||||
x11 config generation for <option>home.pointerCursor</option>
|
||||
'';
|
||||
|
||||
defaultCursor = mkOption {
|
||||
type = types.str;
|
||||
default = "left_ptr";
|
||||
example = "X_cursor";
|
||||
description = "The default cursor file to use within the package.";
|
||||
};
|
||||
};
|
||||
|
||||
gtk = {
|
||||
enable = mkEnableOption ''
|
||||
gtk config generation for <option>home.pointerCursor</option>
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cursorPath = "${cfg.package}/share/icons/${escapeShellArg cfg.name}/cursors/${
|
||||
escapeShellArg cfg.x11.defaultCursor
|
||||
}";
|
||||
|
||||
in {
|
||||
meta.maintainers = [ maintainers.polykernel maintainers.league ];
|
||||
|
||||
imports = [
|
||||
(mkAliasOptionModule [ "xsession" "pointerCursor" "package" ] [
|
||||
"home"
|
||||
"pointerCursor"
|
||||
"package"
|
||||
])
|
||||
(mkAliasOptionModule [ "xsession" "pointerCursor" "name" ] [
|
||||
"home"
|
||||
"pointerCursor"
|
||||
"name"
|
||||
])
|
||||
(mkAliasOptionModule [ "xsession" "pointerCursor" "size" ] [
|
||||
"home"
|
||||
"pointerCursor"
|
||||
"size"
|
||||
])
|
||||
(mkAliasOptionModule [ "xsession" "pointerCursor" "defaultCursor" ] [
|
||||
"home"
|
||||
"pointerCursor"
|
||||
"x11"
|
||||
"defaultCursor"
|
||||
])
|
||||
|
||||
({ ... }: {
|
||||
warnings = optional (any (x:
|
||||
getAttrFromPath
|
||||
([ "xsession" "pointerCursor" ] ++ [ x ] ++ [ "isDefined" ])
|
||||
options) [ "package" "name" "size" "defaultCursor" ]) ''
|
||||
The option `xsession.pointerCursor` has been merged into `home.pointerCursor` and will be removed
|
||||
in the future. Please change to set `home.pointerCursor` directly and enable `home.pointerCursor.x11.enable`
|
||||
to generate x11 specific cursor configurations. You can refer to the documentation for more details.
|
||||
'';
|
||||
})
|
||||
];
|
||||
|
||||
options = {
|
||||
home.pointerCursor = mkOption {
|
||||
type = types.nullOr pointerCursorModule;
|
||||
default = null;
|
||||
description = ''
|
||||
Cursor configuration. Set to <literal>null</literal> to disable.
|
||||
</para><para>
|
||||
Top-level options declared under this submodule are backend indepedent
|
||||
options. Options declared under namespaces such as <literal>x11</literal>
|
||||
are backend specific options. By default, only backend independent cursor
|
||||
configurations are generated. If you need configurations for specific
|
||||
backends, you can toggle them via the enable option. For example,
|
||||
<xref linkend="opt-home.pointerCursor.x11.enable"/>
|
||||
will enable x11 cursor configurations.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf (cfg != null) (mkMerge [
|
||||
{
|
||||
assertions = [
|
||||
(hm.assertions.assertPlatform "home.pointerCursor" pkgs platforms.linux)
|
||||
];
|
||||
|
||||
home.packages = [ cfg.package ];
|
||||
|
||||
# Set name in icons theme, for compatibility with AwesomeWM etc. See:
|
||||
# https://github.com/nix-community/home-manager/issues/2081
|
||||
# https://wiki.archlinux.org/title/Cursor_themes#XDG_specification
|
||||
home.file.".icons/default/index.theme".text = ''
|
||||
[icon theme]
|
||||
Name=Default
|
||||
Comment=Default Cursor Theme
|
||||
Inherits=${cfg.name}
|
||||
'';
|
||||
|
||||
# Set directory to look for cursors in, needed for some applications
|
||||
# that are unable to find cursors otherwise. See:
|
||||
# https://github.com/nix-community/home-manager/issues/2812
|
||||
# https://wiki.archlinux.org/title/Cursor_themes#Environment_variable
|
||||
home.sessionVariables = {
|
||||
XCURSOR_PATH = "$XCURSOR_PATH\${XCURSOR_PATH:+:}"
|
||||
+ "${config.home.profileDirectory}/share/icons";
|
||||
};
|
||||
}
|
||||
|
||||
(mkIf cfg.x11.enable {
|
||||
xsession.initExtra = ''
|
||||
${pkgs.xorg.xsetroot}/bin/xsetroot -xcf ${cursorPath} ${
|
||||
toString cfg.size
|
||||
}
|
||||
'';
|
||||
|
||||
xresources.properties = {
|
||||
"Xcursor.theme" = cfg.name;
|
||||
"Xcursor.size" = cfg.size;
|
||||
};
|
||||
})
|
||||
|
||||
(mkIf cfg.gtk.enable {
|
||||
gtk.cursorTheme = mkDefault { inherit (cfg) package name size; };
|
||||
})
|
||||
]);
|
||||
}
|
||||
46
modules/config/i18n.nix
Normal file
46
modules/config/i18n.nix
Normal file
@@ -0,0 +1,46 @@
|
||||
# The glibc package in Nixpkgs is patched to make it possible to specify
|
||||
# an alternative path for the locale archive through a special environment
|
||||
# variable. This would allow different versions of glibc to coexist on the
|
||||
# same system because each version of glibc could look up different paths
|
||||
# for its locale archive should the archive format ever change in
|
||||
# incompatible ways.
|
||||
#
|
||||
# See also:
|
||||
# - localedef(1)
|
||||
# - https://nixos.org/manual/nixpkgs/stable/#locales
|
||||
# - https://github.com/NixOS/nixpkgs/issues/38991
|
||||
#
|
||||
# Note, the name of the said environment variable gets updated with each
|
||||
# breaking release of the glibcLocales package. Periodically check the link
|
||||
# below for changes:
|
||||
# https://github.com/NixOS/nixpkgs/blob/nixpkgs-unstable/pkgs/development/libraries/glibc/nix-locale-archive.patch
|
||||
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
|
||||
inherit (pkgs.glibcLocales) version;
|
||||
|
||||
archivePath = "${pkgs.glibcLocales}/lib/locale/locale-archive";
|
||||
|
||||
# lookup the version of glibcLocales and set the appropriate environment vars
|
||||
localeVars = if versionAtLeast version "2.27" then {
|
||||
LOCALE_ARCHIVE_2_27 = archivePath;
|
||||
} else if versionAtLeast version "2.11" then {
|
||||
LOCALE_ARCHIVE_2_11 = archivePath;
|
||||
} else
|
||||
{ };
|
||||
|
||||
in {
|
||||
meta.maintainers = with maintainers; [ midchildan ];
|
||||
|
||||
config = mkIf pkgs.stdenv.hostPlatform.isLinux {
|
||||
# For shell sessions.
|
||||
home.sessionVariables = localeVars;
|
||||
|
||||
# For desktop apps.
|
||||
systemd.user.sessionVariables = localeVars;
|
||||
};
|
||||
}
|
||||
@@ -1,9 +1,11 @@
|
||||
{ configuration
|
||||
, pkgs
|
||||
, lib ? pkgs.stdenv.lib
|
||||
, lib ? pkgs.lib
|
||||
|
||||
# Whether to check that each option has a matching declaration.
|
||||
, check ? true
|
||||
# Extra arguments passed to specialArgs.
|
||||
, extraSpecialArgs ? { }
|
||||
}:
|
||||
|
||||
with lib;
|
||||
@@ -19,7 +21,7 @@ let
|
||||
in
|
||||
fold f res res.config.warnings;
|
||||
|
||||
extendedLib = import ./lib/stdlib-extended.nix pkgs.lib;
|
||||
extendedLib = import ./lib/stdlib-extended.nix lib;
|
||||
|
||||
hmModules =
|
||||
import ./modules.nix {
|
||||
@@ -31,7 +33,7 @@ let
|
||||
modules = [ configuration ] ++ hmModules;
|
||||
specialArgs = {
|
||||
modulesPath = builtins.toString ./.;
|
||||
};
|
||||
} // extraSpecialArgs;
|
||||
};
|
||||
|
||||
module = showWarnings (
|
||||
@@ -59,4 +61,6 @@ in
|
||||
sort (a: b: a.time > b.time) (
|
||||
filter (a: a.condition) rawModule.config.news.entries
|
||||
);
|
||||
|
||||
inherit (module._module.args) pkgs;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,28 @@ in
|
||||
};
|
||||
|
||||
config = {
|
||||
assertions = [(
|
||||
let
|
||||
dups =
|
||||
attrNames
|
||||
(filterAttrs (n: v: v > 1)
|
||||
(foldAttrs (acc: v: acc + v) 0
|
||||
(mapAttrsToList (n: v: { ${v.target} = 1; }) cfg)));
|
||||
dupsStr = concatStringsSep ", " dups;
|
||||
in {
|
||||
assertion = dups == [];
|
||||
message = ''
|
||||
Conflicting managed target files: ${dupsStr}
|
||||
|
||||
This may happen, for example, if you have a configuration similar to
|
||||
|
||||
home.file = {
|
||||
conflict1 = { source = ./foo.nix; target = "baz"; };
|
||||
conflict2 = { source = ./bar.nix; target = "baz"; };
|
||||
}'';
|
||||
})
|
||||
];
|
||||
|
||||
lib.file.mkOutOfStoreSymlink = path:
|
||||
let
|
||||
pathStr = toString path;
|
||||
@@ -53,16 +75,16 @@ in
|
||||
# Paths that should be forcibly overwritten by Home Manager.
|
||||
# Caveat emptor!
|
||||
forcedPaths =
|
||||
concatMapStringsSep " " (p: ''"$HOME/${p}"'')
|
||||
concatMapStringsSep " " (p: ''"$HOME"/${escapeShellArg p}'')
|
||||
(mapAttrsToList (n: v: v.target)
|
||||
(filterAttrs (n: v: v.force) cfg));
|
||||
|
||||
check = pkgs.writeText "check" ''
|
||||
. ${./lib-bash/color-echo.sh}
|
||||
${config.lib.bash.initHomeManagerLib}
|
||||
|
||||
# A symbolic link whose target path matches this pattern will be
|
||||
# considered part of a Home Manager generation.
|
||||
homeFilePattern="$(readlink -e "${builtins.storeDir}")/*-home-manager-files/*"
|
||||
homeFilePattern="$(readlink -e ${escapeShellArg builtins.storeDir})/*-home-manager-files/*"
|
||||
|
||||
forcedPaths=(${forcedPaths})
|
||||
|
||||
@@ -84,7 +106,12 @@ in
|
||||
$VERBOSE_ECHO "Skipping collision check for $targetPath"
|
||||
elif [[ -e "$targetPath" \
|
||||
&& ! "$(readlink "$targetPath")" == $homeFilePattern ]] ; then
|
||||
if [[ ! -L "$targetPath" && -n "$HOME_MANAGER_BACKUP_EXT" ]] ; then
|
||||
# The target file already exists and it isn't a symlink owned by Home Manager.
|
||||
if cmp -s "$sourcePath" "$targetPath"; then
|
||||
# First compare the files' content. If they're equal, we're fine.
|
||||
warnEcho "Existing file '$targetPath' is in the way of '$sourcePath', will be skipped since they are the same"
|
||||
elif [[ ! -L "$targetPath" && -n "$HOME_MANAGER_BACKUP_EXT" ]] ; then
|
||||
# Next, try to move the file to a backup location if configured and possible
|
||||
backup="$targetPath.$HOME_MANAGER_BACKUP_EXT"
|
||||
if [[ -e "$backup" ]]; then
|
||||
errorEcho "Existing file '$backup' would be clobbered by backing up '$targetPath'"
|
||||
@@ -93,6 +120,7 @@ in
|
||||
warnEcho "Existing file '$targetPath' is in the way of '$sourcePath', will be moved to '$backup'"
|
||||
fi
|
||||
else
|
||||
# Fail if nothing else works
|
||||
errorEcho "Existing file '$targetPath' is in the way of '$sourcePath'"
|
||||
collision=1
|
||||
fi
|
||||
@@ -100,7 +128,7 @@ in
|
||||
done
|
||||
|
||||
if [[ -v collision ]] ; then
|
||||
errorEcho "Please move the above files and try again or use -b <ext> to move automatically."
|
||||
errorEcho "Please move the above files and try again or use 'home-manager switch -b backup' to back up existing files automatically."
|
||||
exit 1
|
||||
fi
|
||||
'';
|
||||
@@ -140,27 +168,35 @@ in
|
||||
# source and target generation.
|
||||
home.activation.linkGeneration = hm.dag.entryAfter ["writeBoundary"] (
|
||||
let
|
||||
link = pkgs.writeText "link" ''
|
||||
link = pkgs.writeShellScript "link" ''
|
||||
newGenFiles="$1"
|
||||
shift
|
||||
for sourcePath in "$@" ; do
|
||||
relativePath="''${sourcePath#$newGenFiles/}"
|
||||
targetPath="$HOME/$relativePath"
|
||||
if [[ -e "$targetPath" && ! -L "$targetPath" && -n "$HOME_MANAGER_BACKUP_EXT" ]] ; then
|
||||
# The target exists, back it up
|
||||
backup="$targetPath.$HOME_MANAGER_BACKUP_EXT"
|
||||
$DRY_RUN_CMD mv $VERBOSE_ARG "$targetPath" "$backup" || errorEcho "Moving '$targetPath' failed!"
|
||||
fi
|
||||
$DRY_RUN_CMD mkdir -p $VERBOSE_ARG "$(dirname "$targetPath")"
|
||||
$DRY_RUN_CMD ln -nsf $VERBOSE_ARG "$sourcePath" "$targetPath"
|
||||
|
||||
if [[ -e "$targetPath" && ! -L "$targetPath" ]] && cmp -s "$sourcePath" "$targetPath" ; then
|
||||
# The target exists but is identical – don't do anything.
|
||||
$VERBOSE_ECHO "Skipping '$targetPath' as it is identical to '$sourcePath'"
|
||||
else
|
||||
# Place that symlink, --force
|
||||
$DRY_RUN_CMD mkdir -p $VERBOSE_ARG "$(dirname "$targetPath")"
|
||||
$DRY_RUN_CMD ln -nsf $VERBOSE_ARG "$sourcePath" "$targetPath"
|
||||
fi
|
||||
done
|
||||
'';
|
||||
|
||||
cleanup = pkgs.writeText "cleanup" ''
|
||||
. ${./lib-bash/color-echo.sh}
|
||||
cleanup = pkgs.writeShellScript "cleanup" ''
|
||||
${config.lib.bash.initHomeManagerLib}
|
||||
|
||||
# A symbolic link whose target path matches this pattern will be
|
||||
# considered part of a Home Manager generation.
|
||||
homeFilePattern="$(readlink -e "${builtins.storeDir}")/*-home-manager-files/*"
|
||||
homeFilePattern="$(readlink -e ${escapeShellArg builtins.storeDir})/*-home-manager-files/*"
|
||||
|
||||
newGenFiles="$1"
|
||||
shift 1
|
||||
@@ -194,7 +230,7 @@ in
|
||||
in
|
||||
''
|
||||
function linkNewGen() {
|
||||
echo "Creating home file links in $HOME"
|
||||
_i "Creating home file links in %s" "$HOME"
|
||||
|
||||
local newGenFiles
|
||||
newGenFiles="$(readlink -e "$newGenPath/home-files")"
|
||||
@@ -203,11 +239,11 @@ in
|
||||
}
|
||||
|
||||
function cleanOldGen() {
|
||||
if [[ ! -v oldGenPath ]] ; then
|
||||
if [[ ! -v oldGenPath || ! -e "$oldGenPath/home-files" ]] ; then
|
||||
return
|
||||
fi
|
||||
|
||||
echo "Cleaning up orphan links from $HOME"
|
||||
_i "Cleaning up orphan links from %s" "$HOME"
|
||||
|
||||
local newGenFiles oldGenFiles
|
||||
newGenFiles="$(readlink -e "$newGenPath/home-files")"
|
||||
@@ -223,11 +259,21 @@ in
|
||||
cleanOldGen
|
||||
|
||||
if [[ ! -v oldGenPath || "$oldGenPath" != "$newGenPath" ]] ; then
|
||||
echo "Creating profile generation $newGenNum"
|
||||
$DRY_RUN_CMD nix-env $VERBOSE_ARG --profile "$genProfilePath" --set "$newGenPath"
|
||||
_i "Creating profile generation %s" $newGenNum
|
||||
if [[ -e "$genProfilePath"/manifest.json ]] ; then
|
||||
# Remove all packages from "$genProfilePath"
|
||||
# `nix profile remove '.*' --profile "$genProfilePath"` was not working, so here is a workaround:
|
||||
nix profile list --profile "$genProfilePath" \
|
||||
| cut -d ' ' -f 4 \
|
||||
| xargs -t $DRY_RUN_CMD nix profile remove $VERBOSE_ARG --profile "$genProfilePath"
|
||||
$DRY_RUN_CMD nix profile install $VERBOSE_ARG --profile "$genProfilePath" "$newGenPath"
|
||||
else
|
||||
$DRY_RUN_CMD nix-env $VERBOSE_ARG --profile "$genProfilePath" --set "$newGenPath"
|
||||
fi
|
||||
|
||||
$DRY_RUN_CMD ln -Tsf $VERBOSE_ARG "$newGenPath" "$newGenGcPath"
|
||||
else
|
||||
echo "No change so reusing latest profile generation $oldGenNum"
|
||||
_i "No change so reusing latest profile generation %s" "$oldGenNum"
|
||||
fi
|
||||
|
||||
linkNewGen
|
||||
@@ -235,31 +281,50 @@ in
|
||||
);
|
||||
|
||||
home.activation.checkFilesChanged = hm.dag.entryBefore ["linkGeneration"] (
|
||||
''
|
||||
let
|
||||
homeDirArg = escapeShellArg homeDirectory;
|
||||
in ''
|
||||
function _cmp() {
|
||||
if [[ -d $1 && -d $2 ]]; then
|
||||
diff -rq "$1" "$2" &> /dev/null
|
||||
else
|
||||
cmp --quiet "$1" "$2"
|
||||
fi
|
||||
}
|
||||
declare -A changedFiles
|
||||
'' + concatMapStrings (v: ''
|
||||
cmp --quiet "${sourceStorePath v}" "${homeDirectory}/${v.target}" \
|
||||
&& changedFiles["${v.target}"]=0 \
|
||||
|| changedFiles["${v.target}"]=1
|
||||
'') (filter (v: v.onChange != "") (attrValues cfg))
|
||||
'' + concatMapStrings (v:
|
||||
let
|
||||
sourceArg = escapeShellArg (sourceStorePath v);
|
||||
targetArg = escapeShellArg v.target;
|
||||
in ''
|
||||
_cmp ${sourceArg} ${homeDirArg}/${targetArg} \
|
||||
&& changedFiles[${targetArg}]=0 \
|
||||
|| changedFiles[${targetArg}]=1
|
||||
'') (filter (v: v.onChange != "") (attrValues cfg))
|
||||
+ ''
|
||||
unset -f _cmp
|
||||
''
|
||||
);
|
||||
|
||||
home.activation.onFilesChange = hm.dag.entryAfter ["linkGeneration"] (
|
||||
concatMapStrings (v: ''
|
||||
if [[ ${"$\{changedFiles"}["${v.target}"]} -eq 1 ]]; then
|
||||
${v.onChange}
|
||||
if (( ''${changedFiles[${escapeShellArg v.target}]} == 1 )); then
|
||||
if [[ -v DRY_RUN || -v VERBOSE ]]; then
|
||||
echo "Running onChange hook for" ${escapeShellArg v.target}
|
||||
fi
|
||||
if [[ ! -v DRY_RUN ]]; then
|
||||
${v.onChange}
|
||||
fi
|
||||
fi
|
||||
'') (filter (v: v.onChange != "") (attrValues cfg))
|
||||
);
|
||||
|
||||
# Symlink directories and files that have the right execute bit.
|
||||
# Copy files that need their execute bit changed.
|
||||
home-files = pkgs.runCommand
|
||||
home-files = pkgs.runCommandLocal
|
||||
"home-manager-files"
|
||||
{
|
||||
nativeBuildInputs = [ pkgs.xorg.lndir ];
|
||||
preferLocalBuild = true;
|
||||
allowSubstitutes = false;
|
||||
}
|
||||
(''
|
||||
mkdir -p $out
|
||||
@@ -273,6 +338,15 @@ in
|
||||
local executable="$3"
|
||||
local recursive="$4"
|
||||
|
||||
# If the target already exists then we have a collision. Note, this
|
||||
# should not happen due to the assertion found in the 'files' module.
|
||||
# We therefore simply log the conflict and otherwise ignore it, mainly
|
||||
# to make the `files-target-config` test work as expected.
|
||||
if [[ -e "$realOut/$relTarget" ]]; then
|
||||
echo "File conflict for file '$relTarget'" >&2
|
||||
return
|
||||
fi
|
||||
|
||||
# Figure out the real absolute path to the target.
|
||||
local target
|
||||
target="$(realpath -m "$realOut/$relTarget")"
|
||||
|
||||
@@ -4,6 +4,8 @@ with lib;
|
||||
|
||||
let
|
||||
|
||||
inherit (config.home) stateVersion;
|
||||
|
||||
cfg = config.home;
|
||||
|
||||
languageSubModule = types.submodule {
|
||||
@@ -115,7 +117,7 @@ let
|
||||
if versionAtLeast config.home.stateVersion "19.09"
|
||||
then null
|
||||
else "us";
|
||||
defaultText = literalExample "null";
|
||||
defaultText = literalExpression "null";
|
||||
description = ''
|
||||
Keyboard layout. If <literal>null</literal>, then the system
|
||||
configuration will be used.
|
||||
@@ -149,7 +151,7 @@ let
|
||||
if versionAtLeast config.home.stateVersion "19.09"
|
||||
then null
|
||||
else "";
|
||||
defaultText = literalExample "null";
|
||||
defaultText = literalExpression "null";
|
||||
example = "colemak";
|
||||
description = ''
|
||||
X keyboard variant. If <literal>null</literal>, then the
|
||||
@@ -182,7 +184,7 @@ in
|
||||
options = {
|
||||
home.username = mkOption {
|
||||
type = types.str;
|
||||
defaultText = literalExample ''
|
||||
defaultText = literalExpression ''
|
||||
"$USER" for state version < 20.09,
|
||||
undefined for state version ≥ 20.09
|
||||
'';
|
||||
@@ -192,7 +194,7 @@ in
|
||||
|
||||
home.homeDirectory = mkOption {
|
||||
type = types.path;
|
||||
defaultText = literalExample ''
|
||||
defaultText = literalExpression ''
|
||||
"$HOME" for state version < 20.09,
|
||||
undefined for state version ≥ 20.09
|
||||
'';
|
||||
@@ -203,12 +205,13 @@ in
|
||||
|
||||
home.profileDirectory = mkOption {
|
||||
type = types.path;
|
||||
defaultText = "~/.nix-profile";
|
||||
internal = true;
|
||||
defaultText = literalExpression ''
|
||||
"''${home.homeDirectory}/.nix-profile" or
|
||||
"/etc/profiles/per-user/''${home.username}"
|
||||
'';
|
||||
readOnly = true;
|
||||
description = ''
|
||||
The profile directory where Home Manager generations are
|
||||
installed.
|
||||
The profile directory where Home Manager generations are installed.
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -220,13 +223,37 @@ in
|
||||
|
||||
home.keyboard = mkOption {
|
||||
type = types.nullOr keyboardSubModule;
|
||||
default = {};
|
||||
default = if versionAtLeast stateVersion "21.11" then null else { };
|
||||
defaultText = literalExpression ''
|
||||
"{ }" for state version < 21.11,
|
||||
"null" for state version ≥ 21.11
|
||||
'';
|
||||
description = ''
|
||||
Keyboard configuration. Set to <literal>null</literal> to
|
||||
disable Home Manager keyboard management.
|
||||
'';
|
||||
};
|
||||
|
||||
home.shellAliases = mkOption {
|
||||
type = with types; attrsOf str;
|
||||
default = { };
|
||||
example = literalExpression ''
|
||||
{
|
||||
g = "git";
|
||||
"..." = "cd ../..";
|
||||
}
|
||||
'';
|
||||
description = ''
|
||||
An attribute set that maps aliases (the top level attribute names
|
||||
in this option) to command strings or directly to build outputs.
|
||||
</para><para>
|
||||
This option should only be used to manage simple aliases that are
|
||||
compatible across all shells. If you need to use a shell specific
|
||||
feature then make sure to use a shell specific option, for example
|
||||
<xref linkend="opt-programs.bash.shellAliases"/> for Bash.
|
||||
'';
|
||||
};
|
||||
|
||||
home.sessionVariables = mkOption {
|
||||
default = {};
|
||||
type = types.attrs;
|
||||
@@ -268,11 +295,21 @@ in
|
||||
type = with types; listOf str;
|
||||
default = [ ];
|
||||
example = [
|
||||
".git/safe/../../bin"
|
||||
"$HOME/.local/bin"
|
||||
"\${xdg.configHome}/emacs/bin"
|
||||
"~/.local/bin"
|
||||
".git/safe/../../bin"
|
||||
];
|
||||
description = "Extra directories to add to <envar>PATH</envar>.";
|
||||
description = ''
|
||||
Extra directories to add to <envar>PATH</envar>.
|
||||
|
||||
</para><para>
|
||||
|
||||
These directories are added to the <envar>PATH</envar> variable in a
|
||||
double-quoted context, so expressions like <code>$HOME</code> are
|
||||
expanded by the shell. However, since expressions like <code>~</code> or
|
||||
<code>*</code> are escaped, they will end up in the <envar>PATH</envar>
|
||||
verbatim.
|
||||
'';
|
||||
};
|
||||
|
||||
home.sessionVariablesExtra = mkOption {
|
||||
@@ -309,19 +346,25 @@ in
|
||||
|
||||
home.emptyActivationPath = mkOption {
|
||||
internal = true;
|
||||
default = false;
|
||||
type = types.bool;
|
||||
default = versionAtLeast stateVersion "22.11";
|
||||
defaultText = literalExpression ''
|
||||
false for state version < 22.11,
|
||||
true for state version ≥ 22.11
|
||||
'';
|
||||
description = ''
|
||||
Whether the activation script should start with an empty
|
||||
<envar>PATH</envar> variable. When <literal>false</literal>
|
||||
then the user's <envar>PATH</envar> will be used.
|
||||
<envar>PATH</envar> variable. When <literal>false</literal> then the
|
||||
user's <envar>PATH</envar> will be accessible in the script. It is
|
||||
recommended to keep this at <literal>true</literal> to avoid
|
||||
uncontrolled use of tools found in PATH.
|
||||
'';
|
||||
};
|
||||
|
||||
home.activation = mkOption {
|
||||
type = hm.types.dagOf types.str;
|
||||
default = {};
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
myActivationAction = lib.hm.dag.entryAfter ["writeBoundary"] '''
|
||||
$DRY_RUN_CMD ln -s $VERBOSE_ARG \
|
||||
@@ -346,7 +389,7 @@ in
|
||||
unexpected state is found. For example, the
|
||||
<literal>checkLinkTargets</literal> script block checks for
|
||||
collisions between non-managed files and files defined in
|
||||
<varname><link linkend="opt-home.file">home.file</link></varname>.
|
||||
<xref linkend="opt-home.file"/>.
|
||||
|
||||
</para><para>
|
||||
|
||||
@@ -373,6 +416,16 @@ in
|
||||
description = "The package containing the complete activation script.";
|
||||
};
|
||||
|
||||
home.extraActivationPath = mkOption {
|
||||
internal = true;
|
||||
type = types.listOf types.package;
|
||||
default = [ ];
|
||||
description = ''
|
||||
Extra packages to add to <envar>PATH</envar> within the activation
|
||||
script.
|
||||
'';
|
||||
};
|
||||
|
||||
home.extraBuilderCommands = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
@@ -390,6 +443,21 @@ in
|
||||
Extra commands to run in the Home Manager profile builder.
|
||||
'';
|
||||
};
|
||||
|
||||
home.enableNixpkgsReleaseCheck = mkOption {
|
||||
type = types.bool;
|
||||
default = false; # Temporarily disabled until release stabilizes.
|
||||
description = ''
|
||||
Determines whether to check for release version mismatch between Home
|
||||
Manager and Nixpkgs. Using mismatched versions is likely to cause errors
|
||||
and unexpected behavior. It is therefore highly recommended to use a
|
||||
release of Home Manager than corresponds with your chosen release of
|
||||
Nixpkgs.
|
||||
</para><para>
|
||||
When this option is enabled and a mismatch is detected then a warning
|
||||
will be printed when the user configuration is being built.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
@@ -404,6 +472,31 @@ in
|
||||
}
|
||||
];
|
||||
|
||||
warnings =
|
||||
let
|
||||
hmRelease = fileContents ../.release;
|
||||
nixpkgsRelease = pkgs.lib.trivial.release;
|
||||
releaseMismatch =
|
||||
config.home.enableNixpkgsReleaseCheck
|
||||
&& hmRelease != nixpkgsRelease;
|
||||
in
|
||||
optional releaseMismatch ''
|
||||
You are using
|
||||
|
||||
Home Manager version ${hmRelease} and
|
||||
Nixpkgs version ${nixpkgsRelease}.
|
||||
|
||||
Using mismatched versions is likely to cause errors and unexpected
|
||||
behavior. It is therefore highly recommended to use a release of Home
|
||||
Manager than corresponds with your chosen release of Nixpkgs.
|
||||
|
||||
If you insist then you can disable this warning by adding
|
||||
|
||||
home.enableNixpkgsReleaseCheck = false;
|
||||
|
||||
to your configuration.
|
||||
'';
|
||||
|
||||
home.username =
|
||||
mkIf (versionOlder config.home.stateVersion "20.09")
|
||||
(mkDefault (builtins.getEnv "USER"));
|
||||
@@ -417,6 +510,10 @@ in
|
||||
then "/etc/profiles/per-user/${cfg.username}"
|
||||
else cfg.homeDirectory + "/.nix-profile";
|
||||
|
||||
programs.bash.shellAliases = cfg.shellAliases;
|
||||
programs.zsh.shellAliases = cfg.shellAliases;
|
||||
programs.fish.shellAliases = cfg.shellAliases;
|
||||
|
||||
home.sessionVariables =
|
||||
let
|
||||
maybeSet = n: v: optionalAttrs (v != null) { ${n} = v; };
|
||||
@@ -487,20 +584,78 @@ in
|
||||
if config.submoduleSupport.externalPackageInstall
|
||||
then
|
||||
''
|
||||
if nix-env -q | grep '^home-manager-path$'; then
|
||||
$DRY_RUN_CMD nix-env -e home-manager-path
|
||||
if [[ -e "$nixProfilePath"/manifest.json ]] ; then
|
||||
nix profile list \
|
||||
| { grep 'home-manager-path$' || test $? = 1; } \
|
||||
| cut -d ' ' -f 4 \
|
||||
| xargs -t $DRY_RUN_CMD nix profile remove $VERBOSE_ARG
|
||||
else
|
||||
if nix-env -q | grep '^home-manager-path$'; then
|
||||
$DRY_RUN_CMD nix-env -e home-manager-path
|
||||
fi
|
||||
fi
|
||||
''
|
||||
else
|
||||
''
|
||||
$DRY_RUN_CMD nix-env -i ${cfg.path}
|
||||
function nixReplaceProfile() {
|
||||
local oldNix="$(command -v nix)"
|
||||
|
||||
nix profile list \
|
||||
| { grep 'home-manager-path$' || test $? = 1; } \
|
||||
| cut -d ' ' -f 4 \
|
||||
| xargs -t $DRY_RUN_CMD nix profile remove $VERBOSE_ARG
|
||||
|
||||
$DRY_RUN_CMD $oldNix profile install $1
|
||||
}
|
||||
|
||||
if [[ -e "$nixProfilePath"/manifest.json ]] ; then
|
||||
INSTALL_CMD="nix profile install"
|
||||
INSTALL_CMD_ACTUAL="nixReplaceProfile"
|
||||
LIST_CMD="nix profile list"
|
||||
REMOVE_CMD_SYNTAX='nix profile remove {number | store path}'
|
||||
else
|
||||
INSTALL_CMD="nix-env -i"
|
||||
INSTALL_CMD_ACTUAL="$DRY_RUN_CMD nix-env -i"
|
||||
LIST_CMD="nix-env -q"
|
||||
REMOVE_CMD_SYNTAX='nix-env -e {package name}'
|
||||
fi
|
||||
|
||||
if ! $INSTALL_CMD_ACTUAL ${cfg.path} ; then
|
||||
echo
|
||||
_iError $'Oops, Nix failed to install your new Home Manager profile!\n\nPerhaps there is a conflict with a package that was installed using\n"%s"? Try running\n\n %s\n\nand if there is a conflicting package you can remove it with\n\n %s\n\nThen try activating your Home Manager configuration again.' "$INSTALL_CMD" "$LIST_CMD" "$REMOVE_CMD_SYNTAX"
|
||||
exit 1
|
||||
fi
|
||||
unset -f nixReplaceProfile
|
||||
unset INSTALL_CMD INSTALL_CMD_ACTUAL LIST_CMD REMOVE_CMD_SYNTAX
|
||||
''
|
||||
);
|
||||
|
||||
# Text containing Bash commands that will initialize the Home Manager Bash
|
||||
# library. Most importantly, this will prepare for using translated strings
|
||||
# in the `hm-modules` text domain.
|
||||
lib.bash.initHomeManagerLib =
|
||||
let
|
||||
domainDir = pkgs.runCommand "hm-modules-messages" {
|
||||
nativeBuildInputs = [ pkgs.buildPackages.gettext ];
|
||||
} ''
|
||||
for path in ${./po}/*.po; do
|
||||
lang="''${path##*/}"
|
||||
lang="''${lang%%.*}"
|
||||
mkdir -p "$out/$lang/LC_MESSAGES"
|
||||
msgfmt -o "$out/$lang/LC_MESSAGES/hm-modules.mo" "$path"
|
||||
done
|
||||
'';
|
||||
in
|
||||
''
|
||||
export TEXTDOMAIN=hm-modules
|
||||
export TEXTDOMAINDIR=${domainDir}
|
||||
source ${../lib/bash/home-manager.sh}
|
||||
'';
|
||||
|
||||
home.activationPackage =
|
||||
let
|
||||
mkCmd = res: ''
|
||||
noteEcho Activating ${res.name}
|
||||
_iNote "Activating %s" "${res.name}"
|
||||
${res.data}
|
||||
'';
|
||||
sortedCommands = hm.dag.topoSort cfg.activation;
|
||||
@@ -513,28 +668,37 @@ in
|
||||
|
||||
# Programs that always should be available on the activation
|
||||
# script's PATH.
|
||||
activationBinPaths = lib.makeBinPath [
|
||||
pkgs.bash
|
||||
pkgs.coreutils
|
||||
pkgs.diffutils # For `cmp` and `diff`.
|
||||
pkgs.findutils
|
||||
pkgs.gnugrep
|
||||
pkgs.gnused
|
||||
pkgs.ncurses # For `tput`.
|
||||
]
|
||||
activationBinPaths = lib.makeBinPath (
|
||||
with pkgs; [
|
||||
bash
|
||||
coreutils
|
||||
diffutils # For `cmp` and `diff`.
|
||||
findutils
|
||||
gettext
|
||||
gnugrep
|
||||
gnused
|
||||
ncurses # For `tput`.
|
||||
]
|
||||
++ config.home.extraActivationPath
|
||||
)
|
||||
+ (
|
||||
# Add path of the Nix binaries, if a Nix package is configured, then
|
||||
# use that one, otherwise grab the path of the nix-env tool.
|
||||
if config.nix.enable && config.nix.package != null then
|
||||
":${config.nix.package}/bin"
|
||||
else
|
||||
":$(${pkgs.coreutils}/bin/dirname $(${pkgs.coreutils}/bin/readlink -m $(type -p nix-env)))"
|
||||
)
|
||||
+ optionalString (!cfg.emptyActivationPath) "\${PATH:+:}$PATH";
|
||||
|
||||
activationScript = pkgs.writeScript "activation-script" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
|
||||
activationScript = pkgs.writeShellScript "activation-script" ''
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
cd $HOME
|
||||
|
||||
export PATH="${activationBinPaths}"
|
||||
|
||||
. ${./lib-bash/color-echo.sh}
|
||||
${config.lib.bash.initHomeManagerLib}
|
||||
|
||||
${builtins.readFile ./lib-bash/activation-init.sh}
|
||||
|
||||
@@ -545,13 +709,17 @@ in
|
||||
"home-manager-generation"
|
||||
{
|
||||
preferLocalBuild = true;
|
||||
allowSubstitutes = false;
|
||||
}
|
||||
''
|
||||
mkdir -p $out
|
||||
|
||||
echo "${config.home.version.full}" > $out/hm-version
|
||||
|
||||
cp ${activationScript} $out/activate
|
||||
|
||||
mkdir $out/bin
|
||||
ln -s $out/activate $out/bin/home-manager-generation
|
||||
|
||||
substituteInPlace $out/activate \
|
||||
--subst-var-by GENERATION_DIR $out
|
||||
|
||||
|
||||
106
modules/i18n/input-method/default.nix
Normal file
106
modules/i18n/input-method/default.nix
Normal file
@@ -0,0 +1,106 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
|
||||
cfg = config.i18n.inputMethod;
|
||||
|
||||
gtk2Cache = pkgs.runCommandLocal "gtk2-immodule.cache" {
|
||||
buildInputs = [ pkgs.gtk2 cfg.package ];
|
||||
} ''
|
||||
mkdir -p $out/etc/gtk-2.0/
|
||||
GTK_PATH=${cfg.package}/lib/gtk-2.0/ \
|
||||
gtk-query-immodules-2.0 > $out/etc/gtk-2.0/immodules.cache
|
||||
'';
|
||||
|
||||
gtk3Cache = pkgs.runCommandLocal "gtk3-immodule.cache" {
|
||||
buildInputs = [ pkgs.gtk3 cfg.package ];
|
||||
} ''
|
||||
mkdir -p $out/etc/gtk-3.0/
|
||||
GTK_PATH=${cfg.package}/lib/gtk-3.0/ \
|
||||
gtk-query-immodules-3.0 > $out/etc/gtk-3.0/immodules.cache
|
||||
'';
|
||||
|
||||
in {
|
||||
imports =
|
||||
[ ./fcitx.nix ./fcitx5.nix ./hime.nix ./kime.nix ./nabi.nix ./uim.nix ];
|
||||
|
||||
options.i18n = {
|
||||
inputMethod = {
|
||||
enabled = mkOption {
|
||||
type = types.nullOr
|
||||
(types.enum [ "fcitx" "fcitx5" "nabi" "uim" "hime" "kime" ]);
|
||||
default = null;
|
||||
example = "fcitx";
|
||||
description = ''
|
||||
Select the enabled input method. Input methods is a software to input
|
||||
symbols that are not available on standard input devices.
|
||||
</para><para>
|
||||
Input methods are specially used to input Chinese, Japanese and Korean
|
||||
characters.
|
||||
</para><para>
|
||||
Currently the following input methods are available in Home Manager:
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><literal>fcitx</literal></term>
|
||||
<listitem><para>
|
||||
A customizable lightweight input method
|
||||
extra input engines can be added using
|
||||
<literal>i18n.inputMethod.fcitx.engines</literal>.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><literal>fcitx5</literal></term>
|
||||
<listitem><para>
|
||||
The next generation of fcitx,
|
||||
addons (including engines, dictionaries, skins) can be added using
|
||||
<literal>i18n.inputMethod.fcitx5.addons</literal>.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><literal>nabi</literal></term>
|
||||
<listitem><para>
|
||||
A Korean input method based on XIM. Nabi doesn't support Qt 5.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><literal>uim</literal></term>
|
||||
<listitem><para>
|
||||
The universal input method, is a library with a XIM bridge.
|
||||
uim mainly support Chinese, Japanese and Korean.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><literal>hime</literal></term>
|
||||
<listitem><para>An extremely easy-to-use input method framework.</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><literal>kime</literal></term>
|
||||
<listitem><para>A Korean IME.</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
'';
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
internal = true;
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = ''
|
||||
The input method method package.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf (cfg.enabled != null) {
|
||||
assertions = [
|
||||
(hm.assertions.assertPlatform "i18n.inputMethod" pkgs platforms.linux)
|
||||
];
|
||||
|
||||
home.packages = [ cfg.package gtk2Cache gtk3Cache ];
|
||||
};
|
||||
|
||||
meta.maintainers = with lib; [ hm.maintainers.kranzes ];
|
||||
}
|
||||
50
modules/i18n/input-method/fcitx.nix
Normal file
50
modules/i18n/input-method/fcitx.nix
Normal file
@@ -0,0 +1,50 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.i18n.inputMethod.fcitx;
|
||||
fcitxPackage = pkgs.fcitx.override { plugins = cfg.engines; };
|
||||
fcitxEngine = types.package // {
|
||||
name = "fcitx-engine";
|
||||
check = x:
|
||||
types.package.check x && attrByPath [ "meta" "isFcitxEngine" ] false x;
|
||||
};
|
||||
in {
|
||||
options = {
|
||||
|
||||
i18n.inputMethod.fcitx = {
|
||||
engines = mkOption {
|
||||
type = with types; listOf fcitxEngine;
|
||||
default = [ ];
|
||||
example = literalExpression "with pkgs.fcitx-engines; [ mozc hangul ]";
|
||||
description = let
|
||||
enginesDrv = filterAttrs (const isDerivation) pkgs.fcitx-engines;
|
||||
engines = concatStringsSep ", "
|
||||
(map (name: "<literal>${name}</literal>") (attrNames enginesDrv));
|
||||
in "Enabled Fcitx engines. Available engines are: ${engines}.";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
config = mkIf (config.i18n.inputMethod.enabled == "fcitx") {
|
||||
i18n.inputMethod.package = fcitxPackage;
|
||||
|
||||
home.sessionVariables = {
|
||||
GTK_IM_MODULE = "fcitx";
|
||||
QT_IM_MODULE = "fcitx";
|
||||
XMODIFIERS = "@im=fcitx";
|
||||
};
|
||||
|
||||
systemd.user.services.fcitx-daemon = {
|
||||
Unit = {
|
||||
Description = "Fcitx input method editor";
|
||||
PartOf = [ "graphical-session.desktop" ];
|
||||
};
|
||||
Service.ExecStart = "${fcitxPackage}/bin/fcitx";
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
43
modules/i18n/input-method/fcitx5.nix
Normal file
43
modules/i18n/input-method/fcitx5.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
im = config.i18n.inputMethod;
|
||||
cfg = im.fcitx5;
|
||||
fcitx5Package = pkgs.fcitx5-with-addons.override { inherit (cfg) addons; };
|
||||
in {
|
||||
options = {
|
||||
i18n.inputMethod.fcitx5 = {
|
||||
addons = mkOption {
|
||||
type = with types; listOf package;
|
||||
default = [ ];
|
||||
example = literalExpression "with pkgs; [ fcitx5-rime ]";
|
||||
description = ''
|
||||
Enabled Fcitx5 addons.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf (im.enabled == "fcitx5") {
|
||||
i18n.inputMethod.package = fcitx5Package;
|
||||
|
||||
home.sessionVariables = {
|
||||
GLFW_IM_MODULE = "ibus"; # IME support in kitty
|
||||
GTK_IM_MODULE = "fcitx";
|
||||
QT_IM_MODULE = "fcitx";
|
||||
XMODIFIERS = "@im=fcitx";
|
||||
};
|
||||
|
||||
systemd.user.services.fcitx5-daemon = {
|
||||
Unit = {
|
||||
Description = "Fcitx5 input method editor";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
Service.ExecStart = "${fcitx5Package}/bin/fcitx5";
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
23
modules/i18n/input-method/hime.nix
Normal file
23
modules/i18n/input-method/hime.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib; {
|
||||
config = mkIf (config.i18n.inputMethod.enabled == "hime") {
|
||||
i18n.inputMethod.package = pkgs.hime;
|
||||
|
||||
home.sessionVariables = {
|
||||
GTK_IM_MODULE = "hime";
|
||||
QT_IM_MODULE = "hime";
|
||||
XMODIFIERS = "@im=hime";
|
||||
};
|
||||
|
||||
systemd.user.services.hime-daemon = {
|
||||
Unit = {
|
||||
Description = "Hime input method editor";
|
||||
PartOf = [ "graphical-session.desktop" ];
|
||||
};
|
||||
Service.ExecStart = "${pkgs.hime}/bin/hime";
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
59
modules/i18n/input-method/kime.nix
Normal file
59
modules/i18n/input-method/kime.nix
Normal file
@@ -0,0 +1,59 @@
|
||||
{ config, pkgs, lib, generators, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.i18n.inputMethod.kime;
|
||||
yamlFormat = pkgs.formats.yaml { };
|
||||
in {
|
||||
options = {
|
||||
i18n.inputMethod.kime = {
|
||||
config = mkOption {
|
||||
type = yamlFormat.type;
|
||||
default = { };
|
||||
example = literalExpression ''
|
||||
{
|
||||
daemon = {
|
||||
modules = ["Xim" "Indicator"];
|
||||
};
|
||||
|
||||
indicator = {
|
||||
icon_color = "White";
|
||||
};
|
||||
|
||||
engine = {
|
||||
hangul = {
|
||||
layout = "dubeolsik";
|
||||
};
|
||||
};
|
||||
}
|
||||
'';
|
||||
description = ''
|
||||
kime configuration. Refer to
|
||||
<link xlink:href="https://github.com/Riey/kime/blob/develop/docs/CONFIGURATION.md"/>
|
||||
for details on supported values.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf (config.i18n.inputMethod.enabled == "kime") {
|
||||
i18n.inputMethod.package = pkgs.kime;
|
||||
|
||||
home.sessionVariables = {
|
||||
GTK_IM_MODULE = "kime";
|
||||
QT_IM_MODULE = "kime";
|
||||
XMODIFIERS = "@im=kime";
|
||||
};
|
||||
|
||||
xdg.configFile."kime/config.yaml".text =
|
||||
replaceStrings [ "\\\\" ] [ "\\" ] (builtins.toJSON cfg.config);
|
||||
|
||||
systemd.user.services.kime-daemon = {
|
||||
Unit = {
|
||||
Description = "Kime input method editor";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
Service.ExecStart = "${pkgs.kime}/bin/kime";
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
23
modules/i18n/input-method/nabi.nix
Normal file
23
modules/i18n/input-method/nabi.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib; {
|
||||
config = mkIf (config.i18n.inputMethod.enabled == "nabi") {
|
||||
i18n.inputMethod.package = pkgs.nabi;
|
||||
|
||||
home.sessionVariables = {
|
||||
GTK_IM_MODULE = "nabi";
|
||||
QT_IM_MODULE = "nabi";
|
||||
XMODIFIERS = "@im=nabi";
|
||||
};
|
||||
|
||||
systemd.user.services.nabi-daemon = {
|
||||
Unit = {
|
||||
Description = "Nabi input method editor";
|
||||
PartOf = [ "graphical-session.desktop" ];
|
||||
};
|
||||
Service.ExecStart = "${pkgs.nabi}/bin/nabi";
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
45
modules/i18n/input-method/uim.nix
Normal file
45
modules/i18n/input-method/uim.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let cfg = config.i18n.inputMethod.uim;
|
||||
in {
|
||||
options = {
|
||||
|
||||
i18n.inputMethod.uim = {
|
||||
toolbar = mkOption {
|
||||
type = types.enum [ "gtk" "gtk3" "gtk-systray" "gtk3-systray" "qt4" ];
|
||||
default = "gtk";
|
||||
example = "gtk-systray";
|
||||
description = ''
|
||||
Selected UIM toolbar.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
config = mkIf (config.i18n.inputMethod.enabled == "uim") {
|
||||
i18n.inputMethod.package = pkgs.uim;
|
||||
|
||||
home.sessionVariables = {
|
||||
GTK_IM_MODULE = "uim";
|
||||
QT_IM_MODULE = "uim";
|
||||
XMODIFIERS = "@im=uim";
|
||||
};
|
||||
|
||||
systemd.user.services.uim-daemon = {
|
||||
Unit = {
|
||||
Description = "Uim input method editor";
|
||||
PartOf = [ "graphical-session.desktop" ];
|
||||
};
|
||||
Service.ExecStart = toString
|
||||
(pkgs.writeShellScript "start-uim-xim-and-uim-toolbar" ''
|
||||
${pkgs.uim}/bin/uim-xim &
|
||||
${pkgs.uim}/bin/uim-toolbar-${cfg.toolbar}
|
||||
'');
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
213
modules/launchd/default.nix
Normal file
213
modules/launchd/default.nix
Normal file
@@ -0,0 +1,213 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
inherit (pkgs.stdenv.hostPlatform) isDarwin;
|
||||
inherit (lib.generators) toPlist;
|
||||
|
||||
cfg = config.launchd;
|
||||
labelPrefix = "org.nix-community.home.";
|
||||
dstDir = "${config.home.homeDirectory}/Library/LaunchAgents";
|
||||
|
||||
launchdConfig = { config, name, ... }: {
|
||||
options = {
|
||||
enable = mkEnableOption name;
|
||||
config = mkOption {
|
||||
type = types.submodule (import ./launchd.nix);
|
||||
default = { };
|
||||
example = literalExpression ''
|
||||
{
|
||||
ProgramArguments = [ "/usr/bin/say" "Good afternoon" ];
|
||||
StartCalendarInterval = {
|
||||
Hour = 12;
|
||||
Minute = 0;
|
||||
};
|
||||
}
|
||||
'';
|
||||
description = ''
|
||||
Define a launchd job. See <citerefentry>
|
||||
<refentrytitle>launchd.plist</refentrytitle><manvolnum>5</manvolnum>
|
||||
</citerefentry> for details.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = { config.Label = mkDefault "${labelPrefix}${name}"; };
|
||||
};
|
||||
|
||||
toAgent = config: pkgs.writeText "${config.Label}.plist" (toPlist { } config);
|
||||
|
||||
agentPlists =
|
||||
mapAttrs' (n: v: nameValuePair "${v.config.Label}.plist" (toAgent v.config))
|
||||
(filterAttrs (n: v: v.enable) cfg.agents);
|
||||
|
||||
agentsDrv = pkgs.runCommand "home-manager-agents" { } ''
|
||||
mkdir -p "$out"
|
||||
|
||||
declare -A plists
|
||||
plists=(${
|
||||
concatStringsSep " "
|
||||
(mapAttrsToList (name: value: "['${name}']='${value}'") agentPlists)
|
||||
})
|
||||
|
||||
for dest in "''${!plists[@]}"; do
|
||||
src="''${plists[$dest]}"
|
||||
ln -s "$src" "$out/$dest"
|
||||
done
|
||||
'';
|
||||
in {
|
||||
meta.maintainers = with maintainers; [ midchildan ];
|
||||
|
||||
options.launchd = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = isDarwin;
|
||||
defaultText = literalExpression "pkgs.stdenv.hostPlatform.isDarwin";
|
||||
description = ''
|
||||
Whether to enable Home Manager to define per-user daemons by making use
|
||||
of launchd's LaunchAgents.
|
||||
'';
|
||||
};
|
||||
|
||||
agents = mkOption {
|
||||
type = with types; attrsOf (submodule launchdConfig);
|
||||
default = { };
|
||||
description = "Define LaunchAgents.";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkMerge [
|
||||
{
|
||||
assertions = [{
|
||||
assertion = (cfg.enable && agentPlists != { }) -> isDarwin;
|
||||
message = let names = lib.concatStringsSep ", " (attrNames agentPlists);
|
||||
in "Must use Darwin for modules that require Launchd: " + names;
|
||||
}];
|
||||
}
|
||||
|
||||
(mkIf isDarwin {
|
||||
home.extraBuilderCommands = ''
|
||||
ln -s "${agentsDrv}" $out/LaunchAgents
|
||||
'';
|
||||
|
||||
home.activation.checkLaunchAgents =
|
||||
hm.dag.entryBefore [ "writeBoundary" ] ''
|
||||
checkLaunchAgents() {
|
||||
local oldDir newDir dstDir err
|
||||
oldDir=""
|
||||
err=0
|
||||
if [[ -n "''${oldGenPath:-}" ]]; then
|
||||
oldDir="$(readlink -m "$oldGenPath/LaunchAgents")" || err=$?
|
||||
if (( err )); then
|
||||
oldDir=""
|
||||
fi
|
||||
fi
|
||||
newDir=${escapeShellArg agentsDrv}
|
||||
dstDir=${escapeShellArg dstDir}
|
||||
|
||||
local oldSrcPath newSrcPath dstPath agentFile agentName
|
||||
|
||||
find -L "$newDir" -maxdepth 1 -name '*.plist' -type f -print0 \
|
||||
| while IFS= read -rd "" newSrcPath; do
|
||||
agentFile="''${newSrcPath##*/}"
|
||||
agentName="''${agentFile%.plist}"
|
||||
dstPath="$dstDir/$agentFile"
|
||||
oldSrcPath="$oldDir/$agentFile"
|
||||
|
||||
if [[ ! -e "$dstPath" ]]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
if ! cmp --quiet "$oldSrcPath" "$dstPath"; then
|
||||
errorEcho "Existing file '$dstPath' is in the way of '$newSrcPath'"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
checkLaunchAgents
|
||||
'';
|
||||
|
||||
# NOTE: Launch Agent configurations can't be symlinked from the Nix store
|
||||
# because it needs to be owned by the user running it.
|
||||
home.activation.setupLaunchAgents =
|
||||
hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
setupLaunchAgents() {
|
||||
local oldDir newDir dstDir domain err
|
||||
oldDir=""
|
||||
err=0
|
||||
if [[ -n "''${oldGenPath:-}" ]]; then
|
||||
oldDir="$(readlink -m "$oldGenPath/LaunchAgents")" || err=$?
|
||||
if (( err )); then
|
||||
oldDir=""
|
||||
fi
|
||||
fi
|
||||
newDir="$(readlink -m "$newGenPath/LaunchAgents")"
|
||||
dstDir=${escapeShellArg dstDir}
|
||||
domain="gui/$UID"
|
||||
err=0
|
||||
|
||||
local srcPath dstPath agentFile agentName i bootout_retries
|
||||
bootout_retries=10
|
||||
|
||||
find -L "$newDir" -maxdepth 1 -name '*.plist' -type f -print0 \
|
||||
| while IFS= read -rd "" srcPath; do
|
||||
agentFile="''${srcPath##*/}"
|
||||
agentName="''${agentFile%.plist}"
|
||||
dstPath="$dstDir/$agentFile"
|
||||
|
||||
if cmp --quiet "$srcPath" "$dstPath"; then
|
||||
continue
|
||||
fi
|
||||
if [[ -f "$dstPath" ]]; then
|
||||
for (( i = 0; i < bootout_retries; i++ )); do
|
||||
$DRY_RUN_CMD /bin/launchctl bootout "$domain/$agentName" || err=$?
|
||||
if [[ -v DRY_RUN ]]; then
|
||||
break
|
||||
fi
|
||||
if (( err != 9216 )) &&
|
||||
! /bin/launchctl print "$domain/$agentName" &> /dev/null; then
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
if (( i == bootout_retries )); then
|
||||
warnEcho "Failed to stop '$domain/$agentName'"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
$DRY_RUN_CMD install -Dm444 -T "$srcPath" "$dstPath"
|
||||
$DRY_RUN_CMD /bin/launchctl bootstrap "$domain" "$dstPath"
|
||||
done
|
||||
|
||||
if [[ ! -e "$oldDir" ]]; then
|
||||
return
|
||||
fi
|
||||
|
||||
find -L "$oldDir" -maxdepth 1 -name '*.plist' -type f -print0 \
|
||||
| while IFS= read -rd "" srcPath; do
|
||||
agentFile="''${srcPath##*/}"
|
||||
agentName="''${agentFile%.plist}"
|
||||
dstPath="$dstDir/$agentFile"
|
||||
if [[ -e "$newDir/$agentFile" ]]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
$DRY_RUN_CMD /bin/launchctl bootout "$domain/$agentName" || :
|
||||
if [[ ! -e "$dstPath" ]]; then
|
||||
continue
|
||||
fi
|
||||
if ! cmp --quiet "$srcPath" "$dstPath"; then
|
||||
warnEcho "Skipping deletion of '$dstPath', since its contents have diverged"
|
||||
continue
|
||||
fi
|
||||
$DRY_RUN_CMD rm -f $VERBOSE_ARG "$dstPath"
|
||||
done
|
||||
}
|
||||
|
||||
setupLaunchAgents
|
||||
'';
|
||||
})
|
||||
];
|
||||
}
|
||||
872
modules/launchd/launchd.nix
Normal file
872
modules/launchd/launchd.nix
Normal file
@@ -0,0 +1,872 @@
|
||||
# launchd option type from nix-darwin
|
||||
#
|
||||
# Original Source:
|
||||
# https://github.com/LnL7/nix-darwin/blob/a34dea2/modules/launchd/launchd.nix
|
||||
|
||||
# Copyright 2017 Daiderd Jordan
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining
|
||||
# a copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
# and/or sell copies of the Software, and to permit persons to whom the
|
||||
# Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included
|
||||
# in all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
|
||||
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options = {
|
||||
Label = mkOption {
|
||||
type = types.str;
|
||||
description = "This required key uniquely identifies the job to launchd.";
|
||||
};
|
||||
|
||||
Disabled = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key is used as a hint to <literal>launchctl(1)</literal> that it should not submit this job to launchd when
|
||||
loading a job or jobs. The value of this key does NOT reflect the current state of the job on the running
|
||||
system. If you wish to know whether a job is loaded in launchd, reading this key from a configuration
|
||||
file yourself is not a sufficient test. You should query launchd for the presence of the job using
|
||||
the <literal>launchctl(1)</literal> list subcommand or use the ServiceManagement framework's
|
||||
<literal>SMJobCopyDictionary()</literal> method.
|
||||
|
||||
Note that as of Mac OS X v10.6, this key's value in a configuration file conveys a default value, which
|
||||
is changed with the [-w] option of the <literal>launchctl(1)</literal> load and unload subcommands. These subcommands no
|
||||
longer modify the configuration file, so the value displayed in the configuration file is not necessarily
|
||||
the value that <literal>launchctl(1)</literal> will apply. See <literal>launchctl(1)</literal> for more information.
|
||||
|
||||
Please also be mindful that you should only use this key if the provided on-demand and KeepAlive criteria
|
||||
are insufficient to describe the conditions under which your job needs to run. The cost to have a
|
||||
job loaded in launchd is negligible, so there is no harm in loading a job which only runs once or very
|
||||
rarely.
|
||||
'';
|
||||
};
|
||||
|
||||
UserName = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies the user to run the job as. This key is only applicable when launchd is
|
||||
running as root.
|
||||
'';
|
||||
};
|
||||
|
||||
GroupName = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies the group to run the job as. This key is only applicable when launchd is
|
||||
running as root. If UserName is set and GroupName is not, the the group will be set to the default
|
||||
group of the user.
|
||||
'';
|
||||
};
|
||||
|
||||
inetdCompatibility = mkOption {
|
||||
default = null;
|
||||
example = { Wait = true; };
|
||||
description = ''
|
||||
The presence of this key specifies that the daemon expects to be run as if it were launched from inetd.
|
||||
'';
|
||||
type = types.nullOr (types.submodule {
|
||||
options = {
|
||||
Wait = mkOption {
|
||||
type = types.nullOr (types.either types.bool types.str);
|
||||
default = null;
|
||||
description = ''
|
||||
This flag corresponds to the "wait" or "nowait" option of inetd. If true, then the listening
|
||||
socket is passed via the standard in/out/error file descriptors. If false, then <literal>accept(2)</literal> is
|
||||
called on behalf of the job, and the result is passed via the standard in/out/error descriptors.
|
||||
'';
|
||||
};
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
LimitLoadToHosts = mkOption {
|
||||
type = types.nullOr (types.listOf types.str);
|
||||
default = null;
|
||||
description = ''
|
||||
This configuration file only applies to the hosts listed with this key. Note: One should set kern.host-name kern.hostname
|
||||
name in <literal>sysctl.conf(5)</literal> for this feature to work reliably.
|
||||
'';
|
||||
};
|
||||
|
||||
LimitLoadFromHosts = mkOption {
|
||||
type = types.nullOr (types.listOf types.str);
|
||||
default = null;
|
||||
description = ''
|
||||
This configuration file only applies to hosts NOT listed with this key. Note: One should set kern.host-name kern.hostname
|
||||
name in <literal>sysctl.conf(5)</literal> for this feature to work reliably.
|
||||
'';
|
||||
};
|
||||
|
||||
LimitLoadToSessionType = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = ''
|
||||
This configuration file only applies to sessions of the type specified. This key is used in concert
|
||||
with the -S flag to <command>launchctl</command>.
|
||||
'';
|
||||
};
|
||||
|
||||
Program = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = ''
|
||||
This key maps to the first argument of <literal>execvp(3)</literal>. If this key is missing, then the first element of
|
||||
the array of strings provided to the ProgramArguments will be used instead. This key is required in
|
||||
the absence of the ProgramArguments key.
|
||||
'';
|
||||
};
|
||||
|
||||
ProgramArguments = mkOption {
|
||||
type = types.nullOr (types.listOf types.str);
|
||||
default = null;
|
||||
description = ''
|
||||
This key maps to the second argument of <literal>execvp(3)</literal>. This key is required in the absence of the Program
|
||||
key. Please note: many people are confused by this key. Please read <literal>execvp(3)</literal> very carefully!
|
||||
'';
|
||||
};
|
||||
|
||||
EnableGlobbing = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
This flag causes launchd to use the <literal>glob(3)</literal> mechanism to update the program arguments before invocation.
|
||||
'';
|
||||
};
|
||||
|
||||
EnableTransactions = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
This flag instructs launchd that the job promises to use <literal>vproc_transaction_begin(3)</literal> and
|
||||
<literal>vproc_transaction_end(3)</literal> to track outstanding transactions that need to be reconciled before the
|
||||
process can safely terminate. If no outstanding transactions are in progress, then launchd is free to
|
||||
send the SIGKILL signal.
|
||||
'';
|
||||
};
|
||||
|
||||
OnDemand = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
This key was used in Mac OS X 10.4 to control whether a job was kept alive or not. The default was
|
||||
true. This key has been deprecated and replaced in Mac OS X 10.5 and later with the more powerful
|
||||
KeepAlive option.
|
||||
'';
|
||||
};
|
||||
|
||||
KeepAlive = mkOption {
|
||||
type = types.nullOr (types.either types.bool (types.submodule {
|
||||
options = {
|
||||
|
||||
SuccessfulExit = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
If true, the job will be restarted as long as the program exits and with an exit status of zero.
|
||||
If false, the job will be restarted in the inverse condition. This key implies that "RunAtLoad"
|
||||
is set to true, since the job needs to run at least once before we can get an exit status.
|
||||
'';
|
||||
};
|
||||
|
||||
NetworkState = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
If true, the job will be kept alive as long as the network is up, where up is defined as at least
|
||||
one non-loopback interface being up and having IPv4 or IPv6 addresses assigned to them. If
|
||||
false, the job will be kept alive in the inverse condition.
|
||||
'';
|
||||
};
|
||||
|
||||
PathState = mkOption {
|
||||
type = types.nullOr (types.attrsOf types.bool);
|
||||
default = null;
|
||||
description = ''
|
||||
Each key in this dictionary is a file-system path. If the value of the key is true, then the job
|
||||
will be kept alive as long as the path exists. If false, the job will be kept alive in the
|
||||
inverse condition. The intent of this feature is that two or more jobs may create semaphores in
|
||||
the file-system namespace.
|
||||
'';
|
||||
};
|
||||
|
||||
OtherJobEnabled = mkOption {
|
||||
type = types.nullOr (types.attrsOf types.bool);
|
||||
default = null;
|
||||
description = ''
|
||||
Each key in this dictionary is the label of another job. If the value of the key is true, then
|
||||
this job is kept alive as long as that other job is enabled. Otherwise, if the value is false,
|
||||
then this job is kept alive as long as the other job is disabled. This feature should not be
|
||||
considered a substitute for the use of IPC.
|
||||
'';
|
||||
};
|
||||
|
||||
# NOTE: this was missing in the original source at the time of writing
|
||||
Crashed = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
If true, the the job will be restarted as long as it exited due to a signal which is typically
|
||||
associated with a crash (SIGILL, SIGSEGV, etc.). If false, the job will be restarted in the inverse
|
||||
condition.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
}));
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key is used to control whether your job is to be kept continuously running or to let
|
||||
demand and conditions control the invocation. The default is false and therefore only demand will start
|
||||
the job. The value may be set to true to unconditionally keep the job alive. Alternatively, a dictionary
|
||||
of conditions may be specified to selectively control whether launchd keeps a job alive or not. If
|
||||
multiple keys are provided, launchd ORs them, thus providing maximum flexibility to the job to refine
|
||||
the logic and stall if necessary. If launchd finds no reason to restart the job, it falls back on
|
||||
demand based invocation. Jobs that exit quickly and frequently when configured to be kept alive will
|
||||
be throttled to conserve system resources.
|
||||
'';
|
||||
};
|
||||
|
||||
RunAtLoad = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key is used to control whether your job is launched once at the time the job is loaded.
|
||||
The default is false.
|
||||
'';
|
||||
};
|
||||
|
||||
RootDirectory = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key is used to specify a directory to <literal>chroot(2)</literal> to before running the job.
|
||||
'';
|
||||
};
|
||||
|
||||
WorkingDirectory = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key is used to specify a directory to <literal>chdir(2)</literal> to before running the job.
|
||||
'';
|
||||
};
|
||||
|
||||
EnvironmentVariables = mkOption {
|
||||
type = types.nullOr (types.attrsOf types.str);
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key is used to specify additional environment variables to be set before running the
|
||||
job.
|
||||
'';
|
||||
};
|
||||
|
||||
Umask = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies what value should be passed to <literal>umask(2)</literal> before running the job. Known bug:
|
||||
Property lists don't support octal, so please convert the value to decimal.
|
||||
'';
|
||||
};
|
||||
|
||||
TimeOut = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The recommended idle time out (in seconds) to pass to the job. If no value is specified, a default time
|
||||
out will be supplied by launchd for use by the job at check in time.
|
||||
'';
|
||||
};
|
||||
|
||||
ExitTimeOut = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The amount of time launchd waits before sending a SIGKILL signal. The default value is 20 seconds. The
|
||||
value zero is interpreted as infinity.
|
||||
'';
|
||||
};
|
||||
|
||||
ThrottleInterval = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
This key lets one override the default throttling policy imposed on jobs by launchd. The value is in
|
||||
seconds, and by default, jobs will not be spawned more than once every 10 seconds. The principle
|
||||
behind this is that jobs should linger around just in case they are needed again in the near future.
|
||||
This not only reduces the latency of responses, but it encourages developers to amortize the cost of
|
||||
program invocation.
|
||||
'';
|
||||
};
|
||||
|
||||
InitGroups = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies whether <literal>initgroups(3)</literal> should be called before running the job. The default
|
||||
is true in 10.5 and false in 10.4. This key will be ignored if the UserName key is not set.
|
||||
'';
|
||||
};
|
||||
|
||||
WatchPaths = mkOption {
|
||||
type = types.nullOr (types.listOf types.path);
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key causes the job to be started if any one of the listed paths are modified.
|
||||
'';
|
||||
};
|
||||
|
||||
QueueDirectories = mkOption {
|
||||
type = types.nullOr (types.listOf types.str);
|
||||
default = null;
|
||||
description = ''
|
||||
Much like the WatchPaths option, this key will watch the paths for modifications. The difference being
|
||||
that the job will only be started if the path is a directory and the directory is not empty.
|
||||
'';
|
||||
};
|
||||
|
||||
StartOnMount = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key causes the job to be started every time a filesystem is mounted.
|
||||
'';
|
||||
};
|
||||
|
||||
StartInterval = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key causes the job to be started every N seconds. If the system is asleep, the job will
|
||||
be started the next time the computer wakes up. If multiple intervals transpire before the computer is
|
||||
woken, those events will be coalesced into one event upon wake from sleep.
|
||||
'';
|
||||
};
|
||||
|
||||
StartCalendarInterval = mkOption {
|
||||
default = null;
|
||||
example = {
|
||||
Hour = 2;
|
||||
Minute = 30;
|
||||
};
|
||||
description = ''
|
||||
This optional key causes the job to be started every calendar interval as specified. Missing arguments
|
||||
are considered to be wildcard. The semantics are much like <literal>crontab(5)</literal>. Unlike cron which skips job
|
||||
invocations when the computer is asleep, launchd will start the job the next time the computer wakes
|
||||
up. If multiple intervals transpire before the computer is woken, those events will be coalesced into
|
||||
one event upon wake from sleep.
|
||||
'';
|
||||
type = types.nullOr (types.listOf (types.submodule {
|
||||
options = {
|
||||
Minute = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The minute on which this job will be run.
|
||||
'';
|
||||
};
|
||||
|
||||
Hour = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The hour on which this job will be run.
|
||||
'';
|
||||
};
|
||||
|
||||
Day = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The day on which this job will be run.
|
||||
'';
|
||||
};
|
||||
|
||||
Weekday = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The weekday on which this job will be run (0 and 7 are Sunday).
|
||||
'';
|
||||
};
|
||||
|
||||
Month = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The month on which this job will be run.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}));
|
||||
};
|
||||
|
||||
StandardInPath = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies what file should be used for data being supplied to stdin when using
|
||||
<literal>stdio(3)</literal>.
|
||||
'';
|
||||
};
|
||||
|
||||
StandardOutPath = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies what file should be used for data being sent to stdout when using <literal>stdio(3)</literal>.
|
||||
'';
|
||||
};
|
||||
|
||||
StandardErrorPath = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies what file should be used for data being sent to stderr when using <literal>stdio(3)</literal>.
|
||||
'';
|
||||
};
|
||||
|
||||
Debug = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies that launchd should adjust its log mask temporarily to LOG_DEBUG while
|
||||
dealing with this job.
|
||||
'';
|
||||
};
|
||||
|
||||
WaitForDebugger = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies that launchd should instruct the kernel to have the job wait for a debugger
|
||||
to attach before any code in the job is executed.
|
||||
'';
|
||||
};
|
||||
|
||||
SoftResourceLimits = mkOption {
|
||||
default = null;
|
||||
description = ''
|
||||
Resource limits to be imposed on the job. These adjust variables set with <literal>setrlimit(2)</literal>. The following
|
||||
keys apply:
|
||||
'';
|
||||
type = types.nullOr (types.submodule {
|
||||
options = {
|
||||
Core = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The largest size (in bytes) core file that may be created.
|
||||
'';
|
||||
};
|
||||
|
||||
CPU = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The maximum amount of cpu time (in seconds) to be used by each process.
|
||||
'';
|
||||
};
|
||||
|
||||
Data = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The maximum size (in bytes) of the data segment for a process; this defines how far a program may
|
||||
extend its break with the <literal>sbrk(2)</literal> system call.
|
||||
'';
|
||||
};
|
||||
|
||||
FileSize = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The largest size (in bytes) file that may be created.
|
||||
'';
|
||||
};
|
||||
|
||||
MemoryLock = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The maximum size (in bytes) which a process may lock into memory using the mlock(2) function.
|
||||
'';
|
||||
};
|
||||
|
||||
NumberOfFiles = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The maximum number of open files for this process. Setting this value in a system wide daemon
|
||||
will set the <literal>sysctl(3)</literal> kern.maxfiles (SoftResourceLimits) or kern.maxfilesperproc (HardResource-Limits) (HardResourceLimits)
|
||||
Limits) value in addition to the <literal>setrlimit(2)</literal> values.
|
||||
'';
|
||||
};
|
||||
|
||||
NumberOfProcesses = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The maximum number of simultaneous processes for this user id. Setting this value in a system
|
||||
wide daemon will set the <literal>sysctl(3)</literal> kern.maxproc (SoftResourceLimits) or kern.maxprocperuid
|
||||
(HardResourceLimits) value in addition to the <literal>setrlimit(2)</literal> values.
|
||||
'';
|
||||
};
|
||||
|
||||
ResidentSetSize = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The maximum size (in bytes) to which a process's resident set size may grow. This imposes a
|
||||
limit on the amount of physical memory to be given to a process; if memory is tight, the system
|
||||
will prefer to take memory from processes that are exceeding their declared resident set size.
|
||||
'';
|
||||
};
|
||||
|
||||
Stack = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The maximum size (in bytes) of the stack segment for a process; this defines how far a program's
|
||||
stack segment may be extended. Stack extension is performed automatically by the system.
|
||||
'';
|
||||
};
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
HardResourceLimits = mkOption {
|
||||
default = null;
|
||||
example = { NumberOfFiles = 4096; };
|
||||
description = ''
|
||||
Resource limits to be imposed on the job. These adjust variables set with <literal>setrlimit(2)</literal>. The following
|
||||
keys apply:
|
||||
'';
|
||||
type = types.nullOr (types.submodule {
|
||||
options = {
|
||||
Core = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The largest size (in bytes) core file that may be created.
|
||||
'';
|
||||
};
|
||||
|
||||
CPU = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The maximum amount of cpu time (in seconds) to be used by each process.
|
||||
'';
|
||||
};
|
||||
|
||||
Data = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The maximum size (in bytes) of the data segment for a process; this defines how far a program may
|
||||
extend its break with the <literal>sbrk(2)</literal> system call.
|
||||
'';
|
||||
};
|
||||
|
||||
FileSize = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The largest size (in bytes) file that may be created.
|
||||
'';
|
||||
};
|
||||
|
||||
MemoryLock = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The maximum size (in bytes) which a process may lock into memory using the <literal>mlock(2)</literal> function.
|
||||
'';
|
||||
};
|
||||
|
||||
NumberOfFiles = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The maximum number of open files for this process. Setting this value in a system wide daemon
|
||||
will set the <literal>sysctl(3)</literal> kern.maxfiles (SoftResourceLimits) or kern.maxfilesperproc (HardResource-Limits) (HardResourceLimits)
|
||||
Limits) value in addition to the <literal>setrlimit(2)</literal> values.
|
||||
'';
|
||||
};
|
||||
|
||||
NumberOfProcesses = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The maximum number of simultaneous processes for this user id. Setting this value in a system
|
||||
wide daemon will set the <literal>sysctl(3)</literal> kern.maxproc (SoftResourceLimits) or kern.maxprocperuid
|
||||
(HardResourceLimits) value in addition to the <literal>setrlimit(2)</literal> values.
|
||||
'';
|
||||
};
|
||||
|
||||
ResidentSetSize = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The maximum size (in bytes) to which a process's resident set size may grow. This imposes a
|
||||
limit on the amount of physical memory to be given to a process; if memory is tight, the system
|
||||
will prefer to take memory from processes that are exceeding their declared resident set size.
|
||||
'';
|
||||
};
|
||||
|
||||
Stack = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
The maximum size (in bytes) of the stack segment for a process; this defines how far a program's
|
||||
stack segment may be extended. Stack extension is performed automatically by the system.
|
||||
'';
|
||||
};
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
Nice = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies what nice(3) value should be applied to the daemon.
|
||||
'';
|
||||
};
|
||||
|
||||
ProcessType = mkOption {
|
||||
type = types.nullOr
|
||||
(types.enum [ "Background" "Standard" "Adaptive" "Interactive" ]);
|
||||
default = null;
|
||||
example = "Background";
|
||||
description = ''
|
||||
This optional key describes, at a high level, the intended purpose of the job. The system will apply
|
||||
resource limits based on what kind of job it is. If left unspecified, the system will apply light
|
||||
resource limits to the job, throttling its CPU usage and I/O bandwidth. The following are valid values:
|
||||
|
||||
Background
|
||||
Background jobs are generally processes that do work that was not directly requested by the user.
|
||||
The resource limits applied to Background jobs are intended to prevent them from disrupting the
|
||||
user experience.
|
||||
|
||||
Standard
|
||||
Standard jobs are equivalent to no ProcessType being set.
|
||||
|
||||
Adaptive
|
||||
Adaptive jobs move between the Background and Interactive classifications based on activity over
|
||||
XPC connections. See <literal>xpc_transaction_begin(3)</literal> for details.
|
||||
|
||||
Interactive
|
||||
Interactive jobs run with the same resource limitations as apps, that is to say, none. Interactive
|
||||
jobs are critical to maintaining a responsive user experience, and this key should only be
|
||||
used if an app's ability to be responsive depends on it, and cannot be made Adaptive.
|
||||
'';
|
||||
};
|
||||
|
||||
AbandonProcessGroup = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
When a job dies, launchd kills any remaining processes with the same process group ID as the job. Setting
|
||||
this key to true disables that behavior.
|
||||
'';
|
||||
};
|
||||
|
||||
LowPriorityIO = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies whether the kernel should consider this daemon to be low priority when
|
||||
doing file system I/O.
|
||||
'';
|
||||
};
|
||||
|
||||
LaunchOnlyOnce = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies whether the job can only be run once and only once. In other words, if the
|
||||
job cannot be safely respawned without a full machine reboot, then set this key to be true.
|
||||
'';
|
||||
};
|
||||
|
||||
MachServices = mkOption {
|
||||
default = null;
|
||||
example = { ResetAtClose = true; };
|
||||
description = ''
|
||||
This optional key is used to specify Mach services to be registered with the Mach bootstrap sub-system.
|
||||
Each key in this dictionary should be the name of service to be advertised. The value of the key must
|
||||
be a boolean and set to true. Alternatively, a dictionary can be used instead of a simple true value.
|
||||
|
||||
Finally, for the job itself, the values will be replaced with Mach ports at the time of check-in with
|
||||
launchd.
|
||||
'';
|
||||
type = types.nullOr (types.submodule {
|
||||
options = {
|
||||
ResetAtClose = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
If this boolean is false, the port is recycled, thus leaving clients to remain oblivious to the
|
||||
demand nature of job. If the value is set to true, clients receive port death notifications when
|
||||
the job lets go of the receive right. The port will be recreated atomically with respect to boot-strap_look_up() bootstrap_look_up()
|
||||
strap_look_up() calls, so that clients can trust that after receiving a port death notification,
|
||||
the new port will have already been recreated. Setting the value to true should be done with
|
||||
care. Not all clients may be able to handle this behavior. The default value is false.
|
||||
'';
|
||||
};
|
||||
|
||||
HideUntilCheckIn = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
Reserve the name in the namespace, but cause bootstrap_look_up() to fail until the job has
|
||||
checked in with launchd.
|
||||
'';
|
||||
};
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
Sockets = mkOption {
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key is used to specify launch on demand sockets that can be used to let launchd know when
|
||||
to run the job. The job must check-in to get a copy of the file descriptors using APIs outlined in
|
||||
launch(3). The keys of the top level Sockets dictionary can be anything. They are meant for the application
|
||||
developer to use to differentiate which descriptors correspond to which application level protocols
|
||||
(e.g. http vs. ftp vs. DNS...). At check-in time, the value of each Sockets dictionary key will
|
||||
be an array of descriptors. Daemon/Agent writers should consider all descriptors of a given key to be
|
||||
to be effectively equivalent, even though each file descriptor likely represents a different networking
|
||||
protocol which conforms to the criteria specified in the job configuration file.
|
||||
|
||||
The parameters below are used as inputs to call <literal>getaddrinfo(3)</literal>.
|
||||
'';
|
||||
type = types.nullOr (types.attrsOf (types.submodule {
|
||||
options = {
|
||||
SockType = mkOption {
|
||||
type = types.nullOr (types.enum [ "stream" "dgram" "seqpacket" ]);
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key tells launchctl what type of socket to create. The default is "stream" and
|
||||
other valid values for this key are "dgram" and "seqpacket" respectively.
|
||||
'';
|
||||
};
|
||||
|
||||
SockPassive = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies whether <literal>listen(2)</literal> or <literal>connect(2)</literal> should be called on the created file
|
||||
descriptor. The default is true ("to listen").
|
||||
'';
|
||||
};
|
||||
|
||||
SockNodeName = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies the node to <literal>connect(2)</literal> or <literal>bind(2)</literal> to.
|
||||
'';
|
||||
};
|
||||
|
||||
SockServiceName = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies the service on the node to <literal>connect(2)</literal> or <literal>bind(2)</literal> to.
|
||||
'';
|
||||
};
|
||||
|
||||
SockFamily = mkOption {
|
||||
type = types.nullOr (types.enum [ "IPv4" "IPv6" ]);
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key can be used to specifically request that "IPv4" or "IPv6" socket(s) be created.
|
||||
'';
|
||||
};
|
||||
|
||||
SockProtocol = mkOption {
|
||||
type = types.nullOr (types.enum [ "TCP" ]);
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies the protocol to be passed to <literal>socket(2)</literal>. The only value understood by
|
||||
this key at the moment is "TCP".
|
||||
'';
|
||||
};
|
||||
|
||||
SockPathName = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key implies SockFamily is set to "Unix". It specifies the path to <literal>connect(2)</literal> or
|
||||
<literal>bind(2)</literal> to.
|
||||
'';
|
||||
};
|
||||
|
||||
SecureSocketWithKey = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key is a variant of SockPathName. Instead of binding to a known path, a securely
|
||||
generated socket is created and the path is assigned to the environment variable that is inherited
|
||||
by all jobs spawned by launchd.
|
||||
'';
|
||||
};
|
||||
|
||||
SockPathMode = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key specifies the mode of the socket. Known bug: Property lists don't support
|
||||
octal, so please convert the value to decimal.
|
||||
'';
|
||||
};
|
||||
|
||||
Bonjour = mkOption {
|
||||
type =
|
||||
types.nullOr (types.either types.bool (types.listOf types.str));
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key can be used to request that the service be registered with the
|
||||
<literal>mDNSResponder(8)</literal>. If the value is boolean, the service name is inferred from the SockService-Name. SockServiceName.
|
||||
Name.
|
||||
'';
|
||||
};
|
||||
|
||||
MulticastGroup = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = ''
|
||||
This optional key can be used to request that the datagram socket join a multicast group. If the
|
||||
value is a hostname, then <literal>getaddrinfo(3)</literal> will be used to join the correct multicast address for a
|
||||
given socket family. If an explicit IPv4 or IPv6 address is given, it is required that the Sock-Family SockFamily
|
||||
Family family also be set, otherwise the results are undefined.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}));
|
||||
};
|
||||
};
|
||||
|
||||
config = { };
|
||||
}
|
||||
@@ -5,9 +5,10 @@ function setupVars() {
|
||||
local profilesPath="$nixStateDir/profiles/per-user/$USER"
|
||||
local gcPath="$nixStateDir/gcroots/per-user/$USER"
|
||||
|
||||
genProfilePath="$profilesPath/home-manager"
|
||||
newGenPath="@GENERATION_DIR@";
|
||||
newGenGcPath="$gcPath/current-home"
|
||||
declare -gr nixProfilePath="$profilesPath/profile"
|
||||
declare -gr genProfilePath="$profilesPath/home-manager"
|
||||
declare -gr newGenPath="@GENERATION_DIR@";
|
||||
declare -gr newGenGcPath="$gcPath/current-home"
|
||||
|
||||
local greatestGenNum
|
||||
greatestGenNum=$( \
|
||||
@@ -16,27 +17,23 @@ function setupVars() {
|
||||
| sed -E 's/ *([[:digit:]]+) .*/\1/')
|
||||
|
||||
if [[ -n $greatestGenNum ]] ; then
|
||||
oldGenNum=$greatestGenNum
|
||||
newGenNum=$((oldGenNum + 1))
|
||||
declare -gr oldGenNum=$greatestGenNum
|
||||
declare -gr newGenNum=$((oldGenNum + 1))
|
||||
else
|
||||
newGenNum=1
|
||||
declare -gr newGenNum=1
|
||||
fi
|
||||
|
||||
if [[ -e $profilesPath/home-manager ]] ; then
|
||||
oldGenPath="$(readlink -e "$profilesPath/home-manager")"
|
||||
declare -gr oldGenPath
|
||||
fi
|
||||
|
||||
$VERBOSE_ECHO "Sanity checking oldGenNum and oldGenPath"
|
||||
$VERBOSE_RUN _i "Sanity checking oldGenNum and oldGenPath"
|
||||
if [[ -v oldGenNum && ! -v oldGenPath
|
||||
|| ! -v oldGenNum && -v oldGenPath ]]; then
|
||||
errorEcho "Invalid profile number and current profile values! These"
|
||||
errorEcho "must be either both empty or both set but are now set to"
|
||||
errorEcho " '${oldGenNum:-}' and '${oldGenPath:-}'"
|
||||
errorEcho "If you don't mind losing previous profile generations then"
|
||||
errorEcho "the easiest solution is probably to run"
|
||||
errorEcho " rm $profilesPath/home-manager*"
|
||||
errorEcho " rm $gcPath/current-home"
|
||||
errorEcho "and trying home-manager switch again. Good luck!"
|
||||
_i $'The previous generation number and path are in conflict! These\nmust be either both empty or both set but are now set to\n\n \'%s\' and \'%s\'\n\nIf you don\'t mind losing previous profile generations then\nthe easiest solution is probably to run\n\n rm %s/home-manager*\n rm %s/current-home\n\nand trying home-manager switch again. Good luck!' \
|
||||
"${oldGenNum:-}" "${oldGenPath:-}" \
|
||||
"$profilesPath" "$gcPath"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
@@ -44,34 +41,35 @@ function setupVars() {
|
||||
if [[ -v VERBOSE ]]; then
|
||||
export VERBOSE_ECHO=echo
|
||||
export VERBOSE_ARG="--verbose"
|
||||
export VERBOSE_RUN=""
|
||||
else
|
||||
export VERBOSE_ECHO=true
|
||||
export VERBOSE_ARG=""
|
||||
export VERBOSE_RUN=true
|
||||
fi
|
||||
|
||||
echo "Starting home manager activation"
|
||||
_i "Starting Home Manager activation"
|
||||
|
||||
# Verify that we can connect to the Nix store and/or daemon. This will
|
||||
# also create the necessary directories in profiles and gcroots.
|
||||
$VERBOSE_ECHO "Sanity checking Nix"
|
||||
$VERBOSE_RUN _i "Sanity checking Nix"
|
||||
nix-build --expr '{}' --no-out-link
|
||||
|
||||
setupVars
|
||||
|
||||
if [[ -v DRY_RUN ]] ; then
|
||||
echo "This is a dry run"
|
||||
_i "This is a dry run"
|
||||
export DRY_RUN_CMD=echo
|
||||
else
|
||||
$VERBOSE_ECHO "This is a live run"
|
||||
$VERBOSE_RUN _i "This is a live run"
|
||||
export DRY_RUN_CMD=""
|
||||
fi
|
||||
|
||||
if [[ -v VERBOSE ]]; then
|
||||
echo -n "Using Nix version: "
|
||||
nix-env --version
|
||||
_i 'Using Nix version: %s' "$(nix-env --version)"
|
||||
fi
|
||||
|
||||
$VERBOSE_ECHO "Activation variables:"
|
||||
$VERBOSE_RUN _i "Activation variables:"
|
||||
if [[ -v oldGenNum ]] ; then
|
||||
$VERBOSE_ECHO " oldGenNum=$oldGenNum"
|
||||
$VERBOSE_ECHO " oldGenPath=$oldGenPath"
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
# The check for terminal output and color support is heavily inspired
|
||||
# by https://unix.stackexchange.com/a/10065.
|
||||
|
||||
function setupColors() {
|
||||
normalColor=""
|
||||
errorColor=""
|
||||
warnColor=""
|
||||
noteColor=""
|
||||
|
||||
# Check if stdout is a terminal.
|
||||
if [[ -t 1 ]]; then
|
||||
# See if it supports colors.
|
||||
local ncolors
|
||||
ncolors=$(tput colors)
|
||||
|
||||
if [[ -n "$ncolors" && "$ncolors" -ge 8 ]]; then
|
||||
normalColor="$(tput sgr0)"
|
||||
errorColor="$(tput bold)$(tput setaf 1)"
|
||||
warnColor="$(tput setaf 3)"
|
||||
noteColor="$(tput bold)$(tput setaf 6)"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
setupColors
|
||||
|
||||
function errorEcho() {
|
||||
echo "${errorColor}$*${normalColor}"
|
||||
}
|
||||
|
||||
function warnEcho() {
|
||||
echo "${warnColor}$*${normalColor}"
|
||||
}
|
||||
|
||||
function noteEcho() {
|
||||
echo "${noteColor}$*${normalColor}"
|
||||
}
|
||||
14
modules/lib/assertions.nix
Normal file
14
modules/lib/assertions.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib }:
|
||||
|
||||
{
|
||||
assertPlatform = module: pkgs: platforms: {
|
||||
assertion = lib.elem pkgs.stdenv.hostPlatform.system platforms;
|
||||
message = let
|
||||
platformsStr = lib.concatStringsSep "\n"
|
||||
(map (p: " - ${p}") (lib.sort (a: b: a < b) platforms));
|
||||
in ''
|
||||
The module ${module} does not support your platform. It only supports
|
||||
|
||||
${platformsStr}'';
|
||||
};
|
||||
}
|
||||
5
modules/lib/booleans.nix
Normal file
5
modules/lib/booleans.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ lib }: {
|
||||
# Converts a boolean to a yes/no string. This is used in lots of
|
||||
# configuration formats.
|
||||
yesNo = value: if value then "yes" else "no";
|
||||
}
|
||||
@@ -4,40 +4,38 @@
|
||||
#
|
||||
# - not specific to strings, i.e., any payload is OK,
|
||||
#
|
||||
# - the addition of the function `dagEntryBefore` indicating a
|
||||
# "wanted by" relationship.
|
||||
# - the addition of the function `entryBefore` indicating a "wanted
|
||||
# by" relationship.
|
||||
|
||||
{ lib }:
|
||||
|
||||
with lib;
|
||||
|
||||
rec {
|
||||
|
||||
emptyDag = { };
|
||||
let inherit (lib) all filterAttrs hm mapAttrs toposort;
|
||||
in {
|
||||
empty = { };
|
||||
|
||||
isEntry = e: e ? data && e ? after && e ? before;
|
||||
isDag = dag:
|
||||
let isEntry = e: (e ? data) && (e ? after) && (e ? before);
|
||||
in builtins.isAttrs dag && all (x: x) (mapAttrsToList (n: isEntry) dag);
|
||||
builtins.isAttrs dag && all hm.dag.isEntry (builtins.attrValues dag);
|
||||
|
||||
# Takes an attribute set containing entries built by
|
||||
# dagEntryAnywhere, dagEntryAfter, and dagEntryBefore to a
|
||||
# topologically sorted list of entries.
|
||||
# Takes an attribute set containing entries built by entryAnywhere,
|
||||
# entryAfter, and entryBefore to a topologically sorted list of
|
||||
# entries.
|
||||
#
|
||||
# Internally this function uses the `toposort` function in
|
||||
# `<nixpkgs/lib/lists.nix>` and its value is accordingly.
|
||||
#
|
||||
# Specifically, the result on success is
|
||||
#
|
||||
# { result = [{name = ?; data = ?;} …] }
|
||||
# { result = [ { name = ?; data = ?; } … ] }
|
||||
#
|
||||
# For example
|
||||
#
|
||||
# nix-repl> dagTopoSort {
|
||||
# a = dagEntryAnywhere "1";
|
||||
# b = dagEntryAfter ["a" "c"] "2";
|
||||
# c = dagEntryBefore ["d"] "3";
|
||||
# d = dagEntryBefore ["e"] "4";
|
||||
# e = dagEntryAnywhere "5";
|
||||
# nix-repl> topoSort {
|
||||
# a = entryAnywhere "1";
|
||||
# b = entryAfter [ "a" "c" ] "2";
|
||||
# c = entryBefore [ "d" ] "3";
|
||||
# d = entryBefore [ "e" ] "4";
|
||||
# e = entryAnywhere "5";
|
||||
# } == {
|
||||
# result = [
|
||||
# { data = "1"; name = "a"; }
|
||||
@@ -52,66 +50,54 @@ rec {
|
||||
# And the result on error is
|
||||
#
|
||||
# {
|
||||
# cycle = [ {after = ?; name = ?; data = ?} … ];
|
||||
# loops = [ {after = ?; name = ?; data = ?} … ];
|
||||
# cycle = [ { after = ?; name = ?; data = ? } … ];
|
||||
# loops = [ { after = ?; name = ?; data = ? } … ];
|
||||
# }
|
||||
#
|
||||
# For example
|
||||
#
|
||||
# nix-repl> dagTopoSort {
|
||||
# a = dagEntryAnywhere "1";
|
||||
# b = dagEntryAfter ["a" "c"] "2";
|
||||
# c = dagEntryAfter ["d"] "3";
|
||||
# d = dagEntryAfter ["b"] "4";
|
||||
# e = dagEntryAnywhere "5";
|
||||
# nix-repl> topoSort {
|
||||
# a = entryAnywhere "1";
|
||||
# b = entryAfter [ "a" "c" ] "2";
|
||||
# c = entryAfter [ "d" ] "3";
|
||||
# d = entryAfter [ "b" ] "4";
|
||||
# e = entryAnywhere "5";
|
||||
# } == {
|
||||
# cycle = [
|
||||
# { after = ["a" "c"]; data = "2"; name = "b"; }
|
||||
# { after = ["d"]; data = "3"; name = "c"; }
|
||||
# { after = ["b"]; data = "4"; name = "d"; }
|
||||
# { after = [ "a" "c" ]; data = "2"; name = "b"; }
|
||||
# { after = [ "d" ]; data = "3"; name = "c"; }
|
||||
# { after = [ "b" ]; data = "4"; name = "d"; }
|
||||
# ];
|
||||
# loops = [
|
||||
# { after = ["a" "c"]; data = "2"; name = "b"; }
|
||||
# { after = [ "a" "c" ]; data = "2"; name = "b"; }
|
||||
# ];
|
||||
# } == {}
|
||||
# }
|
||||
# true
|
||||
dagTopoSort = dag:
|
||||
topoSort = dag:
|
||||
let
|
||||
dagBefore = dag: name:
|
||||
mapAttrsToList (n: v: n)
|
||||
(filterAttrs (n: v: any (a: a == name) v.before) dag);
|
||||
builtins.attrNames
|
||||
(filterAttrs (n: v: builtins.elem name v.before) dag);
|
||||
normalizedDag = mapAttrs (n: v: {
|
||||
name = n;
|
||||
data = v.data;
|
||||
after = v.after ++ dagBefore dag n;
|
||||
}) dag;
|
||||
before = a: b: any (c: a.name == c) b.after;
|
||||
sorted = toposort before (mapAttrsToList (n: v: v) normalizedDag);
|
||||
before = a: b: builtins.elem a.name b.after;
|
||||
sorted = toposort before (builtins.attrValues normalizedDag);
|
||||
in if sorted ? result then {
|
||||
result = map (v: { inherit (v) name data; }) sorted.result;
|
||||
} else
|
||||
sorted;
|
||||
|
||||
# Applies a function to each element of the given DAG.
|
||||
dagMap = f: dag: mapAttrs (n: v: v // { data = f n v.data; }) dag;
|
||||
map = f: mapAttrs (n: v: v // { data = f n v.data; });
|
||||
|
||||
entryBetween = before: after: data: { inherit data before after; };
|
||||
|
||||
# Create a DAG entry with no particular dependency information.
|
||||
dagEntryAnywhere = data: {
|
||||
inherit data;
|
||||
before = [ ];
|
||||
after = [ ];
|
||||
};
|
||||
|
||||
dagEntryBetween = before: after: data: { inherit data before after; };
|
||||
|
||||
dagEntryAfter = after: data: {
|
||||
inherit data after;
|
||||
before = [ ];
|
||||
};
|
||||
|
||||
dagEntryBefore = before: data: {
|
||||
inherit data before;
|
||||
after = [ ];
|
||||
};
|
||||
entryAnywhere = hm.dag.entryBetween [ ] [ ];
|
||||
|
||||
entryAfter = hm.dag.entryBetween [ ];
|
||||
entryBefore = before: hm.dag.entryBetween before [ ];
|
||||
}
|
||||
|
||||
@@ -1,25 +1,15 @@
|
||||
{ lib }:
|
||||
|
||||
rec {
|
||||
dag =
|
||||
let
|
||||
d = import ./dag.nix { inherit lib; };
|
||||
in
|
||||
{
|
||||
empty = d.emptyDag;
|
||||
isDag = d.isDag;
|
||||
topoSort = d.dagTopoSort;
|
||||
map = d.dagMap;
|
||||
entryAnywhere = d.dagEntryAnywhere;
|
||||
entryBetween = d.dagEntryBetween;
|
||||
entryAfter = d.dagEntryAfter;
|
||||
entryBefore = d.dagEntryBefore;
|
||||
};
|
||||
dag = import ./dag.nix { inherit lib; };
|
||||
|
||||
assertions = import ./assertions.nix { inherit lib; };
|
||||
|
||||
booleans = import ./booleans.nix { inherit lib; };
|
||||
gvariant = import ./gvariant.nix { inherit lib; };
|
||||
maintainers = import ./maintainers.nix;
|
||||
strings = import ./strings.nix { inherit lib; };
|
||||
types = import ./types.nix { inherit dag gvariant lib; };
|
||||
types = import ./types.nix { inherit gvariant lib; };
|
||||
|
||||
shell = import ./shell.nix { inherit lib; };
|
||||
zsh = import ./zsh.nix { inherit lib; };
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
{ homeDirectory, lib, pkgs }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
inherit (lib) hasPrefix hm literalExpression mkDefault mkIf mkOption removePrefix types;
|
||||
in
|
||||
{
|
||||
# Constructs a type suitable for a `home.file` like option. The
|
||||
# target path may be either absolute or relative, in which case it
|
||||
@@ -21,7 +22,7 @@ with lib;
|
||||
absPath = if hasPrefix "/" p then p else "${basePath}/${p}";
|
||||
in
|
||||
removePrefix (homeDirectory + "/") absPath;
|
||||
defaultText = literalExample "<name>";
|
||||
defaultText = literalExpression "<name>";
|
||||
description = ''
|
||||
Path to target file relative to ${basePathDesc}.
|
||||
'';
|
||||
@@ -32,7 +33,7 @@ with lib;
|
||||
type = types.nullOr types.lines;
|
||||
description = ''
|
||||
Text of the file. If this option is null then
|
||||
<link linkend="opt-home.file._name_.source">home.file.<name?>.source</link>
|
||||
<xref linkend="opt-home.file._name_.source"/>
|
||||
must be set.
|
||||
'';
|
||||
};
|
||||
@@ -41,7 +42,7 @@ with lib;
|
||||
type = types.path;
|
||||
description = ''
|
||||
Path of the source file or directory. If
|
||||
<link linkend="opt-home.file._name_.text">home.file.<name?>.text</link>
|
||||
<xref linkend="opt-home.file._name_.text"/>
|
||||
is non-null then this option will automatically point to a file
|
||||
containing that text.
|
||||
'';
|
||||
@@ -82,6 +83,9 @@ with lib;
|
||||
generations. The script will be run
|
||||
<emphasis>after</emphasis> the new files have been linked
|
||||
into place.
|
||||
</para><para>
|
||||
Note, this code is always run when <literal>recursive</literal> is
|
||||
enabled.
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
|
||||
{ lib }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
inherit (lib)
|
||||
concatMapStringsSep concatStrings escape hasPrefix head replaceStrings;
|
||||
|
||||
mkPrimitive = t: v: {
|
||||
_type = "gvariant";
|
||||
@@ -20,6 +20,7 @@ let
|
||||
arrayOf = t: "a${t}";
|
||||
maybeOf = t: "m${t}";
|
||||
tupleOf = ts: "(${concatStrings ts})";
|
||||
dictionaryEntryOf = ts: "{${concatStrings ts}}";
|
||||
string = "s";
|
||||
boolean = "b";
|
||||
uchar = "y";
|
||||
@@ -30,6 +31,7 @@ let
|
||||
int64 = "x";
|
||||
uint64 = "t";
|
||||
double = "d";
|
||||
variant = "v";
|
||||
};
|
||||
|
||||
# Returns the GVariant type of a given Nix value. If no type can be
|
||||
@@ -71,14 +73,16 @@ in rec {
|
||||
|
||||
inherit type typeOf;
|
||||
|
||||
isGVariant = v: v._type or "" == "gvariant";
|
||||
|
||||
isArray = hasPrefix "a";
|
||||
isDictionaryEntry = hasPrefix "{";
|
||||
isMaybe = hasPrefix "m";
|
||||
isTuple = hasPrefix "(";
|
||||
|
||||
# Returns the GVariant value that most closely matches the given Nix
|
||||
# value. If no GVariant value can be found then `null` is returned.
|
||||
#
|
||||
# No support for dictionaries, maybe types, or variants.
|
||||
|
||||
mkValue = v:
|
||||
if builtins.isBool v then
|
||||
mkBoolean v
|
||||
@@ -103,6 +107,21 @@ in rec {
|
||||
|
||||
mkEmptyArray = elemType: mkArray elemType [ ];
|
||||
|
||||
mkVariant = elem:
|
||||
let gvarElem = mkValue elem;
|
||||
in mkPrimitive type.variant gvarElem // {
|
||||
__toString = self: "@${self.type} <${toString self.value}>";
|
||||
};
|
||||
|
||||
mkDictionaryEntry = elems:
|
||||
let
|
||||
gvarElems = map mkValue elems;
|
||||
dictionaryType = type.dictionaryEntryOf (map (e: e.type) gvarElems);
|
||||
in mkPrimitive dictionaryType gvarElems // {
|
||||
__toString = self:
|
||||
"@${self.type} {${concatMapStringsSep "," toString self.value}}";
|
||||
};
|
||||
|
||||
mkNothing = elemType: mkMaybe elemType null;
|
||||
|
||||
mkJust = elem: let gvarElem = mkValue elem; in mkMaybe gvarElem.type gvarElem;
|
||||
@@ -122,8 +141,9 @@ in rec {
|
||||
};
|
||||
|
||||
mkString = v:
|
||||
mkPrimitive type.string v // {
|
||||
__toString = self: "'${escape [ "'" "\\" ] self.value}'";
|
||||
let sanitize = s: replaceStrings [ "\n" ] [ "\\n" ] (escape [ "'" "\\" ] s);
|
||||
in mkPrimitive type.string v // {
|
||||
__toString = self: "'${sanitize self.value}'";
|
||||
};
|
||||
|
||||
mkObjectpath = v:
|
||||
|
||||
@@ -7,6 +7,58 @@
|
||||
# [1] https://github.com/NixOS/nixpkgs/blob/fca0d6e093c82b31103dc0dacc48da2a9b06e24b/maintainers/maintainer-list.nix#LC1
|
||||
|
||||
{
|
||||
amesgen = {
|
||||
name = "amesgen";
|
||||
email = "amesgen@amesgen.de";
|
||||
github = "amesgen";
|
||||
githubId = 15369874;
|
||||
};
|
||||
austreelis = {
|
||||
email = "github@accounts.austreelis.net";
|
||||
github = "Austreelis";
|
||||
githubId = 56743515;
|
||||
name = "Morgane Austreelis";
|
||||
};
|
||||
blmhemu = {
|
||||
name = "blmhemu";
|
||||
email = "19410501+blmhemu@users.noreply.github.com";
|
||||
github = "blmhemu";
|
||||
githubId = 19410501;
|
||||
};
|
||||
bertof = {
|
||||
name = "bertof";
|
||||
email = "berto.f@protonmail.com";
|
||||
github = "bertof";
|
||||
githubId = 9915675;
|
||||
};
|
||||
CarlosLoboxyz = {
|
||||
name = "Carlos Lobo";
|
||||
email = "86011416+CarlosLoboxyz@users.noreply.github.com";
|
||||
github = "CarlosLoboxyz";
|
||||
githubId = 86011416;
|
||||
};
|
||||
d-dervishi = {
|
||||
email = "david.dervishi@epfl.ch";
|
||||
github = "d-dervishi";
|
||||
githubId = 61125355;
|
||||
name = "David Dervishi";
|
||||
keys = [{
|
||||
longKeyId = "rsa4096/0xB1C012F0E7697195";
|
||||
fingerprint = "4C92 E3B0 21B5 5562 A1E0 CE3D B1C0 12F0 E769 7195";
|
||||
}];
|
||||
};
|
||||
dwagenk = {
|
||||
email = "dwagenk@mailbox.org";
|
||||
github = "dwagenk";
|
||||
githubId = 32838899;
|
||||
name = "Daniel Wagenknecht";
|
||||
};
|
||||
jkarlson = {
|
||||
email = "jekarlson@gmail.com";
|
||||
github = "jkarlson";
|
||||
githubId = 1204734;
|
||||
name = "Emil Karlson";
|
||||
};
|
||||
justinlovinger = {
|
||||
name = "Justin Lovinger";
|
||||
email = "git@justinlovinger.com";
|
||||
@@ -25,10 +77,281 @@
|
||||
github = "cwyc";
|
||||
githubId = 16950437;
|
||||
};
|
||||
chisui = {
|
||||
name = "Philipp Dargel";
|
||||
email = "chisui@users.noreply.github.com";
|
||||
github = "chisui";
|
||||
githubId = 4526429;
|
||||
};
|
||||
foo-dogsquared = {
|
||||
name = "Gabriel Arazas";
|
||||
email = "foo.dogsquared@gmail.com";
|
||||
github = "foo-dogsquared";
|
||||
githubId = 34962634;
|
||||
};
|
||||
olmokramer = {
|
||||
name = "Olmo Kramer";
|
||||
email = "olmokramer@users.noreply.github.com";
|
||||
github = "olmokramer";
|
||||
githubId = 3612514;
|
||||
};
|
||||
iosmanthus = {
|
||||
name = "iosmanthus";
|
||||
email = "myosmanthustree@gmail.com";
|
||||
github = "iosmanthus";
|
||||
githubId = 16307070;
|
||||
};
|
||||
kalhauge = {
|
||||
name = "Christian Gram Kalhauge";
|
||||
email = "kalhauge@users.noreply.github.com";
|
||||
github = "kalhauge";
|
||||
githubId = 1182166;
|
||||
};
|
||||
kamadorueda = {
|
||||
name = "Kevin Amado";
|
||||
email = "kamadorueda@gmail.com";
|
||||
github = "kamadorueda";
|
||||
githubId = 47480384;
|
||||
keys = [{
|
||||
longkeyid = "rsa4096/0x04D0CEAF916A9A40";
|
||||
fingerprint = "2BE3 BAFD 793E A349 ED1F F00F 04D0 CEAF 916A 9A40";
|
||||
}];
|
||||
};
|
||||
katexochen = {
|
||||
name = "Paul Meyer";
|
||||
email = "49727155+katexochen@users.noreply.github.com";
|
||||
github = "katexochen";
|
||||
githubId = 49727155;
|
||||
};
|
||||
kubukoz = {
|
||||
name = "Jakub Kozłowski";
|
||||
email = "kubukoz@users.noreply.github.com";
|
||||
github = "kubukoz";
|
||||
githubId = 894884;
|
||||
};
|
||||
loicreynier = {
|
||||
name = "Loïc Reynier";
|
||||
email = "loic@loireynier.fr";
|
||||
github = "loicreynier";
|
||||
githubId = 88983487;
|
||||
};
|
||||
matrss = {
|
||||
name = "Matthias Riße";
|
||||
email = "matrss@users.noreply.github.com";
|
||||
github = "matrss";
|
||||
githubId = 9308656;
|
||||
};
|
||||
mforster = {
|
||||
name = "Michael Forster";
|
||||
email = "email@michael-forster.de";
|
||||
github = "MForster";
|
||||
githubId = 4067975;
|
||||
};
|
||||
mifom = {
|
||||
name = "mifom";
|
||||
email = "mifom@users.noreply.github.com";
|
||||
github = "mifom";
|
||||
githubId = 23462908;
|
||||
};
|
||||
seylerius = {
|
||||
email = "sable@seyleri.us";
|
||||
name = "Sable Seyler";
|
||||
github = "seylerius";
|
||||
githubId = 1145981;
|
||||
keys = [{
|
||||
logkeyid = "rsa4096/0x68BF2EAE6D91CAFF";
|
||||
fingerprint = "F0E0 0311 126A CD72 4392 25E6 68BF 2EAE 6D91 CAFF";
|
||||
}];
|
||||
};
|
||||
fendse = {
|
||||
email = "46252070+Fendse@users.noreply.github.com";
|
||||
github = "Fendse";
|
||||
githubId = 46252070;
|
||||
name = "Sara Johnsson";
|
||||
};
|
||||
florpe = {
|
||||
email = "jens.krewald@gmail.com";
|
||||
github = "florpe";
|
||||
githubId = 53856373;
|
||||
name = "Jens Krewald";
|
||||
};
|
||||
GaetanLepage = {
|
||||
email = "gaetan@glepage.com";
|
||||
github = "GaetanLepage";
|
||||
githubId = 33058747;
|
||||
name = "Gaetan Lepage";
|
||||
};
|
||||
maximsmol = {
|
||||
email = "maximsmol@gmail.com";
|
||||
github = "maximsmol";
|
||||
githubId = 1472826;
|
||||
name = "Max Smolin";
|
||||
};
|
||||
msfjarvis = {
|
||||
email = "me@msfjarvis.dev";
|
||||
github = "msfjarvis";
|
||||
githubId = "13348378";
|
||||
name = "Harsh Shandilya";
|
||||
keys = [{
|
||||
longkeyid = "rsa4096/0xB7843F823355E9B9";
|
||||
fingerprint = "8F87 050B 0F9C B841 1515 7399 B784 3F82 3355 E9B9";
|
||||
}];
|
||||
};
|
||||
ambroisie = {
|
||||
email = "bruno.home-manager@belanyi.fr";
|
||||
github = "ambroisie";
|
||||
githubId = 12465195;
|
||||
name = "Bruno BELANYI";
|
||||
};
|
||||
malvo = {
|
||||
email = "malte@malvo.org";
|
||||
github = "malte-v";
|
||||
githubId = 34393802;
|
||||
name = "Malte Voos";
|
||||
};
|
||||
kranzes = {
|
||||
email = "personal@ilanjoselevich.com";
|
||||
github = "Kranzes";
|
||||
githubId = 56614642;
|
||||
name = "Ilan Joselevich";
|
||||
};
|
||||
mager = {
|
||||
email = "andreas@mager.eu";
|
||||
github = "AndreasMager";
|
||||
githubId = 5646732;
|
||||
name = "Andreas Mager";
|
||||
};
|
||||
bjpbakker = {
|
||||
email = "bart@thesoftwarecraft.com";
|
||||
github = "bjpbakker";
|
||||
githubId = 605641;
|
||||
name = "Bart Bakker";
|
||||
};
|
||||
jrobsonchase = {
|
||||
email = "josh@robsonchase.com";
|
||||
github = "jrobsonchase";
|
||||
githubId = 1553581;
|
||||
name = "Josh Robson Chase";
|
||||
};
|
||||
hawkw = {
|
||||
name = "Eliza Weisman";
|
||||
email = "eliza@elizas.website";
|
||||
github = "hawkw";
|
||||
githubId = 2796466;
|
||||
};
|
||||
pamplemousse = {
|
||||
name = "Xavier Maso";
|
||||
email = "xav.maso@gmail.com";
|
||||
github = "pamplemousse";
|
||||
githubId = 2647236;
|
||||
};
|
||||
onny = {
|
||||
name = "onny";
|
||||
email = "onny@project-insanity.org";
|
||||
github = "onny";
|
||||
githubId = 757752;
|
||||
};
|
||||
aheaume = {
|
||||
name = "aheaume";
|
||||
email = "aheaume@users.noreply.github.com";
|
||||
github = "aheaume";
|
||||
githubId = 13830042;
|
||||
};
|
||||
t4ccer = {
|
||||
name = "t4ccer";
|
||||
email = "t4ccer@users.noreply.github.com";
|
||||
github = "t4ccer";
|
||||
githubId = 64430288;
|
||||
};
|
||||
nurelin = {
|
||||
name = "nurelin";
|
||||
email = "nurelin@users.noreply.github.com";
|
||||
github = "nurelin";
|
||||
githubId = 5276274;
|
||||
};
|
||||
pltanton = {
|
||||
name = "pltanton";
|
||||
email = "plotnikovanton@gmail.com";
|
||||
github = "pltanton";
|
||||
githubId = 4561823;
|
||||
};
|
||||
Philipp-M = {
|
||||
email = "philipp@mildenberger.me";
|
||||
github = "Philipp-M";
|
||||
githubId = 9267430;
|
||||
name = "Philipp Mildenberger";
|
||||
};
|
||||
pinage404 = {
|
||||
name = "pinage404";
|
||||
email = "pinage404@gmail.com";
|
||||
github = "pinage404";
|
||||
githubId = 6325757;
|
||||
};
|
||||
podocarp = {
|
||||
name = "Jia Xiaodong";
|
||||
email = "xdjiaxd@gmail.com";
|
||||
github = "podocarp";
|
||||
githubId = 10473184;
|
||||
};
|
||||
mainrs = {
|
||||
name = "mainrs";
|
||||
email = "5113257+mainrs@users.noreply.github.com";
|
||||
github = "mainrs";
|
||||
githubId = 5113257;
|
||||
};
|
||||
kmaasrud = {
|
||||
name = "Knut Magnus Aasrud";
|
||||
email = "km@aasrud.com";
|
||||
github = "kmaasrud";
|
||||
githubId = 54394333;
|
||||
};
|
||||
sebtm = {
|
||||
name = "Sebastian Sellmeier";
|
||||
email = "sebtm@users.noreply.github.com";
|
||||
github = "sebtm";
|
||||
githubId = 17243347;
|
||||
};
|
||||
rosuavio = {
|
||||
name = "Rosario Pulella";
|
||||
email = "RosarioPulella@gmail.com";
|
||||
github = "Rosuavio";
|
||||
githubId = 7164552;
|
||||
};
|
||||
rszamszur = {
|
||||
name = "Radosław Szamszur";
|
||||
email = "radoslawszamszur@gmail.com";
|
||||
github = "rszamszur";
|
||||
githubId = 10353018;
|
||||
};
|
||||
rcerc = {
|
||||
name = "rcerc";
|
||||
email = "88944439+rcerc@users.noreply.github.com";
|
||||
github = "rcerc";
|
||||
githubId = 88944439;
|
||||
keys = [{
|
||||
longkeyid = "ed25519/0x3F98EC7EC2B87ED1";
|
||||
fingerprint = "D5D6 FD1F 0D9A 3284 FB9B C26D 3F98 EC7E C2B8 7ED1";
|
||||
}];
|
||||
};
|
||||
mtoohey = {
|
||||
name = "Matthew Toohey";
|
||||
email = "contact@mtoohey.com";
|
||||
github = "mtoohey31";
|
||||
githubId = 36740602;
|
||||
};
|
||||
lukasngl = {
|
||||
name = "Lukas Nagel";
|
||||
email = "69244516+lukasngl@users.noreply.github.com";
|
||||
github = "lukasngl";
|
||||
githubId = 69244516;
|
||||
};
|
||||
toastal = {
|
||||
email = "toastal+nix@posteo.net";
|
||||
matrix = "@toastal:matrix.org";
|
||||
github = "toastal";
|
||||
githubId = 561087;
|
||||
name = "toastal";
|
||||
keys =
|
||||
[{ fingerprint = "7944 74B7 D236 DAB9 C9EF E7F9 5CCE 6F14 66D4 7C9E"; }];
|
||||
};
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user