mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
Compare commits
308 Commits
sumner/296
...
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 |
149
.github/CODEOWNERS
vendored
149
.github/CODEOWNERS
vendored
@@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
/flake.nix @bqv @kisik21
|
/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/home-environment.nix @rycee
|
||||||
|
|
||||||
/modules/i18n/input-method @Kranzes
|
/modules/i18n/input-method @Kranzes
|
||||||
@@ -11,16 +18,14 @@
|
|||||||
|
|
||||||
/modules/misc/dconf.nix @rycee
|
/modules/misc/dconf.nix @rycee
|
||||||
|
|
||||||
|
/modules/misc/editorconfig.nix @loicreynier
|
||||||
|
/test/modules/misc/editorconfig @loicreynier
|
||||||
|
|
||||||
/modules/misc/fontconfig.nix @rycee
|
/modules/misc/fontconfig.nix @rycee
|
||||||
/tests/modules/misc/fontconfig @rycee
|
/tests/modules/misc/fontconfig @rycee
|
||||||
|
|
||||||
/modules/misc/gtk.nix @rycee
|
/modules/misc/gtk.nix @rycee
|
||||||
|
|
||||||
/modules/config/home-cursor.nix @polykernel @league
|
|
||||||
|
|
||||||
/modules/config/i18n.nix @midchildan
|
|
||||||
/tests/modules/config/i18n @midchildan
|
|
||||||
|
|
||||||
/modules/misc/news.nix @rycee
|
/modules/misc/news.nix @rycee
|
||||||
|
|
||||||
/modules/misc/nix.nix @polykernel
|
/modules/misc/nix.nix @polykernel
|
||||||
@@ -54,6 +59,12 @@
|
|||||||
/tests/modules/misc/xdg/desktop-full-expected.desktop @cwyc
|
/tests/modules/misc/xdg/desktop-full-expected.desktop @cwyc
|
||||||
/tests/modules/misc/xdg/desktop-min-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/aria2.nix @JustinLovinger
|
||||||
|
|
||||||
/modules/programs/autojump.nix @evanjs
|
/modules/programs/autojump.nix @evanjs
|
||||||
@@ -66,6 +77,8 @@
|
|||||||
|
|
||||||
/modules/programs/bash.nix @rycee
|
/modules/programs/bash.nix @rycee
|
||||||
|
|
||||||
|
/modules/programs/bashmount.nix @AndersonTorres
|
||||||
|
|
||||||
/modules/programs/bat.nix @marsam
|
/modules/programs/bat.nix @marsam
|
||||||
|
|
||||||
/modules/programs/beets.nix @rycee
|
/modules/programs/beets.nix @rycee
|
||||||
@@ -73,12 +86,17 @@
|
|||||||
/modules/programs/bottom.nix @polykernel
|
/modules/programs/bottom.nix @polykernel
|
||||||
/tests/modules/programs/bottom @polykernel
|
/tests/modules/programs/bottom @polykernel
|
||||||
|
|
||||||
/modules/programs/broot.nix @aheaume
|
/modules/programs/broot.nix @aheaume @dermetfan
|
||||||
|
|
||||||
|
/modules/programs/btop.nix @GaetanLepage
|
||||||
|
/tests/modules/programs/btop.nix @GaetanLepage
|
||||||
|
|
||||||
/modules/programs/dircolors.nix @JustinLovinger
|
/modules/programs/dircolors.nix @JustinLovinger
|
||||||
|
|
||||||
/modules/programs/direnv.nix @rycee
|
/modules/programs/direnv.nix @rycee
|
||||||
|
|
||||||
|
/modules/programs/discocss.nix @Kranzes
|
||||||
|
|
||||||
/modules/programs/eclipse.nix @rycee
|
/modules/programs/eclipse.nix @rycee
|
||||||
|
|
||||||
/modules/programs/emacs.nix @rycee
|
/modules/programs/emacs.nix @rycee
|
||||||
@@ -95,6 +113,9 @@
|
|||||||
/modules/services/fusuma.nix @iosmanthus
|
/modules/services/fusuma.nix @iosmanthus
|
||||||
/tests/modules/services/fusuma @iosmanthus
|
/tests/modules/services/fusuma @iosmanthus
|
||||||
|
|
||||||
|
/modules/programs/gallery-dl.nix @marsam
|
||||||
|
/tests/modules/programs/gallery-dl @marsam
|
||||||
|
|
||||||
/modules/programs/gh.nix @Gerschtli @berbiche
|
/modules/programs/gh.nix @Gerschtli @berbiche
|
||||||
/tests/modules/programs/gh @Gerschtli @berbiche
|
/tests/modules/programs/gh @Gerschtli @berbiche
|
||||||
|
|
||||||
@@ -107,28 +128,38 @@
|
|||||||
|
|
||||||
/modules/programs/go.nix @rvolosatovs
|
/modules/programs/go.nix @rvolosatovs
|
||||||
|
|
||||||
|
/modules/programs/havoc.nix @AndersonTorres
|
||||||
|
|
||||||
/modules/programs/helix.nix @Philipp-M
|
/modules/programs/helix.nix @Philipp-M
|
||||||
/tests/modules/programs/helix @Philipp-M
|
/tests/modules/programs/helix @Philipp-M
|
||||||
|
|
||||||
/modules/programs/hexchat.nix @thiagokokada
|
/modules/programs/hexchat.nix @thiagokokada
|
||||||
/tests/modules/programs/hexchat @thiagokokada
|
/tests/modules/programs/hexchat @thiagokokada
|
||||||
|
|
||||||
/modules/programs/himalaya.nix @ambroisie
|
/modules/programs/himalaya.nix @toastal
|
||||||
/tests/modules/programs/himalaya @ambroisie
|
/tests/modules/programs/himalaya @toastal
|
||||||
|
|
||||||
/modules/programs/home-manager.nix @rycee
|
/modules/programs/home-manager.nix @rycee
|
||||||
|
|
||||||
/modules/programs/htop.nix @bjpbakker
|
/modules/programs/htop.nix @bjpbakker
|
||||||
/tests/modules/htop @bjpbakker
|
/tests/modules/htop @bjpbakker
|
||||||
|
|
||||||
|
/modules/programs/hyfetch.nix @lilyinstarlight
|
||||||
|
/tests/modules/programs/hyfetch @lilyinstarlight
|
||||||
|
|
||||||
/modules/programs/i3status.nix @JustinLovinger
|
/modules/programs/i3status.nix @JustinLovinger
|
||||||
|
|
||||||
/modules/programs/i3status-rust.nix @workflow
|
/modules/programs/i3status-rust.nix @workflow
|
||||||
|
|
||||||
|
/modules/programs/ion.nix @jo1gi
|
||||||
|
|
||||||
/modules/programs/java.nix @ShamrockLee
|
/modules/programs/java.nix @ShamrockLee
|
||||||
|
|
||||||
/modules/programs/just.nix @maximsmol
|
/modules/programs/just.nix @maximsmol
|
||||||
|
|
||||||
|
/modules/programs/k9s.nix @katexochen
|
||||||
|
/tests/modules/programs/k9s @katexochen
|
||||||
|
|
||||||
/modules/programs/keychain.nix @marsam
|
/modules/programs/keychain.nix @marsam
|
||||||
|
|
||||||
/modules/programs/kodi.nix @dwagenk
|
/modules/programs/kodi.nix @dwagenk
|
||||||
@@ -136,6 +167,8 @@
|
|||||||
|
|
||||||
/modules/programs/lazygit.nix @kalhauge
|
/modules/programs/lazygit.nix @kalhauge
|
||||||
|
|
||||||
|
/modules/programs/ledger.nix @marsam
|
||||||
|
|
||||||
/modules/programs/less.nix @pamplemousse
|
/modules/programs/less.nix @pamplemousse
|
||||||
/tests/modules/programs/less @pamplemousse
|
/tests/modules/programs/less @pamplemousse
|
||||||
|
|
||||||
@@ -144,8 +177,13 @@
|
|||||||
/modules/programs/lf.nix @owm111
|
/modules/programs/lf.nix @owm111
|
||||||
/tests/modules/programs/lf @owm111
|
/tests/modules/programs/lf @owm111
|
||||||
|
|
||||||
|
/modules/programs/librewolf.nix @onny
|
||||||
|
|
||||||
/modules/programs/lieer.nix @tadfisher
|
/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/lsd.nix @marsam
|
||||||
|
|
||||||
/modules/programs/matplotlib.nix @rprospero
|
/modules/programs/matplotlib.nix @rprospero
|
||||||
@@ -158,11 +196,17 @@
|
|||||||
|
|
||||||
/modules/programs/mcfly.nix @marsam
|
/modules/programs/mcfly.nix @marsam
|
||||||
|
|
||||||
|
/modules/programs/micro.nix @MForster
|
||||||
|
/tests/modules/programs/micro @MForster
|
||||||
|
|
||||||
/modules/programs/mpv.nix @tadeokondrak @thiagokokada
|
/modules/programs/mpv.nix @tadeokondrak @thiagokokada
|
||||||
/tests/modules/programs/mpv @thiagokokada
|
/tests/modules/programs/mpv @thiagokokada
|
||||||
|
|
||||||
/modules/programs/mu.nix @KarlJoad
|
/modules/programs/mu.nix @KarlJoad
|
||||||
|
|
||||||
|
/modules/programs/mujmap.nix @elizagamedev
|
||||||
|
/tests/modules/programs/mujmap @elizagamedev
|
||||||
|
|
||||||
/modules/programs/navi.nix @marsam
|
/modules/programs/navi.nix @marsam
|
||||||
|
|
||||||
/modules/programs/ncmpcpp.nix @olmokramer
|
/modules/programs/ncmpcpp.nix @olmokramer
|
||||||
@@ -177,6 +221,9 @@
|
|||||||
/modules/programs/newsboat.nix @sumnerevans
|
/modules/programs/newsboat.nix @sumnerevans
|
||||||
/tests/modules/programs/newsboat @sumnerevans
|
/tests/modules/programs/newsboat @sumnerevans
|
||||||
|
|
||||||
|
/modules/programs/nheko.nix @gvolpe
|
||||||
|
/tests/modules/programs/nheko @gvolpe
|
||||||
|
|
||||||
/modules/programs/nix-index.nix @ambroisie
|
/modules/programs/nix-index.nix @ambroisie
|
||||||
/tests/modules/programs/nix-index @ambroisie
|
/tests/modules/programs/nix-index @ambroisie
|
||||||
|
|
||||||
@@ -192,6 +239,9 @@
|
|||||||
|
|
||||||
/modules/programs/octant.nix @06kellyjac
|
/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/opam.nix @marsam
|
||||||
|
|
||||||
/modules/programs/openssh.nix @rycee
|
/modules/programs/openssh.nix @rycee
|
||||||
@@ -205,8 +255,17 @@
|
|||||||
|
|
||||||
/modules/programs/pidgin.nix @rycee
|
/modules/programs/pidgin.nix @rycee
|
||||||
|
|
||||||
|
/modules/programs/pistol.nix @mtoohey31
|
||||||
|
/tests/modules/programs/pistol @mtoohey31
|
||||||
|
|
||||||
/modules/programs/piston-cli.nix @ethancedwards8
|
/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/powerline-go.nix @DamienCassou
|
||||||
|
|
||||||
/modules/programs/pubs.nix @loicreynier
|
/modules/programs/pubs.nix @loicreynier
|
||||||
@@ -247,28 +306,45 @@
|
|||||||
|
|
||||||
/modules/programs/starship.nix @marsam
|
/modules/programs/starship.nix @marsam
|
||||||
|
|
||||||
|
/modules/programs/swaylock.nix @rcerc
|
||||||
|
/tests/modules/programs/swaylock @rcerc
|
||||||
|
|
||||||
/modules/programs/tealdeer.nix @marsam
|
/modules/programs/tealdeer.nix @marsam
|
||||||
|
|
||||||
/modules/programs/terminator.nix @chisui
|
/modules/programs/terminator.nix @chisui
|
||||||
|
|
||||||
/modules/programs/texlive.nix @rycee
|
/modules/programs/texlive.nix @rycee
|
||||||
|
|
||||||
|
/modules/programs/thunderbird.nix @d-dervishi
|
||||||
|
/tests/modules/programs/thunderbird @d-dervishi
|
||||||
|
|
||||||
/modules/programs/timidity.nix @amesgen
|
/modules/programs/timidity.nix @amesgen
|
||||||
|
|
||||||
|
/modules/programs/tint2.nix @CarlosLoboxyz
|
||||||
|
|
||||||
/modules/programs/tiny.nix @kmaasrud
|
/modules/programs/tiny.nix @kmaasrud
|
||||||
|
|
||||||
|
/modules/programs/tmate.nix @jlesquembre
|
||||||
|
/tests/modules/programs/tmate @jlesquembre
|
||||||
|
|
||||||
/modules/programs/topgrade.nix @msfjarvis
|
/modules/programs/topgrade.nix @msfjarvis
|
||||||
/tests/modules/programs/topgrade @msfjarvis
|
/tests/modules/programs/topgrade @msfjarvis
|
||||||
|
|
||||||
/mdules/programs/watson.nix @polykernel
|
/modules/programs/watson.nix @polykernel
|
||||||
/tests/modules/programs/watson @polykernel
|
/tests/modules/programs/watson @polykernel
|
||||||
|
|
||||||
/modules/programs/waybar.nix @berbiche
|
/modules/programs/waybar.nix @berbiche
|
||||||
/tests/modules/programs/waybar @berbiche
|
/tests/modules/programs/waybar @berbiche
|
||||||
|
|
||||||
|
/modules/programs/wezterm.nix @blmhemu
|
||||||
|
/tests/modules/programs/wezterm @blmhemu
|
||||||
|
|
||||||
/modules/programs/xmobar.nix @t4ccer
|
/modules/programs/xmobar.nix @t4ccer
|
||||||
/tests/modules/programs/xmobar @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/z-lua.nix @marsam
|
||||||
|
|
||||||
/modules/programs/zathura.nix @rprospero
|
/modules/programs/zathura.nix @rprospero
|
||||||
@@ -284,6 +360,11 @@
|
|||||||
|
|
||||||
/modules/services/betterlockscreen.nix @SebTM
|
/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/caffeine.nix @uvNikita
|
||||||
|
|
||||||
/modules/services/cbatticon.nix @pmiddend
|
/modules/services/cbatticon.nix @pmiddend
|
||||||
@@ -313,7 +394,7 @@
|
|||||||
/modules/services/fnott.nix @polykernel
|
/modules/services/fnott.nix @polykernel
|
||||||
/tests/modules/services/fnott @polykernel
|
/tests/modules/services/fnott @polykernel
|
||||||
|
|
||||||
/modules/services/git-sync.nix @IvanMalison
|
/modules/services/git-sync.nix @IvanMalison @cab404
|
||||||
|
|
||||||
/modules/services/gnome-keyring.nix @rycee
|
/modules/services/gnome-keyring.nix @rycee
|
||||||
|
|
||||||
@@ -374,6 +455,9 @@
|
|||||||
|
|
||||||
/modules/services/pasystray.nix @pltanton
|
/modules/services/pasystray.nix @pltanton
|
||||||
|
|
||||||
|
/modules/services/picom.nix @thiagokokada
|
||||||
|
/tests/modules/services/picom @thiagokokada
|
||||||
|
|
||||||
/modules/services/pbgopy.nix @ivarwithoutbones
|
/modules/services/pbgopy.nix @ivarwithoutbones
|
||||||
/tests/modules/services/pbgopy @ivarwithoutbones
|
/tests/modules/services/pbgopy @ivarwithoutbones
|
||||||
|
|
||||||
@@ -382,22 +466,38 @@
|
|||||||
/modules/services/playerctld.nix @fendse
|
/modules/services/playerctld.nix @fendse
|
||||||
/tests/modules/playerctld @fendse
|
/tests/modules/playerctld @fendse
|
||||||
|
|
||||||
|
/modules/services/plex-mpv-shim.nix @starcraft66
|
||||||
|
|
||||||
/modules/services/poweralertd.nix @ThibautMarty
|
/modules/services/poweralertd.nix @ThibautMarty
|
||||||
|
|
||||||
|
/modules/services/pueue.nix @AndersonTorres
|
||||||
|
|
||||||
/modules/services/pulseeffects.nix @jonringer
|
/modules/services/pulseeffects.nix @jonringer
|
||||||
|
|
||||||
/modules/services/random-background.nix @rycee
|
/modules/services/random-background.nix @rycee
|
||||||
|
|
||||||
|
/modules/services/recoll.nix @foo-dogsquared
|
||||||
|
/tests/modules/recoll @foo-dogsquared
|
||||||
|
|
||||||
/modules/services/redshift-gammastep @rycee @petabyteboy @thiagokokada
|
/modules/services/redshift-gammastep @rycee @petabyteboy @thiagokokada
|
||||||
/tests/modules/redshift-gammastep @thiagokokada
|
/tests/modules/redshift-gammastep @thiagokokada
|
||||||
|
|
||||||
|
/modules/services/safeeyes @Rosuavio
|
||||||
|
|
||||||
/modules/services/screen-locker.nix @jrobsonchase @rszamszur
|
/modules/services/screen-locker.nix @jrobsonchase @rszamszur
|
||||||
/tests/modules/services/screen-locker @jrobsonchase @rszamszur
|
/tests/modules/services/screen-locker @jrobsonchase @rszamszur
|
||||||
|
|
||||||
|
/modules/services/sctd.nix @somasis
|
||||||
|
|
||||||
/modules/services/status-notifier-watcher.nix @pltanton
|
/modules/services/status-notifier-watcher.nix @pltanton
|
||||||
|
|
||||||
|
/modules/services/swayidle.nix @c0deaddict
|
||||||
|
/tests/modules/services/swayidle @c0deaddict
|
||||||
|
|
||||||
/modules/services/syncthing.nix @rycee
|
/modules/services/syncthing.nix @rycee
|
||||||
|
|
||||||
|
/modules/services/systembus-notify.nix @asymmetric
|
||||||
|
|
||||||
/modules/services/taffybar.nix @rycee
|
/modules/services/taffybar.nix @rycee
|
||||||
|
|
||||||
/modules/services/tahoe-lafs.nix @rycee
|
/modules/services/tahoe-lafs.nix @rycee
|
||||||
@@ -411,12 +511,17 @@
|
|||||||
/tests/modules/services/twmn @Austreelis
|
/tests/modules/services/twmn @Austreelis
|
||||||
|
|
||||||
/modules/services/udiskie.nix @rycee
|
/modules/services/udiskie.nix @rycee
|
||||||
|
/tests/modules/services/udiskie @rycee
|
||||||
|
|
||||||
/modules/services/unison.nix @pacien
|
/modules/services/unison.nix @pacien
|
||||||
|
|
||||||
|
/modules/services/volnoti.nix @IvanMalison
|
||||||
|
|
||||||
/modules/services/window-managers/bspwm @ncfavier
|
/modules/services/window-managers/bspwm @ncfavier
|
||||||
/tests/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
|
/modules/services/window-managers/herbstluftwm @olmokramer
|
||||||
/tests/modules/services/window-managers/herbstluftwm @olmokramer
|
/tests/modules/services/window-managers/herbstluftwm @olmokramer
|
||||||
|
|
||||||
@@ -430,6 +535,9 @@
|
|||||||
|
|
||||||
/modules/services/window-managers/i3-sway/swaynag.nix @polykernel
|
/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
|
/modules/services/wlsunset.nix @matrss
|
||||||
/tests/modules/services/wlsunset @matrss
|
/tests/modules/services/wlsunset @matrss
|
||||||
|
|
||||||
@@ -437,7 +545,7 @@
|
|||||||
|
|
||||||
/modules/services/xembed-sni-proxy.nix @rycee
|
/modules/services/xembed-sni-proxy.nix @rycee
|
||||||
|
|
||||||
/modules/services/xidlehook.nix @dschrempf
|
/modules/services/xidlehook.nix @dschrempf @bertof
|
||||||
|
|
||||||
/modules/services/xscreensaver.nix @rycee
|
/modules/services/xscreensaver.nix @rycee
|
||||||
|
|
||||||
@@ -445,24 +553,9 @@
|
|||||||
|
|
||||||
/modules/systemd.nix @rycee
|
/modules/systemd.nix @rycee
|
||||||
|
|
||||||
/modules/xresources.nix @rycee
|
|
||||||
|
|
||||||
/modules/xsession.nix @rycee
|
|
||||||
|
|
||||||
/modules/services/volnoti.nix @IvanMalison
|
|
||||||
|
|
||||||
/modules/services/systembus-notify.nix @asymmetric
|
|
||||||
|
|
||||||
/modules/targets/darwin @midchildan
|
/modules/targets/darwin @midchildan
|
||||||
/tests/modules/targets-darwin @midchildan
|
/tests/modules/targets-darwin @midchildan
|
||||||
|
|
||||||
/modules/programs/tint2.nix @CarlosLoboxyz
|
/modules/xresources.nix @rycee
|
||||||
|
|
||||||
Makefile @thiagokokada
|
/modules/xsession.nix @rycee
|
||||||
|
|
||||||
/modules/services/swayidle.nix @c0deaddict
|
|
||||||
/tests/modules/services/swayidle @c0deaddict
|
|
||||||
|
|
||||||
/modules/programs/ion.nix @jo1gi
|
|
||||||
|
|
||||||
/modules/services/plex-mpv-shim.nix @starcraft66
|
|
||||||
|
|||||||
9
.github/ISSUE_TEMPLATE/issue.yaml
vendored
9
.github/ISSUE_TEMPLATE/issue.yaml
vendored
@@ -8,6 +8,15 @@ labels: [bug, triage]
|
|||||||
assignees: [rycee, berbiche, sumnerevans]
|
assignees: [rycee, berbiche, sumnerevans]
|
||||||
|
|
||||||
body:
|
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
|
- type: checkboxes
|
||||||
attributes:
|
attributes:
|
||||||
label: Is there an existing issue for this?
|
label: Is there an existing issue for this?
|
||||||
|
|||||||
2
.github/dependabot.yml
vendored
2
.github/dependabot.yml
vendored
@@ -10,7 +10,7 @@ updates:
|
|||||||
|
|
||||||
- package-ecosystem: "github-actions"
|
- package-ecosystem: "github-actions"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
target-branch: "release-21.11"
|
target-branch: "release-22.05"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
commit-message:
|
commit-message:
|
||||||
|
|||||||
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/**/*
|
||||||
|
|
||||||
7
.github/workflows/github_pages.yml
vendored
7
.github/workflows/github_pages.yml
vendored
@@ -11,13 +11,14 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: cachix/install-nix-action@v17
|
- uses: cachix/install-nix-action@v21
|
||||||
with:
|
with:
|
||||||
|
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- uses: cachix/cachix-action@v10
|
- uses: cachix/cachix-action@v12
|
||||||
with:
|
with:
|
||||||
name: nix-community
|
name: nix-community
|
||||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
- run: |
|
- run: |
|
||||||
nix-build -A docs.html
|
nix-build -A docs.html
|
||||||
cp -r result/share/doc/home-manager public
|
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
|
||||||
|
|
||||||
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@@ -12,13 +12,14 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: cachix/install-nix-action@v17
|
- uses: cachix/install-nix-action@v21
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
|
||||||
- uses: cachix/cachix-action@v10
|
nix_path: nixpkgs=channel:nixos-22.11
|
||||||
|
- uses: cachix/cachix-action@v12
|
||||||
with:
|
with:
|
||||||
name: nix-community
|
name: nix-community
|
||||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
- run: |
|
- run: |
|
||||||
if grep -R --exclude stdlib-extended.nix literalExample modules ; then
|
if grep -R --exclude stdlib-extended.nix literalExample modules ; then
|
||||||
echo "Error: literalExample should be replaced by literalExpression" > /dev/stderr
|
echo "Error: literalExample should be replaced by literalExpression" > /dev/stderr
|
||||||
|
|||||||
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*
|
/result*
|
||||||
|
|||||||
@@ -4,17 +4,8 @@ variables:
|
|||||||
NIX_PATH: "nixpkgs=channel:nixos-unstable"
|
NIX_PATH: "nixpkgs=channel:nixos-unstable"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
Run tests:
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- nix-shell --pure tests -A run.files-text
|
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_BRANCH == "master"
|
|
||||||
when: always
|
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
|
|||||||
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
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
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
26
README.md
26
README.md
@@ -6,11 +6,17 @@ using the [Nix][] package manager together with the Nix libraries
|
|||||||
found in [Nixpkgs][]. It allows declarative configuration of user
|
found in [Nixpkgs][]. It allows declarative configuration of user
|
||||||
specific (non global) packages and dotfiles.
|
specific (non global) packages and dotfiles.
|
||||||
|
|
||||||
|
Usage
|
||||||
|
-----
|
||||||
|
|
||||||
Before attempting to use Home Manager please read the warning below.
|
Before attempting to use Home Manager please read the warning below.
|
||||||
|
|
||||||
For a more systematic overview of Home Manager and its available
|
For a systematic overview of Home Manager and its available options,
|
||||||
options, please see the Home Manager [manual][manual] and
|
please see
|
||||||
[options][configuration options].
|
|
||||||
|
- 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
|
If you would like to contribute to Home Manager
|
||||||
then please have a look at the [contributing][] chapter of the manual.
|
then please have a look at the [contributing][] chapter of the manual.
|
||||||
@@ -36,7 +42,7 @@ will write to your dconf store and cannot tell whether a configuration
|
|||||||
that it is about to be overwritten was from a previous Home Manager
|
that it is about to be overwritten was from a previous Home Manager
|
||||||
generation or from manual configuration.
|
generation or from manual configuration.
|
||||||
|
|
||||||
Home Manager targets [NixOS][] unstable and NixOS version 21.11 (the
|
Home Manager targets [NixOS][] unstable and NixOS version 22.11 (the
|
||||||
current stable version), it may or may not work on other Linux
|
current stable version), it may or may not work on other Linux
|
||||||
distributions and NixOS versions.
|
distributions and NixOS versions.
|
||||||
|
|
||||||
@@ -101,7 +107,7 @@ Home Manager is developed against `nixpkgs-unstable` branch, which
|
|||||||
often causes it to contain tweaks for changes/packages not yet
|
often causes it to contain tweaks for changes/packages not yet
|
||||||
released in stable NixOS. To avoid breaking users' configurations,
|
released in stable NixOS. To avoid breaking users' configurations,
|
||||||
Home Manager is released in branches corresponding to NixOS releases
|
Home Manager is released in branches corresponding to NixOS releases
|
||||||
(e.g. `release-21.11`). 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
|
modules. If you need a module to be backported, then feel free to open
|
||||||
an issue.
|
an issue.
|
||||||
|
|
||||||
@@ -110,18 +116,18 @@ License
|
|||||||
|
|
||||||
This project is licensed under the terms of the [MIT license](LICENSE).
|
This project is licensed under the terms of the [MIT license](LICENSE).
|
||||||
|
|
||||||
[Nix]: https://nixos.org/nix/
|
[Nix]: https://nixos.org/explore.html
|
||||||
[NixOS]: https://nixos.org/
|
[NixOS]: https://nixos.org/
|
||||||
[Nixpkgs]: https://nixos.org/nixpkgs/
|
[Nixpkgs]: https://github.com/NixOS/nixpkgs
|
||||||
[manual]: https://nix-community.github.io/home-manager/
|
[manual]: https://nix-community.github.io/home-manager/index.html
|
||||||
[contributing]: https://nix-community.github.io/home-manager/#ch-contributing
|
[contributing]: https://nix-community.github.io/home-manager/#ch-contributing
|
||||||
[manual usage]: https://nix-community.github.io/home-manager/#ch-usage
|
[manual usage]: https://nix-community.github.io/home-manager/#ch-usage
|
||||||
[configuration options]: https://nix-community.github.io/home-manager/options.html
|
[configuration options]: https://nix-community.github.io/home-manager/options.html
|
||||||
[#home-manager]: https://webchat.oftc.net/?channels=home-manager
|
[#home-manager]: https://webchat.oftc.net/?channels=home-manager
|
||||||
[OFTC]: https://oftc.net/
|
[OFTC]: https://oftc.net/
|
||||||
[Nix Pills]: https://nixos.org/nixos/nix-pills/
|
[Nix Pills]: https://nixos.org/guides/nix-pills/
|
||||||
[Nix Flakes]: https://nixos.wiki/wiki/Flakes
|
[Nix Flakes]: https://nixos.wiki/wiki/Flakes
|
||||||
[nix-darwin]: https://github.com/LnL7/nix-darwin/
|
[nix-darwin]: https://github.com/LnL7/nix-darwin
|
||||||
[manual standalone install]: https://nix-community.github.io/home-manager/index.html#sec-install-standalone
|
[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 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-darwin install]: https://nix-community.github.io/home-manager/index.html#sec-install-nix-darwin-module
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ When you have made changes to a module, it is a good idea to check that the man
|
|||||||
|
|
||||||
[source,console]
|
[source,console]
|
||||||
$ nix-build -A docs.manPages
|
$ 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
|
==== Add yourself as a module maintainer
|
||||||
|
|
||||||
@@ -155,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 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}
|
{component}: {description}
|
||||||
|
|||||||
@@ -5,12 +5,10 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
nmdSrc = pkgs.fetchFromGitLab {
|
nmdSrc = fetchTarball {
|
||||||
name = "nmd";
|
url =
|
||||||
owner = "rycee";
|
"https://gitlab.com/api/v4/projects/rycee%2Fnmd/repository/archive.tar.gz?sha=b75d312b4f33bd3294cd8ae5c2ca8c6da2afc169";
|
||||||
repo = "nmd";
|
sha256 = "0c2nq28rw4v559s3f1nf6y2p6fladgmbqgbsyf3vzs2przn5qn37";
|
||||||
rev = "de522bdd533350b3afb41e1ce9b3afb72922fba2";
|
|
||||||
sha256 = "1ji4q7b48nnicgpnnl6yb9xb9zfkmmzkch4yifinphw3ag38qrmd";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nmd = import nmdSrc { inherit lib pkgs; };
|
nmd = import nmdSrc { inherit lib pkgs; };
|
||||||
@@ -26,6 +24,8 @@ let
|
|||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dontCheckDefinitions = { _module.check = false; };
|
||||||
|
|
||||||
buildModulesDocs = args:
|
buildModulesDocs = args:
|
||||||
nmd.buildModulesDocs ({
|
nmd.buildModulesDocs ({
|
||||||
moduleRootPaths = [ ./.. ];
|
moduleRootPaths = [ ./.. ];
|
||||||
@@ -43,21 +43,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
nixosModuleDocs = buildModulesDocs {
|
nixosModuleDocs = buildModulesDocs {
|
||||||
modules = let
|
modules = [ ../nixos scrubbedPkgsModule dontCheckDefinitions ];
|
||||||
nixosModule = module: pkgs.path + "/nixos/modules" + module;
|
|
||||||
mockedNixos = with lib; {
|
|
||||||
options = {
|
|
||||||
environment.pathsToLink = mkSinkUndeclaredOptions { };
|
|
||||||
systemd.services = mkSinkUndeclaredOptions { };
|
|
||||||
users.users = mkSinkUndeclaredOptions { };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in [
|
|
||||||
../nixos/default.nix
|
|
||||||
mockedNixos
|
|
||||||
(nixosModule "/misc/assertions.nix")
|
|
||||||
scrubbedPkgsModule
|
|
||||||
];
|
|
||||||
docBook = {
|
docBook = {
|
||||||
id = "nixos-options";
|
id = "nixos-options";
|
||||||
optionIdPrefix = "nixos-opt";
|
optionIdPrefix = "nixos-opt";
|
||||||
@@ -65,22 +51,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
nixDarwinModuleDocs = buildModulesDocs {
|
nixDarwinModuleDocs = buildModulesDocs {
|
||||||
modules = let
|
modules = [ ../nix-darwin scrubbedPkgsModule dontCheckDefinitions ];
|
||||||
nixosModule = module: pkgs.path + "/nixos/modules" + module;
|
|
||||||
mockedNixDarwin = with lib; {
|
|
||||||
options = {
|
|
||||||
environment.pathsToLink = mkSinkUndeclaredOptions { };
|
|
||||||
system.activationScripts.postActivation.text =
|
|
||||||
mkSinkUndeclaredOptions { };
|
|
||||||
users.users = mkSinkUndeclaredOptions { };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in [
|
|
||||||
../nix-darwin/default.nix
|
|
||||||
mockedNixDarwin
|
|
||||||
(nixosModule "/misc/assertions.nix")
|
|
||||||
scrubbedPkgsModule
|
|
||||||
];
|
|
||||||
docBook = {
|
docBook = {
|
||||||
id = "nix-darwin-options";
|
id = "nix-darwin-options";
|
||||||
optionIdPrefix = "nix-darwin-opt";
|
optionIdPrefix = "nix-darwin-opt";
|
||||||
@@ -89,6 +60,7 @@ let
|
|||||||
|
|
||||||
docs = nmd.buildDocBookDocs {
|
docs = nmd.buildDocBookDocs {
|
||||||
pathName = "home-manager";
|
pathName = "home-manager";
|
||||||
|
projectName = "Home Manager";
|
||||||
modulesDocs = [ hmModulesDocs nixDarwinModuleDocs nixosModuleDocs ];
|
modulesDocs = [ hmModulesDocs nixDarwinModuleDocs nixosModuleDocs ];
|
||||||
documentsDirectory = ./.;
|
documentsDirectory = ./.;
|
||||||
documentType = "book";
|
documentType = "book";
|
||||||
|
|||||||
@@ -143,8 +143,8 @@ You can add the `nixpkgs-unstable` channel by running
|
|||||||
|
|
||||||
[source,console]
|
[source,console]
|
||||||
----
|
----
|
||||||
# nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
|
$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
|
||||||
# nix-channel --update
|
$ nix-channel --update
|
||||||
----
|
----
|
||||||
|
|
||||||
Note, the package will not be affected by any package overrides, overlays, etc.
|
Note, the package will not be affected by any package overrides, overlays, etc.
|
||||||
|
|||||||
@@ -41,9 +41,6 @@ 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
|
must be covered by the {nix-allowed-users}[`allowed-users`] Nix
|
||||||
option. On NixOS you can control this option using the
|
option. On NixOS you can control this option using the
|
||||||
{nixos-allowed-users}[`nix.allowedUsers`] system option.
|
{nixos-allowed-users}[`nix.allowedUsers`] system option.
|
||||||
+
|
|
||||||
Note that Nix 2.4 is not yet fully supported. Most significantly, Home
|
|
||||||
Manager is incompatible with the new `nix profile`.
|
|
||||||
|
|
||||||
2. Add the appropriate Home Manager channel. If you are following
|
2. Add the appropriate Home Manager channel. If you are following
|
||||||
Nixpkgs master or an unstable channel you can run
|
Nixpkgs master or an unstable channel you can run
|
||||||
@@ -54,11 +51,11 @@ $ nix-channel --add https://github.com/nix-community/home-manager/archive/master
|
|||||||
$ nix-channel --update
|
$ nix-channel --update
|
||||||
----
|
----
|
||||||
+
|
+
|
||||||
and if you follow a Nixpkgs version 21.11 channel you can run
|
and if you follow a Nixpkgs version 22.11 channel you can run
|
||||||
+
|
+
|
||||||
[source,console]
|
[source,console]
|
||||||
----
|
----
|
||||||
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz home-manager
|
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.11.tar.gz home-manager
|
||||||
$ nix-channel --update
|
$ nix-channel --update
|
||||||
----
|
----
|
||||||
+
|
+
|
||||||
@@ -127,21 +124,21 @@ deployed through NixOps.
|
|||||||
|
|
||||||
To make the NixOS module available for use you must `import` it into
|
To make the NixOS module available for use you must `import` it into
|
||||||
your system configuration. This is most conveniently done by adding a
|
your system configuration. This is most conveniently done by adding a
|
||||||
Home Manager channel. For example, if you are following Nixpkgs master
|
Home Manager channel to the root user. For example, if you are
|
||||||
or an unstable channel, you can run
|
following Nixpkgs master or an unstable channel, you can run
|
||||||
|
|
||||||
[source,console]
|
[source,console]
|
||||||
----
|
----
|
||||||
# nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||||
# nix-channel --update
|
$ sudo nix-channel --update
|
||||||
----
|
----
|
||||||
|
|
||||||
and if you follow a Nixpkgs version 21.11 channel, you can run
|
and if you follow a Nixpkgs version 22.11 channel, you can run
|
||||||
|
|
||||||
[source,console]
|
[source,console]
|
||||||
----
|
----
|
||||||
# nix-channel --add https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz home-manager
|
$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.11.tar.gz home-manager
|
||||||
# nix-channel --update
|
$ sudo nix-channel --update
|
||||||
----
|
----
|
||||||
|
|
||||||
It is then possible to add
|
It is then possible to add
|
||||||
@@ -164,7 +161,7 @@ home-manager.users.eve = { pkgs, ... }: {
|
|||||||
};
|
};
|
||||||
----
|
----
|
||||||
|
|
||||||
and after a `nixos-rebuild switch` the user eve's environment should
|
and after a `sudo nixos-rebuild switch` the user eve's environment should
|
||||||
include a basic Bash configuration and the packages atool and httpie.
|
include a basic Bash configuration and the packages atool and httpie.
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
@@ -243,16 +240,16 @@ or an unstable channel, you can run
|
|||||||
|
|
||||||
[source,console]
|
[source,console]
|
||||||
----
|
----
|
||||||
# nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||||
# nix-channel --update
|
$ nix-channel --update
|
||||||
----
|
----
|
||||||
|
|
||||||
and if you follow a Nixpkgs version 21.11 channel, you can run
|
and if you follow a Nixpkgs version 22.11 channel, you can run
|
||||||
|
|
||||||
[source,console]
|
[source,console]
|
||||||
----
|
----
|
||||||
# nix-channel --add https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz home-manager
|
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.11.tar.gz home-manager
|
||||||
# nix-channel --update
|
$ nix-channel --update
|
||||||
----
|
----
|
||||||
|
|
||||||
It is then possible to add
|
It is then possible to add
|
||||||
@@ -306,7 +303,7 @@ can be sourced directly by POSIX.2-like shells such as {bash}[Bash] or
|
|||||||
[NOTE]
|
[NOTE]
|
||||||
====
|
====
|
||||||
By default user packages will not be ignored in favor of
|
By default user packages will not be ignored in favor of
|
||||||
`environment.systemPackages`, but they will be intalled to
|
`environment.systemPackages`, but they will be installed to
|
||||||
`/etc/profiles/per-user/$USERNAME` if
|
`/etc/profiles/per-user/$USERNAME` if
|
||||||
|
|
||||||
[source,nix]
|
[source,nix]
|
||||||
|
|||||||
@@ -155,6 +155,18 @@
|
|||||||
--keep-going
|
--keep-going
|
||||||
</arg>
|
</arg>
|
||||||
|
|
||||||
|
<arg>
|
||||||
|
<group choice="req">
|
||||||
|
<arg choice="plain">
|
||||||
|
-L
|
||||||
|
</arg>
|
||||||
|
|
||||||
|
<arg choice="plain">
|
||||||
|
--print-build-logs
|
||||||
|
</arg>
|
||||||
|
</group>
|
||||||
|
</arg>
|
||||||
|
|
||||||
<arg>
|
<arg>
|
||||||
--show-trace
|
--show-trace
|
||||||
</arg>
|
</arg>
|
||||||
@@ -546,6 +558,22 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</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>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--show-trace</option>
|
<option>--show-trace</option>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<title>Home Manager Reference Pages</title>
|
<title>Home Manager Reference Pages</title>
|
||||||
<info>
|
<info>
|
||||||
<author><personname>Home Manager contributors</personname></author>
|
<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>
|
</copyright>
|
||||||
</info>
|
</info>
|
||||||
<xi:include href="man-configuration.xml" />
|
<xi:include href="man-configuration.xml" />
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</para>
|
</para>
|
||||||
<note>
|
<note>
|
||||||
<para>
|
<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
|
requiring to login as root user or temporarily switching to it using
|
||||||
<literal>sudo</literal> for example.
|
<literal>sudo</literal> for example.
|
||||||
</para>
|
</para>
|
||||||
|
|||||||
@@ -7,18 +7,30 @@ Home Manager includes a `flake.nix` file for compatibility with {nixos-wiki-flak
|
|||||||
The support is still experimental and may change in backwards incompatible ways.
|
The support is still experimental and may change in backwards incompatible ways.
|
||||||
|
|
||||||
[[sec-flakes-prerequisties]]
|
[[sec-flakes-prerequisties]]
|
||||||
=== Prerequisties
|
=== Prerequisites
|
||||||
|
|
||||||
* Install Nix 2.4 or have it in `nix-shell`.
|
* Install Nix 2.4 or later, or have it in `nix-shell`.
|
||||||
|
|
||||||
* Enable experimental features `nix-command` and `flakes`.
|
* Enable experimental features `nix-command` and `flakes`.
|
||||||
+
|
+
|
||||||
Either set in `nix.conf`
|
** 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]
|
[source,bash]
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
+
|
+
|
||||||
or pass them to `nix` and `home-manager` by
|
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]
|
[source,console]
|
||||||
----
|
----
|
||||||
@@ -33,13 +45,6 @@ Unlike the channel-based setup,
|
|||||||
so it must be present before bootstrap of Home Manager from the flake.
|
so it must be present before bootstrap of Home Manager from the flake.
|
||||||
See <<sec-usage-configuration>> for introduction about
|
See <<sec-usage-configuration>> for introduction about
|
||||||
writing a Home Manager configuration.
|
writing a Home Manager configuration.
|
||||||
+
|
|
||||||
[NOTE]
|
|
||||||
====
|
|
||||||
The `stateVersion` will be specified in the flake instead of in the configuration file.
|
|
||||||
|
|
||||||
Remove the line containing `home.stateVersion` in the example.
|
|
||||||
====
|
|
||||||
|
|
||||||
[[sec-flakes-standalone]]
|
[[sec-flakes-standalone]]
|
||||||
=== Standalone setup
|
=== Standalone setup
|
||||||
@@ -52,27 +57,27 @@ Remove the line containing `home.stateVersion` in the example.
|
|||||||
description = "Home Manager configuration of Jane Doe";
|
description = "Home Manager configuration of Jane Doe";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# Specify the source of Home Manager and Nixpkgs
|
# Specify the source of Home Manager and Nixpkgs.
|
||||||
home-manager.url = "github:nix-community/home-manager";
|
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { home-manager, ... }:
|
outputs = { nixpkgs, home-manager, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
username = "jdoe";
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in {
|
in {
|
||||||
homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration {
|
homeConfigurations.jdoe = home-manager.lib.homeManagerConfiguration {
|
||||||
# Specify the path to your home configuration here
|
inherit pkgs;
|
||||||
configuration = import ./home.nix;
|
|
||||||
|
|
||||||
inherit system username;
|
# Specify your home configuration modules here, for example,
|
||||||
homeDirectory = "/home/${username}";
|
# the path to your home.nix.
|
||||||
# Update the state version as needed.
|
modules = [
|
||||||
# See the changelog here:
|
./home.nix
|
||||||
# https://nix-community.github.io/home-manager/release-notes.html#sec-release-21.05
|
];
|
||||||
stateVersion = "21.11";
|
|
||||||
|
|
||||||
# Optionally use extraSpecialArgs
|
# Optionally use extraSpecialArgs
|
||||||
# to pass through arguments to home.nix
|
# to pass through arguments to home.nix
|
||||||
@@ -85,13 +90,16 @@ Remove the line containing `home.stateVersion` in the example.
|
|||||||
====
|
====
|
||||||
* The above example tracks the master branch of Home Manager
|
* The above example tracks the master branch of Home Manager
|
||||||
and nixos-unstable branch of Nixpkgs.
|
and nixos-unstable branch of Nixpkgs.
|
||||||
If you would like to use the `release-21.11` branch,
|
If you would like to use the `release-22.11` branch,
|
||||||
change the `home-manager` input url to `github:nix-community/home-manager/release-21.11`
|
change the `home-manager` input url to `github:nix-community/home-manager/release-22.11`
|
||||||
and `nixpkgs` url to `github:NixOS/nixpkgs/nixos-21.11`.
|
and `nixpkgs` url to `github:NixOS/nixpkgs/nixos-22.11`.
|
||||||
Make sure to also update to the `stateVersion` option accordingly.
|
|
||||||
|
|
||||||
* The Home Manager library is exported by the flake under
|
* The Home Manager library is exported by the flake under
|
||||||
`lib.hm`.
|
`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
|
2. Install Home Manager and apply the configuration by
|
||||||
@@ -178,6 +186,11 @@ The Home Manager configuration is then part of the NixOS configuration
|
|||||||
and is automatically rebuilt with the system when using the appropriate command
|
and is automatically rebuilt with the system when using the appropriate command
|
||||||
for the system, such as `nixos-rebuild switch --flake <flake-uri>`.
|
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]]
|
[[sec-flakes-nix-darwin-module]]
|
||||||
=== nix-darwin module
|
=== nix-darwin module
|
||||||
|
|
||||||
@@ -187,19 +200,19 @@ is similar to that of NixOS. The `flake.nix` would be:
|
|||||||
[source,nix]
|
[source,nix]
|
||||||
----
|
----
|
||||||
{
|
{
|
||||||
description = "NixOS configuration";
|
description = "Darwin configuration";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nix-darwin.url = "github:lnl7/nix-darwin";
|
darwin.url = "github:lnl7/nix-darwin";
|
||||||
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
home-manager.url = "github:nix-community/home-manager";
|
home-manager.url = "github:nix-community/home-manager";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, home-manager, nix-darwin, ... }: {
|
outputs = inputs@{ nixpkgs, home-manager, darwin, ... }: {
|
||||||
darwinConfigurations = {
|
darwinConfigurations = {
|
||||||
hostname = nix-darwin.lib.darwinSystem {
|
hostname = darwin.lib.darwinSystem {
|
||||||
system = "x86_64-darwin";
|
system = "x86_64-darwin";
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
@@ -221,3 +234,8 @@ is similar to that of NixOS. The `flake.nix` would be:
|
|||||||
|
|
||||||
and it is also rebuilt with the nix-darwin generations.
|
and it is also rebuilt with the nix-darwin generations.
|
||||||
The rebuild command here may be `darwin-rebuild switch --flake <flake-uri>`.
|
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,6 +6,8 @@ This section lists the release notes for stable versions of Home Manager and the
|
|||||||
|
|
||||||
:leveloffset: 1
|
:leveloffset: 1
|
||||||
|
|
||||||
|
include::rl-2211.adoc[]
|
||||||
|
|
||||||
include::rl-2205.adoc[]
|
include::rl-2205.adoc[]
|
||||||
|
|
||||||
include::rl-2111.adoc[]
|
include::rl-2111.adoc[]
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ The 21.05 release branch became the stable branch in May, 2021.
|
|||||||
|
|
||||||
This release has the following notable changes:
|
This release has the following notable changes:
|
||||||
|
|
||||||
* The <<opt-programs.broot.verbs>> option is now a list rather than an
|
* 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
|
attribute set. To migrate, move the keys of the attrset into the list
|
||||||
items' `invocation` keys. For example,
|
items' `invocation` keys. For example,
|
||||||
+
|
+
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[[sec-release-22.05]]
|
[[sec-release-22.05]]
|
||||||
== Release 22.05
|
== Release 22.05
|
||||||
|
|
||||||
This is the current unstable branch and the information in this section is therefore not final.
|
The 22.05 release branch became the stable branch in May, 2022.
|
||||||
|
|
||||||
[[sec-release-22.05-highlights]]
|
[[sec-release-22.05-highlights]]
|
||||||
=== Highlights
|
=== Highlights
|
||||||
|
|||||||
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`.
|
||||||
@@ -52,7 +52,7 @@ A fresh install of Home Manager will generate a minimal `~/.config/nixpkgs/home.
|
|||||||
# You can update Home Manager without changing this value. See
|
# You can update Home Manager without changing this value. See
|
||||||
# the Home Manager release notes for a list of state version
|
# the Home Manager release notes for a list of state version
|
||||||
# changes in each release.
|
# changes in each release.
|
||||||
home.stateVersion = "22.05";
|
home.stateVersion = "22.11";
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
@@ -92,7 +92,7 @@ To satisfy the above setup we should elaborate the `home.nix` file as follows:
|
|||||||
# You can update Home Manager without changing this value. See
|
# You can update Home Manager without changing this value. See
|
||||||
# the Home Manager release notes for a list of state version
|
# the Home Manager release notes for a list of state version
|
||||||
# changes in each release.
|
# changes in each release.
|
||||||
home.stateVersion = "22.05";
|
home.stateVersion = "22.11";
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|||||||
@@ -167,9 +167,11 @@ Builds a GVariant array containing the given list of elements, where each elemen
|
|||||||
- `hm.gvariant.type.int64`
|
- `hm.gvariant.type.int64`
|
||||||
- `hm.gvariant.type.uint64`
|
- `hm.gvariant.type.uint64`
|
||||||
- `hm.gvariant.type.double`
|
- `hm.gvariant.type.double`
|
||||||
|
- `hm.gvariant.type.variant`
|
||||||
- `hm.gvariant.type.arrayOf type`
|
- `hm.gvariant.type.arrayOf type`
|
||||||
- `hm.gvariant.type.maybeOf type`
|
- `hm.gvariant.type.maybeOf type`
|
||||||
- `hm.gvariant.type.tupleOf types`
|
- `hm.gvariant.type.tupleOf types`
|
||||||
|
- `hm.gvariant.type.dictionaryEntryOf types`
|
||||||
--
|
--
|
||||||
+
|
+
|
||||||
where `type` and `types` are themselves a type and list of types, respectively.
|
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`:::
|
`hm.gvariant.mkTuple elements`:::
|
||||||
Builds a GVariant tuple containing the given list of elements, where each element is a GVariant value.
|
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
|
||||||
|
}
|
||||||
136
flake.nix
136
flake.nix
@@ -1,60 +1,102 @@
|
|||||||
{
|
{
|
||||||
description = "Home Manager for Nix";
|
description = "Home Manager for Nix";
|
||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
let
|
inputs.utils.url = "github:numtide/flake-utils";
|
||||||
# List of systems supported by home-manager binary
|
|
||||||
supportedSystems = with nixpkgs.lib.platforms; linux ++ darwin;
|
|
||||||
|
|
||||||
# Function to generate a set based on supported systems
|
outputs = { self, nixpkgs, utils, ... }:
|
||||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
{
|
||||||
|
nixosModules = rec {
|
||||||
|
home-manager = import ./nixos;
|
||||||
|
default = home-manager;
|
||||||
|
};
|
||||||
|
# deprecated in Nix 2.8
|
||||||
|
nixosModule = self.nixosModules.default;
|
||||||
|
|
||||||
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
darwinModules = rec {
|
||||||
in rec {
|
home-manager = import ./nix-darwin;
|
||||||
nixosModules.home-manager = import ./nixos;
|
default = home-manager;
|
||||||
nixosModule = self.nixosModules.home-manager;
|
};
|
||||||
|
# unofficial; deprecated in Nix 2.8
|
||||||
|
darwinModule = self.darwinModules.default;
|
||||||
|
|
||||||
darwinModules.home-manager = import ./nix-darwin;
|
templates = {
|
||||||
darwinModule = self.darwinModules.home-manager;
|
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,";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
packages = forAllSystems (system:
|
defaultTemplate = self.templates.standalone;
|
||||||
let docs = import ./docs { pkgs = nixpkgsFor.${system}; };
|
|
||||||
in {
|
lib = {
|
||||||
home-manager = nixpkgsFor.${system}.callPackage ./home-manager { };
|
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-html = docs.manual.html;
|
||||||
docs-manpages = docs.manPages;
|
docs-manpages = docs.manPages;
|
||||||
docs-json = docs.options.json;
|
docs-json = docs.options.json;
|
||||||
default = self.packages.${system}.home-manager;
|
default = home-manager;
|
||||||
});
|
|
||||||
|
|
||||||
# defaultPackage is deprecated as of Nix 2.7.0
|
|
||||||
defaultPackage = forAllSystems (system: self.packages.${system}.default);
|
|
||||||
|
|
||||||
apps = forAllSystems (system: {
|
|
||||||
home-manager = {
|
|
||||||
type = "app";
|
|
||||||
program = "${defaultPackage.${system}}/bin/home-manager";
|
|
||||||
};
|
};
|
||||||
|
# deprecated in Nix 2.7
|
||||||
|
defaultPackage = self.packages.${system}.default;
|
||||||
});
|
});
|
||||||
|
|
||||||
defaultApp = forAllSystems (system: apps.${system}.home-manager);
|
|
||||||
|
|
||||||
lib = {
|
|
||||||
hm = import ./modules/lib { lib = nixpkgs.lib; };
|
|
||||||
homeManagerConfiguration = { configuration, system, homeDirectory
|
|
||||||
, username, extraModules ? [ ], extraSpecialArgs ? { }
|
|
||||||
, pkgs ? builtins.getAttr system nixpkgs.outputs.legacyPackages
|
|
||||||
, lib ? pkgs.lib, check ? true, stateVersion ? "20.09" }@args:
|
|
||||||
assert nixpkgs.lib.versionAtLeast stateVersion "20.09";
|
|
||||||
|
|
||||||
import ./modules {
|
|
||||||
inherit pkgs lib check extraSpecialArgs;
|
|
||||||
configuration = { ... }: {
|
|
||||||
imports = [ configuration ] ++ extraModules;
|
|
||||||
home = { inherit homeDirectory stateVersion username; };
|
|
||||||
nixpkgs = { inherit (pkgs) config overlays; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
6
format
6
format
@@ -1,5 +1,5 @@
|
|||||||
#! /usr/bin/env nix-shell
|
#! /usr/bin/env nix-shell
|
||||||
#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/5edf5b60c3d8f82b5fc5e73e822b6f7460584945.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=
|
CHECK_ARG=
|
||||||
|
|
||||||
@@ -15,18 +15,14 @@ esac
|
|||||||
# The excludes are for files touched by open pull requests and we want
|
# The excludes are for files touched by open pull requests and we want
|
||||||
# to avoid merge conflicts.
|
# to avoid merge conflicts.
|
||||||
find . -name '*.nix' \
|
find . -name '*.nix' \
|
||||||
! -path ./home-manager/home-manager.nix \
|
|
||||||
! -path ./modules/default.nix \
|
! -path ./modules/default.nix \
|
||||||
! -path ./modules/files.nix \
|
! -path ./modules/files.nix \
|
||||||
! -path ./modules/home-environment.nix \
|
! -path ./modules/home-environment.nix \
|
||||||
! -path ./modules/launchd/launchd.nix \
|
|
||||||
! -path ./modules/lib/default.nix \
|
! -path ./modules/lib/default.nix \
|
||||||
! -path ./modules/lib/file-type.nix \
|
! -path ./modules/lib/file-type.nix \
|
||||||
! -path ./modules/manual.nix \
|
|
||||||
! -path ./modules/misc/news.nix \
|
! -path ./modules/misc/news.nix \
|
||||||
! -path ./modules/programs/bash.nix \
|
! -path ./modules/programs/bash.nix \
|
||||||
! -path ./modules/programs/ssh.nix \
|
! -path ./modules/programs/ssh.nix \
|
||||||
! -path ./modules/programs/zsh.nix \
|
! -path ./modules/programs/zsh.nix \
|
||||||
! -path ./nix-darwin/default.nix \
|
|
||||||
! -path ./tests/default.nix \
|
! -path ./tests/default.nix \
|
||||||
-exec nixfmt $CHECK_ARG {} +
|
-exec nixfmt $CHECK_ARG {} +
|
||||||
|
|||||||
@@ -293,6 +293,7 @@ _home-manager_completions ()
|
|||||||
Options=( "-f" "--file" "-b" "-A" "-I" "-h" "--help" "-n" "--dry-run" "-v" \
|
Options=( "-f" "--file" "-b" "-A" "-I" "-h" "--help" "-n" "--dry-run" "-v" \
|
||||||
"--verbose" "--cores" "--debug" "--impure" "--keep-failed" \
|
"--verbose" "--cores" "--debug" "--impure" "--keep-failed" \
|
||||||
"--keep-going" "-j" "--max-jobs" "--no-substitute" "--no-out-link" \
|
"--keep-going" "-j" "--max-jobs" "--no-substitute" "--no-out-link" \
|
||||||
|
"-L" "--print-build-logs" \
|
||||||
"--show-trace" "--substitute" "--builders" "--version" \
|
"--show-trace" "--substitute" "--builders" "--version" \
|
||||||
"--update-input" "--override-input" "--experimental-features" \
|
"--update-input" "--override-input" "--experimental-features" \
|
||||||
"--extra-experimental-features" )
|
"--extra-experimental-features" )
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ complete -c home-manager -f -l "keep-going" -d "Keep going in case of failed bui
|
|||||||
complete -c home-manager -x -s j -l "max-jobs" -d "Max number of build jobs in parallel"
|
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 "option" -d "Set Nix configuration option"
|
||||||
complete -c home-manager -x -l "builders" -d "Remote builders"
|
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 "show-trace" -d "Print stack trace of evaluation errors"
|
||||||
complete -c home-manager -f -l "substitute"
|
complete -c home-manager -f -l "substitute"
|
||||||
complete -c home-manager -f -l "no-substitute"
|
complete -c home-manager -f -l "no-substitute"
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ _arguments \
|
|||||||
'(-j --max-jobs)'{--max-jobs,-j}'[max jobs]:NUM:()' \
|
'(-j --max-jobs)'{--max-jobs,-j}'[max jobs]:NUM:()' \
|
||||||
'--option[option]:NAME VALUE:()' \
|
'--option[option]:NAME VALUE:()' \
|
||||||
'--builders[builders]:SPEC:()' \
|
'--builders[builders]:SPEC:()' \
|
||||||
|
'(-L --print-build-logs)'{--print-build-logs,-L}'[print build logs]' \
|
||||||
'--show-trace[show trace]' \
|
'--show-trace[show trace]' \
|
||||||
'--override-input[override flake input]:NAME VALUE:()' \
|
'--override-input[override flake input]:NAME VALUE:()' \
|
||||||
'--update-input[update flake input]:NAME:()' \
|
'--update-input[update flake input]:NAME:()' \
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ runCommand, lib, bash, callPackage, coreutils, findutils, gettext, gnused
|
{ runCommand, lib, bash, callPackage, coreutils, findutils, gettext, gnused
|
||||||
, less
|
, less, ncurses, unixtools
|
||||||
# used for pkgs.path for nixos-option
|
# used for pkgs.path for nixos-option
|
||||||
, pkgs
|
, pkgs
|
||||||
|
|
||||||
@@ -19,6 +19,7 @@ in runCommand "home-manager" {
|
|||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
nativeBuildInputs = [ gettext ];
|
nativeBuildInputs = [ gettext ];
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
mainProgram = "home-manager";
|
||||||
description = "A user environment configurator";
|
description = "A user environment configurator";
|
||||||
maintainers = [ maintainers.rycee ];
|
maintainers = [ maintainers.rycee ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
@@ -30,7 +31,16 @@ in runCommand "home-manager" {
|
|||||||
substituteInPlace $out/bin/home-manager \
|
substituteInPlace $out/bin/home-manager \
|
||||||
--subst-var-by bash "${bash}" \
|
--subst-var-by bash "${bash}" \
|
||||||
--subst-var-by DEP_PATH "${
|
--subst-var-by DEP_PATH "${
|
||||||
lib.makeBinPath [ coreutils findutils gettext gnused less nixos-option ]
|
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_LIB '${../lib/bash/home-manager.sh}' \
|
||||||
--subst-var-by HOME_MANAGER_PATH '${pathStr}' \
|
--subst-var-by HOME_MANAGER_PATH '${pathStr}' \
|
||||||
|
|||||||
@@ -106,10 +106,17 @@ function setFlakeAttribute() {
|
|||||||
local name="${FLAKE_ARG#*#}"
|
local name="${FLAKE_ARG#*#}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
local name="$USER@$(hostname)"
|
local name="$USER"
|
||||||
if [ "$(nix eval "$flake#homeConfigurations" --apply "x: x ? \"$name\"")" = "false" ]; then
|
# Check both long and short hostnames; long first to preserve
|
||||||
name="$USER"
|
# pre-existing behaviour in case both happen to be defined.
|
||||||
fi
|
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
|
esac
|
||||||
export FLAKE_CONFIG_URI="$flake#homeConfigurations.\"$name\""
|
export FLAKE_CONFIG_URI="$flake#homeConfigurations.\"$name\""
|
||||||
@@ -282,6 +289,7 @@ function doBuild() {
|
|||||||
"$FLAKE_CONFIG_URI.activationPackage" \
|
"$FLAKE_CONFIG_URI.activationPackage" \
|
||||||
${DRY_RUN+--dry-run} \
|
${DRY_RUN+--dry-run} \
|
||||||
${NO_OUT_LINK+--no-link} \
|
${NO_OUT_LINK+--no-link} \
|
||||||
|
${PRINT_BUILD_LOGS+--print-build-logs} \
|
||||||
|| return
|
|| return
|
||||||
else
|
else
|
||||||
doBuildAttr \
|
doBuildAttr \
|
||||||
@@ -312,6 +320,7 @@ function doSwitch() {
|
|||||||
doBuildFlake \
|
doBuildFlake \
|
||||||
"$FLAKE_CONFIG_URI.activationPackage" \
|
"$FLAKE_CONFIG_URI.activationPackage" \
|
||||||
--out-link "$generation" \
|
--out-link "$generation" \
|
||||||
|
${PRINT_BUILD_LOGS+--print-build-logs} \
|
||||||
&& "$generation/activate" || return
|
&& "$generation/activate" || return
|
||||||
else
|
else
|
||||||
doBuildAttr \
|
doBuildAttr \
|
||||||
@@ -480,7 +489,10 @@ function doUninstall() {
|
|||||||
y|Y)
|
y|Y)
|
||||||
_i "Switching to empty Home Manager configuration..."
|
_i "Switching to empty Home Manager configuration..."
|
||||||
HOME_MANAGER_CONFIG="$(mktemp --tmpdir home-manager.XXXXXXXXXX)"
|
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
|
doSwitch
|
||||||
$DRY_RUN_CMD $REMOVE_CMD home-manager-path || true
|
$DRY_RUN_CMD $REMOVE_CMD home-manager-path || true
|
||||||
rm "$HOME_MANAGER_CONFIG"
|
rm "$HOME_MANAGER_CONFIG"
|
||||||
@@ -541,6 +553,7 @@ function doHelp() {
|
|||||||
echo " --keep-going"
|
echo " --keep-going"
|
||||||
echo " -j, --max-jobs NUM"
|
echo " -j, --max-jobs NUM"
|
||||||
echo " --option NAME VALUE"
|
echo " --option NAME VALUE"
|
||||||
|
echo " -L, --print-build-logs"
|
||||||
echo " --show-trace"
|
echo " --show-trace"
|
||||||
echo " --(no-)substitute"
|
echo " --(no-)substitute"
|
||||||
echo " --no-out-link Do not create a symlink to the output path"
|
echo " --no-out-link Do not create a symlink to the output path"
|
||||||
@@ -638,6 +651,9 @@ while [[ $# -gt 0 ]]; do
|
|||||||
--no-out-link)
|
--no-out-link)
|
||||||
NO_OUT_LINK=1
|
NO_OUT_LINK=1
|
||||||
;;
|
;;
|
||||||
|
-L|--print-build-logs)
|
||||||
|
PRINT_BUILD_LOGS=1
|
||||||
|
;;
|
||||||
-h|--help)
|
-h|--help)
|
||||||
doHelp
|
doHelp
|
||||||
exit 0
|
exit 0
|
||||||
@@ -661,7 +677,7 @@ while [[ $# -gt 0 ]]; do
|
|||||||
export VERBOSE=1
|
export VERBOSE=1
|
||||||
;;
|
;;
|
||||||
--version)
|
--version)
|
||||||
echo 22.05
|
echo 22.11
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
{ pkgs ? import <nixpkgs> {}
|
{ pkgs ? import <nixpkgs> { }, confPath, confAttr ? null, check ? true
|
||||||
, confPath
|
, newsReadIdsFile ? null }:
|
||||||
, confAttr ? null
|
|
||||||
, check ? true
|
|
||||||
, newsReadIdsFile ? null
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (pkgs.lib)
|
inherit (pkgs.lib)
|
||||||
@@ -11,68 +7,58 @@ let
|
|||||||
replaceStrings splitString;
|
replaceStrings splitString;
|
||||||
|
|
||||||
env = import ../modules {
|
env = import ../modules {
|
||||||
configuration =
|
configuration = if confAttr == "" || confAttr == null then
|
||||||
if confAttr == "" || confAttr == null
|
confPath
|
||||||
then confPath
|
else
|
||||||
else (import confPath).${confAttr};
|
(import confPath).${confAttr};
|
||||||
pkgs = pkgs;
|
pkgs = pkgs;
|
||||||
check = check;
|
check = check;
|
||||||
};
|
};
|
||||||
|
|
||||||
newsReadIds =
|
newsReadIds = if newsReadIdsFile == null then
|
||||||
if newsReadIdsFile == null
|
{ }
|
||||||
then {}
|
else
|
||||||
else
|
let ids = splitString "\n" (fileContents newsReadIdsFile);
|
||||||
let
|
in builtins.listToAttrs (map (id: {
|
||||||
ids = splitString "\n" (fileContents newsReadIdsFile);
|
name = id;
|
||||||
in
|
value = null;
|
||||||
builtins.listToAttrs (map (id: { name = id; value = null; }) ids);
|
}) ids);
|
||||||
|
|
||||||
newsIsRead = entry: builtins.hasAttr entry.id newsReadIds;
|
newsIsRead = entry: builtins.hasAttr entry.id newsReadIds;
|
||||||
|
|
||||||
newsFiltered =
|
newsFiltered = let pred = entry: entry.condition && !newsIsRead entry;
|
||||||
let
|
in filter pred env.newsEntries;
|
||||||
pred = entry: entry.condition && ! newsIsRead entry;
|
|
||||||
in
|
|
||||||
filter pred env.newsEntries;
|
|
||||||
|
|
||||||
newsNumUnread = length newsFiltered;
|
newsNumUnread = length newsFiltered;
|
||||||
|
|
||||||
newsFileUnread = pkgs.writeText "news-unread.txt" (
|
newsFileUnread = pkgs.writeText "news-unread.txt" (concatMapStringsSep "\n\n"
|
||||||
concatMapStringsSep "\n\n" (entry:
|
(entry:
|
||||||
let
|
let
|
||||||
time = replaceStrings ["T"] [" "] (removeSuffix "+00:00" entry.time);
|
time =
|
||||||
in
|
replaceStrings [ "T" ] [ " " ] (removeSuffix "+00:00" entry.time);
|
||||||
''
|
in ''
|
||||||
* ${time}
|
* ${time}
|
||||||
|
|
||||||
${replaceStrings ["\n"] ["\n "] entry.message}
|
${replaceStrings [ "\n" ] [ "\n " ] entry.message}
|
||||||
''
|
'') newsFiltered);
|
||||||
) newsFiltered
|
|
||||||
);
|
|
||||||
|
|
||||||
newsFileAll = pkgs.writeText "news-all.txt" (
|
newsFileAll = pkgs.writeText "news-all.txt" (concatMapStringsSep "\n\n"
|
||||||
concatMapStringsSep "\n\n" (entry:
|
(entry:
|
||||||
let
|
let
|
||||||
flag = if newsIsRead entry then "read" else "unread";
|
flag = if newsIsRead entry then "read" else "unread";
|
||||||
time = replaceStrings ["T"] [" "] (removeSuffix "+00:00" entry.time);
|
time =
|
||||||
in
|
replaceStrings [ "T" ] [ " " ] (removeSuffix "+00:00" entry.time);
|
||||||
''
|
in ''
|
||||||
* ${time} [${flag}]
|
* ${time} [${flag}]
|
||||||
|
|
||||||
${replaceStrings ["\n"] ["\n "] entry.message}
|
${replaceStrings [ "\n" ] [ "\n " ] entry.message}
|
||||||
''
|
'') env.newsEntries);
|
||||||
) env.newsEntries
|
|
||||||
);
|
|
||||||
|
|
||||||
# File where each line corresponds to an unread news entry
|
# File where each line corresponds to an unread news entry
|
||||||
# identifier. If non-empty then the file ends in "\n".
|
# identifier. If non-empty then the file ends in "\n".
|
||||||
newsUnreadIdsFile = pkgs.writeText "news-unread-ids" (
|
newsUnreadIdsFile = pkgs.writeText "news-unread-ids"
|
||||||
let
|
(let text = concatMapStringsSep "\n" (entry: entry.id) newsFiltered;
|
||||||
text = concatMapStringsSep "\n" (entry: entry.id) newsFiltered;
|
in text + optionalString (text != "") "\n");
|
||||||
in
|
|
||||||
text + optionalString (text != "") "\n"
|
|
||||||
);
|
|
||||||
|
|
||||||
newsInfo = pkgs.writeText "news-info.sh" ''
|
newsInfo = pkgs.writeText "news-info.sh" ''
|
||||||
local newsNumUnread=${toString newsNumUnread}
|
local newsNumUnread=${toString newsNumUnread}
|
||||||
@@ -82,8 +68,7 @@ let
|
|||||||
local newsUnreadIdsFile="${newsUnreadIdsFile}"
|
local newsUnreadIdsFile="${newsUnreadIdsFile}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in
|
in {
|
||||||
{
|
inherit (env) activationPackage;
|
||||||
inherit (env) activationPackage;
|
inherit newsInfo;
|
||||||
inherit newsInfo;
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ in runCommand "home-manager-install" {
|
|||||||
# You can update Home Manager without changing this value. See
|
# You can update Home Manager without changing this value. See
|
||||||
# the Home Manager release notes for a list of state version
|
# the Home Manager release notes for a list of state version
|
||||||
# changes in each release.
|
# changes in each release.
|
||||||
home.stateVersion = "22.05";
|
home.stateVersion = "22.11";
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|||||||
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."
|
||||||
@@ -8,8 +8,8 @@ msgstr ""
|
|||||||
"Project-Id-Version: Home Manager\n"
|
"Project-Id-Version: Home Manager\n"
|
||||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||||
"PO-Revision-Date: 2022-03-23 18:56+0000\n"
|
"PO-Revision-Date: 2022-07-12 19:40+0000\n"
|
||||||
"Last-Translator: Manu [tennox] <tennox@posteo.de>\n"
|
"Last-Translator: Frederik Engels <frederik.engels92@gmail.com>\n"
|
||||||
"Language-Team: German <https://hosted.weblate.org/projects/home-manager/cli/"
|
"Language-Team: German <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||||
"de/>\n"
|
"de/>\n"
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
@@ -17,7 +17,7 @@ msgstr ""
|
|||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||||
"X-Generator: Weblate 4.12-dev\n"
|
"X-Generator: Weblate 4.14-dev\n"
|
||||||
|
|
||||||
#: home-manager/home-manager:60
|
#: home-manager/home-manager:60
|
||||||
msgid "No configuration file found at %s"
|
msgid "No configuration file found at %s"
|
||||||
@@ -29,8 +29,7 @@ msgstr "Keine Konfigurationsdatei gefunden. Bitte erstellen Sie eine unter %s"
|
|||||||
|
|
||||||
#: home-manager/home-manager:122
|
#: home-manager/home-manager:122
|
||||||
msgid "Can't inspect options of a flake configuration"
|
msgid "Can't inspect options of a flake configuration"
|
||||||
msgstr ""
|
msgstr "Die Optionen einer Flake-Konfiguration können nicht inspiziert werden"
|
||||||
"Die Optionen einer Flake-Konfigurationen können nicht inspizieren werden"
|
|
||||||
|
|
||||||
#: home-manager/home-manager:162
|
#: home-manager/home-manager:162
|
||||||
msgid "Can't instantiate a flake configuration"
|
msgid "Can't instantiate a flake configuration"
|
||||||
|
|||||||
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 ""
|
||||||
@@ -8,8 +8,9 @@ msgstr ""
|
|||||||
"Project-Id-Version: Home Manager\n"
|
"Project-Id-Version: Home Manager\n"
|
||||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||||
"PO-Revision-Date: 2022-02-10 04:55+0000\n"
|
"PO-Revision-Date: 2022-07-02 02:18+0000\n"
|
||||||
"Last-Translator: Heman Gandhi <hemangandhi@gmail.com>\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/"
|
"Language-Team: Japanese <https://hosted.weblate.org/projects/home-manager/"
|
||||||
"cli/ja/>\n"
|
"cli/ja/>\n"
|
||||||
"Language: ja\n"
|
"Language: ja\n"
|
||||||
@@ -17,11 +18,11 @@ msgstr ""
|
|||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||||
"X-Generator: Weblate 4.11-dev\n"
|
"X-Generator: Weblate 4.13.1-dev\n"
|
||||||
|
|
||||||
#: home-manager/home-manager:60
|
#: home-manager/home-manager:60
|
||||||
msgid "No configuration file found at %s"
|
msgid "No configuration file found at %s"
|
||||||
msgstr "%s に設定ファイルを見つかりません"
|
msgstr "%s に設定ファイルが見つかりません"
|
||||||
|
|
||||||
#: home-manager/home-manager:79
|
#: home-manager/home-manager:79
|
||||||
msgid "No configuration file found. Please create one at %s"
|
msgid "No configuration file found. Please create one at %s"
|
||||||
@@ -43,8 +44,8 @@ msgid_plural ""
|
|||||||
"There are %d unread and relevant news items.\n"
|
"There are %d unread and relevant news items.\n"
|
||||||
"Read them by running the command \"%s news\"."
|
"Read them by running the command \"%s news\"."
|
||||||
msgstr[0] ""
|
msgstr[0] ""
|
||||||
"未読の関連ニュースが%d件あります\n"
|
"未読のお知らせが%d件あります。\n"
|
||||||
"\"%s news\"コマンドを使って読んでください。"
|
"\"%s news\"コマンドで確認できます。"
|
||||||
|
|
||||||
#: home-manager/home-manager:251
|
#: home-manager/home-manager:251
|
||||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||||
@@ -145,7 +146,7 @@ msgstr "Home Managerの初期設定を生成しています..."
|
|||||||
|
|
||||||
#: home-manager/install.nix:66
|
#: home-manager/install.nix:66
|
||||||
msgid "Creating initial Home Manager generation..."
|
msgid "Creating initial Home Manager generation..."
|
||||||
msgstr "Home Managertの最初の世代を生成しています..."
|
msgstr "Home Managerの最初の世代を生成しています..."
|
||||||
|
|
||||||
#. translators: The "%s" specifier will be replaced by a file path.
|
#. translators: The "%s" specifier will be replaced by a file path.
|
||||||
#: home-manager/install.nix:71
|
#: home-manager/install.nix:71
|
||||||
|
|||||||
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."
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# The check for terminal output and color support is heavily inspired
|
|
||||||
# by https://unix.stackexchange.com/a/10065.
|
|
||||||
#
|
|
||||||
# Allow opt out by respecting 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)
|
|
||||||
|
|
||||||
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}"
|
|
||||||
}
|
|
||||||
@@ -23,7 +23,7 @@ function setupColors() {
|
|||||||
if [[ ! -v NO_COLOR && -t 1 ]]; then
|
if [[ ! -v NO_COLOR && -t 1 ]]; then
|
||||||
# See if it supports colors.
|
# See if it supports colors.
|
||||||
local ncolors
|
local ncolors
|
||||||
ncolors=$(tput colors)
|
ncolors=$(tput colors 2> /dev/null || echo 0)
|
||||||
|
|
||||||
if [[ -n "$ncolors" && "$ncolors" -ge 8 ]]; then
|
if [[ -n "$ncolors" && "$ncolors" -ge 8 ]]; then
|
||||||
normalColor="$(tput sgr0)"
|
normalColor="$(tput sgr0)"
|
||||||
|
|||||||
@@ -44,6 +44,19 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
delimiter = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = ''
|
||||||
|
--
|
||||||
|
'';
|
||||||
|
example = literalExpression ''
|
||||||
|
~*~*~*~*~*~*~*~*~*~*~*~
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
The delimiter used between the document and the signature.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
command = mkOption {
|
command = mkOption {
|
||||||
type = with types; nullOr path;
|
type = with types; nullOr path;
|
||||||
default = null;
|
default = null;
|
||||||
@@ -123,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 {
|
smtpModule = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
host = mkOption {
|
host = mkOption {
|
||||||
@@ -197,7 +242,14 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
flavor = mkOption {
|
flavor = mkOption {
|
||||||
type = types.enum [ "plain" "gmail.com" "runbox.com" "fastmail.com" ];
|
type = types.enum [
|
||||||
|
"plain"
|
||||||
|
"gmail.com"
|
||||||
|
"runbox.com"
|
||||||
|
"fastmail.com"
|
||||||
|
"yandex.com"
|
||||||
|
"outlook.office365.com"
|
||||||
|
];
|
||||||
default = "plain";
|
default = "plain";
|
||||||
description = ''
|
description = ''
|
||||||
Some email providers have peculiar behavior that require
|
Some email providers have peculiar behavior that require
|
||||||
@@ -205,7 +257,7 @@ let
|
|||||||
indicate the nature of the provider.
|
indicate the nature of the provider.
|
||||||
</para><para>
|
</para><para>
|
||||||
When this indicates a specific provider then, for example,
|
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.
|
automatically.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@@ -234,7 +286,7 @@ let
|
|||||||
default = null;
|
default = null;
|
||||||
description = ''
|
description = ''
|
||||||
The server username of this account. This will be used as
|
The server username of this account. This will be used as
|
||||||
the SMTP and IMAP user name.
|
the SMTP, IMAP, and JMAP user name.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -299,6 +351,14 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
jmap = mkOption {
|
||||||
|
type = types.nullOr jmapModule;
|
||||||
|
default = null;
|
||||||
|
description = ''
|
||||||
|
The JMAP configuration to use for this account.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
signature = mkOption {
|
signature = mkOption {
|
||||||
type = signatureModule;
|
type = signatureModule;
|
||||||
default = { };
|
default = { };
|
||||||
@@ -337,17 +397,61 @@ let
|
|||||||
name = name;
|
name = name;
|
||||||
maildir = mkOptionDefault { path = "${name}"; };
|
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") {
|
(mkIf (config.flavor == "fastmail.com") {
|
||||||
userName = mkDefault config.address;
|
userName = mkDefault config.address;
|
||||||
smtp = {
|
|
||||||
host = "smtp.fastmail.com";
|
|
||||||
port = if config.smtp.tls.useStartTls then 587 else 465;
|
|
||||||
};
|
|
||||||
imap = {
|
imap = {
|
||||||
host = "imap.fastmail.com";
|
host = "imap.fastmail.com";
|
||||||
port = 993;
|
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") {
|
(mkIf (config.flavor == "gmail.com") {
|
||||||
userName = mkDefault config.address;
|
userName = mkDefault config.address;
|
||||||
|
|
||||||
|
|||||||
@@ -101,9 +101,9 @@ in {
|
|||||||
options. Options declared under namespaces such as <literal>x11</literal>
|
options. Options declared under namespaces such as <literal>x11</literal>
|
||||||
are backend specific options. By default, only backend independent cursor
|
are backend specific options. By default, only backend independent cursor
|
||||||
configurations are generated. If you need configurations for specific
|
configurations are generated. If you need configurations for specific
|
||||||
backends, you can toggle them via the enable option. For example, <varname>
|
backends, you can toggle them via the enable option. For example,
|
||||||
<link linkend="opt-home.pointerCursor.x11.enable">home.pointerCursor.x11.enable</link>
|
<xref linkend="opt-home.pointerCursor.x11.enable"/>
|
||||||
</varname> will enable x11 cursor configurations.
|
will enable x11 cursor configurations.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -346,12 +346,18 @@ in
|
|||||||
|
|
||||||
home.emptyActivationPath = mkOption {
|
home.emptyActivationPath = mkOption {
|
||||||
internal = true;
|
internal = true;
|
||||||
default = false;
|
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
default = versionAtLeast stateVersion "22.11";
|
||||||
|
defaultText = literalExpression ''
|
||||||
|
false for state version < 22.11,
|
||||||
|
true for state version ≥ 22.11
|
||||||
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
Whether the activation script should start with an empty
|
Whether the activation script should start with an empty
|
||||||
<envar>PATH</envar> variable. When <literal>false</literal>
|
<envar>PATH</envar> variable. When <literal>false</literal> then the
|
||||||
then the user's <envar>PATH</envar> will be used.
|
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.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -383,7 +389,7 @@ in
|
|||||||
unexpected state is found. For example, the
|
unexpected state is found. For example, the
|
||||||
<literal>checkLinkTargets</literal> script block checks for
|
<literal>checkLinkTargets</literal> script block checks for
|
||||||
collisions between non-managed files and files defined in
|
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>
|
</para><para>
|
||||||
|
|
||||||
@@ -581,7 +587,6 @@ in
|
|||||||
if [[ -e "$nixProfilePath"/manifest.json ]] ; then
|
if [[ -e "$nixProfilePath"/manifest.json ]] ; then
|
||||||
nix profile list \
|
nix profile list \
|
||||||
| { grep 'home-manager-path$' || test $? = 1; } \
|
| { grep 'home-manager-path$' || test $? = 1; } \
|
||||||
| awk -F ' ' '{ print $4 }' \
|
|
||||||
| cut -d ' ' -f 4 \
|
| cut -d ' ' -f 4 \
|
||||||
| xargs -t $DRY_RUN_CMD nix profile remove $VERBOSE_ARG
|
| xargs -t $DRY_RUN_CMD nix profile remove $VERBOSE_ARG
|
||||||
else
|
else
|
||||||
@@ -592,22 +597,36 @@ in
|
|||||||
''
|
''
|
||||||
else
|
else
|
||||||
''
|
''
|
||||||
|
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
|
if [[ -e "$nixProfilePath"/manifest.json ]] ; then
|
||||||
INSTALL_CMD="nix profile install"
|
INSTALL_CMD="nix profile install"
|
||||||
|
INSTALL_CMD_ACTUAL="nixReplaceProfile"
|
||||||
LIST_CMD="nix profile list"
|
LIST_CMD="nix profile list"
|
||||||
REMOVE_CMD_SYNTAX='nix profile remove {number | store path}'
|
REMOVE_CMD_SYNTAX='nix profile remove {number | store path}'
|
||||||
else
|
else
|
||||||
INSTALL_CMD="nix-env -i"
|
INSTALL_CMD="nix-env -i"
|
||||||
|
INSTALL_CMD_ACTUAL="$DRY_RUN_CMD nix-env -i"
|
||||||
LIST_CMD="nix-env -q"
|
LIST_CMD="nix-env -q"
|
||||||
REMOVE_CMD_SYNTAX='nix-env -e {package name}'
|
REMOVE_CMD_SYNTAX='nix-env -e {package name}'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! $DRY_RUN_CMD $INSTALL_CMD ${cfg.path} ; then
|
if ! $INSTALL_CMD_ACTUAL ${cfg.path} ; then
|
||||||
echo
|
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"
|
_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
|
exit 1
|
||||||
fi
|
fi
|
||||||
unset INSTALL_CMD LIST_CMD REMOVE_CMD_SYNTAX
|
unset -f nixReplaceProfile
|
||||||
|
unset INSTALL_CMD INSTALL_CMD_ACTUAL LIST_CMD REMOVE_CMD_SYNTAX
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -659,7 +678,16 @@ in
|
|||||||
gnugrep
|
gnugrep
|
||||||
gnused
|
gnused
|
||||||
ncurses # For `tput`.
|
ncurses # For `tput`.
|
||||||
] ++ config.home.extraActivationPath
|
]
|
||||||
|
++ 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";
|
+ optionalString (!cfg.emptyActivationPath) "\${PATH:+:}$PATH";
|
||||||
|
|
||||||
@@ -685,6 +713,8 @@ in
|
|||||||
''
|
''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
|
|
||||||
|
echo "${config.home.version.full}" > $out/hm-version
|
||||||
|
|
||||||
cp ${activationScript} $out/activate
|
cp ${activationScript} $out/activate
|
||||||
|
|
||||||
mkdir $out/bin
|
mkdir $out/bin
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ in {
|
|||||||
i18n.inputMethod.package = fcitx5Package;
|
i18n.inputMethod.package = fcitx5Package;
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
|
GLFW_IM_MODULE = "ibus"; # IME support in kitty
|
||||||
GTK_IM_MODULE = "fcitx";
|
GTK_IM_MODULE = "fcitx";
|
||||||
QT_IM_MODULE = "fcitx";
|
QT_IM_MODULE = "fcitx";
|
||||||
XMODIFIERS = "@im=fcitx";
|
XMODIFIERS = "@im=fcitx";
|
||||||
|
|||||||
@@ -162,12 +162,12 @@ in {
|
|||||||
fi
|
fi
|
||||||
if [[ -f "$dstPath" ]]; then
|
if [[ -f "$dstPath" ]]; then
|
||||||
for (( i = 0; i < bootout_retries; i++ )); do
|
for (( i = 0; i < bootout_retries; i++ )); do
|
||||||
$DRY_RUN_CMD launchctl bootout "$domain/$agentName" || err=$?
|
$DRY_RUN_CMD /bin/launchctl bootout "$domain/$agentName" || err=$?
|
||||||
if [[ -v DRY_RUN ]]; then
|
if [[ -v DRY_RUN ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
if (( err != 9216 )) &&
|
if (( err != 9216 )) &&
|
||||||
! launchctl print "$domain/$agentName" &> /dev/null; then
|
! /bin/launchctl print "$domain/$agentName" &> /dev/null; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
@@ -178,7 +178,7 @@ in {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
$DRY_RUN_CMD install -Dm444 -T "$srcPath" "$dstPath"
|
$DRY_RUN_CMD install -Dm444 -T "$srcPath" "$dstPath"
|
||||||
$DRY_RUN_CMD launchctl bootstrap "$domain" "$dstPath"
|
$DRY_RUN_CMD /bin/launchctl bootstrap "$domain" "$dstPath"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ ! -e "$oldDir" ]]; then
|
if [[ ! -e "$oldDir" ]]; then
|
||||||
@@ -194,7 +194,7 @@ in {
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$DRY_RUN_CMD launchctl bootout "$domain/$agentName" || :
|
$DRY_RUN_CMD /bin/launchctl bootout "$domain/$agentName" || :
|
||||||
if [[ ! -e "$dstPath" ]]; then
|
if [[ ! -e "$dstPath" ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -39,19 +39,19 @@ with lib;
|
|||||||
default = null;
|
default = null;
|
||||||
description = ''
|
description = ''
|
||||||
This optional key is used as a hint to <literal>launchctl(1)</literal> that it should not submit this job to launchd when
|
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 run-ning running
|
loading a job or jobs. The value of this key does NOT reflect the current state of the job on the running
|
||||||
ning system. If you wish to know whether a job is loaded in launchd, reading this key from a configura-tion configuration
|
system. If you wish to know whether a job is loaded in launchd, reading this key from a configuration
|
||||||
tion file yourself is not a sufficient test. You should query launchd for the presence of the job using
|
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
|
the <literal>launchctl(1)</literal> list subcommand or use the ServiceManagement framework's
|
||||||
<literal>SMJobCopyDictionary()</literal> method.
|
<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
|
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
|
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 necessar-ily necessarily
|
longer modify the configuration file, so the value displayed in the configuration file is not necessarily
|
||||||
ily the value that <literal>launchctl(1)</literal> will apply. See <literal>launchctl(1)</literal> for more information.
|
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 crite-ria criteria
|
Please also be mindful that you should only use this key if the provided on-demand and KeepAlive criteria
|
||||||
ria are insufficient to describe the conditions under which your job needs to run. The cost to have a
|
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
|
job loaded in launchd is negligible, so there is no harm in loading a job which only runs once or very
|
||||||
rarely.
|
rarely.
|
||||||
'';
|
'';
|
||||||
@@ -147,8 +147,7 @@ with lib;
|
|||||||
type = types.nullOr types.bool;
|
type = types.nullOr types.bool;
|
||||||
default = null;
|
default = null;
|
||||||
description = ''
|
description = ''
|
||||||
This flag causes launchd to use the <literal>glob(3)</literal> mechanism to update the program arguments before invoca-tion. invocation.
|
This flag causes launchd to use the <literal>glob(3)</literal> mechanism to update the program arguments before invocation.
|
||||||
tion.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -236,12 +235,12 @@ with lib;
|
|||||||
description = ''
|
description = ''
|
||||||
This optional key is used to control whether your job is to be kept continuously running or to let
|
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
|
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 dictio-nary dictionary
|
the job. The value may be set to true to unconditionally keep the job alive. Alternatively, a dictionary
|
||||||
nary of conditions may be specified to selectively control whether launchd keeps a job alive or not. If
|
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
|
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
|
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
|
demand based invocation. Jobs that exit quickly and frequently when configured to be kept alive will
|
||||||
be throttled to converve system resources.
|
be throttled to conserve system resources.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -364,7 +363,10 @@ with lib;
|
|||||||
|
|
||||||
StartCalendarInterval = mkOption {
|
StartCalendarInterval = mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
example = { Hour = 2; Minute = 30; };
|
example = {
|
||||||
|
Hour = 2;
|
||||||
|
Minute = 30;
|
||||||
|
};
|
||||||
description = ''
|
description = ''
|
||||||
This optional key causes the job to be started every calendar interval as specified. Missing arguments
|
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
|
are considered to be wildcard. The semantics are much like <literal>crontab(5)</literal>. Unlike cron which skips job
|
||||||
@@ -652,7 +654,8 @@ with lib;
|
|||||||
};
|
};
|
||||||
|
|
||||||
ProcessType = mkOption {
|
ProcessType = mkOption {
|
||||||
type = types.nullOr (types.enum [ "Background" "Standard" "Adaptive" "Interactive" ]);
|
type = types.nullOr
|
||||||
|
(types.enum [ "Background" "Standard" "Adaptive" "Interactive" ]);
|
||||||
default = null;
|
default = null;
|
||||||
example = "Background";
|
example = "Background";
|
||||||
description = ''
|
description = ''
|
||||||
@@ -673,8 +676,8 @@ with lib;
|
|||||||
XPC connections. See <literal>xpc_transaction_begin(3)</literal> for details.
|
XPC connections. See <literal>xpc_transaction_begin(3)</literal> for details.
|
||||||
|
|
||||||
Interactive
|
Interactive
|
||||||
Interactive jobs run with the same resource limitations as apps, that is to say, none. Interac-tive Interactive
|
Interactive jobs run with the same resource limitations as apps, that is to say, none. Interactive
|
||||||
tive jobs are critical to maintaining a responsive user experience, and this key should only be
|
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.
|
used if an app's ability to be responsive depends on it, and cannot be made Adaptive.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@@ -683,8 +686,8 @@ with lib;
|
|||||||
type = types.nullOr types.bool;
|
type = types.nullOr types.bool;
|
||||||
default = null;
|
default = null;
|
||||||
description = ''
|
description = ''
|
||||||
When a job dies, launchd kills any remaining processes with the same process group ID as the job. Set-ting Setting
|
When a job dies, launchd kills any remaining processes with the same process group ID as the job. Setting
|
||||||
ting this key to true disables that behavior.
|
this key to true disables that behavior.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -749,9 +752,9 @@ with lib;
|
|||||||
description = ''
|
description = ''
|
||||||
This optional key is used to specify launch on demand sockets that can be used to let launchd know when
|
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
|
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 appli-cation application
|
launch(3). The keys of the top level Sockets dictionary can be anything. They are meant for the application
|
||||||
cation developer to use to differentiate which descriptors correspond to which application level proto-cols protocols
|
developer to use to differentiate which descriptors correspond to which application level protocols
|
||||||
cols (e.g. http vs. ftp vs. DNS...). At check-in time, the value of each Sockets dictionary key will
|
(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
|
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
|
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.
|
protocol which conforms to the criteria specified in the job configuration file.
|
||||||
@@ -825,8 +828,8 @@ with lib;
|
|||||||
default = null;
|
default = null;
|
||||||
description = ''
|
description = ''
|
||||||
This optional key is a variant of SockPathName. Instead of binding to a known path, a securely
|
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 inher-ited inherited
|
generated socket is created and the path is assigned to the environment variable that is inherited
|
||||||
ited by all jobs spawned by launchd.
|
by all jobs spawned by launchd.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -840,7 +843,8 @@ with lib;
|
|||||||
};
|
};
|
||||||
|
|
||||||
Bonjour = mkOption {
|
Bonjour = mkOption {
|
||||||
type = types.nullOr (types.either types.bool (types.listOf types.str));
|
type =
|
||||||
|
types.nullOr (types.either types.bool (types.listOf types.str));
|
||||||
default = null;
|
default = null;
|
||||||
description = ''
|
description = ''
|
||||||
This optional key can be used to request that the service be registered with the
|
This optional key can be used to request that the service be registered with the
|
||||||
@@ -864,6 +868,5 @@ with lib;
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = { };
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,39 +0,0 @@
|
|||||||
# The check for terminal output and color support is heavily inspired
|
|
||||||
# by https://unix.stackexchange.com/a/10065.
|
|
||||||
#
|
|
||||||
# Allow opt out by respecting 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)
|
|
||||||
|
|
||||||
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}"
|
|
||||||
}
|
|
||||||
@@ -4,39 +4,38 @@
|
|||||||
#
|
#
|
||||||
# - not specific to strings, i.e., any payload is OK,
|
# - not specific to strings, i.e., any payload is OK,
|
||||||
#
|
#
|
||||||
# - the addition of the function `dagEntryBefore` indicating a
|
# - the addition of the function `entryBefore` indicating a "wanted
|
||||||
# "wanted by" relationship.
|
# by" relationship.
|
||||||
|
|
||||||
{ lib }:
|
{ lib }:
|
||||||
|
|
||||||
let inherit (lib) all any filterAttrs mapAttrs mapAttrsToList toposort;
|
let inherit (lib) all filterAttrs hm mapAttrs toposort;
|
||||||
in rec {
|
in {
|
||||||
|
empty = { };
|
||||||
emptyDag = { };
|
|
||||||
|
|
||||||
|
isEntry = e: e ? data && e ? after && e ? before;
|
||||||
isDag = dag:
|
isDag = dag:
|
||||||
let isEntry = e: (e ? data) && (e ? after) && (e ? before);
|
builtins.isAttrs dag && all hm.dag.isEntry (builtins.attrValues dag);
|
||||||
in builtins.isAttrs dag && all (x: x) (mapAttrsToList (n: isEntry) dag);
|
|
||||||
|
|
||||||
# Takes an attribute set containing entries built by
|
# Takes an attribute set containing entries built by entryAnywhere,
|
||||||
# dagEntryAnywhere, dagEntryAfter, and dagEntryBefore to a
|
# entryAfter, and entryBefore to a topologically sorted list of
|
||||||
# topologically sorted list of entries.
|
# entries.
|
||||||
#
|
#
|
||||||
# Internally this function uses the `toposort` function in
|
# Internally this function uses the `toposort` function in
|
||||||
# `<nixpkgs/lib/lists.nix>` and its value is accordingly.
|
# `<nixpkgs/lib/lists.nix>` and its value is accordingly.
|
||||||
#
|
#
|
||||||
# Specifically, the result on success is
|
# Specifically, the result on success is
|
||||||
#
|
#
|
||||||
# { result = [{name = ?; data = ?;} …] }
|
# { result = [ { name = ?; data = ?; } … ] }
|
||||||
#
|
#
|
||||||
# For example
|
# For example
|
||||||
#
|
#
|
||||||
# nix-repl> dagTopoSort {
|
# nix-repl> topoSort {
|
||||||
# a = dagEntryAnywhere "1";
|
# a = entryAnywhere "1";
|
||||||
# b = dagEntryAfter ["a" "c"] "2";
|
# b = entryAfter [ "a" "c" ] "2";
|
||||||
# c = dagEntryBefore ["d"] "3";
|
# c = entryBefore [ "d" ] "3";
|
||||||
# d = dagEntryBefore ["e"] "4";
|
# d = entryBefore [ "e" ] "4";
|
||||||
# e = dagEntryAnywhere "5";
|
# e = entryAnywhere "5";
|
||||||
# } == {
|
# } == {
|
||||||
# result = [
|
# result = [
|
||||||
# { data = "1"; name = "a"; }
|
# { data = "1"; name = "a"; }
|
||||||
@@ -51,66 +50,54 @@ in rec {
|
|||||||
# And the result on error is
|
# And the result on error is
|
||||||
#
|
#
|
||||||
# {
|
# {
|
||||||
# cycle = [ {after = ?; name = ?; data = ?} … ];
|
# cycle = [ { after = ?; name = ?; data = ? } … ];
|
||||||
# loops = [ {after = ?; name = ?; data = ?} … ];
|
# loops = [ { after = ?; name = ?; data = ? } … ];
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
# For example
|
# For example
|
||||||
#
|
#
|
||||||
# nix-repl> dagTopoSort {
|
# nix-repl> topoSort {
|
||||||
# a = dagEntryAnywhere "1";
|
# a = entryAnywhere "1";
|
||||||
# b = dagEntryAfter ["a" "c"] "2";
|
# b = entryAfter [ "a" "c" ] "2";
|
||||||
# c = dagEntryAfter ["d"] "3";
|
# c = entryAfter [ "d" ] "3";
|
||||||
# d = dagEntryAfter ["b"] "4";
|
# d = entryAfter [ "b" ] "4";
|
||||||
# e = dagEntryAnywhere "5";
|
# e = entryAnywhere "5";
|
||||||
# } == {
|
# } == {
|
||||||
# cycle = [
|
# cycle = [
|
||||||
# { after = ["a" "c"]; data = "2"; name = "b"; }
|
# { after = [ "a" "c" ]; data = "2"; name = "b"; }
|
||||||
# { after = ["d"]; data = "3"; name = "c"; }
|
# { after = [ "d" ]; data = "3"; name = "c"; }
|
||||||
# { after = ["b"]; data = "4"; name = "d"; }
|
# { after = [ "b" ]; data = "4"; name = "d"; }
|
||||||
# ];
|
# ];
|
||||||
# loops = [
|
# loops = [
|
||||||
# { after = ["a" "c"]; data = "2"; name = "b"; }
|
# { after = [ "a" "c" ]; data = "2"; name = "b"; }
|
||||||
# ];
|
# ];
|
||||||
# } == {}
|
# }
|
||||||
# true
|
# true
|
||||||
dagTopoSort = dag:
|
topoSort = dag:
|
||||||
let
|
let
|
||||||
dagBefore = dag: name:
|
dagBefore = dag: name:
|
||||||
mapAttrsToList (n: v: n)
|
builtins.attrNames
|
||||||
(filterAttrs (n: v: any (a: a == name) v.before) dag);
|
(filterAttrs (n: v: builtins.elem name v.before) dag);
|
||||||
normalizedDag = mapAttrs (n: v: {
|
normalizedDag = mapAttrs (n: v: {
|
||||||
name = n;
|
name = n;
|
||||||
data = v.data;
|
data = v.data;
|
||||||
after = v.after ++ dagBefore dag n;
|
after = v.after ++ dagBefore dag n;
|
||||||
}) dag;
|
}) dag;
|
||||||
before = a: b: any (c: a.name == c) b.after;
|
before = a: b: builtins.elem a.name b.after;
|
||||||
sorted = toposort before (mapAttrsToList (n: v: v) normalizedDag);
|
sorted = toposort before (builtins.attrValues normalizedDag);
|
||||||
in if sorted ? result then {
|
in if sorted ? result then {
|
||||||
result = map (v: { inherit (v) name data; }) sorted.result;
|
result = map (v: { inherit (v) name data; }) sorted.result;
|
||||||
} else
|
} else
|
||||||
sorted;
|
sorted;
|
||||||
|
|
||||||
# Applies a function to each element of the given DAG.
|
# 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.
|
# Create a DAG entry with no particular dependency information.
|
||||||
dagEntryAnywhere = data: {
|
entryAnywhere = hm.dag.entryBetween [ ] [ ];
|
||||||
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 = [ ];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
entryAfter = hm.dag.entryBetween [ ];
|
||||||
|
entryBefore = before: hm.dag.entryBetween before [ ];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +1,7 @@
|
|||||||
{ lib }:
|
{ lib }:
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
dag =
|
dag = import ./dag.nix { inherit lib; };
|
||||||
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;
|
|
||||||
};
|
|
||||||
|
|
||||||
assertions = import ./assertions.nix { inherit lib; };
|
assertions = import ./assertions.nix { inherit lib; };
|
||||||
|
|
||||||
@@ -22,7 +9,7 @@ rec {
|
|||||||
gvariant = import ./gvariant.nix { inherit lib; };
|
gvariant = import ./gvariant.nix { inherit lib; };
|
||||||
maintainers = import ./maintainers.nix;
|
maintainers = import ./maintainers.nix;
|
||||||
strings = import ./strings.nix { inherit lib; };
|
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; };
|
shell = import ./shell.nix { inherit lib; };
|
||||||
zsh = import ./zsh.nix { inherit lib; };
|
zsh = import ./zsh.nix { inherit lib; };
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ in
|
|||||||
type = types.nullOr types.lines;
|
type = types.nullOr types.lines;
|
||||||
description = ''
|
description = ''
|
||||||
Text of the file. If this option is null then
|
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.
|
must be set.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@@ -42,7 +42,7 @@ in
|
|||||||
type = types.path;
|
type = types.path;
|
||||||
description = ''
|
description = ''
|
||||||
Path of the source file or directory. If
|
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
|
is non-null then this option will automatically point to a file
|
||||||
containing that text.
|
containing that text.
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ let
|
|||||||
arrayOf = t: "a${t}";
|
arrayOf = t: "a${t}";
|
||||||
maybeOf = t: "m${t}";
|
maybeOf = t: "m${t}";
|
||||||
tupleOf = ts: "(${concatStrings ts})";
|
tupleOf = ts: "(${concatStrings ts})";
|
||||||
|
dictionaryEntryOf = ts: "{${concatStrings ts}}";
|
||||||
string = "s";
|
string = "s";
|
||||||
boolean = "b";
|
boolean = "b";
|
||||||
uchar = "y";
|
uchar = "y";
|
||||||
@@ -30,6 +31,7 @@ let
|
|||||||
int64 = "x";
|
int64 = "x";
|
||||||
uint64 = "t";
|
uint64 = "t";
|
||||||
double = "d";
|
double = "d";
|
||||||
|
variant = "v";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Returns the GVariant type of a given Nix value. If no type can be
|
# Returns the GVariant type of a given Nix value. If no type can be
|
||||||
@@ -74,13 +76,13 @@ in rec {
|
|||||||
isGVariant = v: v._type or "" == "gvariant";
|
isGVariant = v: v._type or "" == "gvariant";
|
||||||
|
|
||||||
isArray = hasPrefix "a";
|
isArray = hasPrefix "a";
|
||||||
|
isDictionaryEntry = hasPrefix "{";
|
||||||
isMaybe = hasPrefix "m";
|
isMaybe = hasPrefix "m";
|
||||||
isTuple = hasPrefix "(";
|
isTuple = hasPrefix "(";
|
||||||
|
|
||||||
# Returns the GVariant value that most closely matches the given Nix
|
# Returns the GVariant value that most closely matches the given Nix
|
||||||
# value. If no GVariant value can be found then `null` is returned.
|
# value. If no GVariant value can be found then `null` is returned.
|
||||||
#
|
|
||||||
# No support for dictionaries, maybe types, or variants.
|
|
||||||
mkValue = v:
|
mkValue = v:
|
||||||
if builtins.isBool v then
|
if builtins.isBool v then
|
||||||
mkBoolean v
|
mkBoolean v
|
||||||
@@ -105,6 +107,21 @@ in rec {
|
|||||||
|
|
||||||
mkEmptyArray = elemType: mkArray elemType [ ];
|
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;
|
mkNothing = elemType: mkMaybe elemType null;
|
||||||
|
|
||||||
mkJust = elem: let gvarElem = mkValue elem; in mkMaybe gvarElem.type gvarElem;
|
mkJust = elem: let gvarElem = mkValue elem; in mkMaybe gvarElem.type gvarElem;
|
||||||
|
|||||||
@@ -19,18 +19,46 @@
|
|||||||
githubId = 56743515;
|
githubId = 56743515;
|
||||||
name = "Morgane Austreelis";
|
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 = {
|
CarlosLoboxyz = {
|
||||||
name = "Carlos Lobo";
|
name = "Carlos Lobo";
|
||||||
email = "86011416+CarlosLoboxyz@users.noreply.github.com";
|
email = "86011416+CarlosLoboxyz@users.noreply.github.com";
|
||||||
github = "CarlosLoboxyz";
|
github = "CarlosLoboxyz";
|
||||||
githubId = 86011416;
|
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 = {
|
dwagenk = {
|
||||||
email = "dwagenk@mailbox.org";
|
email = "dwagenk@mailbox.org";
|
||||||
github = "dwagenk";
|
github = "dwagenk";
|
||||||
githubId = 32838899;
|
githubId = 32838899;
|
||||||
name = "Daniel Wagenknecht";
|
name = "Daniel Wagenknecht";
|
||||||
};
|
};
|
||||||
|
jkarlson = {
|
||||||
|
email = "jekarlson@gmail.com";
|
||||||
|
github = "jkarlson";
|
||||||
|
githubId = 1204734;
|
||||||
|
name = "Emil Karlson";
|
||||||
|
};
|
||||||
justinlovinger = {
|
justinlovinger = {
|
||||||
name = "Justin Lovinger";
|
name = "Justin Lovinger";
|
||||||
email = "git@justinlovinger.com";
|
email = "git@justinlovinger.com";
|
||||||
@@ -89,6 +117,12 @@
|
|||||||
fingerprint = "2BE3 BAFD 793E A349 ED1F F00F 04D0 CEAF 916A 9A40";
|
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 = {
|
kubukoz = {
|
||||||
name = "Jakub Kozłowski";
|
name = "Jakub Kozłowski";
|
||||||
email = "kubukoz@users.noreply.github.com";
|
email = "kubukoz@users.noreply.github.com";
|
||||||
@@ -107,6 +141,12 @@
|
|||||||
github = "matrss";
|
github = "matrss";
|
||||||
githubId = 9308656;
|
githubId = 9308656;
|
||||||
};
|
};
|
||||||
|
mforster = {
|
||||||
|
name = "Michael Forster";
|
||||||
|
email = "email@michael-forster.de";
|
||||||
|
github = "MForster";
|
||||||
|
githubId = 4067975;
|
||||||
|
};
|
||||||
mifom = {
|
mifom = {
|
||||||
name = "mifom";
|
name = "mifom";
|
||||||
email = "mifom@users.noreply.github.com";
|
email = "mifom@users.noreply.github.com";
|
||||||
@@ -135,6 +175,12 @@
|
|||||||
githubId = 53856373;
|
githubId = 53856373;
|
||||||
name = "Jens Krewald";
|
name = "Jens Krewald";
|
||||||
};
|
};
|
||||||
|
GaetanLepage = {
|
||||||
|
email = "gaetan@glepage.com";
|
||||||
|
github = "GaetanLepage";
|
||||||
|
githubId = 33058747;
|
||||||
|
name = "Gaetan Lepage";
|
||||||
|
};
|
||||||
maximsmol = {
|
maximsmol = {
|
||||||
email = "maximsmol@gmail.com";
|
email = "maximsmol@gmail.com";
|
||||||
github = "maximsmol";
|
github = "maximsmol";
|
||||||
@@ -265,10 +311,47 @@
|
|||||||
github = "sebtm";
|
github = "sebtm";
|
||||||
githubId = 17243347;
|
githubId = 17243347;
|
||||||
};
|
};
|
||||||
|
rosuavio = {
|
||||||
|
name = "Rosario Pulella";
|
||||||
|
email = "RosarioPulella@gmail.com";
|
||||||
|
github = "Rosuavio";
|
||||||
|
githubId = 7164552;
|
||||||
|
};
|
||||||
rszamszur = {
|
rszamszur = {
|
||||||
name = "Radosław Szamszur";
|
name = "Radosław Szamszur";
|
||||||
email = "radoslawszamszur@gmail.com";
|
email = "radoslawszamszur@gmail.com";
|
||||||
github = "rszamszur";
|
github = "rszamszur";
|
||||||
githubId = 10353018;
|
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"; }];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,33 +1,40 @@
|
|||||||
{ dag, lib }:
|
{ lib }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
concatStringsSep defaultFunctor fixedWidthNumber imap1 isAttrs isList length
|
concatStringsSep defaultFunctor fixedWidthNumber hm imap1 isAttrs isList
|
||||||
listToAttrs mapAttrs mkIf mkOption mkOptionType nameValuePair stringLength
|
length listToAttrs mapAttrs mkIf mkOrder mkOption mkOptionType nameValuePair
|
||||||
types warn;
|
stringLength types warn;
|
||||||
|
|
||||||
isDagEntry = e: isAttrs e && (e ? data) && (e ? after) && (e ? before);
|
|
||||||
|
|
||||||
dagEntryOf = elemType:
|
dagEntryOf = elemType:
|
||||||
let
|
let
|
||||||
submoduleType = types.submodule ({ name, ... }: {
|
submoduleType = types.submodule ({ name, ... }: {
|
||||||
options = {
|
options = {
|
||||||
data = mkOption { type = elemType; };
|
data = mkOption { type = elemType; };
|
||||||
after = mkOption { type = with types; uniq (listOf str); };
|
after = mkOption { type = with types; listOf str; };
|
||||||
before = mkOption { type = with types; uniq (listOf str); };
|
before = mkOption { type = with types; listOf str; };
|
||||||
};
|
};
|
||||||
config = mkIf (elemType.name == "submodule") {
|
config = mkIf (elemType.name == "submodule") {
|
||||||
data._module.args.dagName = name;
|
data._module.args.dagName = name;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
maybeConvert = v: if isDagEntry v then v else dag.entryAnywhere v;
|
maybeConvert = def:
|
||||||
|
if hm.dag.isEntry def.value then
|
||||||
|
def.value
|
||||||
|
else
|
||||||
|
hm.dag.entryAnywhere (if def ? priority then
|
||||||
|
mkOrder def.priority def.value
|
||||||
|
else
|
||||||
|
def.value);
|
||||||
in mkOptionType {
|
in mkOptionType {
|
||||||
name = "dagEntryOf";
|
name = "dagEntryOf";
|
||||||
description = "DAG entry of ${elemType.description}";
|
description = "DAG entry of ${elemType.description}";
|
||||||
# leave the checking to the submodule type
|
# leave the checking to the submodule type
|
||||||
merge = loc: defs:
|
merge = loc: defs:
|
||||||
submoduleType.merge loc
|
submoduleType.merge loc (map (def: {
|
||||||
(map (def: def // { value = maybeConvert def.value; }) defs);
|
inherit (def) file;
|
||||||
|
value = maybeConvert def;
|
||||||
|
}) defs);
|
||||||
};
|
};
|
||||||
|
|
||||||
in rec {
|
in rec {
|
||||||
@@ -42,7 +49,7 @@ in rec {
|
|||||||
let attrEquivalent = types.attrsOf (dagEntryOf elemType);
|
let attrEquivalent = types.attrsOf (dagEntryOf elemType);
|
||||||
in mkOptionType rec {
|
in mkOptionType rec {
|
||||||
name = "dagOf";
|
name = "dagOf";
|
||||||
description = "DAG of ${elemType.description}s";
|
description = "DAG of ${elemType.description}";
|
||||||
inherit (attrEquivalent) check merge emptyValue;
|
inherit (attrEquivalent) check merge emptyValue;
|
||||||
getSubOptions = prefix: elemType.getSubOptions (prefix ++ [ "<name>" ]);
|
getSubOptions = prefix: elemType.getSubOptions (prefix ++ [ "<name>" ]);
|
||||||
getSubModules = elemType.getSubModules;
|
getSubModules = elemType.getSubModules;
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ lib, dag ? import ./dag.nix { inherit lib; }
|
{ lib, gvariant ? import ./gvariant.nix { inherit lib; } }:
|
||||||
, gvariant ? import ./gvariant.nix { inherit lib; } }:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
@@ -7,7 +6,7 @@ let
|
|||||||
mergeAttrs mergeDefaultOption mergeOneOption mergeOptions mkOption
|
mergeAttrs mergeDefaultOption mergeOneOption mergeOptions mkOption
|
||||||
mkOptionType showFiles showOption types;
|
mkOptionType showFiles showOption types;
|
||||||
|
|
||||||
typesDag = import ./types-dag.nix { inherit dag lib; };
|
typesDag = import ./types-dag.nix { inherit lib; };
|
||||||
|
|
||||||
# Needed since the type is called gvariant and its merge attribute
|
# Needed since the type is called gvariant and its merge attribute
|
||||||
# must refer back to the type.
|
# must refer back to the type.
|
||||||
@@ -96,6 +95,10 @@ in rec {
|
|||||||
mergeOneOption loc defs
|
mergeOneOption loc defs
|
||||||
else if gvar.isMaybe sharedDefType && allChecked then
|
else if gvar.isMaybe sharedDefType && allChecked then
|
||||||
mergeOneOption loc defs
|
mergeOneOption loc defs
|
||||||
|
else if gvar.isDictionaryEntry sharedDefType && allChecked then
|
||||||
|
mergeOneOption loc defs
|
||||||
|
else if gvar.type.variant == sharedDefType && allChecked then
|
||||||
|
mergeOneOption loc defs
|
||||||
else if gvar.type.string == sharedDefType && allChecked then
|
else if gvar.type.string == sharedDefType && allChecked then
|
||||||
types.str.merge loc defs
|
types.str.merge loc defs
|
||||||
else if gvar.type.double == sharedDefType && allChecked then
|
else if gvar.type.double == sharedDefType && allChecked then
|
||||||
|
|||||||
@@ -8,9 +8,7 @@ let
|
|||||||
|
|
||||||
docs = import ../docs { inherit lib pkgs; };
|
docs = import ../docs { inherit lib pkgs; };
|
||||||
|
|
||||||
in
|
in {
|
||||||
|
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
manual.html.enable = mkOption {
|
manual.html.enable = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
|||||||
@@ -10,6 +10,14 @@ let
|
|||||||
|
|
||||||
mkIniKeyValue = key: value: "${key}=${toString (hm.gvariant.mkValue value)}";
|
mkIniKeyValue = key: value: "${key}=${toString (hm.gvariant.mkValue value)}";
|
||||||
|
|
||||||
|
# The dconf keys managed by this configuration. We store this as part of the
|
||||||
|
# generation state to be able to reset keys that become unmanaged during
|
||||||
|
# switch.
|
||||||
|
stateDconfKeys = pkgs.writeText "dconf-keys.json" (builtins.toJSON
|
||||||
|
(concatLists (mapAttrsToList
|
||||||
|
(dir: entries: mapAttrsToList (key: _: "/${dir}/${key}") entries)
|
||||||
|
cfg.settings)));
|
||||||
|
|
||||||
in {
|
in {
|
||||||
meta.maintainers = [ maintainers.rycee ];
|
meta.maintainers = [ maintainers.rycee ];
|
||||||
|
|
||||||
@@ -54,22 +62,58 @@ in {
|
|||||||
# Make sure the dconf directory exists.
|
# Make sure the dconf directory exists.
|
||||||
xdg.configFile."dconf/.keep".source = builtins.toFile "keep" "";
|
xdg.configFile."dconf/.keep".source = builtins.toFile "keep" "";
|
||||||
|
|
||||||
home.activation.dconfSettings = hm.dag.entryAfter [ "installPackages" ]
|
home.extraBuilderCommands = ''
|
||||||
(let iniFile = pkgs.writeText "hm-dconf.ini" (toDconfIni cfg.settings);
|
mkdir -p $out/state/
|
||||||
in ''
|
ln -s ${stateDconfKeys} $out/state/${stateDconfKeys.name}
|
||||||
if [[ -v DBUS_SESSION_BUS_ADDRESS ]]; then
|
'';
|
||||||
DCONF_DBUS_RUN_SESSION=""
|
|
||||||
else
|
home.activation.dconfSettings = hm.dag.entryAfter [ "installPackages" ] (let
|
||||||
DCONF_DBUS_RUN_SESSION="${pkgs.dbus}/bin/dbus-run-session"
|
iniFile = pkgs.writeText "hm-dconf.ini" (toDconfIni cfg.settings);
|
||||||
|
|
||||||
|
statePath = "state/${stateDconfKeys.name}";
|
||||||
|
|
||||||
|
cleanup = pkgs.writeShellScript "dconf-cleanup" ''
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
${config.lib.bash.initHomeManagerLib}
|
||||||
|
|
||||||
|
PATH=${makeBinPath [ pkgs.dconf pkgs.jq ]}''${PATH:+:}$PATH
|
||||||
|
|
||||||
|
oldState="$1"
|
||||||
|
newState="$2"
|
||||||
|
|
||||||
|
# Can't do cleanup if we don't know the old state.
|
||||||
|
if [[ ! -f $oldState ]]; then
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -v DRY_RUN ]]; then
|
# Reset all keys that are present in the old generation but not the new
|
||||||
echo $DCONF_DBUS_RUN_SESSION ${pkgs.dconf}/bin/dconf load / "<" ${iniFile}
|
# one.
|
||||||
else
|
jq -r -n \
|
||||||
$DCONF_DBUS_RUN_SESSION ${pkgs.dconf}/bin/dconf load / < ${iniFile}
|
--slurpfile old "$oldState" \
|
||||||
fi
|
--slurpfile new "$newState" \
|
||||||
|
'($old[] - $new[])[]' \
|
||||||
|
| while read -r key; do
|
||||||
|
$VERBOSE_ECHO "Resetting dconf key \"$key\""
|
||||||
|
$DRY_RUN_CMD $DCONF_DBUS_RUN_SESSION dconf reset "$key"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
in ''
|
||||||
|
if [[ -v DBUS_SESSION_BUS_ADDRESS ]]; then
|
||||||
|
export DCONF_DBUS_RUN_SESSION=""
|
||||||
|
else
|
||||||
|
export DCONF_DBUS_RUN_SESSION="${pkgs.dbus}/bin/dbus-run-session --dbus-daemon=${pkgs.dbus}/bin/dbus-daemon"
|
||||||
|
fi
|
||||||
|
|
||||||
unset DCONF_DBUS_RUN_SESSION
|
if [[ -v oldGenPath ]]; then
|
||||||
'');
|
${cleanup} \
|
||||||
|
"$oldGenPath/${statePath}" \
|
||||||
|
"$newGenPath/${statePath}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
$DRY_RUN_CMD $DCONF_DBUS_RUN_SESSION ${pkgs.dconf}/bin/dconf load / < ${iniFile}
|
||||||
|
|
||||||
|
unset DCONF_DBUS_RUN_SESSION
|
||||||
|
'');
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
53
modules/misc/editorconfig.nix
Normal file
53
modules/misc/editorconfig.nix
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
cfg = config.editorconfig;
|
||||||
|
|
||||||
|
iniFormat = pkgs.formats.ini { };
|
||||||
|
|
||||||
|
in {
|
||||||
|
meta.maintainers = with maintainers; [ loicreynier ];
|
||||||
|
|
||||||
|
options.editorconfig = {
|
||||||
|
enable = mkEnableOption "EditorConfig home configuration file";
|
||||||
|
|
||||||
|
settings = mkOption {
|
||||||
|
type = iniFormat.type;
|
||||||
|
default = { };
|
||||||
|
description = ''
|
||||||
|
Configuration written to <filename>$HOME/.editorconfig</filename>.
|
||||||
|
<code>root = true</code> is automatically added to the file,
|
||||||
|
it must not be added here.
|
||||||
|
See <link xlink:href="https://editorconfig.org"/> for documentation.
|
||||||
|
'';
|
||||||
|
example = literalExpression ''
|
||||||
|
{
|
||||||
|
"*" = {
|
||||||
|
charset = "utf-8";
|
||||||
|
end_of_line = "lf";
|
||||||
|
trim_trailing_whitespace = true;
|
||||||
|
insert_final_newline = true;
|
||||||
|
max_line_width = 78;
|
||||||
|
indent_style = "space";
|
||||||
|
indent_size = 4;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf (cfg.enable && cfg.settings != { }) {
|
||||||
|
home.file.".editorconfig".text = let
|
||||||
|
renderedSettings = generators.toINIWithGlobalSection { } {
|
||||||
|
globalSection = { root = true; };
|
||||||
|
sections = cfg.settings;
|
||||||
|
};
|
||||||
|
in ''
|
||||||
|
# Generated by Home Manager
|
||||||
|
${renderedSettings}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -202,7 +202,7 @@ in {
|
|||||||
<citerefentry>
|
<citerefentry>
|
||||||
<refentrytitle>nix.conf</refentrytitle>
|
<refentrytitle>nix.conf</refentrytitle>
|
||||||
<manvolnum>5</manvolnum>
|
<manvolnum>5</manvolnum>
|
||||||
</citerefentry> for avalaible options.
|
</citerefentry> for available options.
|
||||||
The value declared here will be translated directly to the key-value pairs Nix expects.
|
The value declared here will be translated directly to the key-value pairs Nix expects.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ with lib;
|
|||||||
"21.05"
|
"21.05"
|
||||||
"21.11"
|
"21.11"
|
||||||
"22.05"
|
"22.05"
|
||||||
|
"22.11"
|
||||||
];
|
];
|
||||||
default = "18.09";
|
|
||||||
description = ''
|
description = ''
|
||||||
It is occasionally necessary for Home Manager to change
|
It is occasionally necessary for Home Manager to change
|
||||||
configuration defaults in a way that is incompatible with
|
configuration defaults in a way that is incompatible with
|
||||||
@@ -30,5 +30,39 @@ with lib;
|
|||||||
conversion or moving files.
|
conversion or moving files.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.version = {
|
||||||
|
full = mkOption {
|
||||||
|
internal = true;
|
||||||
|
readOnly = true;
|
||||||
|
type = types.str;
|
||||||
|
default = let
|
||||||
|
inherit (config.home.version) release revision;
|
||||||
|
suffix =
|
||||||
|
optionalString (revision != null) "+${substring 0 8 revision}";
|
||||||
|
in "${release}${suffix}";
|
||||||
|
example = "22.11+213a0629";
|
||||||
|
description = "The full Home Manager version.";
|
||||||
|
};
|
||||||
|
|
||||||
|
release = mkOption {
|
||||||
|
internal = true;
|
||||||
|
readOnly = true;
|
||||||
|
type = types.str;
|
||||||
|
default = fileContents ../../.release;
|
||||||
|
example = "22.11";
|
||||||
|
description = "The Home Manager release.";
|
||||||
|
};
|
||||||
|
|
||||||
|
revision = mkOption {
|
||||||
|
internal = true;
|
||||||
|
type = types.nullOr types.str;
|
||||||
|
default = let gitRepo = "${toString ./../..}/.git";
|
||||||
|
in if pathIsGitRepo gitRepo then commitIdFromGitRepo gitRepo else null;
|
||||||
|
description = ''
|
||||||
|
The Git revision from which this Home Manager configuration was built.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ let
|
|||||||
|
|
||||||
icon = mkOption {
|
icon = mkOption {
|
||||||
description = "Icon to display in file manager, menus, etc.";
|
description = "Icon to display in file manager, menus, etc.";
|
||||||
type = types.nullOr types.str;
|
type = with types; nullOr (either str path);
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ let
|
|||||||
description = "Program to execute, possibly with arguments.";
|
description = "Program to execute, possibly with arguments.";
|
||||||
};
|
};
|
||||||
options.icon = mkOption {
|
options.icon = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = with types; nullOr (either str path);
|
||||||
default = null;
|
default = null;
|
||||||
description = "Icon to display in file manager, menus, etc.";
|
description = "Icon to display in file manager, menus, etc.";
|
||||||
};
|
};
|
||||||
@@ -152,7 +152,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Required for the assertions
|
# Required for the assertions
|
||||||
# TODO: Remove me once `mkRemovedOptionModule` works correctly with submodules
|
# TODO: Remove me once https://github.com/NixOS/nixpkgs/issues/96006 is fixed
|
||||||
assertions = mkOption {
|
assertions = mkOption {
|
||||||
type = types.listOf types.unspecified;
|
type = types.listOf types.unspecified;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ in {
|
|||||||
for p in $ps ; do
|
for p in $ps ; do
|
||||||
for path in "$p"/share/applications/*.desktop ; do
|
for path in "$p"/share/applications/*.desktop ; do
|
||||||
name="''${path##*/}"
|
name="''${path##*/}"
|
||||||
sed -n "/^MimeType=/ { s/.*=//; s/;/;$name\n/g; p; }" "$path"
|
sed -n -E "/^MimeType=/ { s/.*=//; s/;?$|;/;$name\n/g; p; }" "$path"
|
||||||
done
|
done
|
||||||
done > "$out"
|
done > "$out"
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -33,50 +33,66 @@ in {
|
|||||||
# https://gitlab.freedesktop.org/xdg/xdg-user-dirs/blob/master/man/user-dirs.dirs.xml
|
# https://gitlab.freedesktop.org/xdg/xdg-user-dirs/blob/master/man/user-dirs.dirs.xml
|
||||||
|
|
||||||
desktop = mkOption {
|
desktop = mkOption {
|
||||||
type = with types; coercedTo path toString str;
|
type = with types; nullOr (coercedTo path toString str);
|
||||||
default = "$HOME/Desktop";
|
default = "${config.home.homeDirectory}/Desktop";
|
||||||
|
defaultText =
|
||||||
|
literalExpression ''"''${config.home.homeDirectory}/Desktop"'';
|
||||||
description = "The Desktop directory.";
|
description = "The Desktop directory.";
|
||||||
};
|
};
|
||||||
|
|
||||||
documents = mkOption {
|
documents = mkOption {
|
||||||
type = with types; coercedTo path toString str;
|
type = with types; nullOr (coercedTo path toString str);
|
||||||
default = "$HOME/Documents";
|
default = "${config.home.homeDirectory}/Documents";
|
||||||
|
defaultText =
|
||||||
|
literalExpression ''"''${config.home.homeDirectory}/Documents"'';
|
||||||
description = "The Documents directory.";
|
description = "The Documents directory.";
|
||||||
};
|
};
|
||||||
|
|
||||||
download = mkOption {
|
download = mkOption {
|
||||||
type = with types; coercedTo path toString str;
|
type = with types; nullOr (coercedTo path toString str);
|
||||||
default = "$HOME/Downloads";
|
default = "${config.home.homeDirectory}/Downloads";
|
||||||
|
defaultText =
|
||||||
|
literalExpression ''"''${config.home.homeDirectory}/Downloads"'';
|
||||||
description = "The Downloads directory.";
|
description = "The Downloads directory.";
|
||||||
};
|
};
|
||||||
|
|
||||||
music = mkOption {
|
music = mkOption {
|
||||||
type = with types; coercedTo path toString str;
|
type = with types; nullOr (coercedTo path toString str);
|
||||||
default = "$HOME/Music";
|
default = "${config.home.homeDirectory}/Music";
|
||||||
|
defaultText =
|
||||||
|
literalExpression ''"''${config.home.homeDirectory}/Music"'';
|
||||||
description = "The Music directory.";
|
description = "The Music directory.";
|
||||||
};
|
};
|
||||||
|
|
||||||
pictures = mkOption {
|
pictures = mkOption {
|
||||||
type = with types; coercedTo path toString str;
|
type = with types; nullOr (coercedTo path toString str);
|
||||||
default = "$HOME/Pictures";
|
default = "${config.home.homeDirectory}/Pictures";
|
||||||
|
defaultText =
|
||||||
|
literalExpression ''"''${config.home.homeDirectory}/Pictures"'';
|
||||||
description = "The Pictures directory.";
|
description = "The Pictures directory.";
|
||||||
};
|
};
|
||||||
|
|
||||||
publicShare = mkOption {
|
publicShare = mkOption {
|
||||||
type = with types; coercedTo path toString str;
|
type = with types; nullOr (coercedTo path toString str);
|
||||||
default = "$HOME/Public";
|
default = "${config.home.homeDirectory}/Public";
|
||||||
|
defaultText =
|
||||||
|
literalExpression ''"''${config.home.homeDirectory}/Public"'';
|
||||||
description = "The Public share directory.";
|
description = "The Public share directory.";
|
||||||
};
|
};
|
||||||
|
|
||||||
templates = mkOption {
|
templates = mkOption {
|
||||||
type = with types; coercedTo path toString str;
|
type = with types; nullOr (coercedTo path toString str);
|
||||||
default = "$HOME/Templates";
|
default = "${config.home.homeDirectory}/Templates";
|
||||||
|
defaultText =
|
||||||
|
literalExpression ''"''${config.home.homeDirectory}/Templates"'';
|
||||||
description = "The Templates directory.";
|
description = "The Templates directory.";
|
||||||
};
|
};
|
||||||
|
|
||||||
videos = mkOption {
|
videos = mkOption {
|
||||||
type = with types; coercedTo path toString str;
|
type = with types; nullOr (coercedTo path toString str);
|
||||||
default = "$HOME/Videos";
|
default = "${config.home.homeDirectory}/Videos";
|
||||||
|
defaultText =
|
||||||
|
literalExpression ''"''${config.home.homeDirectory}/Videos"'';
|
||||||
description = "The Videos directory.";
|
description = "The Videos directory.";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -86,7 +102,7 @@ in {
|
|||||||
defaultText = literalExpression "{ }";
|
defaultText = literalExpression "{ }";
|
||||||
example = literalExpression ''
|
example = literalExpression ''
|
||||||
{
|
{
|
||||||
XDG_MISC_DIR = "$HOME/Misc";
|
XDG_MISC_DIR = "''${config.home.homeDirectory}/Misc";
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
description = "Other user directories.";
|
description = "Other user directories.";
|
||||||
@@ -97,7 +113,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = let
|
config = let
|
||||||
directories = {
|
directories = (filterAttrs (n: v: !isNull v) {
|
||||||
XDG_DESKTOP_DIR = cfg.desktop;
|
XDG_DESKTOP_DIR = cfg.desktop;
|
||||||
XDG_DOCUMENTS_DIR = cfg.documents;
|
XDG_DOCUMENTS_DIR = cfg.documents;
|
||||||
XDG_DOWNLOAD_DIR = cfg.download;
|
XDG_DOWNLOAD_DIR = cfg.download;
|
||||||
@@ -106,7 +122,7 @@ in {
|
|||||||
XDG_PUBLICSHARE_DIR = cfg.publicShare;
|
XDG_PUBLICSHARE_DIR = cfg.publicShare;
|
||||||
XDG_TEMPLATES_DIR = cfg.templates;
|
XDG_TEMPLATES_DIR = cfg.templates;
|
||||||
XDG_VIDEOS_DIR = cfg.videos;
|
XDG_VIDEOS_DIR = cfg.videos;
|
||||||
} // cfg.extraConfig;
|
}) // cfg.extraConfig;
|
||||||
in mkIf cfg.enable {
|
in mkIf cfg.enable {
|
||||||
assertions =
|
assertions =
|
||||||
[ (hm.assertions.assertPlatform "xdg.userDirs" pkgs platforms.linux) ];
|
[ (hm.assertions.assertPlatform "xdg.userDirs" pkgs platforms.linux) ];
|
||||||
@@ -120,12 +136,10 @@ in {
|
|||||||
|
|
||||||
home.sessionVariables = directories;
|
home.sessionVariables = directories;
|
||||||
|
|
||||||
home.activation = mkIf cfg.createDirectories {
|
home.activation.createXdgUserDirectories = mkIf cfg.createDirectories (let
|
||||||
createXdgUserDirectories = let
|
directoriesList = attrValues directories;
|
||||||
directoriesList = attrValues directories;
|
mkdir = (dir: ''$DRY_RUN_CMD mkdir -p $VERBOSE_ARG "${dir}"'');
|
||||||
mkdir = (dir: ''$DRY_RUN_CMD mkdir -p $VERBOSE_ARG "${dir}"'');
|
in lib.hm.dag.entryAfter [ "linkGeneration" ]
|
||||||
in lib.hm.dag.entryAfter [ "writeBoundary" ]
|
(strings.concatMapStringsSep "\n" mkdir directoriesList));
|
||||||
(strings.concatMapStringsSep "\n" mkdir directoriesList);
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
102
modules/misc/xfconf.nix
Normal file
102
modules/misc/xfconf.nix
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
cfg = config.xfconf;
|
||||||
|
|
||||||
|
withType = v:
|
||||||
|
if builtins.isBool v then [
|
||||||
|
"-t"
|
||||||
|
"bool"
|
||||||
|
"-s"
|
||||||
|
(if v then "true" else "false")
|
||||||
|
] else if builtins.isInt v then [
|
||||||
|
"-t"
|
||||||
|
"int"
|
||||||
|
"-s"
|
||||||
|
(toString v)
|
||||||
|
] else if builtins.isFloat v then [
|
||||||
|
"-t"
|
||||||
|
"double"
|
||||||
|
"-s"
|
||||||
|
(toString v)
|
||||||
|
] else if builtins.isString v then [
|
||||||
|
"-t"
|
||||||
|
"string"
|
||||||
|
"-s"
|
||||||
|
v
|
||||||
|
] else if builtins.isList v then
|
||||||
|
[ "-a" ] ++ concatMap withType v
|
||||||
|
else
|
||||||
|
throw "unexpected xfconf type: ${builtins.typeOf v}";
|
||||||
|
|
||||||
|
in {
|
||||||
|
meta.maintainers = [ maintainers.chuangzhu ];
|
||||||
|
|
||||||
|
options.xfconf = {
|
||||||
|
enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
visible = false;
|
||||||
|
description = ''
|
||||||
|
Whether to enable Xfconf settings.
|
||||||
|
</para><para>
|
||||||
|
Note, if you use NixOS then you must add
|
||||||
|
<code>programs.xfconf.enable = true</code>
|
||||||
|
to your system configuration. Otherwise you will see a systemd error
|
||||||
|
message when your configuration is activated.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = mkOption {
|
||||||
|
type = with types;
|
||||||
|
attrsOf (attrsOf (oneOf [
|
||||||
|
bool
|
||||||
|
int
|
||||||
|
float
|
||||||
|
str
|
||||||
|
(listOf (oneOf [ bool int float str ]))
|
||||||
|
])) // {
|
||||||
|
description = "xfconf settings";
|
||||||
|
};
|
||||||
|
default = { };
|
||||||
|
example = literalExpression ''
|
||||||
|
{
|
||||||
|
xfce4-session = {
|
||||||
|
"startup/ssh-agent/enabled" = false;
|
||||||
|
"general/LockCommand" = "''${pkgs.lightdm}/bin/dm-tool lock";
|
||||||
|
};
|
||||||
|
xfce4-desktop = {
|
||||||
|
"backdrop/screen0/monitorLVDS-1/workspace0/last-image" =
|
||||||
|
"''${pkgs.nixos-artwork.wallpapers.stripes-logo.gnomeFilePath}";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Settings to write to the Xfconf configuration system.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf (cfg.enable && cfg.settings != { }) {
|
||||||
|
assertions =
|
||||||
|
[ (hm.assertions.assertPlatform "xfconf" pkgs platforms.linux) ];
|
||||||
|
|
||||||
|
home.activation.xfconfSettings = hm.dag.entryAfter [ "installPackages" ]
|
||||||
|
(let
|
||||||
|
mkCommand = channel: property: value: ''
|
||||||
|
$DRY_RUN_CMD ${pkgs.xfce.xfconf}/bin/xfconf-query \
|
||||||
|
${
|
||||||
|
escapeShellArgs
|
||||||
|
([ "-n" "-c" channel "-p" "/${property}" ] ++ withType value)
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
|
commands = mapAttrsToList
|
||||||
|
(channel: properties: mapAttrsToList (mkCommand channel) properties)
|
||||||
|
cfg.settings;
|
||||||
|
in concatMapStrings concatStrings commands);
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -24,6 +24,7 @@ let
|
|||||||
./manual.nix
|
./manual.nix
|
||||||
./misc/dconf.nix
|
./misc/dconf.nix
|
||||||
./misc/debug.nix
|
./misc/debug.nix
|
||||||
|
./misc/editorconfig.nix
|
||||||
./misc/fontconfig.nix
|
./misc/fontconfig.nix
|
||||||
./misc/gtk.nix
|
./misc/gtk.nix
|
||||||
./misc/lib.nix
|
./misc/lib.nix
|
||||||
@@ -42,7 +43,9 @@ let
|
|||||||
./misc/xdg-system-dirs.nix
|
./misc/xdg-system-dirs.nix
|
||||||
./misc/xdg-user-dirs.nix
|
./misc/xdg-user-dirs.nix
|
||||||
./misc/xdg.nix
|
./misc/xdg.nix
|
||||||
|
./misc/xfconf.nix
|
||||||
./programs/abook.nix
|
./programs/abook.nix
|
||||||
|
./programs/aerc.nix
|
||||||
./programs/afew.nix
|
./programs/afew.nix
|
||||||
./programs/alacritty.nix
|
./programs/alacritty.nix
|
||||||
./programs/alot.nix
|
./programs/alot.nix
|
||||||
@@ -52,15 +55,19 @@ let
|
|||||||
./programs/autojump.nix
|
./programs/autojump.nix
|
||||||
./programs/autorandr.nix
|
./programs/autorandr.nix
|
||||||
./programs/bash.nix
|
./programs/bash.nix
|
||||||
|
./programs/bashmount.nix
|
||||||
./programs/bat.nix
|
./programs/bat.nix
|
||||||
./programs/beets.nix
|
./programs/beets.nix
|
||||||
|
./programs/borgmatic.nix
|
||||||
./programs/bottom.nix
|
./programs/bottom.nix
|
||||||
./programs/broot.nix
|
./programs/broot.nix
|
||||||
./programs/browserpass.nix
|
./programs/browserpass.nix
|
||||||
|
./programs/btop.nix
|
||||||
./programs/chromium.nix
|
./programs/chromium.nix
|
||||||
./programs/command-not-found/command-not-found.nix
|
./programs/command-not-found/command-not-found.nix
|
||||||
./programs/dircolors.nix
|
./programs/dircolors.nix
|
||||||
./programs/direnv.nix
|
./programs/direnv.nix
|
||||||
|
./programs/discocss.nix
|
||||||
./programs/eclipse.nix
|
./programs/eclipse.nix
|
||||||
./programs/emacs.nix
|
./programs/emacs.nix
|
||||||
./programs/eww.nix
|
./programs/eww.nix
|
||||||
@@ -70,6 +77,7 @@ let
|
|||||||
./programs/fish.nix
|
./programs/fish.nix
|
||||||
./programs/foot.nix
|
./programs/foot.nix
|
||||||
./programs/fzf.nix
|
./programs/fzf.nix
|
||||||
|
./programs/gallery-dl.nix
|
||||||
./programs/getmail.nix
|
./programs/getmail.nix
|
||||||
./programs/gh.nix
|
./programs/gh.nix
|
||||||
./programs/git.nix
|
./programs/git.nix
|
||||||
@@ -77,11 +85,13 @@ let
|
|||||||
./programs/gnome-terminal.nix
|
./programs/gnome-terminal.nix
|
||||||
./programs/go.nix
|
./programs/go.nix
|
||||||
./programs/gpg.nix
|
./programs/gpg.nix
|
||||||
|
./programs/havoc.nix
|
||||||
./programs/helix.nix
|
./programs/helix.nix
|
||||||
./programs/hexchat.nix
|
./programs/hexchat.nix
|
||||||
./programs/himalaya.nix
|
./programs/himalaya.nix
|
||||||
./programs/home-manager.nix
|
./programs/home-manager.nix
|
||||||
./programs/htop.nix
|
./programs/htop.nix
|
||||||
|
./programs/hyfetch.nix
|
||||||
./programs/i3status-rust.nix
|
./programs/i3status-rust.nix
|
||||||
./programs/i3status.nix
|
./programs/i3status.nix
|
||||||
./programs/info.nix
|
./programs/info.nix
|
||||||
@@ -90,15 +100,19 @@ let
|
|||||||
./programs/java.nix
|
./programs/java.nix
|
||||||
./programs/jq.nix
|
./programs/jq.nix
|
||||||
./programs/just.nix
|
./programs/just.nix
|
||||||
|
./programs/k9s.nix
|
||||||
./programs/kakoune.nix
|
./programs/kakoune.nix
|
||||||
./programs/keychain.nix
|
./programs/keychain.nix
|
||||||
./programs/kitty.nix
|
./programs/kitty.nix
|
||||||
./programs/kodi.nix
|
./programs/kodi.nix
|
||||||
./programs/lazygit.nix
|
./programs/lazygit.nix
|
||||||
|
./programs/ledger.nix
|
||||||
./programs/less.nix
|
./programs/less.nix
|
||||||
./programs/lesspipe.nix
|
./programs/lesspipe.nix
|
||||||
./programs/lf.nix
|
./programs/lf.nix
|
||||||
|
./programs/librewolf.nix
|
||||||
./programs/lieer.nix
|
./programs/lieer.nix
|
||||||
|
./programs/looking-glass-client.nix
|
||||||
./programs/lsd.nix
|
./programs/lsd.nix
|
||||||
./programs/man.nix
|
./programs/man.nix
|
||||||
./programs/mangohud.nix
|
./programs/mangohud.nix
|
||||||
@@ -106,9 +120,11 @@ let
|
|||||||
./programs/mbsync.nix
|
./programs/mbsync.nix
|
||||||
./programs/mcfly.nix
|
./programs/mcfly.nix
|
||||||
./programs/mercurial.nix
|
./programs/mercurial.nix
|
||||||
|
./programs/micro.nix
|
||||||
./programs/mpv.nix
|
./programs/mpv.nix
|
||||||
./programs/msmtp.nix
|
./programs/msmtp.nix
|
||||||
./programs/mu.nix
|
./programs/mu.nix
|
||||||
|
./programs/mujmap.nix
|
||||||
./programs/navi.nix
|
./programs/navi.nix
|
||||||
./programs/ncmpcpp.nix
|
./programs/ncmpcpp.nix
|
||||||
./programs/ncspot.nix
|
./programs/ncspot.nix
|
||||||
@@ -116,6 +132,7 @@ let
|
|||||||
./programs/neomutt.nix
|
./programs/neomutt.nix
|
||||||
./programs/neovim.nix
|
./programs/neovim.nix
|
||||||
./programs/newsboat.nix
|
./programs/newsboat.nix
|
||||||
|
./programs/nheko.nix
|
||||||
./programs/nix-index.nix
|
./programs/nix-index.nix
|
||||||
./programs/nnn.nix
|
./programs/nnn.nix
|
||||||
./programs/noti.nix
|
./programs/noti.nix
|
||||||
@@ -124,13 +141,16 @@ let
|
|||||||
./programs/obs-studio.nix
|
./programs/obs-studio.nix
|
||||||
./programs/octant.nix
|
./programs/octant.nix
|
||||||
./programs/offlineimap.nix
|
./programs/offlineimap.nix
|
||||||
|
./programs/oh-my-posh.nix
|
||||||
./programs/opam.nix
|
./programs/opam.nix
|
||||||
./programs/pandoc.nix
|
./programs/pandoc.nix
|
||||||
./programs/password-store.nix
|
./programs/password-store.nix
|
||||||
./programs/pazi.nix
|
./programs/pazi.nix
|
||||||
./programs/pet.nix
|
./programs/pet.nix
|
||||||
./programs/pidgin.nix
|
./programs/pidgin.nix
|
||||||
|
./programs/pistol.nix
|
||||||
./programs/piston-cli.nix
|
./programs/piston-cli.nix
|
||||||
|
./programs/pls.nix
|
||||||
./programs/powerline-go.nix
|
./programs/powerline-go.nix
|
||||||
./programs/pubs.nix
|
./programs/pubs.nix
|
||||||
./programs/pylint.nix
|
./programs/pylint.nix
|
||||||
@@ -150,23 +170,29 @@ let
|
|||||||
./programs/sqls.nix
|
./programs/sqls.nix
|
||||||
./programs/ssh.nix
|
./programs/ssh.nix
|
||||||
./programs/starship.nix
|
./programs/starship.nix
|
||||||
|
./programs/swaylock.nix
|
||||||
./programs/taskwarrior.nix
|
./programs/taskwarrior.nix
|
||||||
./programs/tealdeer.nix
|
./programs/tealdeer.nix
|
||||||
./programs/terminator.nix
|
./programs/terminator.nix
|
||||||
./programs/termite.nix
|
./programs/termite.nix
|
||||||
./programs/texlive.nix
|
./programs/texlive.nix
|
||||||
|
./programs/thunderbird.nix
|
||||||
./programs/timidity.nix
|
./programs/timidity.nix
|
||||||
./programs/tint2.nix
|
./programs/tint2.nix
|
||||||
./programs/tiny.nix
|
./programs/tiny.nix
|
||||||
|
./programs/tmate.nix
|
||||||
./programs/tmux.nix
|
./programs/tmux.nix
|
||||||
./programs/topgrade.nix
|
./programs/topgrade.nix
|
||||||
./programs/urxvt.nix
|
./programs/urxvt.nix
|
||||||
./programs/vim.nix
|
./programs/vim.nix
|
||||||
./programs/vscode.nix
|
./programs/vscode.nix
|
||||||
./programs/vscode/haskell.nix
|
./programs/vscode/haskell.nix
|
||||||
|
./programs/pywal.nix
|
||||||
./programs/watson.nix
|
./programs/watson.nix
|
||||||
./programs/waybar.nix
|
./programs/waybar.nix
|
||||||
|
./programs/wezterm.nix
|
||||||
./programs/xmobar.nix
|
./programs/xmobar.nix
|
||||||
|
./programs/yt-dlp.nix
|
||||||
./programs/z-lua.nix
|
./programs/z-lua.nix
|
||||||
./programs/zathura.nix
|
./programs/zathura.nix
|
||||||
./programs/zellij.nix
|
./programs/zellij.nix
|
||||||
@@ -177,10 +203,11 @@ let
|
|||||||
./services/barrier.nix
|
./services/barrier.nix
|
||||||
./services/betterlockscreen.nix
|
./services/betterlockscreen.nix
|
||||||
./services/blueman-applet.nix
|
./services/blueman-applet.nix
|
||||||
|
./services/borgmatic.nix
|
||||||
|
./services/cachix-agent.nix
|
||||||
./services/caffeine.nix
|
./services/caffeine.nix
|
||||||
./services/cbatticon.nix
|
./services/cbatticon.nix
|
||||||
./services/clipmenu.nix
|
./services/clipmenu.nix
|
||||||
./services/compton.nix
|
|
||||||
./services/devilspie2.nix
|
./services/devilspie2.nix
|
||||||
./services/dropbox.nix
|
./services/dropbox.nix
|
||||||
./services/dunst.nix
|
./services/dunst.nix
|
||||||
@@ -235,12 +262,16 @@ let
|
|||||||
./services/plex-mpv-shim.nix
|
./services/plex-mpv-shim.nix
|
||||||
./services/polybar.nix
|
./services/polybar.nix
|
||||||
./services/poweralertd.nix
|
./services/poweralertd.nix
|
||||||
|
./services/pueue.nix
|
||||||
./services/pulseeffects.nix
|
./services/pulseeffects.nix
|
||||||
./services/random-background.nix
|
./services/random-background.nix
|
||||||
|
./services/recoll.nix
|
||||||
./services/redshift-gammastep/gammastep.nix
|
./services/redshift-gammastep/gammastep.nix
|
||||||
./services/redshift-gammastep/redshift.nix
|
./services/redshift-gammastep/redshift.nix
|
||||||
./services/rsibreak.nix
|
./services/rsibreak.nix
|
||||||
|
./services/safeeyes.nix
|
||||||
./services/screen-locker.nix
|
./services/screen-locker.nix
|
||||||
|
./services/sctd.nix
|
||||||
./services/spotifyd.nix
|
./services/spotifyd.nix
|
||||||
./services/stalonetray.nix
|
./services/stalonetray.nix
|
||||||
./services/status-notifier-watcher.nix
|
./services/status-notifier-watcher.nix
|
||||||
@@ -259,10 +290,12 @@ let
|
|||||||
./services/volnoti.nix
|
./services/volnoti.nix
|
||||||
./services/window-managers/awesome.nix
|
./services/window-managers/awesome.nix
|
||||||
./services/window-managers/bspwm/default.nix
|
./services/window-managers/bspwm/default.nix
|
||||||
|
./services/window-managers/fluxbox.nix
|
||||||
./services/window-managers/herbstluftwm.nix
|
./services/window-managers/herbstluftwm.nix
|
||||||
./services/window-managers/i3-sway/i3.nix
|
./services/window-managers/i3-sway/i3.nix
|
||||||
./services/window-managers/i3-sway/sway.nix
|
./services/window-managers/i3-sway/sway.nix
|
||||||
./services/window-managers/i3-sway/swaynag.nix
|
./services/window-managers/i3-sway/swaynag.nix
|
||||||
|
./services/window-managers/spectrwm.nix
|
||||||
./services/window-managers/xmonad.nix
|
./services/window-managers/xmonad.nix
|
||||||
./services/wlsunset.nix
|
./services/wlsunset.nix
|
||||||
./services/xcape.nix
|
./services/xcape.nix
|
||||||
|
|||||||
124
modules/po/ca.po
Normal file
124
modules/po/ca.po
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR Home Manager contributors
|
||||||
|
# This file is distributed under the same license as the Home Manager Modules package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Home Manager Modules\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-08 10:18+0000\n"
|
||||||
|
"Last-Translator: Leix b <abone9999@gmail.com>\n"
|
||||||
|
"Language-Team: Catalan <https://hosted.weblate.org/projects/home-manager/"
|
||||||
|
"modules/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"
|
||||||
|
|
||||||
|
#: modules/files.nix:233
|
||||||
|
msgid "Creating home file links in %s"
|
||||||
|
msgstr "Creant enllaços dels fitxers personals a %s"
|
||||||
|
|
||||||
|
#: modules/files.nix:246
|
||||||
|
msgid "Cleaning up orphan links from %s"
|
||||||
|
msgstr "Netejant enllaços orfes de %s"
|
||||||
|
|
||||||
|
#: modules/files.nix:262
|
||||||
|
msgid "Creating profile generation %s"
|
||||||
|
msgstr "Creant generació de perfil %s"
|
||||||
|
|
||||||
|
#: modules/files.nix:276
|
||||||
|
msgid "No change so reusing latest profile generation %s"
|
||||||
|
msgstr "No hi ha canvis, reutilitzant últim perfil generat %s"
|
||||||
|
|
||||||
|
#: modules/home-environment.nix:607
|
||||||
|
msgid ""
|
||||||
|
"Oops, Nix failed to install your new Home Manager profile!\n"
|
||||||
|
"\n"
|
||||||
|
"Perhaps there is a conflict with a package that was installed using\n"
|
||||||
|
"\"%s\"? Try running\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"and if there is a conflicting package you can remove it with\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"Then try activating your Home Manager configuration again."
|
||||||
|
msgstr ""
|
||||||
|
"Oops, Nix no ha pogut instal·lar el teu nou perfil de Home Manager.\n"
|
||||||
|
"\n"
|
||||||
|
"Potser hi ha un conflicte amb un paquet instal·lat mitjançant\n"
|
||||||
|
"\"%s\"? Prova d'executar\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"i si hi ha un paquet conflictiu el pots eliminar amb\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"i després provar d'activar la teva configuració de Home Manager de nou."
|
||||||
|
|
||||||
|
#: modules/home-environment.nix:639
|
||||||
|
msgid "Activating %s"
|
||||||
|
msgstr "Activant %s"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:31
|
||||||
|
msgid "Sanity checking oldGenNum and oldGenPath"
|
||||||
|
msgstr "Comprovant oldGenNum i oldGenPath"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:34
|
||||||
|
msgid ""
|
||||||
|
"The previous generation number and path are in conflict! These\n"
|
||||||
|
"must be either both empty or both set but are now set to\n"
|
||||||
|
"\n"
|
||||||
|
" '%s' and '%s'\n"
|
||||||
|
"\n"
|
||||||
|
"If you don't mind losing previous profile generations then\n"
|
||||||
|
"the easiest solution is probably to run\n"
|
||||||
|
"\n"
|
||||||
|
" rm %s/home-manager*\n"
|
||||||
|
" rm %s/current-home\n"
|
||||||
|
"\n"
|
||||||
|
"and trying home-manager switch again. Good luck!"
|
||||||
|
msgstr ""
|
||||||
|
"Conflicte entre el número de generació prèvia i el camí! Aquests\n"
|
||||||
|
"han de ser o bé ambdós buits o definits com a:\n"
|
||||||
|
"\n"
|
||||||
|
" '%s' i '%s'\n"
|
||||||
|
"\n"
|
||||||
|
"Si no t'importa perdre les generacions de perfil prèvies,\n"
|
||||||
|
"la solució més fàcil probablement és executar:\n"
|
||||||
|
"\n"
|
||||||
|
" rm %s/home-manager*\n"
|
||||||
|
" rm %s/current-home\n"
|
||||||
|
"\n"
|
||||||
|
"i provar home-manager switch de nou. Bona Sort!"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:51
|
||||||
|
msgid "Starting Home Manager activation"
|
||||||
|
msgstr "Començant activació de Home Manager"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:55
|
||||||
|
msgid "Sanity checking Nix"
|
||||||
|
msgstr "Comprovant Nix"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:61
|
||||||
|
msgid "This is a dry run"
|
||||||
|
msgstr "Execució de simulacre"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:64
|
||||||
|
msgid "This is a live run"
|
||||||
|
msgstr "Execució en viu"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:69
|
||||||
|
msgid "Using Nix version: %s"
|
||||||
|
msgstr "Utilitzant versió de Nix: %s"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:72
|
||||||
|
msgid "Activation variables:"
|
||||||
|
msgstr "Variables d'activació:"
|
||||||
124
modules/po/da.po
Normal file
124
modules/po/da.po
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR Home Manager contributors
|
||||||
|
# This file is distributed under the same license as the Home Manager Modules package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Home Manager Modules\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/"
|
||||||
|
"modules/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"
|
||||||
|
|
||||||
|
#: modules/files.nix:233
|
||||||
|
msgid "Creating home file links in %s"
|
||||||
|
msgstr "Skaber hjemme fil links i %s"
|
||||||
|
|
||||||
|
#: modules/files.nix:246
|
||||||
|
msgid "Cleaning up orphan links from %s"
|
||||||
|
msgstr "Opryder forældreløse links fra %s"
|
||||||
|
|
||||||
|
#: modules/files.nix:262
|
||||||
|
msgid "Creating profile generation %s"
|
||||||
|
msgstr "Kreere profil generation %s"
|
||||||
|
|
||||||
|
#: modules/files.nix:276
|
||||||
|
msgid "No change so reusing latest profile generation %s"
|
||||||
|
msgstr "Ingen ændring så genbrug den seneste profil generation %s"
|
||||||
|
|
||||||
|
#: modules/home-environment.nix:607
|
||||||
|
msgid ""
|
||||||
|
"Oops, Nix failed to install your new Home Manager profile!\n"
|
||||||
|
"\n"
|
||||||
|
"Perhaps there is a conflict with a package that was installed using\n"
|
||||||
|
"\"%s\"? Try running\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"and if there is a conflicting package you can remove it with\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"Then try activating your Home Manager configuration again."
|
||||||
|
msgstr ""
|
||||||
|
"Åh nej, Nix fejlede i at installere din nye Home Manager profil! \n"
|
||||||
|
" \n"
|
||||||
|
"Måske er der en konflikt med en pakke der blev installeret gennem\n"
|
||||||
|
"\"%s\"? Prøv at køre \n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
" \n"
|
||||||
|
"og hvis der er en pakke konflikt, kan du fjerne pakken med \n"
|
||||||
|
" \n"
|
||||||
|
" %s\n"
|
||||||
|
" \n"
|
||||||
|
"og så prøve at genaktivere din Home Manager konfiguration igen."
|
||||||
|
|
||||||
|
#: modules/home-environment.nix:639
|
||||||
|
msgid "Activating %s"
|
||||||
|
msgstr "Aktivere %s"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:31
|
||||||
|
msgid "Sanity checking oldGenNum and oldGenPath"
|
||||||
|
msgstr "Tjekker fornuften af oldGenNum and oldGenPath"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:34
|
||||||
|
msgid ""
|
||||||
|
"The previous generation number and path are in conflict! These\n"
|
||||||
|
"must be either both empty or both set but are now set to\n"
|
||||||
|
"\n"
|
||||||
|
" '%s' and '%s'\n"
|
||||||
|
"\n"
|
||||||
|
"If you don't mind losing previous profile generations then\n"
|
||||||
|
"the easiest solution is probably to run\n"
|
||||||
|
"\n"
|
||||||
|
" rm %s/home-manager*\n"
|
||||||
|
" rm %s/current-home\n"
|
||||||
|
"\n"
|
||||||
|
"and trying home-manager switch again. Good luck!"
|
||||||
|
msgstr ""
|
||||||
|
"Den forrige generations nummer og sti er i konflikt! Disse\n"
|
||||||
|
"skal enten begge være tomme, eller begge være sat, men er nu sat til \n"
|
||||||
|
" \n"
|
||||||
|
" '%s' and '%s'\n"
|
||||||
|
" \n"
|
||||||
|
"Hvis du ikke har noget mod at miste tidligere profil generationer så\n"
|
||||||
|
"er den nemmeste løsning nok at køre \n"
|
||||||
|
" \n"
|
||||||
|
" rm %s/home-manager*\n"
|
||||||
|
" rm %s/current-home\n"
|
||||||
|
" \n"
|
||||||
|
"og så prøve at køre home-manager switch igen. Held og lykke!"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:51
|
||||||
|
msgid "Starting Home Manager activation"
|
||||||
|
msgstr "Starter Home Manager aktivation"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:55
|
||||||
|
msgid "Sanity checking Nix"
|
||||||
|
msgstr "Udføre fornuft check af Nix"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:61
|
||||||
|
msgid "This is a dry run"
|
||||||
|
msgstr "Dette er en tør kørsel"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:64
|
||||||
|
msgid "This is a live run"
|
||||||
|
msgstr "Dette er en direkte kørsel"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:69
|
||||||
|
msgid "Using Nix version: %s"
|
||||||
|
msgstr "Bruger Nix version: %s"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:72
|
||||||
|
msgid "Activation variables:"
|
||||||
|
msgstr "Aktivere variable:"
|
||||||
97
modules/po/fi.po
Normal file
97
modules/po/fi.po
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR Home Manager contributors
|
||||||
|
# This file is distributed under the same license as the Home Manager Modules package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Home Manager Modules\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"
|
||||||
|
|
||||||
|
#: modules/files.nix:233
|
||||||
|
msgid "Creating home file links in %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/files.nix:246
|
||||||
|
msgid "Cleaning up orphan links from %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/files.nix:262
|
||||||
|
msgid "Creating profile generation %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/files.nix:276
|
||||||
|
msgid "No change so reusing latest profile generation %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/home-environment.nix:607
|
||||||
|
msgid ""
|
||||||
|
"Oops, Nix failed to install your new Home Manager profile!\n"
|
||||||
|
"\n"
|
||||||
|
"Perhaps there is a conflict with a package that was installed using\n"
|
||||||
|
"\"%s\"? Try running\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"and if there is a conflicting package you can remove it with\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"Then try activating your Home Manager configuration again."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/home-environment.nix:639
|
||||||
|
msgid "Activating %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:31
|
||||||
|
msgid "Sanity checking oldGenNum and oldGenPath"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:34
|
||||||
|
msgid ""
|
||||||
|
"The previous generation number and path are in conflict! These\n"
|
||||||
|
"must be either both empty or both set but are now set to\n"
|
||||||
|
"\n"
|
||||||
|
" '%s' and '%s'\n"
|
||||||
|
"\n"
|
||||||
|
"If you don't mind losing previous profile generations then\n"
|
||||||
|
"the easiest solution is probably to run\n"
|
||||||
|
"\n"
|
||||||
|
" rm %s/home-manager*\n"
|
||||||
|
" rm %s/current-home\n"
|
||||||
|
"\n"
|
||||||
|
"and trying home-manager switch again. Good luck!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:51
|
||||||
|
msgid "Starting Home Manager activation"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:55
|
||||||
|
msgid "Sanity checking Nix"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:61
|
||||||
|
msgid "This is a dry run"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:64
|
||||||
|
msgid "This is a live run"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:69
|
||||||
|
msgid "Using Nix version: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:72
|
||||||
|
msgid "Activation variables:"
|
||||||
|
msgstr ""
|
||||||
@@ -8,8 +8,8 @@ msgstr ""
|
|||||||
"Project-Id-Version: Home Manager Modules\n"
|
"Project-Id-Version: Home Manager Modules\n"
|
||||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||||
"PO-Revision-Date: 2022-03-26 23:57+0000\n"
|
"PO-Revision-Date: 2022-05-18 23:12+0000\n"
|
||||||
"Last-Translator: Robert Helgesson <robert@rycee.net>\n"
|
"Last-Translator: Naïm Camille Favier <n@monade.li>\n"
|
||||||
"Language-Team: French <https://hosted.weblate.org/projects/home-manager/"
|
"Language-Team: French <https://hosted.weblate.org/projects/home-manager/"
|
||||||
"modules/fr/>\n"
|
"modules/fr/>\n"
|
||||||
"Language: fr\n"
|
"Language: fr\n"
|
||||||
@@ -17,7 +17,7 @@ msgstr ""
|
|||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||||
"X-Generator: Weblate 4.12-dev\n"
|
"X-Generator: Weblate 4.13-dev\n"
|
||||||
|
|
||||||
#: modules/files.nix:233
|
#: modules/files.nix:233
|
||||||
msgid "Creating home file links in %s"
|
msgid "Creating home file links in %s"
|
||||||
@@ -53,11 +53,11 @@ msgstr ""
|
|||||||
"Oups, Nix n'a pas réussi à installer votre nouveau profil de Home Manager !\n"
|
"Oups, Nix n'a pas réussi à installer votre nouveau profil de Home Manager !\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Il y a peut-être un conflit avec un autre paquet qui a été installé avec\n"
|
"Il y a peut-être un conflit avec un autre paquet qui a été installé avec\n"
|
||||||
"« %s » ? Essayez d'éxecuter\n"
|
"« %s » ? Essayez d'exécuter\n"
|
||||||
"\n"
|
"\n"
|
||||||
" %s\n"
|
" %s\n"
|
||||||
"\n"
|
"\n"
|
||||||
"et s'il y a un paquet en conflict, vous pourrez le supprimer avec\n"
|
"et s'il y a un paquet en conflit, vous pourrez le supprimer avec\n"
|
||||||
"\n"
|
"\n"
|
||||||
" %s\n"
|
" %s\n"
|
||||||
"\n"
|
"\n"
|
||||||
@@ -69,7 +69,7 @@ msgstr "Activation de %s"
|
|||||||
|
|
||||||
#: modules/lib-bash/activation-init.sh:31
|
#: modules/lib-bash/activation-init.sh:31
|
||||||
msgid "Sanity checking oldGenNum and oldGenPath"
|
msgid "Sanity checking oldGenNum and oldGenPath"
|
||||||
msgstr "Vérification rationnelle de oldGenNum et oldGenPath"
|
msgstr "Vérification de oldGenNum et oldGenPath"
|
||||||
|
|
||||||
#: modules/lib-bash/activation-init.sh:34
|
#: modules/lib-bash/activation-init.sh:34
|
||||||
msgid ""
|
msgid ""
|
||||||
@@ -86,20 +86,20 @@ msgid ""
|
|||||||
"\n"
|
"\n"
|
||||||
"and trying home-manager switch again. Good luck!"
|
"and trying home-manager switch again. Good luck!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Le numéro et le chemin de la génération dernière sont en conflit ! Ils "
|
"Le numéro et le chemin de la génération précédente sont en conflit ! Ils "
|
||||||
"doivent\n"
|
"doivent\n"
|
||||||
"être vides ou les deux mis à\n"
|
"être vides ou les deux mis à\n"
|
||||||
"\n"
|
"\n"
|
||||||
" '%s' et '%s'\n"
|
" '%s' et '%s'\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Si ça ne vous dérange pas de perdre la génération dernière, la solution la "
|
"Si ça ne vous dérange pas de perdre les générations précédentes, la solution "
|
||||||
"plus\n"
|
"la plus\n"
|
||||||
"simple est probablement d'exécuter\n"
|
"simple est probablement d'exécuter\n"
|
||||||
"\n"
|
"\n"
|
||||||
" rm %s/home-manager*\n"
|
" rm %s/home-manager*\n"
|
||||||
" rm %s/current-home\n"
|
" rm %s/current-home\n"
|
||||||
"\n"
|
"\n"
|
||||||
"et d'essayer encore home-manager switch. Bonne chance !"
|
"et de réessayer home-manager switch. Bonne chance !"
|
||||||
|
|
||||||
#: modules/lib-bash/activation-init.sh:51
|
#: modules/lib-bash/activation-init.sh:51
|
||||||
msgid "Starting Home Manager activation"
|
msgid "Starting Home Manager activation"
|
||||||
@@ -107,19 +107,19 @@ msgstr "Démarrage de l'activation de Home Manager"
|
|||||||
|
|
||||||
#: modules/lib-bash/activation-init.sh:55
|
#: modules/lib-bash/activation-init.sh:55
|
||||||
msgid "Sanity checking Nix"
|
msgid "Sanity checking Nix"
|
||||||
msgstr "Vérification rationnelle de Nix"
|
msgstr "Vérification de Nix"
|
||||||
|
|
||||||
#: modules/lib-bash/activation-init.sh:61
|
#: modules/lib-bash/activation-init.sh:61
|
||||||
msgid "This is a dry run"
|
msgid "This is a dry run"
|
||||||
msgstr "Ceci est une course à sec"
|
msgstr "Ceci est une fausse activation (essai à blanc)"
|
||||||
|
|
||||||
#: modules/lib-bash/activation-init.sh:64
|
#: modules/lib-bash/activation-init.sh:64
|
||||||
msgid "This is a live run"
|
msgid "This is a live run"
|
||||||
msgstr "Ceci est une course réelle"
|
msgstr "Ceci est une vraie activation"
|
||||||
|
|
||||||
#: modules/lib-bash/activation-init.sh:69
|
#: modules/lib-bash/activation-init.sh:69
|
||||||
msgid "Using Nix version: %s"
|
msgid "Using Nix version: %s"
|
||||||
msgstr "Usage de la version de Nix : %s"
|
msgstr "Version de Nix : %s"
|
||||||
|
|
||||||
#: modules/lib-bash/activation-init.sh:72
|
#: modules/lib-bash/activation-init.sh:72
|
||||||
msgid "Activation variables:"
|
msgid "Activation variables:"
|
||||||
|
|||||||
126
modules/po/nl.po
Normal file
126
modules/po/nl.po
Normal file
@@ -0,0 +1,126 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR Home Manager contributors
|
||||||
|
# This file is distributed under the same license as the Home Manager Modules package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Home Manager Modules\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/"
|
||||||
|
"modules/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"
|
||||||
|
|
||||||
|
#: modules/files.nix:233
|
||||||
|
msgid "Creating home file links in %s"
|
||||||
|
msgstr "Home-bestandskoppelingen aan het maken in %s"
|
||||||
|
|
||||||
|
#: modules/files.nix:246
|
||||||
|
msgid "Cleaning up orphan links from %s"
|
||||||
|
msgstr "Wees links van %s aan het opkuisen"
|
||||||
|
|
||||||
|
#: modules/files.nix:262
|
||||||
|
msgid "Creating profile generation %s"
|
||||||
|
msgstr "Profiel generatie %s aan het maken"
|
||||||
|
|
||||||
|
#: modules/files.nix:276
|
||||||
|
msgid "No change so reusing latest profile generation %s"
|
||||||
|
msgstr ""
|
||||||
|
"Geen veranderingen dus de laatste profiel generatie %s wordt hergebruikt"
|
||||||
|
|
||||||
|
#: modules/home-environment.nix:607
|
||||||
|
msgid ""
|
||||||
|
"Oops, Nix failed to install your new Home Manager profile!\n"
|
||||||
|
"\n"
|
||||||
|
"Perhaps there is a conflict with a package that was installed using\n"
|
||||||
|
"\"%s\"? Try running\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"and if there is a conflicting package you can remove it with\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"Then try activating your Home Manager configuration again."
|
||||||
|
msgstr ""
|
||||||
|
"Oei, het is Nix niet gelukt om je nieuwe Home Manager profiel te installeren!"
|
||||||
|
"\n"
|
||||||
|
"\n"
|
||||||
|
"Misschien is er een conflict met het pakket dat geïnstalleerd was met\n"
|
||||||
|
"\"%s\"? Probeer het volgende te draaien\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"en als er een pakket is dat een conflict geeft kan je dat verwijderen met\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"Probeer daarna je Home Manager configuratie opnieuw te activeren."
|
||||||
|
|
||||||
|
#: modules/home-environment.nix:639
|
||||||
|
msgid "Activating %s"
|
||||||
|
msgstr "%s aan het activeren"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:31
|
||||||
|
msgid "Sanity checking oldGenNum and oldGenPath"
|
||||||
|
msgstr "oldGenNum en oldGenPath aan het sanity checken"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:34
|
||||||
|
msgid ""
|
||||||
|
"The previous generation number and path are in conflict! These\n"
|
||||||
|
"must be either both empty or both set but are now set to\n"
|
||||||
|
"\n"
|
||||||
|
" '%s' and '%s'\n"
|
||||||
|
"\n"
|
||||||
|
"If you don't mind losing previous profile generations then\n"
|
||||||
|
"the easiest solution is probably to run\n"
|
||||||
|
"\n"
|
||||||
|
" rm %s/home-manager*\n"
|
||||||
|
" rm %s/current-home\n"
|
||||||
|
"\n"
|
||||||
|
"and trying home-manager switch again. Good luck!"
|
||||||
|
msgstr ""
|
||||||
|
"Er is een conflict met de generatie nummer en pad! Deze\n"
|
||||||
|
"moeten beide leeg of beide ingevuld zijn, maar zijn nu\n"
|
||||||
|
"\n"
|
||||||
|
" '%s' en '%s'\n"
|
||||||
|
"\n"
|
||||||
|
"Als je het niet erg vindt je vorige profiel generaties te verliezen dan\n"
|
||||||
|
"is waarschijnlijk de eenvoudigste oplossing om het volgende te draaien\n"
|
||||||
|
"\n"
|
||||||
|
" rm %s/home-manager*\n"
|
||||||
|
" rm %s/current-home\n"
|
||||||
|
"\n"
|
||||||
|
"en dan opnieuw 'home-manager switch' te proberen. Veel succes!"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:51
|
||||||
|
msgid "Starting Home Manager activation"
|
||||||
|
msgstr "Home manager activatie aan het starten"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:55
|
||||||
|
msgid "Sanity checking Nix"
|
||||||
|
msgstr "Nix aan het sanity checken"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:61
|
||||||
|
msgid "This is a dry run"
|
||||||
|
msgstr "Dit is een oefening"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:64
|
||||||
|
msgid "This is a live run"
|
||||||
|
msgstr "Dit is voor echt"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:69
|
||||||
|
msgid "Using Nix version: %s"
|
||||||
|
msgstr "Nix versie %s wordt gebruikt"
|
||||||
|
|
||||||
|
#: modules/lib-bash/activation-init.sh:72
|
||||||
|
msgid "Activation variables:"
|
||||||
|
msgstr "Activatie variabelen:"
|
||||||
@@ -8,8 +8,8 @@ msgstr ""
|
|||||||
"Project-Id-Version: Home Manager Modules\n"
|
"Project-Id-Version: Home Manager Modules\n"
|
||||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||||
"PO-Revision-Date: 2022-03-01 13:58+0000\n"
|
"PO-Revision-Date: 2022-11-16 13:47+0000\n"
|
||||||
"Last-Translator: Anon Ymous <mivon27841@shackvine.com>\n"
|
"Last-Translator: Jakub Janczak <kubek2k@gmail.com>\n"
|
||||||
"Language-Team: Polish <https://hosted.weblate.org/projects/home-manager/"
|
"Language-Team: Polish <https://hosted.weblate.org/projects/home-manager/"
|
||||||
"modules/pl/>\n"
|
"modules/pl/>\n"
|
||||||
"Language: pl\n"
|
"Language: pl\n"
|
||||||
@@ -18,7 +18,7 @@ msgstr ""
|
|||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
||||||
"|| n%100>=20) ? 1 : 2;\n"
|
"|| n%100>=20) ? 1 : 2;\n"
|
||||||
"X-Generator: Weblate 4.11.1-dev\n"
|
"X-Generator: Weblate 4.15-dev\n"
|
||||||
|
|
||||||
#: modules/files.nix:233
|
#: modules/files.nix:233
|
||||||
msgid "Creating home file links in %s"
|
msgid "Creating home file links in %s"
|
||||||
@@ -51,6 +51,18 @@ msgid ""
|
|||||||
"\n"
|
"\n"
|
||||||
"Then try activating your Home Manager configuration again."
|
"Then try activating your Home Manager configuration again."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"Oops, Nix nie zdołał zainstalować twojego profilu Home Manager'a!\n"
|
||||||
|
"\n"
|
||||||
|
"Być może zaistniał konflikt z pakietem zainstalowanym przez\n"
|
||||||
|
"\"%s\"? Spróbuj uruchomić\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"i jeśli istnieje konflikt możesz spróbować go rozwiązać uruchamiając\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"Następnie spróbuj aktywować konfigurację Home Manager'a ponownie."
|
||||||
|
|
||||||
#: modules/home-environment.nix:639
|
#: modules/home-environment.nix:639
|
||||||
msgid "Activating %s"
|
msgid "Activating %s"
|
||||||
@@ -75,6 +87,18 @@ msgid ""
|
|||||||
"\n"
|
"\n"
|
||||||
"and trying home-manager switch again. Good luck!"
|
"and trying home-manager switch again. Good luck!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"Istnieje konflikt pomiędzy poprzednią generacją i ścieżką! Powinny\n"
|
||||||
|
"być obie puste lub ustawione, a efektywnie są ustawione na:\n"
|
||||||
|
"\n"
|
||||||
|
" '%s' i '%s'\n"
|
||||||
|
"\n"
|
||||||
|
"Jeśli możesz sobie pozwolić na utratę poprzednich generacji,\n"
|
||||||
|
"możesz uruchomić\n"
|
||||||
|
"\n"
|
||||||
|
" rm %s/home-manager*\n"
|
||||||
|
" rm %s/current-home\n"
|
||||||
|
"\n"
|
||||||
|
"i spróbować uruchomić home-manager switch raz jeszcze. Powodzenia!"
|
||||||
|
|
||||||
#: modules/lib-bash/activation-init.sh:51
|
#: modules/lib-bash/activation-init.sh:51
|
||||||
msgid "Starting Home Manager activation"
|
msgid "Starting Home Manager activation"
|
||||||
@@ -85,19 +109,17 @@ msgid "Sanity checking Nix"
|
|||||||
msgstr "Sprawdzanie poprawności Nix"
|
msgstr "Sprawdzanie poprawności Nix"
|
||||||
|
|
||||||
#: modules/lib-bash/activation-init.sh:61
|
#: modules/lib-bash/activation-init.sh:61
|
||||||
#, fuzzy
|
|
||||||
msgid "This is a dry run"
|
msgid "This is a dry run"
|
||||||
msgstr "To jest próbne wykonanie"
|
msgstr "To jest wykonanie testowe"
|
||||||
|
|
||||||
#: modules/lib-bash/activation-init.sh:64
|
#: modules/lib-bash/activation-init.sh:64
|
||||||
msgid "This is a live run"
|
msgid "This is a live run"
|
||||||
msgstr ""
|
msgstr "To jest wykonanie właściwe"
|
||||||
|
|
||||||
#: modules/lib-bash/activation-init.sh:69
|
#: modules/lib-bash/activation-init.sh:69
|
||||||
msgid "Using Nix version: %s"
|
msgid "Using Nix version: %s"
|
||||||
msgstr "Używając wersji Nix: %s"
|
msgstr "Używając wersji Nix: %s"
|
||||||
|
|
||||||
#: modules/lib-bash/activation-init.sh:72
|
#: modules/lib-bash/activation-init.sh:72
|
||||||
#, fuzzy
|
|
||||||
msgid "Activation variables:"
|
msgid "Activation variables:"
|
||||||
msgstr "Zmienne aktywacyjne:"
|
msgstr "Zmienne aktywacyjne:"
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ msgstr ""
|
|||||||
"Project-Id-Version: Home Manager Modules\n"
|
"Project-Id-Version: Home Manager Modules\n"
|
||||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||||
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
"POT-Creation-Date: 2022-03-26 15:08+0100\n"
|
||||||
"PO-Revision-Date: 2022-05-05 07:14+0000\n"
|
"PO-Revision-Date: 2022-05-16 13:18+0000\n"
|
||||||
"Last-Translator: Peng Guanwen <pg999w@outlook.com>\n"
|
"Last-Translator: Yubo-Cao <Cao2006721@gmail.com>\n"
|
||||||
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/"
|
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/"
|
||||||
"home-manager/modules/zh_Hans/>\n"
|
"home-manager/modules/zh_Hans/>\n"
|
||||||
"Language: zh_Hans\n"
|
"Language: zh_Hans\n"
|
||||||
@@ -17,7 +17,7 @@ msgstr ""
|
|||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||||
"X-Generator: Weblate 4.12.1\n"
|
"X-Generator: Weblate 4.13-dev\n"
|
||||||
|
|
||||||
#: modules/files.nix:233
|
#: modules/files.nix:233
|
||||||
msgid "Creating home file links in %s"
|
msgid "Creating home file links in %s"
|
||||||
@@ -50,6 +50,18 @@ msgid ""
|
|||||||
"\n"
|
"\n"
|
||||||
"Then try activating your Home Manager configuration again."
|
"Then try activating your Home Manager configuration again."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"糟糕,Nix 未能安装您的新 Home Manager 配置文件!\n"
|
||||||
|
"\n"
|
||||||
|
"也许这里和使用 \"%s\" 安装的包有冲突?\n"
|
||||||
|
"尝试运行\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"如果有冲突的包,你可以用\n"
|
||||||
|
"\n"
|
||||||
|
" %s\n"
|
||||||
|
"\n"
|
||||||
|
"来移除。然后尝试再次激活您的 Home Manager 配置。"
|
||||||
|
|
||||||
#: modules/home-environment.nix:639
|
#: modules/home-environment.nix:639
|
||||||
msgid "Activating %s"
|
msgid "Activating %s"
|
||||||
|
|||||||
131
modules/programs/aerc-accounts.nix
Normal file
131
modules/programs/aerc-accounts.nix
Normal file
@@ -0,0 +1,131 @@
|
|||||||
|
{ config, lib, pkgs, confSections, confSection, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
mapAttrNames = f: attr:
|
||||||
|
with builtins;
|
||||||
|
listToAttrs (attrValues (mapAttrs (k: v: {
|
||||||
|
name = f k;
|
||||||
|
value = v;
|
||||||
|
}) attr));
|
||||||
|
addAccountName = name: k: "${k}:account=${name}";
|
||||||
|
in {
|
||||||
|
type = mkOption {
|
||||||
|
type = types.attrsOf (types.submodule {
|
||||||
|
options.aerc = {
|
||||||
|
enable = mkEnableOption "aerc";
|
||||||
|
extraAccounts = mkOption {
|
||||||
|
type = confSection;
|
||||||
|
default = { };
|
||||||
|
example =
|
||||||
|
literalExpression ''{ source = "maildir://~/Maildir/example"; }'';
|
||||||
|
description = ''
|
||||||
|
Extra config added to the configuration of this account in
|
||||||
|
<filename>$HOME/.config/aerc/accounts.conf</filename>.
|
||||||
|
See aerc-config(5).
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
extraBinds = mkOption {
|
||||||
|
type = confSections;
|
||||||
|
default = { };
|
||||||
|
example = literalExpression
|
||||||
|
''{ messages = { d = ":move ''${folder.trash}<Enter>"; }; }'';
|
||||||
|
description = ''
|
||||||
|
Extra bindings specific to this account, added to
|
||||||
|
<filename>$HOME/.config/aerc/accounts.conf</filename>.
|
||||||
|
See aerc-config(5).
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
extraConfig = mkOption {
|
||||||
|
type = confSections;
|
||||||
|
default = { };
|
||||||
|
example = literalExpression "{ ui = { sidebar-width = 42; }; }";
|
||||||
|
description = ''
|
||||||
|
Extra config specific to this account, added to
|
||||||
|
<filename>$HOME/.config/aerc/aerc.conf</filename>.
|
||||||
|
See aerc-config(5).
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
smtpAuth = mkOption {
|
||||||
|
type = with types; nullOr (enum [ "none" "plain" "login" ]);
|
||||||
|
default = "plain";
|
||||||
|
example = "auth";
|
||||||
|
description = ''
|
||||||
|
Sets the authentication mechanism if smtp is used as the outgoing
|
||||||
|
method.
|
||||||
|
See aerc-smtp(5).
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
mkAccount = name: account:
|
||||||
|
let
|
||||||
|
nullOrMap = f: v: if v == null then v else f v;
|
||||||
|
optPort = port: if port != null then ":${toString port}" else "";
|
||||||
|
optAttr = k: v:
|
||||||
|
if v != null && v != [ ] && v != "" then { ${k} = v; } else { };
|
||||||
|
optPwCmd = k: p:
|
||||||
|
optAttr "${k}-cred-cmd" (nullOrMap (builtins.concatStringsSep " ") p);
|
||||||
|
mkConfig = {
|
||||||
|
maildir = cfg: {
|
||||||
|
source =
|
||||||
|
"maildir://${config.accounts.email.maildirBasePath}/${cfg.maildir.path}";
|
||||||
|
};
|
||||||
|
imap = { userName, imap, passwordCommand, aerc, ... }@cfg:
|
||||||
|
let
|
||||||
|
protocol = if imap.tls.enable then
|
||||||
|
if imap.tls.useStartTls then "imap" else "imaps"
|
||||||
|
else
|
||||||
|
"imap+insecure";
|
||||||
|
port' = optPort imap.port;
|
||||||
|
in {
|
||||||
|
source = "${protocol}://${userName}@${imap.host}${port'}";
|
||||||
|
} // optPwCmd "source" passwordCommand;
|
||||||
|
smtp = { userName, smtp, passwordCommand, ... }@cfg:
|
||||||
|
let
|
||||||
|
loginMethod' =
|
||||||
|
if cfg.aerc.smtpAuth != null then "+${cfg.aerc.smtpAuth}" else "";
|
||||||
|
protocol = if smtp.tls.enable && !smtp.tls.useStartTls then
|
||||||
|
"smtps${loginMethod'}"
|
||||||
|
else
|
||||||
|
"smtp${loginMethod'}";
|
||||||
|
port' = optPort smtp.port;
|
||||||
|
smtp-starttls =
|
||||||
|
if smtp.tls.enable && smtp.tls.useStartTls then "yes" else null;
|
||||||
|
in {
|
||||||
|
outgoing = "${protocol}://${userName}@${smtp.host}${port'}";
|
||||||
|
} // optPwCmd "outgoing" passwordCommand
|
||||||
|
// optAttr "smtp-starttls" smtp-starttls;
|
||||||
|
msmtp = cfg: {
|
||||||
|
outgoing = "msmtpq --read-envelope-from --read-recipients";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
basicCfg = account:
|
||||||
|
{
|
||||||
|
from = "${account.realName} <${account.address}>";
|
||||||
|
} // (optAttr "copy-to" account.folders.sent)
|
||||||
|
// (optAttr "default" account.folders.inbox)
|
||||||
|
// (optAttr "postpone" account.folders.drafts)
|
||||||
|
// (optAttr "aliases" account.aliases) // account.aerc.extraAccounts;
|
||||||
|
sourceCfg = account:
|
||||||
|
if account.mbsync.enable || account.offlineimap.enable then
|
||||||
|
mkConfig.maildir account
|
||||||
|
else if account.imap != null then
|
||||||
|
mkConfig.imap account
|
||||||
|
else
|
||||||
|
{ };
|
||||||
|
outgoingCfg = account:
|
||||||
|
if account.msmtp.enable then
|
||||||
|
mkConfig.msmtp account
|
||||||
|
else if account.smtp != null then
|
||||||
|
mkConfig.smtp account
|
||||||
|
else
|
||||||
|
{ };
|
||||||
|
in (basicCfg account) // (sourceCfg account) // (outgoingCfg account);
|
||||||
|
mkAccountConfig = name: account:
|
||||||
|
mapAttrNames (addAccountName name) account.aerc.extraConfig;
|
||||||
|
mkAccountBinds = name: account:
|
||||||
|
mapAttrNames (addAccountName name) account.aerc.extraBinds;
|
||||||
|
}
|
||||||
165
modules/programs/aerc.nix
Normal file
165
modules/programs/aerc.nix
Normal file
@@ -0,0 +1,165 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.programs.aerc;
|
||||||
|
primitive = with types;
|
||||||
|
((type: either type (listOf type)) (nullOr (oneOf [ str int bool float ])))
|
||||||
|
// {
|
||||||
|
description =
|
||||||
|
"values (null, bool, int, string of float) or a list of values, that will be joined with a comma";
|
||||||
|
};
|
||||||
|
confSection = types.attrsOf primitive;
|
||||||
|
confSections = types.attrsOf confSection;
|
||||||
|
sectionsOrLines = types.either types.lines confSections;
|
||||||
|
accounts = import ./aerc-accounts.nix {
|
||||||
|
inherit config pkgs lib confSection confSections;
|
||||||
|
};
|
||||||
|
aerc-accounts =
|
||||||
|
attrsets.filterAttrs (_: v: v.aerc.enable) config.accounts.email.accounts;
|
||||||
|
in {
|
||||||
|
meta.maintainers = with lib.hm.maintainers; [ lukasngl ];
|
||||||
|
|
||||||
|
options.accounts.email.accounts = accounts.type;
|
||||||
|
options.programs.aerc = {
|
||||||
|
|
||||||
|
enable = mkEnableOption "aerc";
|
||||||
|
|
||||||
|
extraAccounts = mkOption {
|
||||||
|
type = sectionsOrLines;
|
||||||
|
default = { };
|
||||||
|
example = literalExpression
|
||||||
|
''{ Work = { source = "maildir://~/Maildir/work"; }; }'';
|
||||||
|
description = ''
|
||||||
|
Extra lines added to <filename>$HOME/.config/aerc/accounts.conf</filename>.
|
||||||
|
See aerc-config(5).
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
extraBinds = mkOption {
|
||||||
|
type = sectionsOrLines;
|
||||||
|
default = { };
|
||||||
|
example = literalExpression ''{ messages = { q = ":quit<Enter>"; }; }'';
|
||||||
|
description = ''
|
||||||
|
Extra lines added to <filename>$HOME/.config/aerc/binds.conf</filename>.
|
||||||
|
Global keybindings can be set in the `global` section.
|
||||||
|
See aerc-config(5).
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = mkOption {
|
||||||
|
type = sectionsOrLines;
|
||||||
|
default = { };
|
||||||
|
example = literalExpression ''{ ui = { sort = "-r date"; }; }'';
|
||||||
|
description = ''
|
||||||
|
Extra lines added to <filename>$HOME/.config/aerc/aerc.conf</filename>.
|
||||||
|
See aerc-config(5).
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
stylesets = mkOption {
|
||||||
|
type = with types; attrsOf (either confSection lines);
|
||||||
|
default = { };
|
||||||
|
example = literalExpression ''
|
||||||
|
{ default = { ui = { "tab.selected.reverse" = toggle; }; }; };
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Stylesets added to <filename>$HOME/.config/aerc/stylesets/</filename>.
|
||||||
|
See aerc-stylesets(7).
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
templates = mkOption {
|
||||||
|
type = with types; attrsOf lines;
|
||||||
|
default = { };
|
||||||
|
example = literalExpression ''
|
||||||
|
{ new_message = "Hello!"; };
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Templates added to <filename>$HOME/.config/aerc/templates/</filename>.
|
||||||
|
See aerc-templates(7).
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = let
|
||||||
|
joinCfg = cfgs:
|
||||||
|
with builtins;
|
||||||
|
concatStringsSep "\n" (filter (v: v != "") cfgs);
|
||||||
|
toINI = conf: # quirk: global section is prepended w/o section heading
|
||||||
|
let
|
||||||
|
global = conf.global or { };
|
||||||
|
local = removeAttrs conf [ "global" ];
|
||||||
|
optNewLine = if global != { } && local != { } then "\n" else "";
|
||||||
|
mkValueString = v:
|
||||||
|
with builtins;
|
||||||
|
if isList v then # join with comma
|
||||||
|
concatStringsSep "," (map (generators.mkValueStringDefault { }) v)
|
||||||
|
else
|
||||||
|
generators.mkValueStringDefault { } v;
|
||||||
|
mkKeyValue =
|
||||||
|
generators.mkKeyValueDefault { inherit mkValueString; } " = ";
|
||||||
|
in joinCfg [
|
||||||
|
(generators.toKeyValue { inherit mkKeyValue; } global)
|
||||||
|
(generators.toINI { inherit mkKeyValue; } local)
|
||||||
|
];
|
||||||
|
mkINI = conf: if builtins.isString conf then conf else toINI conf;
|
||||||
|
mkStyleset = attrsets.mapAttrs' (k: v:
|
||||||
|
let value = if builtins.isString v then v else toINI { global = v; };
|
||||||
|
in {
|
||||||
|
name = "aerc/stylesets/${k}";
|
||||||
|
value.text = joinCfg [ header value ];
|
||||||
|
});
|
||||||
|
mkTemplates = attrsets.mapAttrs' (k: v: {
|
||||||
|
name = "aerc/templates/${k}";
|
||||||
|
value.text = v;
|
||||||
|
});
|
||||||
|
accountsExtraAccounts = builtins.mapAttrs accounts.mkAccount aerc-accounts;
|
||||||
|
accountsExtraConfig =
|
||||||
|
builtins.mapAttrs accounts.mkAccountConfig aerc-accounts;
|
||||||
|
accountsExtraBinds =
|
||||||
|
builtins.mapAttrs accounts.mkAccountBinds aerc-accounts;
|
||||||
|
joinContextual = contextual:
|
||||||
|
with builtins;
|
||||||
|
joinCfg (map mkINI (attrValues contextual));
|
||||||
|
header = ''
|
||||||
|
# Generated by Home Manager.
|
||||||
|
'';
|
||||||
|
in mkIf cfg.enable {
|
||||||
|
warnings = if ((cfg.extraAccounts != "" && cfg.extraAccounts != { })
|
||||||
|
|| accountsExtraAccounts != { })
|
||||||
|
&& (cfg.extraConfig.general.unsafe-accounts-conf or false) == false then [''
|
||||||
|
aerc: An email account was configured, but `extraConfig.general.unsafe-accounts-conf` is set to false or unset.
|
||||||
|
This will prevent aerc from starting, see `unsafe-accounts-conf` in aerc-config(5) for details.
|
||||||
|
Consider setting the option `extraConfig.general.unsafe-accounts-conf` to true.
|
||||||
|
''] else
|
||||||
|
[ ];
|
||||||
|
home.packages = [ pkgs.aerc ];
|
||||||
|
xdg.configFile = {
|
||||||
|
"aerc/accounts.conf" = mkIf
|
||||||
|
((cfg.extraAccounts != "" && cfg.extraAccounts != { })
|
||||||
|
|| accountsExtraAccounts != { }) {
|
||||||
|
text = joinCfg [
|
||||||
|
header
|
||||||
|
(mkINI cfg.extraAccounts)
|
||||||
|
(mkINI accountsExtraAccounts)
|
||||||
|
];
|
||||||
|
};
|
||||||
|
"aerc/aerc.conf" =
|
||||||
|
mkIf (cfg.extraConfig != "" && cfg.extraConfig != { }) {
|
||||||
|
text = joinCfg [
|
||||||
|
header
|
||||||
|
(mkINI cfg.extraConfig)
|
||||||
|
(joinContextual accountsExtraConfig)
|
||||||
|
];
|
||||||
|
};
|
||||||
|
"aerc/binds.conf" = mkIf ((cfg.extraBinds != "" && cfg.extraBinds != { })
|
||||||
|
|| accountsExtraBinds != { }) {
|
||||||
|
text = joinCfg [
|
||||||
|
header
|
||||||
|
(mkINI cfg.extraBinds)
|
||||||
|
(joinContextual accountsExtraBinds)
|
||||||
|
];
|
||||||
|
};
|
||||||
|
} // (mkStyleset cfg.stylesets) // (mkTemplates cfg.templates);
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -305,7 +305,7 @@ in {
|
|||||||
DPI=144
|
DPI=144
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown profle: $AUTORANDR_CURRENT_PROFILE"
|
echo "Unknown profile: $AUTORANDR_CURRENT_PROFILE"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,27 @@ in
|
|||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = mkEnableOption "GNU Bourne-Again SHell";
|
enable = mkEnableOption "GNU Bourne-Again SHell";
|
||||||
|
|
||||||
|
enableCompletion = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
description = ''
|
||||||
|
Whether to enable Bash completion for all interactive Bash shells.
|
||||||
|
|
||||||
|
</para><para>
|
||||||
|
|
||||||
|
Note, if you use NixOS or nix-darwin and do not have Bash completion
|
||||||
|
enabled in the system configuration, then make sure to add
|
||||||
|
|
||||||
|
<programlisting language="nix">
|
||||||
|
environment.pathsToLink = [ "/share/bash-completion" ];
|
||||||
|
</programlisting>
|
||||||
|
|
||||||
|
to your system configuration to get completion for system packages.
|
||||||
|
Note, the legacy <filename>/etc/bash_completion.d</filename> path is
|
||||||
|
not supported by Home Manager.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
historySize = mkOption {
|
historySize = mkOption {
|
||||||
type = types.int;
|
type = types.int;
|
||||||
default = 10000;
|
default = 10000;
|
||||||
@@ -193,6 +214,15 @@ in
|
|||||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# If completion is enabled then make sure it is sourced very early. This
|
||||||
|
# is to avoid problems if any other initialization code attempts to set up
|
||||||
|
# completion.
|
||||||
|
programs.bash.initExtra = mkIf cfg.enableCompletion (mkOrder 100 ''
|
||||||
|
if [[ ! -v BASH_COMPLETION_VERSINFO ]]; then
|
||||||
|
. "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh"
|
||||||
|
fi
|
||||||
|
'');
|
||||||
|
|
||||||
home.file.".profile".source = writeBashScript "profile" ''
|
home.file.".profile".source = writeBashScript "profile" ''
|
||||||
. "${config.home.profileDirectory}/etc/profile.d/hm-session-vars.sh"
|
. "${config.home.profileDirectory}/etc/profile.d/hm-session-vars.sh"
|
||||||
|
|
||||||
|
|||||||
34
modules/programs/bashmount.nix
Normal file
34
modules/programs/bashmount.nix
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
cfg = config.programs.bashmount;
|
||||||
|
|
||||||
|
in {
|
||||||
|
meta.maintainers = [ maintainers.AndersonTorres ];
|
||||||
|
|
||||||
|
options.programs.bashmount = {
|
||||||
|
enable = mkEnableOption "bashmount";
|
||||||
|
|
||||||
|
extraConfig = mkOption {
|
||||||
|
type = types.lines;
|
||||||
|
default = "";
|
||||||
|
description = ''
|
||||||
|
Configuration written to
|
||||||
|
<filename>$XDG_CONFIG_HOME/bashmount/config</filename>. Look at
|
||||||
|
<link xlink:href="https://github.com/jamielinux/bashmount/blob/master/bashmount.conf" />
|
||||||
|
for explanation about possible values.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home.packages = [ pkgs.bashmount ];
|
||||||
|
|
||||||
|
xdg.configFile."bashmount/config" =
|
||||||
|
mkIf (cfg.extraConfig != "") { text = cfg.extraConfig; };
|
||||||
|
};
|
||||||
|
}
|
||||||
196
modules/programs/borgmatic.nix
Normal file
196
modules/programs/borgmatic.nix
Normal file
@@ -0,0 +1,196 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.programs.borgmatic;
|
||||||
|
|
||||||
|
mkNullableOption = args:
|
||||||
|
lib.mkOption (args // {
|
||||||
|
type = lib.types.nullOr args.type;
|
||||||
|
default = null;
|
||||||
|
});
|
||||||
|
|
||||||
|
mkRetentionOption = frequency:
|
||||||
|
mkNullableOption {
|
||||||
|
type = types.int;
|
||||||
|
description =
|
||||||
|
"Number of ${frequency} archives to keep. Use -1 for no limit.";
|
||||||
|
example = 3;
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfigOption = mkOption {
|
||||||
|
type = with types; attrsOf (oneOf [ str bool path int ]);
|
||||||
|
default = { };
|
||||||
|
description = "Extra settings.";
|
||||||
|
};
|
||||||
|
|
||||||
|
consistencyCheckModule = types.submodule {
|
||||||
|
options = {
|
||||||
|
name = mkOption {
|
||||||
|
type = types.enum [ "repository" "archives" "data" "extract" ];
|
||||||
|
description = "Name of consistency check to run.";
|
||||||
|
example = "repository";
|
||||||
|
};
|
||||||
|
|
||||||
|
frequency = mkNullableOption {
|
||||||
|
type = types.strMatching "([[:digit:]]+ .*)|always";
|
||||||
|
description = "Frequency of this type of check";
|
||||||
|
example = "2 weeks";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
configModule = types.submodule {
|
||||||
|
options = {
|
||||||
|
location = {
|
||||||
|
sourceDirectories = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
description = "Directories to backup.";
|
||||||
|
example = literalExpression "[config.home.homeDirectory]";
|
||||||
|
};
|
||||||
|
|
||||||
|
repositories = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
description = "Paths to repositories.";
|
||||||
|
example =
|
||||||
|
literalExpression ''["ssh://myuser@myrepo.myserver.com/./repo"]'';
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = extraConfigOption;
|
||||||
|
};
|
||||||
|
|
||||||
|
storage = {
|
||||||
|
encryptionPasscommand = mkNullableOption {
|
||||||
|
type = types.str;
|
||||||
|
description = "Command writing the passphrase to standard output.";
|
||||||
|
example =
|
||||||
|
literalExpression ''"''${pkgs.password-store}/bin/pass borg-repo"'';
|
||||||
|
};
|
||||||
|
extraConfig = extraConfigOption;
|
||||||
|
};
|
||||||
|
|
||||||
|
retention = {
|
||||||
|
keepWithin = mkNullableOption {
|
||||||
|
type = types.strMatching "[[:digit:]]+[Hdwmy]";
|
||||||
|
description = "Keep all archives within this time interval.";
|
||||||
|
example = "2d";
|
||||||
|
};
|
||||||
|
|
||||||
|
keepSecondly = mkRetentionOption "secondly";
|
||||||
|
keepMinutely = mkRetentionOption "minutely";
|
||||||
|
keepHourly = mkRetentionOption "hourly";
|
||||||
|
keepDaily = mkRetentionOption "daily";
|
||||||
|
keepWeekly = mkRetentionOption "weekly";
|
||||||
|
keepMonthly = mkRetentionOption "monthly";
|
||||||
|
keepYearly = mkRetentionOption "yearly";
|
||||||
|
|
||||||
|
extraConfig = extraConfigOption;
|
||||||
|
};
|
||||||
|
|
||||||
|
consistency = {
|
||||||
|
checks = mkOption {
|
||||||
|
type = types.listOf consistencyCheckModule;
|
||||||
|
default = [ ];
|
||||||
|
description = "Consistency checks to run";
|
||||||
|
example = literalExpression ''
|
||||||
|
[
|
||||||
|
{
|
||||||
|
name = "repository";
|
||||||
|
frequency = "2 weeks";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "archives";
|
||||||
|
frequency = "4 weeks";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "data";
|
||||||
|
frequency = "6 weeks";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "extract";
|
||||||
|
frequency = "6 weeks";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = extraConfigOption;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
removeNullValues = attrSet: filterAttrs (key: value: value != null) attrSet;
|
||||||
|
|
||||||
|
writeConfig = config:
|
||||||
|
generators.toYAML { } {
|
||||||
|
location = removeNullValues {
|
||||||
|
source_directories = config.location.sourceDirectories;
|
||||||
|
repositories = config.location.repositories;
|
||||||
|
} // config.location.extraConfig;
|
||||||
|
storage = removeNullValues {
|
||||||
|
encryption_passcommand = config.storage.encryptionPasscommand;
|
||||||
|
} // config.storage.extraConfig;
|
||||||
|
retention = removeNullValues {
|
||||||
|
keep_within = config.retention.keepWithin;
|
||||||
|
keep_secondly = config.retention.keepSecondly;
|
||||||
|
keep_minutely = config.retention.keepMinutely;
|
||||||
|
keep_hourly = config.retention.keepHourly;
|
||||||
|
keep_daily = config.retention.keepDaily;
|
||||||
|
keep_weekly = config.retention.keepWeekly;
|
||||||
|
keep_monthly = config.retention.keepMonthly;
|
||||||
|
keep_yearly = config.retention.keepYearly;
|
||||||
|
} // config.retention.extraConfig;
|
||||||
|
consistency = removeNullValues { checks = config.consistency.checks; }
|
||||||
|
// config.consistency.extraConfig;
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
meta.maintainers = [ maintainers.DamienCassou ];
|
||||||
|
|
||||||
|
options = {
|
||||||
|
programs.borgmatic = {
|
||||||
|
enable = mkEnableOption "Borgmatic";
|
||||||
|
|
||||||
|
package = mkPackageOption pkgs "borgmatic" { };
|
||||||
|
|
||||||
|
backups = mkOption {
|
||||||
|
type = types.attrsOf configModule;
|
||||||
|
description = ''
|
||||||
|
Borgmatic allows for several named backup configurations,
|
||||||
|
each with its own source directories and repositories.
|
||||||
|
'';
|
||||||
|
example = literalExpression ''
|
||||||
|
{
|
||||||
|
personal = {
|
||||||
|
location = {
|
||||||
|
sourceDirectories = [ "/home/me/personal" ];
|
||||||
|
repositories = [ "ssh://myuser@myserver.com/./personal-repo" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
work = {
|
||||||
|
location = {
|
||||||
|
sourceDirectories = [ "/home/me/work" ];
|
||||||
|
repositories = [ "ssh://myuser@myserver.com/./work-repo" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
assertions = [
|
||||||
|
(lib.hm.assertions.assertPlatform "programs.borgmatic" pkgs
|
||||||
|
lib.platforms.linux)
|
||||||
|
];
|
||||||
|
|
||||||
|
xdg.configFile = with lib.attrsets;
|
||||||
|
mapAttrs' (configName: config:
|
||||||
|
nameValuePair ("borgmatic.d/" + configName + ".yaml") {
|
||||||
|
text = writeConfig config;
|
||||||
|
}) cfg.backups;
|
||||||
|
|
||||||
|
home.packages = [ cfg.package ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -8,15 +8,160 @@ let
|
|||||||
|
|
||||||
tomlFormat = pkgs.formats.toml { };
|
tomlFormat = pkgs.formats.toml { };
|
||||||
|
|
||||||
brootConf = {
|
settingsModule = {
|
||||||
verbs = cfg.verbs;
|
freeformType = tomlFormat.type;
|
||||||
skin = cfg.skin;
|
|
||||||
modal = cfg.modal;
|
options = {
|
||||||
|
modal = mkEnableOption "modal (vim) mode";
|
||||||
|
|
||||||
|
verbs = mkOption {
|
||||||
|
type = with types; listOf (attrsOf (either bool str));
|
||||||
|
default = [ ];
|
||||||
|
example = literalExpression ''
|
||||||
|
[
|
||||||
|
{ invocation = "p"; execution = ":parent"; }
|
||||||
|
{ invocation = "edit"; shortcut = "e"; execution = "$EDITOR {file}" ; }
|
||||||
|
{ invocation = "create {subpath}"; execution = "$EDITOR {directory}/{subpath}"; }
|
||||||
|
{ invocation = "view"; execution = "less {file}"; }
|
||||||
|
{
|
||||||
|
invocation = "blop {name}\\.{type}";
|
||||||
|
execution = "mkdir {parent}/{type} && ''${pkgs.neovim}/bin/nvim {parent}/{type}/{name}.{type}";
|
||||||
|
from_shell = true;
|
||||||
|
}
|
||||||
|
]
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Define new verbs. For more information, see
|
||||||
|
<link xlink:href="https://dystroy.org/broot/documentation/configuration/#verb-definition-attributes"/>.
|
||||||
|
</para><para>
|
||||||
|
The possible attributes are:
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term><literal>invocation</literal> (optional)</term>
|
||||||
|
<listitem><para>how the verb is called by the user, with placeholders for arguments</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><literal>execution</literal> (mandatory)</term>
|
||||||
|
<listitem><para>how the verb is executed</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><literal>key</literal> (optional)</term>
|
||||||
|
<listitem><para>a keyboard key triggering execution</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><literal>shortcut</literal> (optional)</term>
|
||||||
|
<listitem><para>an alternate way to call the verb (without
|
||||||
|
the arguments part)</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><literal>leave_broot</literal> (optional)</term>
|
||||||
|
<listitem><para>whether to quit broot on execution
|
||||||
|
(default: <literal>true</literal>)</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><literal>from_shell</literal> (optional)</term>
|
||||||
|
<listitem><para>whether the verb must be executed from the
|
||||||
|
parent shell (default:
|
||||||
|
<literal>false</literal>)</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
skin = mkOption {
|
||||||
|
type = types.attrsOf types.str;
|
||||||
|
default = { };
|
||||||
|
example = literalExpression ''
|
||||||
|
{
|
||||||
|
status_normal_fg = "grayscale(18)";
|
||||||
|
status_normal_bg = "grayscale(3)";
|
||||||
|
status_error_fg = "red";
|
||||||
|
status_error_bg = "yellow";
|
||||||
|
tree_fg = "red";
|
||||||
|
selected_line_bg = "grayscale(7)";
|
||||||
|
permissions_fg = "grayscale(12)";
|
||||||
|
size_bar_full_bg = "red";
|
||||||
|
size_bar_void_bg = "black";
|
||||||
|
directory_fg = "lightyellow";
|
||||||
|
input_fg = "cyan";
|
||||||
|
flag_value_fg = "lightyellow";
|
||||||
|
table_border_fg = "red";
|
||||||
|
code_fg = "lightyellow";
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Color configuration.
|
||||||
|
</para><para>
|
||||||
|
Complete list of keys (expected to change before the v1 of broot):
|
||||||
|
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem><para><literal>char_match</literal></para></listitem>
|
||||||
|
<listitem><para><literal>code</literal></para></listitem>
|
||||||
|
<listitem><para><literal>directory</literal></para></listitem>
|
||||||
|
<listitem><para><literal>exe</literal></para></listitem>
|
||||||
|
<listitem><para><literal>file</literal></para></listitem>
|
||||||
|
<listitem><para><literal>file_error</literal></para></listitem>
|
||||||
|
<listitem><para><literal>flag_label</literal></para></listitem>
|
||||||
|
<listitem><para><literal>flag_value</literal></para></listitem>
|
||||||
|
<listitem><para><literal>input</literal></para></listitem>
|
||||||
|
<listitem><para><literal>link</literal></para></listitem>
|
||||||
|
<listitem><para><literal>permissions</literal></para></listitem>
|
||||||
|
<listitem><para><literal>selected_line</literal></para></listitem>
|
||||||
|
<listitem><para><literal>size_bar_full</literal></para></listitem>
|
||||||
|
<listitem><para><literal>size_bar_void</literal></para></listitem>
|
||||||
|
<listitem><para><literal>size_text</literal></para></listitem>
|
||||||
|
<listitem><para><literal>spinner</literal></para></listitem>
|
||||||
|
<listitem><para><literal>status_error</literal></para></listitem>
|
||||||
|
<listitem><para><literal>status_normal</literal></para></listitem>
|
||||||
|
<listitem><para><literal>table_border</literal></para></listitem>
|
||||||
|
<listitem><para><literal>tree</literal></para></listitem>
|
||||||
|
<listitem><para><literal>unlisted</literal></para></listitem>
|
||||||
|
</itemizedlist></para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Add <literal>_fg</literal> for a foreground color and
|
||||||
|
<literal>_bg</literal> for a background colors.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
shellInit = shell:
|
||||||
|
# Using mkAfter to make it more likely to appear after other
|
||||||
|
# manipulations of the prompt.
|
||||||
|
mkAfter ''
|
||||||
|
source ${
|
||||||
|
pkgs.runCommand "br.${shell}" { nativeBuildInputs = [ cfg.package ]; }
|
||||||
|
"broot --print-shell-function ${shell} > $out"
|
||||||
|
}
|
||||||
|
'';
|
||||||
in {
|
in {
|
||||||
meta.maintainers = [ hm.maintainers.aheaume ];
|
meta.maintainers = [ hm.maintainers.aheaume ];
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
(mkRenamedOptionModule [ "programs" "broot" "modal" ] [
|
||||||
|
"programs"
|
||||||
|
"broot"
|
||||||
|
"settings"
|
||||||
|
"modal"
|
||||||
|
])
|
||||||
|
(mkRenamedOptionModule [ "programs" "broot" "verbs" ] [
|
||||||
|
"programs"
|
||||||
|
"broot"
|
||||||
|
"settings"
|
||||||
|
"verbs"
|
||||||
|
])
|
||||||
|
(mkRenamedOptionModule [ "programs" "broot" "skin" ] [
|
||||||
|
"programs"
|
||||||
|
"broot"
|
||||||
|
"settings"
|
||||||
|
"skin"
|
||||||
|
])
|
||||||
|
];
|
||||||
|
|
||||||
options.programs.broot = {
|
options.programs.broot = {
|
||||||
enable = mkEnableOption "Broot, a better way to navigate directories";
|
enable = mkEnableOption "Broot, a better way to navigate directories";
|
||||||
|
|
||||||
@@ -44,83 +189,6 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
modal = mkEnableOption "modal (vim) mode";
|
|
||||||
|
|
||||||
verbs = mkOption {
|
|
||||||
type = with types; listOf (attrsOf (either bool str));
|
|
||||||
default = [
|
|
||||||
{
|
|
||||||
invocation = "p";
|
|
||||||
execution = ":parent";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
invocation = "edit";
|
|
||||||
shortcut = "e";
|
|
||||||
execution = "$EDITOR {file}";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
invocation = "create {subpath}";
|
|
||||||
execution = "$EDITOR {directory}/{subpath}";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
invocation = "view";
|
|
||||||
execution = "less {file}";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
example = literalExpression ''
|
|
||||||
[
|
|
||||||
{ invocation = "p"; execution = ":parent"; }
|
|
||||||
{ invocation = "edit"; shortcut = "e"; execution = "$EDITOR {file}" ; }
|
|
||||||
{ invocation = "create {subpath}"; execution = "$EDITOR {directory}/{subpath}"; }
|
|
||||||
{ invocation = "view"; execution = "less {file}"; }
|
|
||||||
{
|
|
||||||
invocation = "blop {name}\\.{type}";
|
|
||||||
execution = "/bin/mkdir {parent}/{type} && /usr/bin/nvim {parent}/{type}/{name}.{type}";
|
|
||||||
from_shell = true;
|
|
||||||
}
|
|
||||||
]
|
|
||||||
'';
|
|
||||||
description = ''
|
|
||||||
Define new verbs. For more information, see
|
|
||||||
<link xlink:href="https://dystroy.org/broot/documentation/configuration/#verb-definition-attributes"/>.
|
|
||||||
</para><para>
|
|
||||||
The possible attributes are:
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
<variablelist>
|
|
||||||
<varlistentry>
|
|
||||||
<term><literal>invocation</literal> (optional)</term>
|
|
||||||
<listitem><para>how the verb is called by the user, with placeholders for arguments</para></listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><literal>execution</literal> (mandatory)</term>
|
|
||||||
<listitem><para>how the verb is executed</para></listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><literal>key</literal> (optional)</term>
|
|
||||||
<listitem><para>a keyboard key triggering execution</para></listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><literal>shortcut</literal> (optional)</term>
|
|
||||||
<listitem><para>an alternate way to call the verb (without
|
|
||||||
the arguments part)</para></listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><literal>leave_broot</literal> (optional)</term>
|
|
||||||
<listitem><para>whether to quit broot on execution
|
|
||||||
(default: <literal>true</literal>)</para></listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><literal>from_shell</literal> (optional)</term>
|
|
||||||
<listitem><para>whether the verb must be executed from the
|
|
||||||
parent shell (default:
|
|
||||||
<literal>false</literal>)</para></listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</variablelist>
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default = pkgs.broot;
|
default = pkgs.broot;
|
||||||
@@ -128,149 +196,48 @@ in {
|
|||||||
description = "Package providing broot";
|
description = "Package providing broot";
|
||||||
};
|
};
|
||||||
|
|
||||||
skin = mkOption {
|
settings = mkOption {
|
||||||
type = types.attrsOf types.str;
|
type = types.submodule settingsModule;
|
||||||
default = { };
|
default = { };
|
||||||
example = literalExpression ''
|
description = "Verbatim config entries";
|
||||||
{
|
|
||||||
status_normal_fg = "grayscale(18)";
|
|
||||||
status_normal_bg = "grayscale(3)";
|
|
||||||
status_error_fg = "red";
|
|
||||||
status_error_bg = "yellow";
|
|
||||||
tree_fg = "red";
|
|
||||||
selected_line_bg = "grayscale(7)";
|
|
||||||
permissions_fg = "grayscale(12)";
|
|
||||||
size_bar_full_bg = "red";
|
|
||||||
size_bar_void_bg = "black";
|
|
||||||
directory_fg = "lightyellow";
|
|
||||||
input_fg = "cyan";
|
|
||||||
flag_value_fg = "lightyellow";
|
|
||||||
table_border_fg = "red";
|
|
||||||
code_fg = "lightyellow";
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
description = ''
|
|
||||||
Color configuration.
|
|
||||||
</para><para>
|
|
||||||
Complete list of keys (expected to change before the v1 of broot):
|
|
||||||
|
|
||||||
<itemizedlist>
|
|
||||||
<listitem><para><literal>char_match</literal></para></listitem>
|
|
||||||
<listitem><para><literal>code</literal></para></listitem>
|
|
||||||
<listitem><para><literal>directory</literal></para></listitem>
|
|
||||||
<listitem><para><literal>exe</literal></para></listitem>
|
|
||||||
<listitem><para><literal>file</literal></para></listitem>
|
|
||||||
<listitem><para><literal>file_error</literal></para></listitem>
|
|
||||||
<listitem><para><literal>flag_label</literal></para></listitem>
|
|
||||||
<listitem><para><literal>flag_value</literal></para></listitem>
|
|
||||||
<listitem><para><literal>input</literal></para></listitem>
|
|
||||||
<listitem><para><literal>link</literal></para></listitem>
|
|
||||||
<listitem><para><literal>permissions</literal></para></listitem>
|
|
||||||
<listitem><para><literal>selected_line</literal></para></listitem>
|
|
||||||
<listitem><para><literal>size_bar_full</literal></para></listitem>
|
|
||||||
<listitem><para><literal>size_bar_void</literal></para></listitem>
|
|
||||||
<listitem><para><literal>size_text</literal></para></listitem>
|
|
||||||
<listitem><para><literal>spinner</literal></para></listitem>
|
|
||||||
<listitem><para><literal>status_error</literal></para></listitem>
|
|
||||||
<listitem><para><literal>status_normal</literal></para></listitem>
|
|
||||||
<listitem><para><literal>table_border</literal></para></listitem>
|
|
||||||
<listitem><para><literal>tree</literal></para></listitem>
|
|
||||||
<listitem><para><literal>unlisted</literal></para></listitem>
|
|
||||||
</itemizedlist></para>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
Add <literal>_fg</literal> for a foreground color and
|
|
||||||
<literal>_bg</literal> for a background colors.
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
xdg.configFile."broot/conf.toml".source =
|
xdg.configFile."broot" = {
|
||||||
tomlFormat.generate "broot-config" brootConf;
|
recursive = true;
|
||||||
|
source = pkgs.symlinkJoin {
|
||||||
|
name = "xdg.configFile.broot";
|
||||||
|
paths = [
|
||||||
|
(pkgs.writeTextDir "conf.toml" (builtins.readFile
|
||||||
|
(tomlFormat.generate "broot-config" cfg.settings)))
|
||||||
|
|
||||||
# Dummy file to prevent broot from trying to reinstall itself
|
# Copy all files under /resources/default-conf
|
||||||
xdg.configFile."broot/launcher/installed-v1".text = "";
|
"${cfg.package.src}/resources/default-conf"
|
||||||
|
|
||||||
programs.bash.initExtra = mkIf cfg.enableBashIntegration (
|
# Dummy file to prevent broot from trying to reinstall itself
|
||||||
# Using mkAfter to make it more likely to appear after other
|
(pkgs.writeTextDir "launcher/installed-v1" "")
|
||||||
# manipulations of the prompt.
|
];
|
||||||
mkAfter ''
|
|
||||||
# This script was automatically generated by the broot function
|
|
||||||
# More information can be found in https://github.com/Canop/broot
|
|
||||||
# This function starts broot and executes the command
|
|
||||||
# it produces, if any.
|
|
||||||
# It's needed because some shell commands, like `cd`,
|
|
||||||
# have no useful effect if executed in a subshell.
|
|
||||||
function br {
|
|
||||||
f=$(mktemp)
|
|
||||||
(
|
|
||||||
set +e
|
|
||||||
broot --outcmd "$f" "$@"
|
|
||||||
code=$?
|
|
||||||
if [ "$code" != 0 ]; then
|
|
||||||
rm -f "$f"
|
|
||||||
exit "$code"
|
|
||||||
fi
|
|
||||||
)
|
|
||||||
code=$?
|
|
||||||
if [ "$code" != 0 ]; then
|
|
||||||
return "$code"
|
|
||||||
fi
|
|
||||||
d=$(cat "$f")
|
|
||||||
rm -f "$f"
|
|
||||||
eval "$d"
|
|
||||||
}
|
|
||||||
'');
|
|
||||||
|
|
||||||
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
# Remove conf.hjson, whose content has been merged into programs.broot.settings
|
||||||
# This script was automatically generated by the broot function
|
postBuild = ''
|
||||||
# More information can be found in https://github.com/Canop/broot
|
rm $out/conf.hjson
|
||||||
# This function starts broot and executes the command
|
'';
|
||||||
# it produces, if any.
|
};
|
||||||
# It's needed because some shell commands, like `cd`,
|
};
|
||||||
# have no useful effect if executed in a subshell.
|
|
||||||
function br {
|
programs.broot.settings = builtins.fromJSON (builtins.readFile
|
||||||
f=$(mktemp)
|
(pkgs.runCommand "default-conf.json" {
|
||||||
(
|
nativeBuildInputs = [ pkgs.hjson ];
|
||||||
set +e
|
|
||||||
broot --outcmd "$f" "$@"
|
|
||||||
code=$?
|
|
||||||
if [ "$code" != 0 ]; then
|
|
||||||
rm -f "$f"
|
|
||||||
exit "$code"
|
|
||||||
fi
|
|
||||||
)
|
|
||||||
code=$?
|
|
||||||
if [ "$code" != 0 ]; then
|
|
||||||
return "$code"
|
|
||||||
fi
|
|
||||||
d=$(cat "$f")
|
|
||||||
rm -f "$f"
|
|
||||||
eval "$d"
|
|
||||||
}
|
}
|
||||||
'';
|
"hjson -c ${cfg.package.src}/resources/default-conf/conf.hjson > $out"));
|
||||||
|
|
||||||
programs.fish.shellInit = mkIf cfg.enableFishIntegration ''
|
programs.bash.initExtra = mkIf cfg.enableBashIntegration (shellInit "bash");
|
||||||
# This script was automatically generated by the broot function
|
|
||||||
# More information can be found in https://github.com/Canop/broot
|
programs.zsh.initExtra = mkIf cfg.enableZshIntegration (shellInit "zsh");
|
||||||
# This function starts broot and executes the command
|
|
||||||
# it produces, if any.
|
programs.fish.shellInit = mkIf cfg.enableFishIntegration (shellInit "fish");
|
||||||
# It's needed because some shell commands, like `cd`,
|
|
||||||
# have no useful effect if executed in a subshell.
|
|
||||||
function br
|
|
||||||
set f (mktemp)
|
|
||||||
broot --outcmd $f $argv
|
|
||||||
if test $status -ne 0
|
|
||||||
rm -f "$f"
|
|
||||||
return "$code"
|
|
||||||
end
|
|
||||||
set d (cat "$f")
|
|
||||||
rm -f "$f"
|
|
||||||
eval "$d"
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
64
modules/programs/btop.nix
Normal file
64
modules/programs/btop.nix
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
cfg = config.programs.btop;
|
||||||
|
|
||||||
|
finalConfig = let
|
||||||
|
toKeyValue = generators.toKeyValue {
|
||||||
|
mkKeyValue = generators.mkKeyValueDefault {
|
||||||
|
mkValueString = v:
|
||||||
|
with builtins;
|
||||||
|
if isBool v then
|
||||||
|
(if v then "True" else "False")
|
||||||
|
else if isString v then
|
||||||
|
''"${v}"''
|
||||||
|
else
|
||||||
|
toString v;
|
||||||
|
} " = ";
|
||||||
|
};
|
||||||
|
in ''
|
||||||
|
${toKeyValue cfg.settings}
|
||||||
|
${optionalString (cfg.extraConfig != "") cfg.extraConfig}
|
||||||
|
'';
|
||||||
|
|
||||||
|
in {
|
||||||
|
meta.maintainers = [ hm.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
|
options.programs.btop = {
|
||||||
|
enable = mkEnableOption "btop";
|
||||||
|
|
||||||
|
package = mkPackageOption pkgs "btop" { };
|
||||||
|
|
||||||
|
settings = mkOption {
|
||||||
|
type = with types; attrsOf (oneOf [ bool float int str ]);
|
||||||
|
default = { };
|
||||||
|
example = {
|
||||||
|
color_theme = "Default";
|
||||||
|
theme_background = false;
|
||||||
|
};
|
||||||
|
description = ''
|
||||||
|
Options to add to <filename>btop.conf</filename> file.
|
||||||
|
See <link xlink:href="https://github.com/aristocratos/btop#configurability"/>
|
||||||
|
for options.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = mkOption {
|
||||||
|
type = types.lines;
|
||||||
|
default = "";
|
||||||
|
description = ''
|
||||||
|
Extra lines added to the <filename>btop.conf</filename> file.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
|
xdg.configFile."btop/btop.conf" =
|
||||||
|
mkIf (cfg.settings != { }) { text = finalConfig; };
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -64,7 +64,7 @@ let
|
|||||||
id = mkOption {
|
id = mkOption {
|
||||||
type = strMatching "[a-zA-Z]{32}";
|
type = strMatching "[a-zA-Z]{32}";
|
||||||
description = ''
|
description = ''
|
||||||
The extension's ID from the Chome Web Store url or the unpacked crx.
|
The extension's ID from the Chrome Web Store url or the unpacked crx.
|
||||||
'';
|
'';
|
||||||
default = "";
|
default = "";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ in {
|
|||||||
default = { };
|
default = { };
|
||||||
description = ''
|
description = ''
|
||||||
Configuration written to
|
Configuration written to
|
||||||
<filename>$XDG_CONFIG_HOME/direnv/config.toml</filename>.
|
<filename>$XDG_CONFIG_HOME/direnv/direnv.toml</filename>.
|
||||||
</para><para>
|
</para><para>
|
||||||
See
|
See
|
||||||
<citerefentry>
|
<citerefentry>
|
||||||
@@ -92,7 +92,7 @@ in {
|
|||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.direnv ];
|
home.packages = [ pkgs.direnv ];
|
||||||
|
|
||||||
xdg.configFile."direnv/config.toml" = mkIf (cfg.config != { }) {
|
xdg.configFile."direnv/direnv.toml" = mkIf (cfg.config != { }) {
|
||||||
source = tomlFormat.generate "direnv-config" cfg.config;
|
source = tomlFormat.generate "direnv-config" cfg.config;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
49
modules/programs/discocss.nix
Normal file
49
modules/programs/discocss.nix
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let cfg = config.programs.discocss;
|
||||||
|
in {
|
||||||
|
meta.maintainers = with maintainers; [ kranzes ];
|
||||||
|
|
||||||
|
options = {
|
||||||
|
programs.discocss = {
|
||||||
|
enable = mkEnableOption
|
||||||
|
"discocss, a tiny Discord CSS injector for Linux and MacOS";
|
||||||
|
|
||||||
|
package = mkPackageOption pkgs "discocss" { };
|
||||||
|
|
||||||
|
discordPackage = mkPackageOption pkgs "discord" { };
|
||||||
|
|
||||||
|
discordAlias = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
description = "Whether to alias discocss to discord.";
|
||||||
|
};
|
||||||
|
|
||||||
|
css = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "";
|
||||||
|
description = "The custom CSS for discocss to use.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
assertions = [{
|
||||||
|
assertion = cfg.discordAlias
|
||||||
|
-> !(any (p: p.name == cfg.discordPackage.name) config.home.packages);
|
||||||
|
message =
|
||||||
|
"To use discocss with discordAlias you have to remove discord from home.packages, or set discordAlias to false.";
|
||||||
|
}];
|
||||||
|
|
||||||
|
home.packages = [
|
||||||
|
(cfg.package.override {
|
||||||
|
discordAlias = cfg.discordAlias;
|
||||||
|
discord = cfg.discordPackage;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
xdg.configFile."discocss/custom.css".text = cfg.css;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -13,11 +13,15 @@ let
|
|||||||
|
|
||||||
emacsWithPackages = emacsPackages.emacsWithPackages;
|
emacsWithPackages = emacsPackages.emacsWithPackages;
|
||||||
|
|
||||||
createConfPackage = epkgs:
|
extraPackages = epkgs:
|
||||||
epkgs.trivialBuild {
|
let
|
||||||
pname = "default";
|
packages = cfg.extraPackages epkgs;
|
||||||
src = pkgs.writeText "default.el" cfg.extraConfig;
|
userConfig = epkgs.trivialBuild {
|
||||||
};
|
pname = "default";
|
||||||
|
src = pkgs.writeText "default.el" cfg.extraConfig;
|
||||||
|
packageRequires = packages;
|
||||||
|
};
|
||||||
|
in packages ++ optional (cfg.extraConfig != "") userConfig;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
meta.maintainers = [ maintainers.rycee ];
|
meta.maintainers = [ maintainers.rycee ];
|
||||||
@@ -48,6 +52,10 @@ in {
|
|||||||
Configuration to include in the Emacs default init file. See
|
Configuration to include in the Emacs default init file. See
|
||||||
<link xlink:href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Init-File.html"/>
|
<link xlink:href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Init-File.html"/>
|
||||||
for more.
|
for more.
|
||||||
|
</para><para>
|
||||||
|
Note, the <literal>inhibit-startup-message</literal> Emacs option
|
||||||
|
cannot be set here since Emacs disallows setting it from the default
|
||||||
|
initialization file.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -91,10 +99,6 @@ in {
|
|||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ cfg.finalPackage ];
|
home.packages = [ cfg.finalPackage ];
|
||||||
programs.emacs = {
|
programs.emacs.finalPackage = emacsWithPackages extraPackages;
|
||||||
finalPackage = emacsWithPackages cfg.extraPackages;
|
|
||||||
extraPackages = epkgs:
|
|
||||||
optional (cfg.extraConfig != "") (createConfPackage epkgs);
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,11 +20,14 @@ in {
|
|||||||
options.programs.exa = {
|
options.programs.exa = {
|
||||||
enable =
|
enable =
|
||||||
mkEnableOption "exa, a modern replacement for <command>ls</command>";
|
mkEnableOption "exa, a modern replacement for <command>ls</command>";
|
||||||
|
|
||||||
enableAliases = mkEnableOption "recommended exa aliases";
|
enableAliases = mkEnableOption "recommended exa aliases";
|
||||||
|
|
||||||
|
package = mkPackageOption pkgs "exa" { };
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.exa ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
programs.bash.shellAliases = mkIf cfg.enableAliases aliases;
|
programs.bash.shellAliases = mkIf cfg.enableAliases aliases;
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ let
|
|||||||
|
|
||||||
cfg = config.programs.firefox;
|
cfg = config.programs.firefox;
|
||||||
|
|
||||||
|
jsonFormat = pkgs.formats.json { };
|
||||||
|
|
||||||
mozillaConfigPath =
|
mozillaConfigPath =
|
||||||
if isDarwin then "Library/Application Support/Mozilla" else ".mozilla";
|
if isDarwin then "Library/Application Support/Mozilla" else ".mozilla";
|
||||||
|
|
||||||
@@ -42,7 +44,7 @@ let
|
|||||||
|
|
||||||
mkUserJs = prefs: extraPrefs: bookmarks:
|
mkUserJs = prefs: extraPrefs: bookmarks:
|
||||||
let
|
let
|
||||||
prefs' = lib.optionalAttrs ({ } != bookmarks) {
|
prefs' = lib.optionalAttrs ([ ] != bookmarks) {
|
||||||
"browser.bookmarks.file" = toString (firefoxBookmarksFile bookmarks);
|
"browser.bookmarks.file" = toString (firefoxBookmarksFile bookmarks);
|
||||||
"browser.places.importBookmarksHTML" = true;
|
"browser.places.importBookmarksHTML" = true;
|
||||||
} // prefs;
|
} // prefs;
|
||||||
@@ -58,20 +60,40 @@ let
|
|||||||
|
|
||||||
firefoxBookmarksFile = bookmarks:
|
firefoxBookmarksFile = bookmarks:
|
||||||
let
|
let
|
||||||
escapeXML = replaceStrings [ ''"'' "'" "<" ">" "&" ] [
|
indent = level:
|
||||||
"""
|
lib.concatStringsSep "" (map (lib.const " ") (lib.range 1 level));
|
||||||
"'"
|
|
||||||
"<"
|
bookmarkToHTML = indentLevel: bookmark:
|
||||||
">"
|
''
|
||||||
"&"
|
${indent indentLevel}<DT><A HREF="${
|
||||||
];
|
escapeXML bookmark.url
|
||||||
mapper = _: entry: ''
|
}" ADD_DATE="0" LAST_MODIFIED="0"${
|
||||||
<DT><A HREF="${escapeXML entry.url}" ADD_DATE="0" LAST_MODIFIED="0"${
|
lib.optionalString (bookmark.keyword != null)
|
||||||
lib.optionalString (entry.keyword != null)
|
" SHORTCUTURL=\"${escapeXML bookmark.keyword}\""
|
||||||
" SHORTCUTURL=\"${escapeXML entry.keyword}\""
|
}>${escapeXML bookmark.name}</A>'';
|
||||||
}>${escapeXML entry.name}</A>
|
|
||||||
'';
|
directoryToHTML = indentLevel: directory: ''
|
||||||
bookmarksEntries = lib.attrsets.mapAttrsToList mapper bookmarks;
|
${indent indentLevel}<DT>${
|
||||||
|
if directory.toolbar then
|
||||||
|
''<H3 PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Toolbar''
|
||||||
|
else
|
||||||
|
"<H3>${escapeXML directory.name}"
|
||||||
|
}</H3>
|
||||||
|
${indent indentLevel}<DL><p>
|
||||||
|
${allItemsToHTML (indentLevel + 1) directory.bookmarks}
|
||||||
|
${indent indentLevel}</p></DL>'';
|
||||||
|
|
||||||
|
itemToHTMLOrRecurse = indentLevel: item:
|
||||||
|
if item ? "url" then
|
||||||
|
bookmarkToHTML indentLevel item
|
||||||
|
else
|
||||||
|
directoryToHTML indentLevel item;
|
||||||
|
|
||||||
|
allItemsToHTML = indentLevel: bookmarks:
|
||||||
|
lib.concatStringsSep "\n"
|
||||||
|
(map (itemToHTMLOrRecurse indentLevel) bookmarks);
|
||||||
|
|
||||||
|
bookmarkEntries = allItemsToHTML 1 bookmarks;
|
||||||
in pkgs.writeText "firefox-bookmarks.html" ''
|
in pkgs.writeText "firefox-bookmarks.html" ''
|
||||||
<!DOCTYPE NETSCAPE-Bookmark-file-1>
|
<!DOCTYPE NETSCAPE-Bookmark-file-1>
|
||||||
<!-- This is an automatically generated file.
|
<!-- This is an automatically generated file.
|
||||||
@@ -81,12 +103,12 @@ let
|
|||||||
<TITLE>Bookmarks</TITLE>
|
<TITLE>Bookmarks</TITLE>
|
||||||
<H1>Bookmarks Menu</H1>
|
<H1>Bookmarks Menu</H1>
|
||||||
<DL><p>
|
<DL><p>
|
||||||
${concatStrings bookmarksEntries}
|
${bookmarkEntries}
|
||||||
</p></DL>
|
</p></DL>
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in {
|
in {
|
||||||
meta.maintainers = [ maintainers.rycee ];
|
meta.maintainers = [ maintainers.rycee maintainers.kira-bruneau ];
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
(mkRemovedOptionModule [ "programs" "firefox" "enableAdobeFlash" ]
|
(mkRemovedOptionModule [ "programs" "firefox" "enableAdobeFlash" ]
|
||||||
@@ -156,7 +178,7 @@ in {
|
|||||||
|
|
||||||
Extensions listed here will only be available in Firefox
|
Extensions listed here will only be available in Firefox
|
||||||
profiles managed through the
|
profiles managed through the
|
||||||
<link linkend="opt-programs.firefox.profiles">programs.firefox.profiles</link>
|
<xref linkend="opt-programs.firefox.profiles"/>
|
||||||
option. This is due to recent changes in the way Firefox
|
option. This is due to recent changes in the way Firefox
|
||||||
handles extension side-loading.
|
handles extension side-loading.
|
||||||
'';
|
'';
|
||||||
@@ -233,37 +255,85 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
bookmarks = mkOption {
|
bookmarks = mkOption {
|
||||||
type = types.attrsOf (types.submodule ({ config, name, ... }: {
|
type = let
|
||||||
options = {
|
bookmarkSubmodule = types.submodule ({ config, name, ... }: {
|
||||||
name = mkOption {
|
options = {
|
||||||
type = types.str;
|
name = mkOption {
|
||||||
default = name;
|
type = types.str;
|
||||||
description = "Bookmark name.";
|
default = name;
|
||||||
};
|
description = "Bookmark name.";
|
||||||
|
};
|
||||||
|
|
||||||
keyword = mkOption {
|
keyword = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
default = null;
|
default = null;
|
||||||
description = "Bookmark search keyword.";
|
description = "Bookmark search keyword.";
|
||||||
};
|
};
|
||||||
|
|
||||||
url = mkOption {
|
url = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = "Bookmark url, use %s for search terms.";
|
description = "Bookmark url, use %s for search terms.";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
}) // {
|
||||||
|
description = "bookmark submodule";
|
||||||
};
|
};
|
||||||
}));
|
|
||||||
default = { };
|
bookmarkType = types.addCheck bookmarkSubmodule (x: x ? "url");
|
||||||
|
|
||||||
|
directoryType = types.submodule ({ config, name, ... }: {
|
||||||
|
options = {
|
||||||
|
name = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = name;
|
||||||
|
description = "Directory name.";
|
||||||
|
};
|
||||||
|
|
||||||
|
bookmarks = mkOption {
|
||||||
|
type = types.listOf nodeType;
|
||||||
|
default = [ ];
|
||||||
|
description = "Bookmarks within directory.";
|
||||||
|
};
|
||||||
|
|
||||||
|
toolbar = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "If directory should be shown in toolbar.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}) // {
|
||||||
|
description = "directory submodule";
|
||||||
|
};
|
||||||
|
|
||||||
|
nodeType = types.either bookmarkType directoryType;
|
||||||
|
in with types;
|
||||||
|
coercedTo (attrsOf nodeType) attrValues (listOf nodeType);
|
||||||
|
default = [ ];
|
||||||
example = literalExpression ''
|
example = literalExpression ''
|
||||||
{
|
[
|
||||||
wikipedia = {
|
{
|
||||||
|
name = "wikipedia";
|
||||||
keyword = "wiki";
|
keyword = "wiki";
|
||||||
url = "https://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go";
|
url = "https://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go";
|
||||||
};
|
}
|
||||||
"kernel.org" = {
|
{
|
||||||
|
name = "kernel.org";
|
||||||
url = "https://www.kernel.org";
|
url = "https://www.kernel.org";
|
||||||
};
|
}
|
||||||
}
|
{
|
||||||
|
name = "Nix sites";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "homepage";
|
||||||
|
url = "https://nixos.org/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "wiki";
|
||||||
|
url = "https://nixos.wiki/";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
]
|
||||||
'';
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
Preloaded bookmarks. Note, this may silently overwrite any
|
Preloaded bookmarks. Note, this may silently overwrite any
|
||||||
@@ -283,6 +353,87 @@ in {
|
|||||||
defaultText = "true if profile ID is 0";
|
defaultText = "true if profile ID is 0";
|
||||||
description = "Whether this is a default profile.";
|
description = "Whether this is a default profile.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
search = {
|
||||||
|
force = mkOption {
|
||||||
|
type = with types; bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Whether to force replace the existing search
|
||||||
|
configuration. This is recommended since Firefox will
|
||||||
|
replace the symlink for the search configuration on every
|
||||||
|
launch, but note that you'll lose any existing
|
||||||
|
configuration by enabling this.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
default = mkOption {
|
||||||
|
type = with types; nullOr str;
|
||||||
|
default = null;
|
||||||
|
example = "DuckDuckGo";
|
||||||
|
description = ''
|
||||||
|
The default search engine used in the address bar and search bar.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
order = mkOption {
|
||||||
|
type = with types; uniq (listOf str);
|
||||||
|
default = [ ];
|
||||||
|
example = [ "DuckDuckGo" "Google" ];
|
||||||
|
description = ''
|
||||||
|
The order the search engines are listed in. Any engines
|
||||||
|
that aren't included in this list will be listed after
|
||||||
|
these in an unspecified order.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
engines = mkOption {
|
||||||
|
type = with types; attrsOf (attrsOf jsonFormat.type);
|
||||||
|
default = { };
|
||||||
|
example = literalExpression ''
|
||||||
|
{
|
||||||
|
"Nix Packages" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/packages";
|
||||||
|
params = [
|
||||||
|
{ name = "type"; value = "packages"; }
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
|
||||||
|
icon = "''${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@np" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"NixOS Wiki" = {
|
||||||
|
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
|
||||||
|
iconUpdateURL = "https://nixos.wiki/favicon.png";
|
||||||
|
updateInterval = 24 * 60 * 60 * 1000; # every day
|
||||||
|
definedAliases = [ "@nw" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"Bing".metaData.hidden = true;
|
||||||
|
"Google".metaData.alias = "@g"; # builtin engines only support specifying one additional alias
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Attribute set of search engine configurations. Engines
|
||||||
|
that only have <varname>metaData</varname> specified will
|
||||||
|
be treated as builtin to Firefox.
|
||||||
|
</para><para>
|
||||||
|
See <link xlink:href=
|
||||||
|
"https://searchfox.org/mozilla-central/rev/669329e284f8e8e2bb28090617192ca9b4ef3380/toolkit/components/search/SearchEngine.jsm#1138-1177">SearchEngine.jsm</link>
|
||||||
|
in Firefox's source for available options. We maintain a
|
||||||
|
mapping to let you specify all options in the referenced
|
||||||
|
link without underscores, but it may fall out of date with
|
||||||
|
future options.
|
||||||
|
</para><para>
|
||||||
|
Note, <varname>icon</varname> is also a special option
|
||||||
|
added by Home Manager to make it convenient to specify
|
||||||
|
absolute icon paths.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
default = { };
|
default = { };
|
||||||
@@ -295,7 +446,7 @@ in {
|
|||||||
description = ''
|
description = ''
|
||||||
Whether to enable the GNOME Shell native host connector. Note, you
|
Whether to enable the GNOME Shell native host connector. Note, you
|
||||||
also need to set the NixOS option
|
also need to set the NixOS option
|
||||||
<literal>services.gnome3.chrome-gnome-shell.enable</literal> to
|
<literal>services.gnome.gnome-browser-connector.enable</literal> to
|
||||||
<literal>true</literal>.
|
<literal>true</literal>.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@@ -371,11 +522,124 @@ in {
|
|||||||
mkIf (profile.userContent != "") { text = profile.userContent; };
|
mkIf (profile.userContent != "") { text = profile.userContent; };
|
||||||
|
|
||||||
"${profilesPath}/${profile.path}/user.js" = mkIf (profile.settings != { }
|
"${profilesPath}/${profile.path}/user.js" = mkIf (profile.settings != { }
|
||||||
|| profile.extraConfig != "" || profile.bookmarks != { }) {
|
|| profile.extraConfig != "" || profile.bookmarks != [ ]) {
|
||||||
text =
|
text =
|
||||||
mkUserJs profile.settings profile.extraConfig profile.bookmarks;
|
mkUserJs profile.settings profile.extraConfig profile.bookmarks;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"${profilesPath}/${profile.path}/search.json.mozlz4" = mkIf
|
||||||
|
(profile.search.default != null || profile.search.order != [ ]
|
||||||
|
|| profile.search.engines != { }) {
|
||||||
|
force = profile.search.force;
|
||||||
|
source = let
|
||||||
|
settings = {
|
||||||
|
version = 6;
|
||||||
|
|
||||||
|
engines = let
|
||||||
|
allEngines = (profile.search.engines //
|
||||||
|
# If search.default isn't in search.engines, assume it's app
|
||||||
|
# provided and include it in the set of all engines
|
||||||
|
optionalAttrs (profile.search.default != null
|
||||||
|
&& !(hasAttr profile.search.default
|
||||||
|
profile.search.engines)) {
|
||||||
|
${profile.search.default} = { };
|
||||||
|
});
|
||||||
|
|
||||||
|
# Map allEngines to a list and order by search.order
|
||||||
|
orderedEngineList = (imap (order: name:
|
||||||
|
let engine = allEngines.${name} or { };
|
||||||
|
in engine // {
|
||||||
|
inherit name;
|
||||||
|
metaData = (engine.metaData or { }) // { inherit order; };
|
||||||
|
}) profile.search.order) ++ (mapAttrsToList
|
||||||
|
(name: config: config // { inherit name; })
|
||||||
|
(removeAttrs allEngines profile.search.order));
|
||||||
|
|
||||||
|
engines = map (config:
|
||||||
|
let
|
||||||
|
name = config.name;
|
||||||
|
isAppProvided = removeAttrs config [ "name" "metaData" ]
|
||||||
|
== { };
|
||||||
|
metaData = config.metaData or { };
|
||||||
|
in mapAttrs' (name: value: {
|
||||||
|
# Map nice field names to internal field names. This is
|
||||||
|
# intended to be exhaustive, but any future fields will
|
||||||
|
# either have to be specified with an underscore, or added
|
||||||
|
# to this map.
|
||||||
|
name = ((genAttrs [
|
||||||
|
"name"
|
||||||
|
"isAppProvided"
|
||||||
|
"loadPath"
|
||||||
|
"hasPreferredIcon"
|
||||||
|
"updateInterval"
|
||||||
|
"updateURL"
|
||||||
|
"iconUpdateURL"
|
||||||
|
"iconURL"
|
||||||
|
"iconMapObj"
|
||||||
|
"metaData"
|
||||||
|
"orderHint"
|
||||||
|
"definedAliases"
|
||||||
|
"urls"
|
||||||
|
] (name: "_${name}")) // {
|
||||||
|
"searchForm" = "__searchForm";
|
||||||
|
}).${name} or name;
|
||||||
|
|
||||||
|
inherit value;
|
||||||
|
}) ((removeAttrs config [ "icon" ])
|
||||||
|
// (optionalAttrs (!isAppProvided)
|
||||||
|
(optionalAttrs (config ? iconUpdateURL) {
|
||||||
|
# Convenience to default iconURL to iconUpdateURL so
|
||||||
|
# the icon is immediately downloaded from the URL
|
||||||
|
iconURL = config.iconURL or config.iconUpdateURL;
|
||||||
|
} // optionalAttrs (config ? icon) {
|
||||||
|
# Convenience to specify absolute path to icon
|
||||||
|
iconURL = "file://${config.icon}";
|
||||||
|
} // {
|
||||||
|
# Required for custom engine configurations, loadPaths
|
||||||
|
# are unique identifiers that are generally formatted
|
||||||
|
# like: [source]/path/to/engine.xml
|
||||||
|
loadPath = ''
|
||||||
|
[home-manager]/programs.firefox.profiles.${profile.name}.search.engines."${
|
||||||
|
replaceChars [ "\\" ] [ "\\\\" ] name
|
||||||
|
}"'';
|
||||||
|
})) // {
|
||||||
|
# Required fields for all engine configurations
|
||||||
|
inherit name isAppProvided metaData;
|
||||||
|
})) orderedEngineList;
|
||||||
|
in engines;
|
||||||
|
|
||||||
|
metaData = optionalAttrs (profile.search.default != null) {
|
||||||
|
current = profile.search.default;
|
||||||
|
hash = "@hash@";
|
||||||
|
} // {
|
||||||
|
useSavedOrder = profile.search.order != [ ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Home Manager doesn't circumvent user consent and isn't acting
|
||||||
|
# maliciously. We're modifying the search outside of Firefox, but
|
||||||
|
# a claim by Mozilla to remove this would be very anti-user, and
|
||||||
|
# is unlikely to be an issue for our use case.
|
||||||
|
disclaimer = appName:
|
||||||
|
"By modifying this file, I agree that I am doing so "
|
||||||
|
+ "only within ${appName} itself, using official, user-driven search "
|
||||||
|
+ "engine selection processes, and in a way which does not circumvent "
|
||||||
|
+ "user consent. I acknowledge that any attempt to change this file "
|
||||||
|
+ "from outside of ${appName} is a malicious act, and will be responded "
|
||||||
|
+ "to accordingly.";
|
||||||
|
|
||||||
|
salt = profile.path + profile.search.default
|
||||||
|
+ disclaimer "Firefox";
|
||||||
|
in pkgs.runCommand "search.json.mozlz4" {
|
||||||
|
nativeBuildInputs = with pkgs; [ mozlz4a openssl ];
|
||||||
|
json = builtins.toJSON settings;
|
||||||
|
inherit salt;
|
||||||
|
} ''
|
||||||
|
export hash=$(echo -n "$salt" | openssl dgst -sha256 -binary | base64)
|
||||||
|
mozlz4a <(substituteStream json search.json.in --subst-var hash) "$out"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
"${profilesPath}/${profile.path}/extensions" =
|
"${profilesPath}/${profile.path}/extensions" =
|
||||||
mkIf (cfg.extensions != [ ]) {
|
mkIf (cfg.extensions != [ ]) {
|
||||||
source = "${extensionsEnvPkg}/share/mozilla/${extensionPath}";
|
source = "${extensionsEnvPkg}/share/mozilla/${extensionPath}";
|
||||||
|
|||||||
@@ -285,6 +285,9 @@ in {
|
|||||||
{
|
{
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
|
# Support completion for `man` by building a cache for `apropos`.
|
||||||
|
programs.man.generateCaches = mkDefault true;
|
||||||
|
|
||||||
xdg.dataFile."fish/home-manager_generated_completions".source = let
|
xdg.dataFile."fish/home-manager_generated_completions".source = let
|
||||||
# paths later in the list will overwrite those already linked
|
# paths later in the list will overwrite those already linked
|
||||||
destructiveSymlinkJoin = args_@{ name, paths, preferLocalBuild ? true
|
destructiveSymlinkJoin = args_@{ name, paths, preferLocalBuild ? true
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ let
|
|||||||
|
|
||||||
cfg = config.programs.fzf;
|
cfg = config.programs.fzf;
|
||||||
|
|
||||||
|
renderedColors = colors:
|
||||||
|
concatStringsSep ","
|
||||||
|
(mapAttrsToList (name: value: "${name}:${value}") colors);
|
||||||
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
(mkRemovedOptionModule [ "programs" "fzf" "historyWidgetCommand" ]
|
(mkRemovedOptionModule [ "programs" "fzf" "historyWidgetCommand" ]
|
||||||
@@ -88,6 +92,24 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
colors = mkOption {
|
||||||
|
type = types.attrsOf types.str;
|
||||||
|
default = { };
|
||||||
|
example = literalExpression ''
|
||||||
|
{
|
||||||
|
bg = "#1e1e1e";
|
||||||
|
"bg+" = "#1e1e1e";
|
||||||
|
fg = "#d4d4d4";
|
||||||
|
"fg+" = "#d4d4d4";
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Color scheme options added to <code>FZF_DEFAULT_OPTS</code>. See
|
||||||
|
<link xlink:href="https://github.com/junegunn/fzf/wiki/Color-schemes"/>
|
||||||
|
for documentation.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
tmux = {
|
tmux = {
|
||||||
enableShellIntegration = mkEnableOption ''
|
enableShellIntegration = mkEnableOption ''
|
||||||
setting <literal>FZF_TMUX=1</literal> which causes shell integration to use fzf-tmux
|
setting <literal>FZF_TMUX=1</literal> which causes shell integration to use fzf-tmux
|
||||||
@@ -141,7 +163,9 @@ in {
|
|||||||
FZF_CTRL_T_COMMAND = cfg.fileWidgetCommand;
|
FZF_CTRL_T_COMMAND = cfg.fileWidgetCommand;
|
||||||
FZF_CTRL_T_OPTS = cfg.fileWidgetOptions;
|
FZF_CTRL_T_OPTS = cfg.fileWidgetOptions;
|
||||||
FZF_DEFAULT_COMMAND = cfg.defaultCommand;
|
FZF_DEFAULT_COMMAND = cfg.defaultCommand;
|
||||||
FZF_DEFAULT_OPTS = cfg.defaultOptions;
|
FZF_DEFAULT_OPTS = cfg.defaultOptions
|
||||||
|
++ lib.optionals (cfg.colors != { })
|
||||||
|
[ "--color ${renderedColors cfg.colors}" ];
|
||||||
FZF_TMUX = if cfg.tmux.enableShellIntegration then "1" else null;
|
FZF_TMUX = if cfg.tmux.enableShellIntegration then "1" else null;
|
||||||
FZF_TMUX_OPTS = cfg.tmux.shellIntegrationOptions;
|
FZF_TMUX_OPTS = cfg.tmux.shellIntegrationOptions;
|
||||||
});
|
});
|
||||||
|
|||||||
41
modules/programs/gallery-dl.nix
Normal file
41
modules/programs/gallery-dl.nix
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
cfg = config.programs.gallery-dl;
|
||||||
|
|
||||||
|
jsonFormat = pkgs.formats.json { };
|
||||||
|
|
||||||
|
in {
|
||||||
|
meta.maintainers = [ maintainers.marsam ];
|
||||||
|
|
||||||
|
options.programs.gallery-dl = {
|
||||||
|
enable = mkEnableOption "gallery-dl";
|
||||||
|
|
||||||
|
settings = mkOption {
|
||||||
|
type = jsonFormat.type;
|
||||||
|
default = { };
|
||||||
|
example = literalExpression ''
|
||||||
|
{
|
||||||
|
extractor.base-directory = "~/Downloads";
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Configuration written to
|
||||||
|
<filename>$XDG_CONFIG_HOME/gallery-dl/config.json</filename>. See
|
||||||
|
<link xlink:href="https://github.com/mikf/gallery-dl#configuration"/>
|
||||||
|
for supported values.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home.packages = [ pkgs.gallery-dl ];
|
||||||
|
|
||||||
|
xdg.configFile."gallery-dl/config.json" = mkIf (cfg.settings != { }) {
|
||||||
|
source = jsonFormat.generate "gallery-dl-settings" cfg.settings;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -95,6 +95,15 @@ in {
|
|||||||
mkEnableOption "the gh git credential helper for github.com" // {
|
mkEnableOption "the gh git credential helper for github.com" // {
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extensions = mkOption {
|
||||||
|
type = types.listOf types.package;
|
||||||
|
default = [ ];
|
||||||
|
description = ''
|
||||||
|
gh extensions, see <link xlink:href="https://cli.github.com/manual/gh_extension"/>.
|
||||||
|
'';
|
||||||
|
example = literalExpression "[ pkgs.gh-eco ]";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
@@ -106,5 +115,12 @@ in {
|
|||||||
programs.git.extraConfig.credential."https://github.com".helper =
|
programs.git.extraConfig.credential."https://github.com".helper =
|
||||||
mkIf cfg.enableGitCredentialHelper
|
mkIf cfg.enableGitCredentialHelper
|
||||||
"${cfg.package}/bin/gh auth git-credential";
|
"${cfg.package}/bin/gh auth git-credential";
|
||||||
|
|
||||||
|
xdg.dataFile."gh/extensions" = mkIf (cfg.extensions != [ ]) {
|
||||||
|
source = pkgs.linkFarm "gh-extensions" (builtins.map (p: {
|
||||||
|
name = p.pname;
|
||||||
|
path = "${p}/bin";
|
||||||
|
}) cfg.extensions);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ let
|
|||||||
signByDefault = mkOption {
|
signByDefault = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = "Whether commits should be signed by default.";
|
description = "Whether commits and tags should be signed by default.";
|
||||||
};
|
};
|
||||||
|
|
||||||
gpgPath = mkOption {
|
gpgPath = mkOption {
|
||||||
@@ -130,10 +130,20 @@ let
|
|||||||
</citerefentry>.
|
</citerefentry>.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
config.path = mkIf (config.contents != { })
|
contentSuffix = mkOption {
|
||||||
(mkDefault (pkgs.writeText "contents" (gitToIni config.contents)));
|
type = types.str;
|
||||||
|
default = "gitconfig";
|
||||||
|
description = ''
|
||||||
|
Nix store name for the git configuration text file,
|
||||||
|
when generating the configuration text from nix options.
|
||||||
|
'';
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config.path = mkIf (config.contents != { }) (mkDefault
|
||||||
|
(pkgs.writeText (hm.strings.storeFileName config.contentSuffix)
|
||||||
|
(gitToIni config.contents)));
|
||||||
});
|
});
|
||||||
|
|
||||||
in {
|
in {
|
||||||
@@ -191,6 +201,21 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hooks = mkOption {
|
||||||
|
type = types.attrsOf types.path;
|
||||||
|
default = { };
|
||||||
|
example = literalExpression ''
|
||||||
|
{
|
||||||
|
pre-commit = ./pre-commit-script;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Configuration helper for Git hooks.
|
||||||
|
See <link xlink:href="https://git-scm.com/docs/githooks" />
|
||||||
|
for reference.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
iniContent = mkOption {
|
iniContent = mkOption {
|
||||||
type = gitIniType;
|
type = gitIniType;
|
||||||
internal = true;
|
internal = true;
|
||||||
@@ -242,7 +267,7 @@ in {
|
|||||||
difftastic = {
|
difftastic = {
|
||||||
enable = mkEnableOption "" // {
|
enable = mkEnableOption "" // {
|
||||||
description = ''
|
description = ''
|
||||||
Enable the <command>difft</command> syntax highlighter.
|
Enable the <command>difftastic</command> syntax highlighter.
|
||||||
See <link xlink:href="https://github.com/Wilfred/difftastic" />.
|
See <link xlink:href="https://github.com/Wilfred/difftastic" />.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@@ -253,7 +278,7 @@ in {
|
|||||||
example = "dark";
|
example = "dark";
|
||||||
description = ''
|
description = ''
|
||||||
Determines whether difftastic should use the lighter or darker colors
|
Determines whether difftastic should use the lighter or darker colors
|
||||||
for syntax highlithing.
|
for syntax highlighting.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -265,6 +290,16 @@ in {
|
|||||||
Determines when difftastic should color its output.
|
Determines when difftastic should color its output.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
display = mkOption {
|
||||||
|
type =
|
||||||
|
types.enum [ "side-by-side" "side-by-side-show-both" "inline" ];
|
||||||
|
default = "side-by-side";
|
||||||
|
example = "inline";
|
||||||
|
description = ''
|
||||||
|
Determines how the output displays - in one column or two columns.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
delta = {
|
delta = {
|
||||||
@@ -305,6 +340,14 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pagerOpts = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
default = [ "--tabs=4" "-RFX" ];
|
||||||
|
description = ''
|
||||||
|
Arguments to be passed to <command>less</command>.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
markEmptyLines = mkOption {
|
markEmptyLines = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
@@ -423,11 +466,21 @@ in {
|
|||||||
(mkIf (cfg.signing != null) {
|
(mkIf (cfg.signing != null) {
|
||||||
programs.git.iniContent = {
|
programs.git.iniContent = {
|
||||||
user.signingKey = mkIf (cfg.signing.key != null) cfg.signing.key;
|
user.signingKey = mkIf (cfg.signing.key != null) cfg.signing.key;
|
||||||
commit.gpgSign = cfg.signing.signByDefault;
|
commit.gpgSign = mkDefault cfg.signing.signByDefault;
|
||||||
|
tag.gpgSign = mkDefault cfg.signing.signByDefault;
|
||||||
gpg.program = cfg.signing.gpgPath;
|
gpg.program = cfg.signing.gpgPath;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(mkIf (cfg.hooks != { }) {
|
||||||
|
programs.git.iniContent = {
|
||||||
|
core.hooksPath = let
|
||||||
|
entries =
|
||||||
|
mapAttrsToList (name: path: { inherit name path; }) cfg.hooks;
|
||||||
|
in toString (pkgs.linkFarm "git-hooks" entries);
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
(mkIf (cfg.aliases != { }) { programs.git.iniContent.alias = cfg.aliases; })
|
(mkIf (cfg.aliases != { }) { programs.git.iniContent.alias = cfg.aliases; })
|
||||||
|
|
||||||
(mkIf (lib.isAttrs cfg.extraConfig) {
|
(mkIf (lib.isAttrs cfg.extraConfig) {
|
||||||
@@ -476,8 +529,12 @@ in {
|
|||||||
home.packages = [ pkgs.difftastic ];
|
home.packages = [ pkgs.difftastic ];
|
||||||
|
|
||||||
programs.git.iniContent = let
|
programs.git.iniContent = let
|
||||||
difftCommand =
|
difftCommand = concatStringsSep " " [
|
||||||
"${pkgs.difftastic}/bin/difft --color ${cfg.difftastic.color} --background ${cfg.difftastic.background}";
|
"${pkgs.difftastic}/bin/difft"
|
||||||
|
"--color ${cfg.difftastic.color}"
|
||||||
|
"--background ${cfg.difftastic.background}"
|
||||||
|
"--display ${cfg.difftastic.display}"
|
||||||
|
];
|
||||||
in {
|
in {
|
||||||
diff.external = difftCommand;
|
diff.external = difftCommand;
|
||||||
core.pager = "${pkgs.less}/bin/less -XF";
|
core.pager = "${pkgs.less}/bin/less -XF";
|
||||||
@@ -501,7 +558,9 @@ in {
|
|||||||
programs.git.iniContent =
|
programs.git.iniContent =
|
||||||
let dsfCommand = "${pkgs.diff-so-fancy}/bin/diff-so-fancy";
|
let dsfCommand = "${pkgs.diff-so-fancy}/bin/diff-so-fancy";
|
||||||
in {
|
in {
|
||||||
core.pager = "${dsfCommand} | ${pkgs.less}/bin/less --tabs=4 -RFX";
|
core.pager = "${dsfCommand} | ${pkgs.less}/bin/less ${
|
||||||
|
escapeShellArgs cfg.diff-so-fancy.pagerOpts
|
||||||
|
}";
|
||||||
interactive.diffFilter = "${dsfCommand} --patch";
|
interactive.diffFilter = "${dsfCommand} --patch";
|
||||||
diff-so-fancy = {
|
diff-so-fancy = {
|
||||||
markEmptyLines = cfg.diff-so-fancy.markEmptyLines;
|
markEmptyLines = cfg.diff-so-fancy.markEmptyLines;
|
||||||
|
|||||||
@@ -47,12 +47,9 @@ in {
|
|||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
example = [ "extraGoPath1" "extraGoPath2" ];
|
example = [ "extraGoPath1" "extraGoPath2" ];
|
||||||
description = let goPathOpt = "programs.go.goPath";
|
description = ''
|
||||||
in ''
|
|
||||||
Extra <envar>GOPATH</envar>s relative to <envar>HOME</envar> appended
|
Extra <envar>GOPATH</envar>s relative to <envar>HOME</envar> appended
|
||||||
after
|
after <xref linkend="opt-programs.go.goPath"/>, if that option is set.
|
||||||
<varname><link linkend="opt-${goPathOpt}">${goPathOpt}</link></varname>,
|
|
||||||
if that option is set.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
64
modules/programs/havoc.nix
Normal file
64
modules/programs/havoc.nix
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
cfg = config.programs.havoc;
|
||||||
|
iniFormat = pkgs.formats.ini { };
|
||||||
|
|
||||||
|
in {
|
||||||
|
meta.maintainers = with lib.maintainers; [ AndersonTorres ];
|
||||||
|
|
||||||
|
options.programs.havoc = {
|
||||||
|
enable = mkEnableOption "Havoc terminal";
|
||||||
|
|
||||||
|
package = mkPackageOption pkgs "havoc" { };
|
||||||
|
|
||||||
|
settings = mkOption {
|
||||||
|
type = iniFormat.type;
|
||||||
|
default = { };
|
||||||
|
description = ''
|
||||||
|
Configuration written to
|
||||||
|
<filename>$XDG_CONFIG_HOME/havoc.cfg</filename>. See <link
|
||||||
|
xlink:href="https://raw.githubusercontent.com/ii8/havoc/master/havoc.cfg"/>
|
||||||
|
for a list of available options.
|
||||||
|
'';
|
||||||
|
example = literalExpression ''
|
||||||
|
{
|
||||||
|
child.program = "bash";
|
||||||
|
window.opacity = 240;
|
||||||
|
window.margin = no;
|
||||||
|
terminal = {
|
||||||
|
rows = 80;
|
||||||
|
columns = 24;
|
||||||
|
scrollback = 2000;
|
||||||
|
};
|
||||||
|
bind = {
|
||||||
|
"C-S-c" = "copy";
|
||||||
|
"C-S-v" = "paste";
|
||||||
|
"C-S-r" = "reset";
|
||||||
|
"C-S-Delete" = "hard reset";
|
||||||
|
"C-S-j" = "scroll down";
|
||||||
|
"C-S-k" = "scroll up";
|
||||||
|
"C-S-Page_Down" = "scroll down page";
|
||||||
|
"C-S-Page_Up" = "scroll up page";
|
||||||
|
"C-S-End" = "scroll to bottom";
|
||||||
|
"C-S-Home" = "scroll to top";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
assertions =
|
||||||
|
[ (hm.assertions.assertPlatform "programs.havoc" pkgs platforms.linux) ];
|
||||||
|
|
||||||
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
|
xdg.configFile."havoc.cfg" = mkIf (cfg.settings != { }) {
|
||||||
|
source = iniFormat.generate "havoc.cfg" cfg.settings;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -170,7 +170,7 @@ let
|
|||||||
servers = mkOption {
|
servers = mkOption {
|
||||||
type = listOf str;
|
type = listOf str;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
example = [ "chat.freenode.net" "irc.freenode.net" ];
|
example = [ "irc.oftc.net" ];
|
||||||
description = "IRC Server Address List.";
|
description = "IRC Server Address List.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -239,11 +239,10 @@ in {
|
|||||||
default = { };
|
default = { };
|
||||||
example = literalExpression ''
|
example = literalExpression ''
|
||||||
{
|
{
|
||||||
freenode = {
|
oftc = {
|
||||||
autojoin = [
|
autojoin = [
|
||||||
"#home-manager"
|
"#home-manager"
|
||||||
"#linux"
|
"#linux"
|
||||||
"#nixos"
|
|
||||||
];
|
];
|
||||||
charset = "UTF-8 (Unicode)";
|
charset = "UTF-8 (Unicode)";
|
||||||
commands = [
|
commands = [
|
||||||
@@ -263,8 +262,7 @@ in {
|
|||||||
password = "my_password";
|
password = "my_password";
|
||||||
realName = "my_realname";
|
realName = "my_realname";
|
||||||
servers = [
|
servers = [
|
||||||
"chat.freenode.net"
|
"irc.oftc.net"
|
||||||
"irc.freenode.net"
|
|
||||||
];
|
];
|
||||||
userName = "my_username";
|
userName = "my_username";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -11,37 +11,55 @@ let
|
|||||||
toHimalayaConfig = account:
|
toHimalayaConfig = account:
|
||||||
{
|
{
|
||||||
email = account.address;
|
email = account.address;
|
||||||
name = account.realName;
|
display-name = account.realName;
|
||||||
default = account.primary;
|
default = account.primary;
|
||||||
|
|
||||||
inbox-folder = account.folders.inbox;
|
mailboxes = {
|
||||||
sent-folder = account.folders.sent;
|
inbox = account.folders.inbox;
|
||||||
draft-folder = account.folders.drafts;
|
sent = account.folders.sent;
|
||||||
# NOTE: himalaya does not support configuring the name of the trash folder
|
draft = account.folders.drafts;
|
||||||
|
# NOTE: himalaya does not support configuring the name of the trash folder
|
||||||
|
};
|
||||||
|
} // (lib.optionalAttrs (account.signature.showSignature == "append") {
|
||||||
|
# FIXME: signature cannot be attached
|
||||||
|
signature = account.signature.text;
|
||||||
|
signature-delim = account.signature.delimiter;
|
||||||
|
}) // (if account.himalaya.backend == null then {
|
||||||
|
backend = "none";
|
||||||
|
} else if account.himalaya.backend == "imap" then {
|
||||||
# FIXME: does not support disabling TLS altogether
|
# FIXME: does not support disabling TLS altogether
|
||||||
# NOTE: does not accept sequence of strings for password commands
|
# NOTE: does not accept sequence of strings for password commands
|
||||||
|
backend = account.himalaya.backend;
|
||||||
imap-login = account.userName;
|
imap-login = account.userName;
|
||||||
imap-passwd-cmd = lib.escapeShellArgs account.passwordCommand;
|
imap-passwd-cmd = lib.escapeShellArgs account.passwordCommand;
|
||||||
imap-host = account.imap.host;
|
imap-host = account.imap.host;
|
||||||
imap-port = account.imap.port;
|
imap-port = account.imap.port;
|
||||||
imap-starttls = account.imap.tls.useStartTls;
|
imap-starttls = account.imap.tls.useStartTls;
|
||||||
|
} else if account.himalaya.backend == "maildir" then {
|
||||||
|
backend = account.himalaya.backend;
|
||||||
|
maildir-root-dir = account.maildirBasePath;
|
||||||
|
} else
|
||||||
|
throw "Unsupported backend: ${account.himalaya.backend}")
|
||||||
|
// (if account.himalaya.sender == null then {
|
||||||
|
sender = "none";
|
||||||
|
} else if account.himalaya.sender == "smtp" then {
|
||||||
|
sender = account.himalaya.sender;
|
||||||
smtp-login = account.userName;
|
smtp-login = account.userName;
|
||||||
smtp-passwd-cmd = lib.escapeShellArgs account.passwordCommand;
|
smtp-passwd-cmd = lib.escapeShellArgs account.passwordCommand;
|
||||||
smtp-host = account.smtp.host;
|
smtp-host = account.smtp.host;
|
||||||
smtp-port = account.smtp.port;
|
smtp-port = account.smtp.port;
|
||||||
smtp-starttls = account.smtp.tls.useStartTls;
|
smtp-starttls = account.smtp.tls.useStartTls;
|
||||||
} // (lib.optionalAttrs (account.signature.showSignature == "append") {
|
} else if account.himalaya.sender == "sendmail" then {
|
||||||
# FIXME: signature cannot be attached
|
sender = account.himalaya.sender;
|
||||||
signature = account.signature.text;
|
} else
|
||||||
}) // account.himalaya.settings;
|
throw "Unsupported sender: ${account.himalaya.sender}")
|
||||||
|
// account.himalaya.settings;
|
||||||
in {
|
in {
|
||||||
# NOTE: will not start without this configured, but each account overrides it
|
# NOTE: will not start without this configured, but each account overrides it
|
||||||
name = "";
|
display-name = "";
|
||||||
} // cfg.settings // (lib.mapAttrs (_: toHimalayaConfig) enabledAccounts);
|
} // cfg.settings // (lib.mapAttrs (_: toHimalayaConfig) enabledAccounts);
|
||||||
in {
|
in {
|
||||||
meta.maintainers = with lib.hm.maintainers; [ ambroisie ];
|
meta.maintainers = with lib.hm.maintainers; [ toastal ];
|
||||||
|
|
||||||
options = with lib; {
|
options = with lib; {
|
||||||
programs.himalaya = {
|
programs.himalaya = {
|
||||||
@@ -61,7 +79,8 @@ in {
|
|||||||
default = { };
|
default = { };
|
||||||
example = lib.literalExpression ''
|
example = lib.literalExpression ''
|
||||||
{
|
{
|
||||||
default-page-size = 50;
|
email-listing-page-size = 50;
|
||||||
|
watch-cmds = [ "mbsync -a" ]
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
@@ -78,6 +97,22 @@ in {
|
|||||||
the himalaya mail client for this account
|
the himalaya mail client for this account
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
backend = mkOption {
|
||||||
|
# TODO: “notmuch” (requires compile flag for himalaya, libnotmuch)
|
||||||
|
type = types.nullOr (types.enum [ "imap" "maildir" ]);
|
||||||
|
description = ''
|
||||||
|
The method for which <command>himalaya</command> will fetch, store,
|
||||||
|
etc. mail.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
sender = mkOption {
|
||||||
|
type = types.nullOr (types.enum [ "smtp" "sendmail" ]);
|
||||||
|
description = ''
|
||||||
|
The method for which <command>himalaya</command> will send mail.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
settings = mkOption {
|
settings = mkOption {
|
||||||
type = tomlFormat.type;
|
type = tomlFormat.type;
|
||||||
default = { };
|
default = { };
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user