mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-08-21 10:45:49 +02:00
Compare commits
1507 Commits
v4.0.0
...
2ea661c8f4
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ea661c8f4 | |||
| 2057df3ffc | |||
| ee0cb3cf68 | |||
| def37f0b3a | |||
| 0d901aa10c | |||
| 835114e5c9 | |||
| 9cef5b8f76 | |||
| c37f3fc5e4 | |||
| a393b84c92 | |||
| ccdf0c289a | |||
| cdffe66d72 | |||
| 082de49ca4 | |||
| 11391ae56c | |||
| a8f39b1729 | |||
| a704d3a7d2 | |||
| f72d6ab55c | |||
| 2890b49b82 | |||
| b8f30fbe4e | |||
| cc7f352ced | |||
| 24081abaf0 | |||
| 4addb1bd33 | |||
| c27c0550fb | |||
| 1333132eef | |||
| 1e83efd78a | |||
| 2f89759ca7 | |||
| 79351e46a1 | |||
| 3f37a26162 | |||
| e9fbdcb870 | |||
| e5d494607f | |||
| d4e4a8f9f7 | |||
| 7f54f94974 | |||
| 148b093eb4 | |||
| dd3ad203fa | |||
| 76f2982167 | |||
| 868c215895 | |||
| ceecbb858d | |||
| 9e45e35b7e | |||
| 6c2a7563d3 | |||
| 783e8fb9ff | |||
| 2878142360 | |||
| 93c36aa3ef | |||
| a195e1d2e9 | |||
| 3c13b64fec | |||
| 1e4b0f610c | |||
| c06762d636 | |||
| 1ba64e3731 | |||
| afc1928f5a | |||
| 87c258312c | |||
| 03f6cd7fe8 | |||
| 57db0eaaf6 | |||
| e14c569193 | |||
| a5e4dcddac | |||
| fd7c23055f | |||
| 4322ca33db | |||
| 9ebdaa1505 | |||
| 6a9752b74e | |||
| 48bb118da4 | |||
| ab92a39a28 | |||
| ec6abc4aba | |||
| fe781a0eed | |||
| 19609ad781 | |||
| 922e916a7a | |||
| 7c8a552730 | |||
| a15bc11625 | |||
| d233ae904f | |||
| 5f72e16819 | |||
| 2954349fee | |||
| 4b79b7689a | |||
| 5dff7ceb12 | |||
| a90a3809ce | |||
| fe1247f121 | |||
| 313f3c0b87 | |||
| 93152a5dcb | |||
| edf013bb08 | |||
| cb323223f8 | |||
| d1462de38c | |||
| 8419542ea2 | |||
| 2740475af1 | |||
| 5e9b5ad633 | |||
| 0452f40b25 | |||
| d71c9d8169 | |||
| e805c868a7 | |||
| 0fd0a73e92 | |||
| cd2896eb5d | |||
| 35b79af191 | |||
| 325cacc86f | |||
| 7862c970fd | |||
| 498ed902a2 | |||
| 3478a9a0a5 | |||
| f6d056deb3 | |||
| 795621ada6 | |||
| 31964cca35 | |||
| abcadd4eaf | |||
| 5945a72b01 | |||
| df6381db85 | |||
| 6ed60d7a13 | |||
| bcd4fa9839 | |||
| 143c5d2a34 | |||
| 4ed04ebf55 | |||
| 1a57874e68 | |||
| 2127ffbe31 | |||
| a76f81fa13 | |||
| f9d5c6ab00 | |||
| b51a78ac1c | |||
| 96b5d5e671 | |||
| a222958eea | |||
| c3f86c9831 | |||
| dc5c7dc915 | |||
| 3cbe2a1ab2 | |||
| a1ed4ebc4c | |||
| 80aa828ee5 | |||
| 28cdcb6dad | |||
| e620c5296f | |||
| 80ca377585 | |||
| 3a8ac99f43 | |||
| 6724573f16 | |||
| 13ae753f3d | |||
| 805f43618c | |||
| 4489c9e0ae | |||
| 3a86013330 | |||
| 922a412cda | |||
| cedf87698c | |||
| 52561cf335 | |||
| 9429c9f93b | |||
| 5e0dd70cfa | |||
| 9e24c44c53 | |||
| 241db5ce7a | |||
| 00faa213bf | |||
| 0aac097e77 | |||
| 5aaeba1512 | |||
| 1bdf7a3af5 | |||
| 4f3cf99b99 | |||
| f7a2aa6256 | |||
| ac3c0886b7 | |||
| 17f976d4e7 | |||
| daaf0d2b27 | |||
| 5f0d3bff5f | |||
| 36ad6aeb57 | |||
| 2326857f65 | |||
| 28b7923e47 | |||
| 29bdd6468a | |||
| 08db0a42c4 | |||
| 66cc2a3958 | |||
| 80afef207a | |||
| d18d67d86e | |||
| 2e10d6feff | |||
| dea17ebf3c | |||
| ae024e308d | |||
| 302f0ceec9 | |||
| 1cddeef739 | |||
| d7b72277f7 | |||
| 5d9ab362a3 | |||
| a6b2f66ac8 | |||
| e2a60b15dc | |||
| d029d6f205 | |||
| d9b4102bed | |||
| a744d85f48 | |||
| 5d50819d49 | |||
| 087f71d2d5 | |||
| 3f36665767 | |||
| 6cb4d1eb96 | |||
| 983c83b981 | |||
| c482e6e075 | |||
| 0a01e8f3e8 | |||
| 641411ad51 | |||
| 86fd60fd3d | |||
| 9a41aff92d | |||
| e4a2a7abd0 | |||
| b4d8e87abe | |||
| 5de0ce50d6 | |||
| aba6dafffa | |||
| 290471fcc2 | |||
| ac90e05258 | |||
| 562f2507c0 | |||
| a393b97680 | |||
| 59901b0081 | |||
| 6ecf475301 | |||
| 75483ea97a | |||
| 4cd0eccde5 | |||
| d32c4a317f | |||
| 5ecc516a2f | |||
| de489d7d9c | |||
| 19bfd1201b | |||
| 20f7bca099 | |||
| 72ed018351 | |||
| b904fd4fde | |||
| b1cf5fb3a1 | |||
| fee44db81c | |||
| 214095c02a | |||
| 29fc893847 | |||
| 3689215480 | |||
| 14168a65ea | |||
| 43ae447b34 | |||
| 07fa66f1b6 | |||
| 168423cf16 | |||
| bde39be205 | |||
| 18137f444a | |||
| e835f2466b | |||
| d2a9fff0d1 | |||
| 081e05c702 | |||
| 4a4b997ef3 | |||
| 37abf49364 | |||
| 36f5ef3792 | |||
| 3d4099c97b | |||
| 89413d06a8 | |||
| 76e3368f3e | |||
| 0f40fccb5e | |||
| cefebdbd0a | |||
| 05cfe684c2 | |||
| f11bd21e00 | |||
| 40477c6562 | |||
| d1fec1128d | |||
| 677a279eda | |||
| 1489261fa9 | |||
| 29d19d5502 | |||
| 2f69c6e1d4 | |||
| 9ad71c5775 | |||
| b5c64e96c4 | |||
| af787952ad | |||
| 4ebf579743 | |||
| 78aa49547d | |||
| d21fc81a19 | |||
| b0684b2e56 | |||
| 49a9f3f169 | |||
| 8caa02139c | |||
| 0c0a487488 | |||
| 6f463fc7f9 | |||
| 3e82b1cd60 | |||
| f9d171cef3 | |||
| 89c61650bc | |||
| c94559d29f | |||
| e91047a3e1 | |||
| 1d75175be8 | |||
| ea18558cb3 | |||
| 72c13294e6 | |||
| a771f685b2 | |||
| 27ad0783bc | |||
| d61e378405 | |||
| baa1ce858d | |||
| f32ea27565 | |||
| b657e5a891 | |||
| 48f3f3170b | |||
| 87778bd3fa | |||
| 5736c8ccf2 | |||
| 31031447ce | |||
| 4fb4058dca | |||
| 33b3ef66f2 | |||
| 52ee08e13b | |||
| 8c4b9340b6 | |||
| a1d57253f0 | |||
| 6e21914113 | |||
| 7acddfafa1 | |||
| 9fb4072893 | |||
| fd644671af | |||
| bfb7c2f4e0 | |||
| 22b5aa9797 | |||
| 4ac3945174 | |||
| d3cdc25481 | |||
| 6a0b3418a7 | |||
| f2c2540cd4 | |||
| 223f785c3a | |||
| 81ab17fed7 | |||
| 8f16767240 | |||
| e32cf43d87 | |||
| 8e6270ca34 | |||
| 1b0eb2f7bf | |||
| 7861a22df0 | |||
| 53ab3a608c | |||
| e6873e8caa | |||
| 9b7a311fc3 | |||
| bb7819114b | |||
| 1acb888684 | |||
| c09899e365 | |||
| d7fea0c4aa | |||
| c8dd5f2bbf | |||
| 71b559e0f6 | |||
| a901005929 | |||
| 31fb93ff68 | |||
| 84018b229c | |||
| 27d8dfb87f | |||
| 61c56e1b1d | |||
| 2ad7a99077 | |||
| 8088a45891 | |||
| 5b8240c176 | |||
| 44964ce7cc | |||
| 25c331b2f1 | |||
| d58e10e95d | |||
| e79e8d0d3b | |||
| 45aa87f9f8 | |||
| 9dee9b0d6a | |||
| 2fac831333 | |||
| a2cfea4c3e | |||
| 6095fb13cc | |||
| 738631870d | |||
| 66169bb57e | |||
| 984c99f45e | |||
| 47ec5d10e9 | |||
| 43e45e5cce | |||
| 76a97d964f | |||
| 198e88682c | |||
| 6e57ee66c2 | |||
| 1ace7442a1 | |||
| cce4cbee10 | |||
| 3c7702789c | |||
| 65213eb7cf | |||
| 56d7a4cd23 | |||
| 8bd2c8752e | |||
| cd95d86540 | |||
| fa37b8c89f | |||
| 32a079507c | |||
| 0cb07052bd | |||
| 0455d520d1 | |||
| 1bca9316b4 | |||
| 60c25395eb | |||
| 3807536cf2 | |||
| fada191840 | |||
| b756f0fcd5 | |||
| f88825b93c | |||
| ae115a50f2 | |||
| 3d6a3f62ec | |||
| b0c93e7e00 | |||
| 96dc0bcb4c | |||
| c853611916 | |||
| 49f4828046 | |||
| 29dbc0af97 | |||
| bc064cf1c5 | |||
| 4f9ea610d6 | |||
| 9d04654018 | |||
| 8508faf26e | |||
| 71437939ab | |||
| e851e8c2c3 | |||
| f3e4069e8c | |||
| 3bce0bce82 | |||
| 38a61285b3 | |||
| 2a77cbf773 | |||
| 87b4be1860 | |||
| e55385b3f0 | |||
| 8d25b1b088 | |||
| 97ff9eb09e | |||
| f9c4bd1f99 | |||
| bd2c7dfc25 | |||
| f110213bb0 | |||
| 8fdab8a9cc | |||
| 1e68496efe | |||
| 172205b613 | |||
| a07b0a38ac | |||
| f70a139bd7 | |||
| b98af7060b | |||
| 31bb45950d | |||
| cd55babaa2 | |||
| d9b4ef2766 | |||
| e8a5db5dc2 | |||
| b69baaf428 | |||
| 550248aa4e | |||
| 229e7bf30e | |||
| e1f03b2909 | |||
| 696bbcdcdf | |||
| d61b5989c0 | |||
| dd73b1c3e5 | |||
| ecde37dbe6 | |||
| 279a89e424 | |||
| be47d4801a | |||
| 6a641139bd | |||
| d211c4408b | |||
| 5a6c1e7663 | |||
| 91944a9b8d | |||
| 4932c2dd5e | |||
| c66fcbd709 | |||
| 9f01990924 | |||
| 4b3c6bcb04 | |||
| c077387e5f | |||
| 877171faa7 | |||
| f9ecc03f9d | |||
| a419fb2214 | |||
| 838187c0ad | |||
| d7dc6ff8ab | |||
| 66ed46603b | |||
| 4323eb53b7 | |||
| 7c36c6ce14 | |||
| c9ec302d19 | |||
| 69bba83536 | |||
| 59ae3d5f9d | |||
| 72e4be86eb | |||
| 18c8afb616 | |||
| f74e15288b | |||
| 21b993d1cc | |||
| 9ee631dd7a | |||
| ba3536c4dd | |||
| 6e14ad1357 | |||
| ee84daa4b4 | |||
| 806697e20d | |||
| db9286108d | |||
| 709c6c3680 | |||
| 4a40717982 | |||
| 51f20ec168 | |||
| fc3d977050 | |||
| 38665036fc | |||
| d5cc53f975 | |||
| 1c539f857d | |||
| b241a2f367 | |||
| d9d4cf53f8 | |||
| 6649f93754 | |||
| 74d2b12889 | |||
| c594900d45 | |||
| f306041af9 | |||
| 5d7c159e34 | |||
| f4e951169a | |||
| 8d75aa0b2d | |||
| 88d712360a | |||
| a1691ae886 | |||
| 37f63e248a | |||
| 1a0e9429f7 | |||
| f2e7751d7f | |||
| 9857d75263 | |||
| 2af2fdd7a1 | |||
| 5eeba41413 | |||
| 794650d294 | |||
| 7013531715 | |||
| d35af50097 | |||
| 1c587f2ff3 | |||
| 2d344e086e | |||
| c5c6c46af8 | |||
| 0afd3fc6cf | |||
| 7f094e0a4f | |||
| 3506f691eb | |||
| 1f36d4eb75 | |||
| a7d433c2fd | |||
| 3ccb167d6d | |||
| 680ee14463 | |||
| 8c4162b885 | |||
| 15f4554703 | |||
| 56792d70ec | |||
| e82fa4e8c8 | |||
| b7636142cd | |||
| 43ae984817 | |||
| e3090bee73 | |||
| 587bbf860e | |||
| 17e31c6bbc | |||
| 3693fad125 | |||
| f275bee6c8 | |||
| 18d5042a21 | |||
| dd83ee0e5e | |||
| 0f944e4c05 | |||
| 98598ee3ce | |||
| 830c1059a9 | |||
| 53e8a42484 | |||
| ea7eaa106a | |||
| 936266ab11 | |||
| 26b08ec009 | |||
| 96673a4e69 | |||
| 81b3128ef6 | |||
| 55349958d3 | |||
| a6524d8d83 | |||
| 682f24b1be | |||
| 4fb4ab9ae2 | |||
| 64c833dfaf | |||
| fe1d58998c | |||
| 557844d07a | |||
| aac1ced91e | |||
| 45cd05c304 | |||
| 4da1706085 | |||
| b06ec10646 | |||
| 8ea5a5e6ae | |||
| 40d80808c3 | |||
| 66cce04e98 | |||
| 580c7302aa | |||
| f36bef6bde | |||
| 0bfb226119 | |||
| 6fd6982d0f | |||
| d1eb1353f5 | |||
| 7dce2b592f | |||
| bbec068d1d | |||
| 30c4099b64 | |||
| 8eec546631 | |||
| 21f9ed2d54 | |||
| a056244dd8 | |||
| d7e1dd20d9 | |||
| f1a7ba0f77 | |||
| 0540ee700d | |||
| 24d77739b9 | |||
| 6d4a886acb | |||
| af0c00d1d0 | |||
| 23c3d86c73 | |||
| 64d63b8f52 | |||
| 6b43b76880 | |||
| 31e03a7fb8 | |||
| c6d4c3f14b | |||
| 9f3521a716 | |||
| 767d687674 | |||
| 13312a62a1 | |||
| a12fe9a81a | |||
| c5e85ae57d | |||
| 0d8bfd7749 | |||
| d8993672c1 | |||
| fedd6a72ea | |||
| 36bd8b84e1 | |||
| c43ae9578b | |||
| 911845949e | |||
| 76c47913ea | |||
| fe1f7245b0 | |||
| ceadb80791 | |||
| cc27decf7a | |||
| cbd2d465e9 | |||
| de2a311f84 | |||
| afedf85534 | |||
| 5af43b4194 | |||
| 10e01b3270 | |||
| 7c6aaf80c3 | |||
| 0fcc535f53 | |||
| 6fe18fb699 | |||
| 5ee6829136 | |||
| 01c55c2428 | |||
| a21e14e5e6 | |||
| b4ecbdb587 | |||
| 299f017b06 | |||
| 3e1c32ff6c | |||
| 7a72b4229d | |||
| 5a9dc62173 | |||
| d146aa6af1 | |||
| 068f8722f0 | |||
| f2cf006a02 | |||
| c268e920c4 | |||
| e9eed8212a | |||
| 8753ac2d0b | |||
| 13578f0f2f | |||
| b8ceb39db9 | |||
| b22bd95f9f | |||
| b25ce91ca0 | |||
| dac3b34e64 | |||
| ae9427b508 | |||
| cd3715664f | |||
| 8136b19187 | |||
| a90a77a29d | |||
| 1006680dea | |||
| d0ad3c6e6e | |||
| 2e6e17f224 | |||
| 61830ffe71 | |||
| 1cb855c181 | |||
| c1eee689fd | |||
| d6c080930d | |||
| 67b70c3e5c | |||
| 07f7654c69 | |||
| 2f5e5683e9 | |||
| 1f2a665ef0 | |||
| 58e16598b1 | |||
| 16896d0b37 | |||
| 3f2a7346c5 | |||
| 3e1255349b | |||
| 7f3757e530 | |||
| d39656ad66 | |||
| 3d25e1799b | |||
| c937ee3afc | |||
| 43b8be4931 | |||
| 31879f6186 | |||
| 0c34239fab | |||
| 104c816612 | |||
| 60d177ba39 | |||
| b6cad25714 | |||
| 542f811107 | |||
| 4b80d21c00 | |||
| ab80268f61 | |||
| 30cd88a6b0 | |||
| 28d59ed58e | |||
| eb81d94717 | |||
| f1c4eff2d6 | |||
| d044e3dd2e | |||
| 6851655e0a | |||
| c7e6aba945 | |||
| 669249bdaa | |||
| 31488b2534 | |||
| 638e37a4b4 | |||
| 422e3ffaf5 | |||
| 8e26c50b92 | |||
| 0ff65b95b5 | |||
| 0f6d9c16b5 | |||
| a26a80596a | |||
| 1a1b5e9d07 | |||
| ad194bb96d | |||
| f8b20c8f20 | |||
| 6971afb3af | |||
| 50c3a83d84 | |||
| 33810fc79e | |||
| cd8cbe7d65 | |||
| e1bec5a053 | |||
| 1a53b35a1f | |||
| 968c7a922e | |||
| aac1a100d8 | |||
| 38c9906ada | |||
| 14744197ac | |||
| f374f6de9b | |||
| e7ccac616d | |||
| f76aee3783 | |||
| 4dd98a5554 | |||
| c70507cebd | |||
| dbc55aaa6f | |||
| 62a1a19d9d | |||
| 1ad395000d | |||
| e54127637e | |||
| 2fc1d31961 | |||
| 9e53d48c68 | |||
| 0b1f3996cf | |||
| b2688973f1 | |||
| 75fcb1c2be | |||
| c587c47b79 | |||
| d63ce02e5e | |||
| 2e371da2e5 | |||
| c52a7766c2 | |||
| d9337db684 | |||
| e5f2161604 | |||
| 9151dc75d8 | |||
| 3ce26e6b88 | |||
| 84026e498e | |||
| 29ff0aa3dd | |||
| fa76704fb5 | |||
| 5c59bfa474 | |||
| b5a5efde90 | |||
| 7c1f56d6a3 | |||
| b20bf2fbce | |||
| dbcddb6115 | |||
| 56ef64700f | |||
| 458fe29a91 | |||
| 8785a2bd04 | |||
| 16c9d54a30 | |||
| e26b4d0285 | |||
| 95d3326857 | |||
| c5175cdaeb | |||
| bb084f66e9 | |||
| 0960892340 | |||
| 34ef6d39f9 | |||
| 444340c880 | |||
| acbc487772 | |||
| 305c11dc6d | |||
| 8a7a76297a | |||
| f9c5e63136 | |||
| 1b70d8c5cf | |||
| 9f5a1ca09e | |||
| 1612dca680 | |||
| f78389127a | |||
| 52c2187734 | |||
| d1fadd9059 | |||
| 2ccd7409ca | |||
| 9e35e81a69 | |||
| 8a596d9d86 | |||
| d8e807633c | |||
| 81ca5204bb | |||
| ca54d98acf | |||
| 62b2ff0090 | |||
| ee976873ce | |||
| 411b951332 | |||
| 71ec7d1390 | |||
| 3571c9da85 | |||
| dee8dcddf8 | |||
| 85fa2c5f11 | |||
| d3881d19af | |||
| d16d6906b8 | |||
| 449ad7997e | |||
| 4d80db7ccb | |||
| b314c9648f | |||
| 77ff7edce5 | |||
| 5ee186ca15 | |||
| 92c34e0c28 | |||
| a38304d73b | |||
| 5fd0da5327 | |||
| 9ae7a67a40 | |||
| 48cb6d9065 | |||
| 62bc08a436 | |||
| e0e933132b | |||
| eba2fc481e | |||
| 15fa1daa8f | |||
| de6a1f4529 | |||
| 04e34161b1 | |||
| 575e2d246b | |||
| 88ee45885b | |||
| b48a197157 | |||
| 59c2ee28e1 | |||
| 4c32612a43 | |||
| 72e2184e0b | |||
| a221b2d5c1 | |||
| de60ad7c84 | |||
| 30293a616b | |||
| 16c76c92b3 | |||
| d22a30be53 | |||
| 92e165396d | |||
| b0899442ab | |||
| 991b456713 | |||
| 53dc030c22 | |||
| afd27f2a92 | |||
| 6a5c430830 | |||
| f04821fffe | |||
| eeeaf1a7c4 | |||
| 2c42201b15 | |||
| e3e7714f4c | |||
| 28ff9b7e6a | |||
| c92d1ac1ad | |||
| 3d214c7c2d | |||
| bfd689beab | |||
| 8879e0c222 | |||
| 794932ee3b | |||
| d5e56f4092 | |||
| ad0cc491f8 | |||
| a90dfeac07 | |||
| 61ae19567a | |||
| 2ffa0a3abf | |||
| 651de22342 | |||
| 3d5516e20c | |||
| 2270fe77b6 | |||
| 6514624612 | |||
| 4d4db27d49 | |||
| 9ff48eb543 | |||
| 519de26e6a | |||
| e1915e1741 | |||
| de177e0003 | |||
| c054d85b1c | |||
| 47e9b45cfa | |||
| f1f8d50c2e | |||
| e514c9ca09 | |||
| 336574206c | |||
| dcd302bf5b | |||
| 5aad861057 | |||
| 1098005af6 | |||
| 223b91e075 | |||
| ee80453e77 | |||
| a49bc73bbd | |||
| 818dfda0e3 | |||
| 33f62390c5 | |||
| fe143348a4 | |||
| 937c0a70d9 | |||
| 11c88abded | |||
| 9c43f16027 | |||
| ffc3b1baed | |||
| 73c349918f | |||
| 662009000d | |||
| d4ffdae2f4 | |||
| 1a69437e3f | |||
| a2210756c5 | |||
| 76dabd905e | |||
| 3c1be077b9 | |||
| 5aef2f7d40 | |||
| 7342a52609 | |||
| 8f1949c3fb | |||
| 09352dbcbc | |||
| b32cc2ade5 | |||
| eb457f8069 | |||
| bba6f699bd | |||
| 532b2e4e0a | |||
| 21beb27859 | |||
| 029655cb72 | |||
| ec8f733408 | |||
| 47449eb534 | |||
| 8d585f941d | |||
| 35e8d0a6a6 | |||
| 5662804337 | |||
| 523a3819d1 | |||
| 4532330c0c | |||
| 0362bbec14 | |||
| fcdd2dc92c | |||
| e7b81f510c | |||
| c3517e5f56 | |||
| 9af2f9f691 | |||
| 9ca1a031b5 | |||
| 640f815782 | |||
| 5885d6e400 | |||
| 897dcfb7e3 | |||
| 17589f5697 | |||
| 914f8bfa7e | |||
| 65f98fd3ec | |||
| f65f5a28e8 | |||
| c9ca8c21f3 | |||
| b0e4113b3b | |||
| 2a200b0e75 | |||
| f1b6044ed1 | |||
| 8891834ae1 | |||
| 4356ad0e2f | |||
| 3cbf606230 | |||
| fb75ecc61d | |||
| 792970dc7f | |||
| 30220aba6c | |||
| 6f0e14a560 | |||
| fb297a1016 | |||
| ea3baad219 | |||
| f12c527cdc | |||
| f16312b953 | |||
| de8abc2c4f | |||
| 3308c7424a | |||
| 12ca3743a1 | |||
| fc7fbfe0ee | |||
| 916a9ed923 | |||
| bd98e149f9 | |||
| a66048b432 | |||
| d8d8d7e990 | |||
| 8c5ce4880e | |||
| 14ef376f03 | |||
| ff5a75f687 | |||
| bbfd3a5de2 | |||
| a980904382 | |||
| 25d6f672a4 | |||
| 1922a9550b | |||
| 79b3cec6fb | |||
| e9f8555d37 | |||
| 0875217932 | |||
| 7dc0964759 | |||
| d7553fbce8 | |||
| 458e61b19c | |||
| d20693de9a | |||
| ea770a10ec | |||
| 970aa3133b | |||
| fe323511a4 | |||
| ea806f21d4 | |||
| a6a6cc3c09 | |||
| c334ff2851 | |||
| 40c8ca00db | |||
| a25c5fd551 | |||
| b6d0f00b34 | |||
| c020deea69 | |||
| 01e6c36348 | |||
| 1c9454a1cd | |||
| 0b65935549 | |||
| b48b9d1ef2 | |||
| c52a218305 | |||
| b5638ad2c8 | |||
| ca94ff3e9b | |||
| a306013288 | |||
| 90a73be013 | |||
| 4aa1b4eb50 | |||
| c2c92cf19c | |||
| d767f47422 | |||
| 442a0ad2b8 | |||
| 8b4fae6767 | |||
| 886e10612b | |||
| 5734351eca | |||
| c52894ecf0 | |||
| 72dd09aca1 | |||
| 4bd0343a63 | |||
| 961bb66e39 | |||
| 3e2f341bdb | |||
| e0dcde257a | |||
| e2ce1c442c | |||
| d3a25298d8 | |||
| b4edee45c2 | |||
| c830e627b0 | |||
| fcec5fff43 | |||
| 8a81c97ef3 | |||
| 6d46bb179c | |||
| a38eb82a2d | |||
| 2c01fd4182 | |||
| ad01749b10 | |||
| 201e9141a9 | |||
| dfbabf721d | |||
| 24553acae4 | |||
| ace16b05dd | |||
| 9222b90b24 | |||
| ac7da3935e | |||
| c08d1bd231 | |||
| 9635c7c8d5 | |||
| 51c00c532f | |||
| e386a42a43 | |||
| 26f5c4d041 | |||
| c3c4d5a027 | |||
| c416c53ec3 | |||
| 51c1e94c15 | |||
| 12657964c0 | |||
| b4a41673ed | |||
| a0c9d2570d | |||
| abca34497f | |||
| 3a66e81390 | |||
| 9c8ff97621 | |||
| fd3b272e31 | |||
| b14941d499 | |||
| b503ef1dec | |||
| f600f4903f | |||
| 023bf6d570 | |||
| 3e23890e43 | |||
| fc4dba9a75 | |||
| 2b56da08c6 | |||
| f95f539cad | |||
| d8b626139a | |||
| 477679c0a7 | |||
| 109ce61bbe | |||
| 0c50468ec2 | |||
| 71f03bde80 | |||
| b568faa7f2 | |||
| 31a84fd6ff | |||
| 30d497fef2 | |||
| 6e41aed96f | |||
| 9256aabe91 | |||
| 7d54322e8c | |||
| 364945be45 | |||
| 7932ba1f44 | |||
| 4eef13d9ba | |||
| 80ea020322 | |||
| 31d025a1b8 | |||
| b41644c69d | |||
| 0ec95f82d2 | |||
| 0df71d76df | |||
| d3f39e88dc | |||
| a8db853539 | |||
| ba4af473f4 | |||
| c272a4a8f9 | |||
| 16f1aba0c1 | |||
| 9be215cdea | |||
| f125369e88 | |||
| 73d9867b9a | |||
| 04b3882399 | |||
| ad0c8828cf | |||
| 89252b80bf | |||
| ab6ae9e7fb | |||
| c84eb4e185 | |||
| 00236ad9b1 | |||
| 3e9f37ea04 | |||
| 0019097d38 | |||
| 90284912bc | |||
| f9f63657fb | |||
| 319da87024 | |||
| b5cad0e00c | |||
| 892666e946 | |||
| d1f5b0ea4f | |||
| a8980eb4dd | |||
| 8482de47b2 | |||
| 7faec62f69 | |||
| 69f2ccceca | |||
| 476d89a651 | |||
| 690ae53780 | |||
| 58ed393097 | |||
| 4367c39873 | |||
| f32062d541 | |||
| eb57aa062e | |||
| fce3056d8f | |||
| 42bb93093c | |||
| e785e84bf2 | |||
| e2af0156c8 | |||
| b071daad02 | |||
| 4e7a020fc4 | |||
| ac53f1a812 | |||
| 5ed0ec12ea | |||
| fc0c2b0d13 | |||
| aa1f99e8f4 | |||
| 2b947bd5b1 | |||
| c0efbbd734 | |||
| 6379ff551d | |||
| 492d257fa5 | |||
| 3bebb475d7 | |||
| 4a832f376f | |||
| a5bd556df9 | |||
| c6710b1d64 | |||
| 731aa270b6 | |||
| 8c74fa0fc8 | |||
| 0bb41bb6dd | |||
| 92e9e59f02 | |||
| 7a177e4bb2 | |||
| e8625f81e9 | |||
| b14c343f14 | |||
| c364668759 | |||
| 3381fe405b | |||
| b738189d0c | |||
| ac914caf6a | |||
| 97e2c915cd | |||
| 21ed46cd7c | |||
| 7eb4e5ade9 | |||
| dae95bc5be | |||
| a33cf73ff1 | |||
| 18c30e5931 | |||
| 13c8f27411 | |||
| a640670baa | |||
| ae77733c71 | |||
| 6827360045 | |||
| 359e9745d6 | |||
| 56bcd3d56a | |||
| 8a81c546de | |||
| 23f0682eac | |||
| 418bc45bd2 | |||
| 1c4fece944 | |||
| 3716ba6b4f | |||
| 0e56be3428 | |||
| 7beef9441e | |||
| 176e3ba305 | |||
| ed045316ff | |||
| cfec304bbb | |||
| 575bb58bfc | |||
| 9ce3df4884 | |||
| 3c9875a110 | |||
| 8c69c549db | |||
| f1f919fe49 | |||
| 12cc080fc3 | |||
| 6b4b9a9aa7 | |||
| 6207e48d84 | |||
| b41dfdf664 | |||
| 8155f65fb9 | |||
| b0ca6aa757 | |||
| fd0251afbc | |||
| 5e16ae7463 | |||
| 2a2f4e4b9d | |||
| eef1d9531f | |||
| b92243118d | |||
| 01f9894fc6 | |||
| 03d202250b | |||
| 9cb8036b73 | |||
| 60fe3769e8 | |||
| 641bf821d4 | |||
| 25aa619445 | |||
| 5a0d476de3 | |||
| 00db8d0ae6 | |||
| ef66b6f848 | |||
| 59caed5e69 | |||
| dad0865d06 | |||
| c106c76cbc | |||
| 4181544de8 | |||
| 30c8414749 | |||
| 6bb9386773 | |||
| ae82cbcf67 | |||
| 518ac107c6 | |||
| 58f5f421e8 | |||
| 999950afc9 | |||
| 13a6249227 | |||
| c68df370cc | |||
| c08d551932 | |||
| fa63cf950a | |||
| 31cb1fd0f2 | |||
| 647236f7b0 | |||
| 43566fc4ae | |||
| 682c50793c | |||
| 2958b5a03c | |||
| 2b25d18bd5 | |||
| 248f9a5ba8 | |||
| 89ff802e16 | |||
| 13643dc1bc | |||
| 188ef240ae | |||
| a8c1b6363d | |||
| 8aaa6199f2 | |||
| 4cd544d59f | |||
| c9a4f2115d | |||
| 395efb8ef1 | |||
| 1280370a0a | |||
| f9bcfb5b50 | |||
| 3244b2d7e0 | |||
| eff0846c0f | |||
| e2a10d4067 | |||
| 39a1d16701 | |||
| adbe7f3295 | |||
| d67f234b2b | |||
| 14a3a77c9e | |||
| 0a1f505dd1 | |||
| c6b1af26ce | |||
| 4a42f1fc91 | |||
| 612a8f6d33 | |||
| e7b608ecc4 | |||
| bfe270b6e1 | |||
| e5f82cdb2d | |||
| d705c8cecc | |||
| f2613218db | |||
| 2099c4636c | |||
| 8cf93bfbc8 | |||
| b2dca45c34 | |||
| 403e4e1967 | |||
| 7ef771f14e | |||
| acb7db87df | |||
| 0f5b7f60b6 | |||
| d7264b0de1 | |||
| 23b518381a | |||
| 8876aae16c | |||
| 0ed5d1cf04 | |||
| 83decac5e9 | |||
| 9104494893 | |||
| 10d1a73eeb | |||
| 307c0b5edd | |||
| 321914861f | |||
| b851c527af | |||
| 69f1aa3072 | |||
| aeaee053c4 | |||
| 7632e82867 | |||
| ffbb5eb322 | |||
| fe6288d42c | |||
| f54ec0a5ab | |||
| 768b475183 | |||
| 0643968e77 | |||
| 18a17abad4 | |||
| c4b19710ef | |||
| 1beb1be29c | |||
| 621520e9e8 | |||
| f030f9b6ed | |||
| f6c5f90a75 | |||
| 3ad6f353b6 | |||
| debc426717 | |||
| 0e6f7110e4 | |||
| af3b9fcd6e | |||
| 8e5df9ff90 | |||
| 7e1eaf33af | |||
| 6a12e7cde9 | |||
| 9a4fb9fd61 | |||
| c77dd39a98 | |||
| a0a7d5755a | |||
| 5efa224a57 | |||
| 61e195d134 | |||
| 5b2c6db769 | |||
| c6fee1ccd6 | |||
| 60652a60df | |||
| b41f3576c9 | |||
| edacf85795 | |||
| 7dd9f021f0 | |||
| ce4da71c70 | |||
| 0380714faa | |||
| 2b7d962b27 | |||
| 11f73f74ff | |||
| 8cc101b169 | |||
| 0bd30d921b | |||
| fe238ca49a | |||
| 527a22c37b | |||
| e1ad72405f | |||
| 985a8b063d | |||
| 66677bc08e | |||
| f3434352d2 | |||
| 65b82b3609 | |||
| c3e544248f | |||
| 6a33d7ac72 | |||
| 9b8c5b9b19 | |||
| 130415e809 | |||
| 52a029e998 | |||
| d1a8286a21 | |||
| 78bccf2c7e | |||
| 4290cc3c35 | |||
| 8f70b0d26b | |||
| d9580c1dff | |||
| 763fa5e549 | |||
| 0c68ac35b5 | |||
| 3ed7128cc4 | |||
| d7f34d9f0e | |||
| 826fd6aaaf | |||
| 1fba2d19b3 | |||
| d92bbe59a6 | |||
| edc0243200 | |||
| 27ac4008f8 | |||
| 9dc7b851f5 | |||
| 4a2d941991 | |||
| a62c549e8f | |||
| 7232c54382 | |||
| 25067c9d06 | |||
| be8b1b696c | |||
| 885f18806e | |||
| b9ebf59fea | |||
| ba007b4710 | |||
| 1d8bc979c3 | |||
| a7197e360e | |||
| 878754ad8b | |||
| 4a08e654e0 | |||
| 5d94699990 | |||
| d98468a34d | |||
| 5f73e46e73 | |||
| 674ef50ac9 | |||
| d276202288 | |||
| 9b31f3be8d | |||
| 24d0f22f8e | |||
| 13cf7cd494 | |||
| 65c430318f | |||
| b4e6f9d48c | |||
| a024023c43 | |||
| 6edf2cd0b9 | |||
| d2b3e6b430 | |||
| b5476da7ef | |||
| 9c1afd279c | |||
| f998316b9e | |||
| fea1eade7f | |||
| 2517219f4c | |||
| c5d95b14ea | |||
| 0a7befb23b | |||
| 41116fb2b5 | |||
| cf2f5f2f9b | |||
| 35ba84724f | |||
| 2151fc6f90 | |||
| 45ed8258ca | |||
| ffc95dcd1b | |||
| 2c68166067 | |||
| ae83c7497a | |||
| 03c675cf62 | |||
| a4d8670563 | |||
| 0114b629e6 | |||
| 7f4280af72 | |||
| e7b4080c2a | |||
| c541832066 | |||
| 8b57bffcd6 | |||
| 7a4e3ad1a3 | |||
| 7a2c2c6201 | |||
| a8c0fdb670 | |||
| 5ce310fe6d | |||
| 89818e9ee2 | |||
| d943b85cc9 | |||
| 8eaa78bf4b | |||
| 82d6c29f21 | |||
| 72a8aa16bb | |||
| 5c9b799afe | |||
| eb584dac56 | |||
| 2fd610a09c | |||
| 8eb88f474a | |||
| f73291c269 | |||
| e93e5807f9 | |||
| 6d0a2e186b | |||
| c2a700ef3a | |||
| 7b0deaf9c1 | |||
| 98d1ccb2c0 | |||
| e6f46e1788 | |||
| e6c2becccb | |||
| cfc9f99c83 | |||
| 3c43b277b7 | |||
| 64f789e52a | |||
| 9ab4dae87b | |||
| f2b742e470 | |||
| a3f44fa53c | |||
| 91d06ef6a4 | |||
| b9df9861fc | |||
| 049e2a9214 | |||
| 78bb7ff465 | |||
| 8e04a559b9 | |||
| aa3f3e2269 | |||
| bcc505f5dd | |||
| f0617924b0 | |||
| 14c33a8191 | |||
| fcd92d0155 | |||
| 9d73c644a7 | |||
| c5c0fdc7cc | |||
| 42d7b8b820 | |||
| 2983dd6270 | |||
| 7d684153a9 | |||
| bc26eb05a7 | |||
| ec38767570 | |||
| 5340cfeb84 | |||
| 734e310f28 | |||
| e388cc7556 | |||
| 0263e08415 | |||
| 65f8fcc926 | |||
| 59a3c1d4de | |||
| 206d4d7433 | |||
| 8c8833b26e | |||
| 392a3e4998 | |||
| 76a423a964 | |||
| 63c19a0c61 | |||
| f3f4689cc8 | |||
| 2050efbfbf | |||
| 8d5734b739 | |||
| f23897d7d8 | |||
| 22b00bf301 | |||
| 76355d3ca1 | |||
| 14b29a6588 | |||
| 5eafcf5b76 | |||
| 9c43d22eb1 | |||
| 06428958dd | |||
| 0d84783032 | |||
| 25af8d6213 | |||
| e3549ce9e5 | |||
| 1d859e5c13 | |||
| 4ef84d1f8d | |||
| ed791eb748 | |||
| 5c6acc2028 | |||
| a9dc177a34 | |||
| ef32063715 | |||
| bdaa52dedc | |||
| c5d7ba76c7 | |||
| 358e8c9158 | |||
| d1dd841da8 | |||
| 8137ebfd99 | |||
| cc45eda3ef | |||
| 8415d92264 | |||
| 17d95716b6 | |||
| 6db2fc373d | |||
| ebbf404c68 | |||
| 9fc328f675 | |||
| ba489aaea3 | |||
| 67ec1dd41f | |||
| ae50fc36d6 | |||
| f401067dd9 | |||
| a02bee95de | |||
| ec7b2a2fe9 | |||
| 2a40427cd6 | |||
| eb42d3e4d1 | |||
| 03f4715693 | |||
| c35dfb8017 | |||
| 7bdacd9ed5 | |||
| c8ca22f308 | |||
| 13b147932e | |||
| 29b6dc17c0 | |||
| 8ff1df4333 | |||
| af0241f1eb | |||
| 3719cc90be | |||
| 396297d6f7 | |||
| cb4b5741d7 | |||
| da000e60bd | |||
| c4a38e7691 | |||
| 8972cd081b | |||
| b930a7e9f7 | |||
| 85a7fc8ca7 | |||
| 869a442843 | |||
| 49b6d81216 | |||
| 21d84fd39d | |||
| 2a12db0133 | |||
| 9c5118264c | |||
| 3a8df54936 | |||
| a3c8ad5efb | |||
| b38a1ccef8 | |||
| 321bb0bd16 | |||
| 6c96796584 | |||
| c6bc2ba192 | |||
| c5f8e0f7a2 | |||
| 9ff0e4cbe4 | |||
| 4c0a61ccad | |||
| 8ddabcee34 | |||
| ccef91e0ed | |||
| f9057b2983 | |||
| 5e276e88f8 | |||
| 6c4428b4ef | |||
| fd32e06cd2 | |||
| 1a4615a781 | |||
| 3823561a0a | |||
| b667a65f31 | |||
| 88df4c8d42 | |||
| 8082c06548 | |||
| 21bf90efc0 | |||
| 6d22f2d409 | |||
| ffa788dd4e | |||
| 79a045e3bb | |||
| 2fb8a97b71 | |||
| 26065f3699 | |||
| 4f2ba52404 | |||
| be23ff67aa | |||
| ff79cbf502 | |||
| 8b8f3fa54b | |||
| 1f2bb4c33a | |||
| 9d458b7e04 | |||
| dedf840131 | |||
| 7dc2c69292 | |||
| def86d31a4 | |||
| 3038f62405 | |||
| fe01b971cf | |||
| 918c865202 | |||
| 6e30f6cd4e | |||
| ff73c05ba6 | |||
| dbf520b556 | |||
| fc046db74b | |||
| 96bae83dd1 | |||
| aae802193c | |||
| 8dc316d6a4 | |||
| ad86356f9a | |||
| 007ef7304b | |||
| 019a6deaf4 | |||
| 7da96ad2c7 | |||
| 7ebc1ba322 | |||
| c5e9cb9c32 | |||
| a3ec52058e | |||
| d78f213006 | |||
| 73b2015d02 | |||
| cedad9a7a6 | |||
| 65d6c2f28f | |||
| 18c7618ebf | |||
| e29a5c2517 | |||
| 6f3c922010 | |||
| 2b902ef731 | |||
| 7cb070b6b1 | |||
| e788f5954e | |||
| bfb370d8fe | |||
| 0332b6c56b | |||
| e5bdab5a24 | |||
| a42ef3ff84 | |||
| da33cf1fd3 | |||
| 4290a5e814 | |||
| 8e425d5d87 | |||
| 8aeff4bb9a | |||
| 6d23ca208e | |||
| 41ccb74258 | |||
| 5f1b047221 | |||
| a5b26b92de | |||
| 5e71ef48dd | |||
| 2fc51aa02e | |||
| 7dc90af1c8 | |||
| 7a564110a5 | |||
| bb08cd494a | |||
| 3b5885e2c9 | |||
| d9810c3c1f | |||
| 13f060d100 | |||
| 40164e8cbd | |||
| f9187d3252 | |||
| b86fe8b3c7 | |||
| 9cdddb99c5 | |||
| 35bb470eb1 | |||
| 1a1597ba49 | |||
| 8c55eb48af | |||
| cd3dfb985c | |||
| 19bf7838c4 | |||
| 05da8fd990 | |||
| d28ad77974 | |||
| 379424e228 | |||
| 355336c9ff | |||
| 46b213bbfa | |||
| 4fda4eda9e | |||
| 3bffc0142c | |||
| 21f5d55569 | |||
| 12d7254c83 | |||
| 35dd9bb964 | |||
| e104aec12d | |||
| e11dcecace | |||
| 84d2f689ed | |||
| 52c060c8be | |||
| 28dc3d1a94 | |||
| ef2ee20495 | |||
| f4f253a218 | |||
| 2f0f3c74f3 | |||
| 2809615f7b | |||
| a617044695 | |||
| 379cd9e98d | |||
| 60d880aac2 | |||
| 89d736c311 | |||
| 96faa74cf0 | |||
| 0f6a8af649 | |||
| 80b3607bc1 | |||
| 9c1c2a21a4 | |||
| ab13ead2a8 | |||
| dea3f4f4fd | |||
| 4bf7d41ff1 | |||
| 54bb1e2064 | |||
| 3e818073e0 | |||
| 9c8d27e687 | |||
| ca138aa8af | |||
| 784df1e08f | |||
| a12846fddc | |||
| 820268a2a1 | |||
| 7e19f9ee0d | |||
| 6558683822 | |||
| 8401688019 | |||
| cfd999b373 | |||
| 70b156b828 | |||
| 6e056afe67 | |||
| caa93f691c | |||
| 34776f0af1 | |||
| 7f30239b2a | |||
| 6d744fab45 | |||
| cf6ed4a265 | |||
| 62e0472698 | |||
| d477340177 | |||
| f9c910f5ac | |||
| 41a225ec83 | |||
| 35c98d1b97 | |||
| 1a477e26bc | |||
| 8166950e74 | |||
| ea0d1cee92 | |||
| 8df0278272 | |||
| 6c471c33f7 | |||
| 5182276d1e | |||
| d18e69ee75 | |||
| f363249e41 | |||
| 342fbc2fcc | |||
| 150617ca7a | |||
| 7196117da7 | |||
| ba1feb92ec | |||
| 7452406a00 | |||
| 2c910092c8 | |||
| c3d9df2cb0 | |||
| b573560024 | |||
| 1633e21d9b | |||
| 406d7ae6e9 | |||
| 2055d2da9a | |||
| ec4fc1864c | |||
| fa0aa29974 | |||
| 8e4d046365 | |||
| aec2c05778 | |||
| 5cd78b81d1 | |||
| d906e2675d | |||
| ac5949e2a0 | |||
| 72111e6c3a | |||
| dad7e92a41 | |||
| 8cf07d7418 | |||
| 3ae887ef0e | |||
| ac34c94aad | |||
| dd54fa49f0 | |||
| 4f1920ac35 | |||
| 7693435eab | |||
| 5451b4cfb4 | |||
| 3677d8f6a1 | |||
| 8f3fd2e2a5 | |||
| d7a1249a3f | |||
| 290cfca8b3 | |||
| 5717331eb6 | |||
| 0bf5355641 | |||
| b4c0b61815 | |||
| 011c084203 | |||
| 10215a086f | |||
| 882c3f0c76 | |||
| c3151cc1f5 | |||
| cb1b2c04c7 | |||
| 8ab6e708f6 | |||
| 06805d8d27 | |||
| 557b1d375e | |||
| b9cf6573bd | |||
| 2cd17956fa | |||
| 435d82cfba | |||
| c1b7e8d56c | |||
| 2956e1599a | |||
| 4545f906ef | |||
| ae7d092e1a | |||
| 7252a96939 | |||
| b24abc3831 | |||
| 22395725a3 | |||
| 9beb7bc157 | |||
| f0d8a6b811 | |||
| 202ac3ca3b | |||
| 1f6075cae7 | |||
| 0ab8844d04 | |||
| 1bb1112db2 | |||
| 61804bcbe7 | |||
| 31ace98f68 | |||
| e9480830d8 | |||
| 7490f1ef84 | |||
| f7e41e3653 |
@@ -0,0 +1,15 @@
|
|||||||
|
# These are supported funding model platforms
|
||||||
|
|
||||||
|
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||||
|
patreon: # Replace with a single Patreon username
|
||||||
|
open_collective: # Replace with a single Open Collective username
|
||||||
|
ko_fi: anotherhadi
|
||||||
|
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||||
|
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||||
|
liberapay: # Replace with a single Liberapay username
|
||||||
|
issuehunt: # Replace with a single IssueHunt username
|
||||||
|
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
||||||
|
polar: # Replace with a single Polar username
|
||||||
|
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
|
||||||
|
thanks_dev: # Replace with a single thanks.dev username
|
||||||
|
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
||||||
@@ -0,0 +1,133 @@
|
|||||||
|
<div align="center">
|
||||||
|
<img alt="nixy logo" src="./.github/assets/logo.png" width="120px" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
# Nixy
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<div align="center">
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/stargazers">
|
||||||
|
<img src="https://img.shields.io/github/stars/anotherhadi/nixy?color={primarycolor}&labelColor={backgroundcolor}&style=for-the-badge&logo=starship&logoColor={primarycolor}">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/">
|
||||||
|
<img src="https://img.shields.io/github/repo-size/anotherhadi/nixy?color={primarycolor}&labelColor={backgroundcolor}&style=for-the-badge&logo=github&logoColor={primarycolor}">
|
||||||
|
</a>
|
||||||
|
<a href="https://nixos.org">
|
||||||
|
<img src="https://img.shields.io/badge/NixOS-unstable-blue.svg?style=for-the-badge&labelColor={backgroundcolor}&logo=NixOS&logoColor={primarycolor}&color={primarycolor}">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/blob/main/LICENSE">
|
||||||
|
<img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=License&message=MIT&colorA={backgroundcolor}&colorB={primarycolor}&logo=unlicense&logoColor={primarycolor}"/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
**Nixy simplifies and unifies** the Hyprland ecosystem with a modular, easily
|
||||||
|
customizable setup. It provides a structured way to manage your system
|
||||||
|
configuration and dotfiles with minimal effort. It includes _home-manager_,
|
||||||
|
_secrets_, and _custom theming_ all in one place.
|
||||||
|
|
||||||
|
**Features:**
|
||||||
|
|
||||||
|
- 💻 Hyprland & Caelestia: Preconfigured Hyprland ecosystem with Caelestia-shell (Ty to both projects!)
|
||||||
|
- 🎨 Consistent Theming: Base16 & Stylix-powered themes
|
||||||
|
- ⌨️ Vim-like Everywhere: Unified keybindings (Hyprland, nvim, vimium, etc.)
|
||||||
|
|
||||||
|
## Table of Content
|
||||||
|
|
||||||
|
{md_table_of_content}
|
||||||
|
|
||||||
|
## Screenshots
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
### 🏠 /home (User-level configuration)
|
||||||
|
|
||||||
|
Contains **dotfiles and settings** that apply to your user environment.
|
||||||
|
|
||||||
|
**Subfolders:**
|
||||||
|
|
||||||
|
- `programs` is a collection of apps configured with home-manager
|
||||||
|
- `system` is some "desktop environment" configuration
|
||||||
|
|
||||||
|
### 🐧 /nixos
|
||||||
|
|
||||||
|
Those are the system-level configurations. (audio, bluetooth, gpu, bootloader,
|
||||||
|
...)
|
||||||
|
|
||||||
|
### 🎨 /themes
|
||||||
|
|
||||||
|
This folder contains all system themes. Mainly
|
||||||
|
[stylix](https://stylix.danth.me/) configurations. Check out the available
|
||||||
|
themes and learn how to create your own in [THEMES.md](docs/THEMES.md)
|
||||||
|
|
||||||
|
### 💻 /hosts
|
||||||
|
|
||||||
|
This directory contains host-specific configurations. Each host includes:
|
||||||
|
|
||||||
|
- `configuration.nix` for system-wide settings
|
||||||
|
- `home.nix` for user-level configuration
|
||||||
|
- `variables.nix` for global variables
|
||||||
|
- `secrets/` for sensitive data
|
||||||
|
|
||||||
|
### 🖥️ /server-modules
|
||||||
|
|
||||||
|
This folder contains server-related nixos modules. (bitwarden, nextcloud, ...)
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
1. [Fork](https://github.com/anotherhadi/nixy/fork) this repo and clone it to
|
||||||
|
your system:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Copy the `hosts/laptop` folder, rename it to match your system’s hostname,
|
||||||
|
and update `variables.nix` with your machine’s settings.
|
||||||
|
3. Copy your `hardware-configuration.nix` into your new host's folder to ensure
|
||||||
|
proper hardware support.
|
||||||
|
4. Register your new host in `flake.nix` by adding it under nixosConfigurations.
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> `# CHANGEME` comments are placed throughout the config to
|
||||||
|
> indicate necessary modifications. Use the following command to quickly locate
|
||||||
|
> them:
|
||||||
|
>
|
||||||
|
> ```sh
|
||||||
|
> rg "CHANGEME" ~/.config/nixos
|
||||||
|
> ```
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> When you add new files, don't forget to run `git add .` to add them to the git
|
||||||
|
> repository
|
||||||
|
|
||||||
|
5. Build the system
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
- [SERVER](docs/SERVER.md): Check out the server documentation
|
||||||
|
- [THEMES](docs/THEMES.md): How themes work and how to create your own
|
||||||
|
- [WALLPAPERS](https://github.com/anotherhadi/awesome-wallpapers): An awesome
|
||||||
|
collection of wallpapers
|
||||||
|
- [NEOVIM](docs/NEOVIM.md): How to use the Neovim config in your own flake
|
||||||
|
|
||||||
|
- [CONTRIBUTING](docs/CONTRIBUTING.md): How to contribute
|
||||||
|
- [LICENSE](LICENSE): MIT License
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<a href="https://github.com/anotherhadi/nixy">github</a> |
|
||||||
|
<a href="https://gitlab.com/anotherhadi_mirror/nixy">gitlab (mirror)</a> |
|
||||||
|
<a href="https://git.hadi.icu/anotherhadi/nixy">gitea (mirror)</a>
|
||||||
|
</div
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 412 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 837 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 738 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 160 KiB |
Executable
+20
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Create the README.md file from the .github/assets/README_template.md file
|
||||||
|
|
||||||
|
[[ -d "./docs" ]] || (echo "Folder ./docs not found" && exit 1)
|
||||||
|
|
||||||
|
README_FILE="./README.md"
|
||||||
|
|
||||||
|
table_of_content=$(markdown-table-of-contents --start-by 2 ./.github/assets/README_template.md) # https://github.com/anotherhadi/markdown-table-of-contents
|
||||||
|
readme_content=$(cat "./.github/assets/README_template.md")
|
||||||
|
|
||||||
|
# Replace variables
|
||||||
|
readme_content=${readme_content//\{primarycolor\}/A89AD1}
|
||||||
|
readme_content=${readme_content//\{backgroundcolor\}/0b0b0b}
|
||||||
|
readme_content=${readme_content//\{md_table_of_content\}/$table_of_content}
|
||||||
|
|
||||||
|
echo "[//]: # (This file is autogenerated)" >"$README_FILE"
|
||||||
|
echo "$readme_content" >>"$README_FILE"
|
||||||
|
sed 's/\r//' "$README_FILE" >"/tmp/readme.md"
|
||||||
|
mv "/tmp/readme.md" "$README_FILE"
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '.github/assets/README_template.md'
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
jobs:
|
||||||
|
update-readme:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./
|
||||||
|
steps:
|
||||||
|
- name: Check out the repository to the runner
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: '^1.23'
|
||||||
|
- name: Install required dependencies
|
||||||
|
run: |
|
||||||
|
go install github.com/anotherhadi/markdown-table-of-contents@latest
|
||||||
|
- name: Run a script
|
||||||
|
run: |
|
||||||
|
chmod +x ./.github/scripts/create_readme.sh
|
||||||
|
./.github/scripts/create_readme.sh
|
||||||
|
git config user.name github-actions
|
||||||
|
git config user.email github-actions@github.com
|
||||||
|
git add .
|
||||||
|
git commit -m "Update README.md (auto)" && git push
|
||||||
|
exit 0
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
.sops.yaml
|
||||||
|
.claude/
|
||||||
|
old/
|
||||||
|
docs/superpowers/
|
||||||
|
.superpowers/
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2026 Hadi
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
@@ -1,21 +1,143 @@
|
|||||||
|
[//]: # (This file is autogenerated)
|
||||||
|
<div align="center">
|
||||||
|
<img alt="nixy logo" src="./.github/assets/logo.png" width="120px" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
# Nixy
|
# Nixy
|
||||||
|
|
||||||
This is my dotfiles repo. It's a work in progress, and I'm still learning how to use nix.
|
<br>
|
||||||
|
<div align="center">
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/stargazers">
|
||||||
|
<img src="https://img.shields.io/github/stars/anotherhadi/nixy?color=A89AD1&labelColor=0b0b0b&style=for-the-badge&logo=starship&logoColor=A89AD1">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/">
|
||||||
|
<img src="https://img.shields.io/github/repo-size/anotherhadi/nixy?color=A89AD1&labelColor=0b0b0b&style=for-the-badge&logo=github&logoColor=A89AD1">
|
||||||
|
</a>
|
||||||
|
<a href="https://nixos.org">
|
||||||
|
<img src="https://img.shields.io/badge/NixOS-unstable-blue.svg?style=for-the-badge&labelColor=0b0b0b&logo=NixOS&logoColor=A89AD1&color=A89AD1">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/blob/main/LICENSE">
|
||||||
|
<img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=License&message=MIT&colorA=0b0b0b&colorB=A89AD1&logo=unlicense&logoColor=A89AD1"/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
|
||||||
Every things that you *must* change got a "CHANGEME" comment.
|
**Nixy simplifies and unifies** the Hyprland ecosystem with a modular, easily
|
||||||
You can search for it with ripgrep: `rg "CHANGEME"`
|
customizable setup. It provides a structured way to manage your system
|
||||||
|
configuration and dotfiles with minimal effort. It includes _home-manager_,
|
||||||
|
_secrets_, and _custom theming_ all in one place.
|
||||||
|
|
||||||
# TODOLIST
|
**Features:**
|
||||||
|
|
||||||
- [ ] Variable user & homeDir
|
- 💻 Hyprland & Caelestia: Preconfigured Hyprland ecosystem with Caelestia-shell (Ty to both projects!)
|
||||||
- [ ] Settings fzf
|
- 🎨 Consistent Theming: Base16 & Stylix-powered themes
|
||||||
- [ ] Nixvim Alpha config
|
- ⌨️ Vim-like Everywhere: Unified keybindings (Hyprland, nvim, vimium, etc.)
|
||||||
- [ ] Scripts:
|
|
||||||
- [ ] Edit
|
## Table of Content
|
||||||
- [ ] Rebuild
|
|
||||||
- [ ] Update
|
- [Table of Content](#table-of-content)
|
||||||
- [ ] Garbage collector
|
- [Screenshots](#screenshots)
|
||||||
- [ ] Ricing things
|
- [Architecture](#architecture)
|
||||||
- [ ] Peaclock
|
- [🏠 /home (User-level configuration)](#-home-user-level-configuration)
|
||||||
- [ ] Find a tui app for white noises (does that exist ? If not, I'll build my own)
|
- [🐧 /nixos](#-nixos)
|
||||||
- [ ] Custom GTK & Qt Theme based on the colorscheme
|
- [🎨 /themes](#-themes)
|
||||||
|
- [💻 /hosts](#-hosts)
|
||||||
|
- [🖥️ /server-modules](#-server-modules)
|
||||||
|
- [Installation](#installation)
|
||||||
|
- [Documentation](#documentation)
|
||||||
|
|
||||||
|
## Screenshots
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
### 🏠 /home (User-level configuration)
|
||||||
|
|
||||||
|
Contains **dotfiles and settings** that apply to your user environment.
|
||||||
|
|
||||||
|
**Subfolders:**
|
||||||
|
|
||||||
|
- `programs` is a collection of apps configured with home-manager
|
||||||
|
- `system` is some "desktop environment" configuration
|
||||||
|
|
||||||
|
### 🐧 /nixos
|
||||||
|
|
||||||
|
Those are the system-level configurations. (audio, bluetooth, gpu, bootloader,
|
||||||
|
...)
|
||||||
|
|
||||||
|
### 🎨 /themes
|
||||||
|
|
||||||
|
This folder contains all system themes. Mainly
|
||||||
|
[stylix](https://stylix.danth.me/) configurations. Check out the available
|
||||||
|
themes and learn how to create your own in [THEMES.md](docs/THEMES.md)
|
||||||
|
|
||||||
|
### 💻 /hosts
|
||||||
|
|
||||||
|
This directory contains host-specific configurations. Each host includes:
|
||||||
|
|
||||||
|
- `configuration.nix` for system-wide settings
|
||||||
|
- `home.nix` for user-level configuration
|
||||||
|
- `variables.nix` for global variables
|
||||||
|
- `secrets/` for sensitive data
|
||||||
|
|
||||||
|
### 🖥️ /server-modules
|
||||||
|
|
||||||
|
This folder contains server-related nixos modules. (bitwarden, nextcloud, ...)
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
1. [Fork](https://github.com/anotherhadi/nixy/fork) this repo and clone it to
|
||||||
|
your system:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Copy the `hosts/laptop` folder, rename it to match your system’s hostname,
|
||||||
|
and update `variables.nix` with your machine’s settings.
|
||||||
|
3. Copy your `hardware-configuration.nix` into your new host's folder to ensure
|
||||||
|
proper hardware support.
|
||||||
|
4. Register your new host in `flake.nix` by adding it under nixosConfigurations.
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> `# CHANGEME` comments are placed throughout the config to
|
||||||
|
> indicate necessary modifications. Use the following command to quickly locate
|
||||||
|
> them:
|
||||||
|
>
|
||||||
|
> ```sh
|
||||||
|
> rg "CHANGEME" ~/.config/nixos
|
||||||
|
> ```
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> When you add new files, don't forget to run `git add .` to add them to the git
|
||||||
|
> repository
|
||||||
|
|
||||||
|
5. Build the system
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
- [SERVER](docs/SERVER.md): Check out the server documentation
|
||||||
|
- [THEMES](docs/THEMES.md): How themes work and how to create your own
|
||||||
|
- [WALLPAPERS](https://github.com/anotherhadi/awesome-wallpapers): An awesome
|
||||||
|
collection of wallpapers
|
||||||
|
- [NEOVIM](docs/NEOVIM.md): How to use the Neovim config in your own flake
|
||||||
|
|
||||||
|
- [CONTRIBUTING](docs/CONTRIBUTING.md): How to contribute
|
||||||
|
- [LICENSE](LICENSE): MIT License
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<a href="https://github.com/anotherhadi/nixy">github</a> |
|
||||||
|
<a href="https://gitlab.com/anotherhadi_mirror/nixy">gitlab (mirror)</a> |
|
||||||
|
<a href="https://git.hadi.icu/anotherhadi/nixy">gitea (mirror)</a>
|
||||||
|
</div
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# Contributing to Nixy
|
||||||
|
|
||||||
|
Everybody is invited and welcome to contribute to Nixy. There is a lot to do... Check the issues!
|
||||||
|
|
||||||
|
The process is straight-forward.
|
||||||
|
|
||||||
|
- Read [How to get faster PR reviews](https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#best-practices-for-faster-reviews) by Kubernetes (but skip step 0 and 1)
|
||||||
|
- Fork Nixy [git repository](https://github.com/anotherhadi/nixy).
|
||||||
|
- Write your changes (new theme, bug fixes, issues fix, ...).
|
||||||
|
- Create a Pull Request against the main branch of Nixy.
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> To update the README, change the `./.github/assets/README_template.md`
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> Don't push your host's folder
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
# Neovim
|
||||||
|
|
||||||
|
The Neovim configuration is built with [nvf](https://github.com/notashelf/nvf) and exposed as a standalone flake output.
|
||||||
|
It can be used in three ways: run it directly, import it into another flake's home-manager setup, or use it as part of this config.
|
||||||
|
|
||||||
|
## Run directly
|
||||||
|
|
||||||
|
No installation needed:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nix run github:anotherhadi/nixy#nvim
|
||||||
|
```
|
||||||
|
|
||||||
|
## Use in another flake
|
||||||
|
|
||||||
|
Add this repo as an input:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
inputs.nixy.url = "github:anotherhadi/nixy";
|
||||||
|
```
|
||||||
|
|
||||||
|
Then import the home-manager module in your home configuration:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
{ inputs, ... }: {
|
||||||
|
imports = [ inputs.nixy.homeManagerModules.nvim ];
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## What's included
|
||||||
|
|
||||||
|
| File | Description |
|
||||||
|
| --------------- | ---------------------------------------------------------------------- |
|
||||||
|
| `options.nix` | Core settings: theme (catppuccin mocha), clipboard, indentation, folds |
|
||||||
|
| `languages.nix` | LSP, treesitter, formatters, diagnostics, and per-language config |
|
||||||
|
| `keymaps.nix` | All key mappings (leader: `space`) |
|
||||||
|
| `picker.nix` | Snacks picker + oil.nvim |
|
||||||
|
| `snacks.nix` | Snacks extras: image preview, zen mode, git signs, statuscolumn |
|
||||||
|
| `utils.nix` | Bufferline, lualine, copilot, lazygit, toggleterm, autocomplete |
|
||||||
|
| `mini.nix` | Mini.nvim suite: pairs, comment, icons, indentscope, diff, git |
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
# SERVER
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
This document describes the architecture and setup of the self-hosted **NixOS server**, which is securely accessible via **a Cloudflare Tunnel**.
|
||||||
|
The server is designed for private, secure, and easily manageable self-hosting of various services.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## **Why This Setup?**
|
||||||
|
|
||||||
|
- **Private & Secure**: Services are only accessible through Cloudflare's access control, preventing exposure to the "public internet".
|
||||||
|
- **Domain-based Access**: A custom domain maps to the server's tunnel, making service access simple and consistent.
|
||||||
|
- **Modular & Declarative**: Everything is managed through NixOS modules (except for access control), ensuring reproducibility and easy configuration.
|
||||||
|
|
||||||
|
## **Self-Hosted Services**
|
||||||
|
|
||||||
|
The server hosts several key applications:
|
||||||
|
|
||||||
|
- **NGINX**: Reverse proxy for routing traffic to services via my domain name.
|
||||||
|
- **AdGuard Home**: A self-hosted DNS ad blocker for network-wide ad and tracker filtering.
|
||||||
|
- **Glance**: An awesome dashboard! (See the screenshot above)
|
||||||
|
- **Arr Stack (Radarr, Sonarr, etc.)**: Automated media management tools for handling movies and TV shows. (legaly ofc)
|
||||||
|
- **Mealie**: A self-hosted recipe manager and meal planner with a clean user interface.
|
||||||
|
- **Stirling-PDF**: A powerful, locally hosted web application for editing, merging, and converting PDF files.
|
||||||
|
- **CyberChef**: The "Cyber Swiss Army Knife" for data analysis, decoding, and encryption tasks.
|
||||||
|
- **Mazanoke**: A utility service for image processing, specialized in format conversion and downgrading/optimization.
|
||||||
|
- **SSH**: Secure remote access configuration for server management. (via browser too)
|
||||||
|
- **Security related stuff**: Cloudflared, Fail2Ban, Firewall
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
# Themes
|
||||||
|
|
||||||
|
Themes are defined in `themes`. Those themes define the colors, fonts, icons, etc, used by Hyprland and the apps/programs installed.
|
||||||
|
You can change the selected theme by changing the import statement of your host's variables.nix file.
|
||||||
|
|
||||||
|
## Create your theme
|
||||||
|
|
||||||
|
Create a copy of one of the existing themes and change the variables.
|
||||||
|
Wallpapers are loaded from the [hadi's awesome-wallpapers](https://github.com/anotherhadi/awesome-wallpapers) repo.
|
||||||
|
|
||||||
|
## Gallery
|
||||||
|
|
||||||
|
### Rose-pine
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
Generated
+986
-241
File diff suppressed because it is too large
Load Diff
@@ -1,42 +1,86 @@
|
|||||||
{
|
{
|
||||||
description = "NixOS configuration";
|
# https://github.com/anotherhadi/nixy
|
||||||
|
description = ''
|
||||||
|
Nixy simplifies and unifies the Hyprland ecosystem with a modular, easily customizable setup.
|
||||||
|
It provides a structured way to manage your system configuration and dotfiles with minimal effort.
|
||||||
|
'';
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-26.05";
|
||||||
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
||||||
|
nvf.url = "github:notashelf/nvf";
|
||||||
|
nvf-config = {
|
||||||
|
url = "path:./home/programs/tui/nvf";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs-stable";
|
||||||
|
inputs.nvf.follows = "nvf";
|
||||||
|
};
|
||||||
|
nur = {
|
||||||
|
url = "github:nix-community/nur";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
nix-index-database = {
|
||||||
|
url = "github:nix-community/nix-index-database";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nixvim = {
|
stylix = {
|
||||||
url = "github:nix-community/nixvim";
|
url = "github:nix-community/stylix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
apple-fonts.url = "github:Lyndeno/apple-fonts.nix";
|
sops-nix = {
|
||||||
spicetify-nix.url = "github:the-argus/spicetify-nix";
|
url = "github:Mic92/sops-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
notashelf-tuigreet = {
|
||||||
|
url = "github:NotAShelf/tuigreet";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
helium-browser = {
|
||||||
|
url = "github:oxcl/nix-flake-helium-browser";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Server
|
||||||
|
nixarr.url = "github:rasmus-kirk/nixarr";
|
||||||
|
default-creds.url = "github:anotherhadi/default-creds";
|
||||||
|
blog.url = "github:anotherhadi/blog";
|
||||||
|
awesome-wallpapers.url = "github:anotherhadi/awesome-wallpapers";
|
||||||
|
iknowyou.url = "github:anotherhadi/iknowyou";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, home-manager, nixvim, spicetify-nix, ... }: {
|
outputs = inputs @ {
|
||||||
nixosConfigurations = {
|
nixpkgs,
|
||||||
nixy = nixpkgs.lib.nixosSystem {
|
nixpkgs-stable,
|
||||||
system = "x86_64-linux";
|
...
|
||||||
modules = [
|
}: let
|
||||||
./nixos/configuration.nix
|
system = "x86_64-linux";
|
||||||
./hosts
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
{ _module.args = { inherit inputs; }; }
|
args = {
|
||||||
home-manager.nixosModules.home-manager
|
inherit
|
||||||
{
|
inputs
|
||||||
home-manager = {
|
nixpkgs
|
||||||
useGlobalPkgs = true;
|
system
|
||||||
useUserPackages = true;
|
pkgs
|
||||||
users.hadi = import ./home/home.nix; # CHANGEME - replace "hadi"
|
;
|
||||||
extraSpecialArgs = {
|
pkgs-stable = nixpkgs-stable.legacyPackages.${system};
|
||||||
inherit inputs;
|
|
||||||
inherit spicetify-nix;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
merge = nixpkgs.lib.foldl nixpkgs.lib.recursiveUpdate {};
|
||||||
|
in
|
||||||
|
merge [
|
||||||
|
(import ./home/programs/tui/nixy/flake.nix args)
|
||||||
|
{
|
||||||
|
formatter.${system} = pkgs.alejandra;
|
||||||
|
packages.${system}.nvim = inputs.nvf-config.packages.${system}.nvim;
|
||||||
|
apps.${system}.nvim = inputs.nvf-config.apps.${system}.nvim;
|
||||||
|
nixosConfigurations = {
|
||||||
|
h-laptop = import ./hosts/laptop/flake.nix args;
|
||||||
|
h-work = import ./hosts/work/flake.nix args;
|
||||||
|
jack = import ./hosts/server/flake.nix args;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,78 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
|
||||||
|
|
||||||
home.packages = with pkgs; [ libnotify ];
|
|
||||||
|
|
||||||
services.dunst = {
|
|
||||||
enable = true;
|
|
||||||
iconTheme = {
|
|
||||||
name = "Adwaita-Dark";
|
|
||||||
package = pkgs.gnome.adwaita-icon-theme;
|
|
||||||
};
|
|
||||||
settings = {
|
|
||||||
global = {
|
|
||||||
rounded = "yes";
|
|
||||||
origin = "top-center";
|
|
||||||
monitor = "0";
|
|
||||||
alignment = "left";
|
|
||||||
vertical_alignment = "center";
|
|
||||||
width = "400";
|
|
||||||
height = "400";
|
|
||||||
scale = 0;
|
|
||||||
gap_size = 0;
|
|
||||||
progress_bar = true;
|
|
||||||
transparency = 0;
|
|
||||||
text_icon_padding = 0;
|
|
||||||
separator_color = "frame";
|
|
||||||
sort = "yes";
|
|
||||||
idle_threshold = 120;
|
|
||||||
line_height = 0;
|
|
||||||
markup = "full";
|
|
||||||
show_age_threshold = 60;
|
|
||||||
ellipsize = "middle";
|
|
||||||
ignore_newline = "no";
|
|
||||||
stack_duplicates = true;
|
|
||||||
sticky_history = "yes";
|
|
||||||
history_length = 20;
|
|
||||||
always_run_script = true;
|
|
||||||
corner_radius = config.theme.rounding;
|
|
||||||
follow = "mouse";
|
|
||||||
font = config.theme.font;
|
|
||||||
format =
|
|
||||||
"<b>%s</b>\\n%b"; # format = "<span foreground='#f3f4f5'><b>%s %p</b></span>\n%b"
|
|
||||||
frame_color = "#" + config.theme.colors.bg;
|
|
||||||
frame_width = 1;
|
|
||||||
offset = "0x10";
|
|
||||||
horizontal_padding = 10;
|
|
||||||
icon_position = "left";
|
|
||||||
indicate_hidden = "yes";
|
|
||||||
min_icon_size = 0;
|
|
||||||
max_icon_size = 64;
|
|
||||||
mouse_left_click = "do_action, close_current";
|
|
||||||
mouse_middle_click = "close_current";
|
|
||||||
mouse_right_click = "close_all";
|
|
||||||
padding = 10;
|
|
||||||
plain_text = "no";
|
|
||||||
separator_height = 2;
|
|
||||||
show_indicators = "yes";
|
|
||||||
shrink = "no";
|
|
||||||
word_wrap = "yes";
|
|
||||||
browser = "${pkgs.qutebrowser}/bin/qutebrowser";
|
|
||||||
};
|
|
||||||
|
|
||||||
fullscreen_delay_everything = { fullscreen = "delay"; };
|
|
||||||
|
|
||||||
urgency_critical = {
|
|
||||||
background = "#" + config.theme.colors.color1;
|
|
||||||
foreground = "#" + config.theme.colors.color0;
|
|
||||||
};
|
|
||||||
urgency_low = {
|
|
||||||
background = "#" + config.theme.colors.color3;
|
|
||||||
foreground = "#" + config.theme.colors.color0;
|
|
||||||
};
|
|
||||||
urgency_normal = {
|
|
||||||
background = "#" + config.theme.colors.alt-bg;
|
|
||||||
foreground = "#" + config.theme.colors.alt-fg;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
userName = "Hadi"; # CHANGEME
|
|
||||||
userEmail = "112569860+anotherhadi@users.noreply.github.com"; # CHANGEME
|
|
||||||
extraConfig = {
|
|
||||||
init.defaultBranch = "main";
|
|
||||||
# Automatically track remote branch
|
|
||||||
push.autoSetupRemote = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
{ config, pkgs, ... }: {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./hyprland
|
|
||||||
./nvim
|
|
||||||
./waybar
|
|
||||||
./kitty
|
|
||||||
./dunst
|
|
||||||
./wlogout
|
|
||||||
./wofi
|
|
||||||
./qutebrowser
|
|
||||||
./git
|
|
||||||
./shell
|
|
||||||
./misc
|
|
||||||
./nextcloud
|
|
||||||
./scripts
|
|
||||||
./neofetch
|
|
||||||
./spicetify
|
|
||||||
./variables/theme
|
|
||||||
./wallpaper
|
|
||||||
];
|
|
||||||
|
|
||||||
home.username = "hadi"; # CHANGEME
|
|
||||||
home.homeDirectory = "/home/hadi"; # CHANGEME
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
swappy
|
|
||||||
imv
|
|
||||||
discord
|
|
||||||
obsidian
|
|
||||||
ranger
|
|
||||||
fd
|
|
||||||
btop
|
|
||||||
go
|
|
||||||
cargo
|
|
||||||
nodejs
|
|
||||||
python3
|
|
||||||
unzip
|
|
||||||
blueman
|
|
||||||
gcc
|
|
||||||
peaclock
|
|
||||||
xdg_utils
|
|
||||||
tldr
|
|
||||||
qt5ct
|
|
||||||
libva
|
|
||||||
wget
|
|
||||||
ripgrep
|
|
||||||
|
|
||||||
# Backup
|
|
||||||
vscode
|
|
||||||
firefox
|
|
||||||
];
|
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,149 +0,0 @@
|
|||||||
{ pkgs, config, ... }: {
|
|
||||||
|
|
||||||
imports = [ ./hyprlock.nix ./hypridle.nix ./hyprpaper.nix ];
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
xdg-desktop-portal-hyprland
|
|
||||||
wlr-randr
|
|
||||||
wl-clipboard
|
|
||||||
brightnessctl
|
|
||||||
gnome.gnome-themes-extra
|
|
||||||
adwaita-qt
|
|
||||||
adwaita-qt6
|
|
||||||
gnome.adwaita-icon-theme
|
|
||||||
wlsunset
|
|
||||||
xwayland
|
|
||||||
xdg-desktop-portal-gtk
|
|
||||||
wlroots
|
|
||||||
wayland-utils
|
|
||||||
wayland-protocols
|
|
||||||
meson
|
|
||||||
xfce.thunar
|
|
||||||
];
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
xwayland.enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
"$mod" = "SUPER";
|
|
||||||
"$menu" = "menu";
|
|
||||||
"$powermenu" = "${pkgs.wlogout}/bin/wlogout";
|
|
||||||
|
|
||||||
exec-once =
|
|
||||||
[ "${pkgs.hypridle}/bin/hypridle" "${pkgs.hyprpaper}/bin/hyprpaper" ];
|
|
||||||
|
|
||||||
monitor = [
|
|
||||||
"eDP-2,highres,0x0,1"
|
|
||||||
"desc:AOC U34G2G1 0x00000E06,highrr,2560x0,1"
|
|
||||||
",prefered,auto,1"
|
|
||||||
];
|
|
||||||
|
|
||||||
bind = [
|
|
||||||
"$mod, RETURN, exec, ${pkgs.kitty}/bin/kitty"
|
|
||||||
"$mod, Q, killactive,"
|
|
||||||
"$mod, E, exec, ${pkgs.xfce.thunar}/bin/thunar"
|
|
||||||
"$mod, T, togglefloating,"
|
|
||||||
"$mod, F, fullscreen"
|
|
||||||
"$mod, B, exec, ${pkgs.qutebrowser}/bin/qutebrowser"
|
|
||||||
"$mod, C, exec, ${pkgs.kitty}/bin/kitty --class floating peaclock"
|
|
||||||
"$mod, L, exec, ${pkgs.hyprlock}/bin/hyprlock"
|
|
||||||
"$mod, SPACE, exec, $menu"
|
|
||||||
"$mod, X, exec, $powermenu"
|
|
||||||
"$mod, left, movefocus, l"
|
|
||||||
"$mod, right, movefocus, r"
|
|
||||||
"$mod, up, movefocus, u"
|
|
||||||
"$mod, down, movefocus, d"
|
|
||||||
] ++ (builtins.concatLists (builtins.genList (i:
|
|
||||||
let ws = i + 1;
|
|
||||||
in [
|
|
||||||
"$mod, code:1${toString i}, workspace, ${toString ws}"
|
|
||||||
"$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
|
|
||||||
]) 9));
|
|
||||||
|
|
||||||
bindm = [ "$mod, mouse:272, movewindow" "$mod, R, resizewindow" ];
|
|
||||||
|
|
||||||
bindl = [
|
|
||||||
",XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle"
|
|
||||||
",switch:Lid Switch, exec, ${pkgs.hyprlock}/bin/hyprlock"
|
|
||||||
];
|
|
||||||
|
|
||||||
bindle = [
|
|
||||||
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
|
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
|
||||||
", XF86MonBrightnessUp, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 10%+"
|
|
||||||
", XF86MonBrightnessDown, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 10%-"
|
|
||||||
];
|
|
||||||
|
|
||||||
env = [
|
|
||||||
"XCURSOR_SIZE,24"
|
|
||||||
"LIBVA_DRIVER_NAME,nvidia"
|
|
||||||
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
|
||||||
"WLR_NO_HARDWARE_CURSORS,1"
|
|
||||||
"WLR_DRM_DEVICES,/dev/dri/card0:/dev/dri/card1"
|
|
||||||
"XDG_SESSION_TYPE,wayland"
|
|
||||||
"XDG_CURRENT_DESKTOP,Hyprland"
|
|
||||||
"XDG_SESSION_TYPE,wayland"
|
|
||||||
"XDG_SESSION_DESKTOP,Hyprland"
|
|
||||||
"QT_QPA_PLATFORMTHEME,qt5ct"
|
|
||||||
"QT_AUTO_SCREEN_SCALE_FACTOR,1"
|
|
||||||
"QT_QPA_PLATFORM=wayland,xcb"
|
|
||||||
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
|
||||||
"QT_STYLE_OVERRIDE,Adwaita-Dark"
|
|
||||||
"T_QPA_PLATFORMTHEME,qt5ct"
|
|
||||||
"GTK_THEME,Adwaita:dark"
|
|
||||||
"GTK2_RC_FILES,/usr/share/themes/Adwaita-dark/gtk-2.0/gtkrc"
|
|
||||||
];
|
|
||||||
|
|
||||||
general = {
|
|
||||||
resize_on_border = true;
|
|
||||||
gaps_in = 10;
|
|
||||||
gaps_out = 20;
|
|
||||||
border_size = 2;
|
|
||||||
"col.active_border" = "rgba(${config.theme.colors.primary-bg}ff)";
|
|
||||||
"col.inactive_border" = "rgba(${config.theme.colors.color0}96)";
|
|
||||||
layout = "master";
|
|
||||||
};
|
|
||||||
|
|
||||||
decoration = {
|
|
||||||
rounding = config.theme.rounding;
|
|
||||||
drop_shadow = true;
|
|
||||||
shadow_range = 15;
|
|
||||||
shadow_render_power = 4;
|
|
||||||
"col.shadow" = "rgba(${config.theme.colors.color0}96)";
|
|
||||||
blur = { enabled = false; };
|
|
||||||
};
|
|
||||||
|
|
||||||
master = {
|
|
||||||
new_is_master = true;
|
|
||||||
new_on_top = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
gestures = { workspace_swipe = true; };
|
|
||||||
|
|
||||||
misc = {
|
|
||||||
disable_hyprland_logo = true;
|
|
||||||
disable_splash_rendering = true;
|
|
||||||
focus_on_activate = true;
|
|
||||||
new_window_takes_over_fullscreen = 2;
|
|
||||||
};
|
|
||||||
|
|
||||||
input = {
|
|
||||||
kb_layout = "fr";
|
|
||||||
|
|
||||||
kb_options = "caps:escape";
|
|
||||||
follow_mouse = 1;
|
|
||||||
sensitivity = 0.5;
|
|
||||||
repeat_delay = 300;
|
|
||||||
repeat_rate = 50;
|
|
||||||
numlock_by_default = true;
|
|
||||||
|
|
||||||
touchpad = {
|
|
||||||
natural_scroll = true;
|
|
||||||
clickfinger_behavior = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
{ config, pkgs, ... }: {
|
|
||||||
home.packages = with pkgs; [ hypridle ];
|
|
||||||
|
|
||||||
xdg.configFile."hypr/hypridle.conf".text = ''
|
|
||||||
general {
|
|
||||||
ignore_dbus_inhibit = false
|
|
||||||
}
|
|
||||||
|
|
||||||
# Screenlock
|
|
||||||
listener {
|
|
||||||
timeout = 600
|
|
||||||
on-timeout = ${pkgs.hyprlock}/bin/hyprlock
|
|
||||||
on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back ${config.home.username}!"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Suspend
|
|
||||||
listener {
|
|
||||||
timeout = 660
|
|
||||||
on-timeout = systemctl suspend
|
|
||||||
# on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back to your desktop!"
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
{ pkgs, config, ... }: {
|
|
||||||
|
|
||||||
home.packages = with pkgs; [ hyprlock ];
|
|
||||||
|
|
||||||
xdg.configFile."hypr/hyprlock.conf".text = ''
|
|
||||||
background {
|
|
||||||
monitor =
|
|
||||||
path = $HOME/.config/wallpaper/${config.theme.wallpaper}
|
|
||||||
color = rgb(${config.theme.colors.bg})
|
|
||||||
|
|
||||||
blur_size = 4
|
|
||||||
blur_passes = 3
|
|
||||||
noise = 0.0117
|
|
||||||
contrast = 1.3000
|
|
||||||
brightness = 0.8000
|
|
||||||
vibrancy = 0.2100
|
|
||||||
vibrancy_darkness = 0.0
|
|
||||||
}
|
|
||||||
|
|
||||||
input-field {
|
|
||||||
monitor =
|
|
||||||
size = 250, 50
|
|
||||||
outline_thickness = 3
|
|
||||||
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
|
|
||||||
dots_spacing = 0.64 # Scale of dots' absolute size, 0.0 - 1.0
|
|
||||||
dots_center = true
|
|
||||||
outer_color = rgb(${config.theme.colors.primary-bg})
|
|
||||||
inner_color = rgb(${config.theme.colors.bg})
|
|
||||||
font_color = rgb(${config.theme.colors.fg})
|
|
||||||
fade_on_empty = true
|
|
||||||
placeholder_text = <i>Password...</i> # Text rendered in the input box when it's empty.
|
|
||||||
hide_input = false
|
|
||||||
position = 0, 50
|
|
||||||
halign = center
|
|
||||||
valign = bottom
|
|
||||||
}
|
|
||||||
|
|
||||||
# Current time
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "<b><big> $(date +"%H:%M:%S") </big></b>"
|
|
||||||
color = rgb(${config.theme.colors.fg})
|
|
||||||
font_size = 64
|
|
||||||
font_family = ${config.theme.font}
|
|
||||||
position = 0, 16
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# User label
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = Hey <span text_transform="capitalize" size="larger">$USER</span>
|
|
||||||
color = rgb(${config.theme.colors.fg})
|
|
||||||
font_size = 20
|
|
||||||
font_family = ${config.theme.font}
|
|
||||||
position = 0, 0
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# Type to unlock
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = Type to unlock!
|
|
||||||
color = rgb(${config.theme.colors.fg})
|
|
||||||
font_size = 16
|
|
||||||
font_family = ${config.theme.font}
|
|
||||||
position = 0, 30
|
|
||||||
halign = center
|
|
||||||
valign = bottom
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{ pkgs, config, ... }: {
|
|
||||||
home.packages = with pkgs; [ hyprpaper ];
|
|
||||||
|
|
||||||
xdg.configFile."hypr/hyprpaper.conf".text = ''
|
|
||||||
preload = ~/.config/wallpaper/${config.theme.wallpaper}
|
|
||||||
wallpaper = ,~/.config/wallpaper/${config.theme.wallpaper}
|
|
||||||
ipc=true
|
|
||||||
splash=false
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
{ config, ... }: {
|
|
||||||
|
|
||||||
programs.kitty = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
|
|
||||||
scrollback_lines = 10000;
|
|
||||||
enable_audio_bell = false;
|
|
||||||
update_check_interval = 0;
|
|
||||||
font_family = config.theme.font-mono;
|
|
||||||
font_size = 13;
|
|
||||||
cursor_shape = "Underline";
|
|
||||||
cursor_underline_thickness = 1;
|
|
||||||
window_padding_width = 10;
|
|
||||||
url_style = "curly";
|
|
||||||
confirm_os_window_close = "0";
|
|
||||||
remember_window_size = "no";
|
|
||||||
disable_ligatures = "never";
|
|
||||||
shell = "zsh";
|
|
||||||
initial_window_width = 1000;
|
|
||||||
initial_window_height = 600;
|
|
||||||
|
|
||||||
background = "#" + config.theme.colors.bg;
|
|
||||||
url_color = "#" + config.theme.colors.primary-fg;
|
|
||||||
|
|
||||||
color0 = "#" + config.theme.colors.color0;
|
|
||||||
color8 = "#" + config.theme.colors.color8;
|
|
||||||
color1 = "#" + config.theme.colors.color1;
|
|
||||||
color9 = "#" + config.theme.colors.color9;
|
|
||||||
color2 = "#" + config.theme.colors.color2;
|
|
||||||
color10 = "#" + config.theme.colors.color10;
|
|
||||||
color3 = "#" + config.theme.colors.color3;
|
|
||||||
color11 = "#" + config.theme.colors.color11;
|
|
||||||
color4 = "#" + config.theme.colors.color4;
|
|
||||||
color12 = "#" + config.theme.colors.color12;
|
|
||||||
color5 = "#" + config.theme.colors.color5;
|
|
||||||
color13 = "#" + config.theme.colors.color13;
|
|
||||||
color6 = "#" + config.theme.colors.color6;
|
|
||||||
color14 = "#" + config.theme.colors.color14;
|
|
||||||
color7 = "#" + config.theme.colors.color7;
|
|
||||||
color15 = "#" + config.theme.colors.color15;
|
|
||||||
|
|
||||||
cursor = "#" + config.theme.colors.fg;
|
|
||||||
cursor_text_color = "#" + config.theme.colors.bg;
|
|
||||||
|
|
||||||
selection_foreground = "#" + config.theme.colors.primary-fg;
|
|
||||||
selection_background = "#" + config.theme.colors.primary-bg;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{ imports = [ ./sshconfig.nix ]; }
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
home.file = {
|
|
||||||
".ssh/config" = {
|
|
||||||
text = ''
|
|
||||||
Host github.com
|
|
||||||
User git
|
|
||||||
Hostname github.com
|
|
||||||
PreferredAuthentications publickey
|
|
||||||
IdentityFile ~/.ssh/github
|
|
||||||
'';
|
|
||||||
executable = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
${c6}
|
|
||||||
⡏⠉⠉⠉⠉⠉⠉⠋⠉⠉⠉⠉⠉⠉⠋⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠙⠉⠉⠉⠹
|
|
||||||
⡇⢸⣿⡟⠛⢿⣷⠀⢸⣿⡟⠛⢿⣷⡄⢸⣿⡇⠀⢸⣿⡇⢸⣿⡇⠀⢸⣿⡇⠀
|
|
||||||
⡇⢸⣿⣧⣤⣾⠿⠀⢸⣿⣇⣀⣸⡿⠃⢸⣿⡇⠀⢸⣿⡇⢸⣿⣇⣀⣸⣿⡇⠀
|
|
||||||
⡇⢸⣿⡏⠉⢹⣿⡆⢸⣿⡟⠛⢻⣷⡄⢸⣿⡇⠀⢸⣿⡇⢸⣿⡏⠉⢹⣿⡇⠀
|
|
||||||
⡇⢸⣿⣧⣤⣼⡿⠃⢸⣿⡇⠀⢸⣿⡇⠸⣿⣧⣤⣼⡿⠁⢸⣿⡇⠀⢸⣿⡇⠀
|
|
||||||
⣇⣀⣀⣀⣀⣀⣀⣄⣀⣀⣀⣀⣀⣀⣀⣠⣀⡈⠉⣁⣀⣄⣀⣀⣀⣠⣀⣀⣀⣰
|
|
||||||
⣇⣿⠘⣿⣿⣿⡿⡿⣟⣟⢟⢟⢝⠵⡝⣿⡿⢂⣼⣿⣷⣌⠩⡫⡻⣝⠹⢿⣿⣷
|
|
||||||
⡆⣿⣆⠱⣝⡵⣝⢅⠙⣿⢕⢕⢕⢕⢝⣥⢒⠅⣿⣿⣿⡿⣳⣌⠪⡪⣡⢑⢝⣇
|
|
||||||
⡆⣿⣿⣦⠹⣳⣳⣕⢅⠈⢗⢕⢕⢕⢕⢕⢈⢆⠟⠋⠉⠁⠉⠉⠁⠈⠼⢐⢕⢽
|
|
||||||
⡗⢰⣶⣶⣦⣝⢝⢕⢕⠅⡆⢕⢕⢕⢕⢕⣴⠏⣠⡶⠛⡉⡉⡛⢶⣦⡀⠐⣕⢕
|
|
||||||
⡝⡄⢻⢟⣿⣿⣷⣕⣕⣅⣿⣔⣕⣵⣵⣿⣿⢠⣿⢠⣮⡈⣌⠨⠅⠹⣷⡀⢱⢕
|
|
||||||
⡝⡵⠟⠈⢀⣀⣀⡀⠉⢿⣿⣿⣿⣿⣿⣿⣿⣼⣿⢈⡋⠴⢿⡟⣡⡇⣿⡇⡀⢕
|
|
||||||
⡝⠁⣠⣾⠟⡉⡉⡉⠻⣦⣻⣿⣿⣿⣿⣿⣿⣿⣿⣧⠸⣿⣦⣥⣿⡇⡿⣰⢗⢄
|
|
||||||
⠁⢰⣿⡏⣴⣌⠈⣌⠡⠈⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣬⣉⣉⣁⣄⢖⢕⢕⢕
|
|
||||||
⡀⢻⣿⡇⢙⠁⠴⢿⡟⣡⡆⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣵⣵⣿
|
|
||||||
⡻⣄⣻⣿⣌⠘⢿⣷⣥⣿⠇⣿⣿⣿⣿⣿⣿⠛⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
|
|
||||||
⣷⢄⠻⣿⣟⠿⠦⠍⠉⣡⣾⣿⣿⣿⣿⣿⣿⢸⣿⣦⠙⣿⣿⣿⣿⣿⣿⣿⣿⠟
|
|
||||||
⡕⡑⣑⣈⣻⢗⢟⢞⢝⣻⣿⣿⣿⣿⣿⣿⣿⠸⣿⠿⠃⣿⣿⣿⣿⣿⣿⡿⠁⣠
|
|
||||||
⡝⡵⡈⢟⢕⢕⢕⢕⣵⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣿⣿⣿⣿⣿⠿⠋⣀⣈⠙
|
|
||||||
⡝⡵⡕⡀⠑⠳⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⢉⡠⡲⡫⡪⡪⡣
|
|
||||||
@@ -1,893 +0,0 @@
|
|||||||
# Source: https://github.com/Chick2D/neofetch-themes/
|
|
||||||
# Made by https://github.com/Dan1jel
|
|
||||||
# Customization Wiki https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
|
|
||||||
|
|
||||||
print_info() {
|
|
||||||
# info title
|
|
||||||
# info underline
|
|
||||||
prin "\n"
|
|
||||||
prin "┌──────────────────────────────────────┐"
|
|
||||||
# info underline
|
|
||||||
info "\n \n OS" distro
|
|
||||||
info "\n \n Host" model
|
|
||||||
info "\n \n Kernel" kernel
|
|
||||||
info "\n \n Uptime" uptime
|
|
||||||
info "\n \n Packages" packages
|
|
||||||
info "\n \n Shell" shell
|
|
||||||
info "\n \n Resolution" resolution
|
|
||||||
info "\n \n DE" de
|
|
||||||
info "\n \n WM" wm
|
|
||||||
info "\n \n WM Theme" wm_theme
|
|
||||||
info "\n \n Theme" theme
|
|
||||||
info "\n \n Icons" icons
|
|
||||||
info "\n \n Terminal" term
|
|
||||||
info "\n \n Terminal Font" term_font
|
|
||||||
info "\n \n CPU" cpu
|
|
||||||
info "\n \n GPU" gpu
|
|
||||||
info "\n \n Memory" memory
|
|
||||||
# info "GPU Driver" gpu_driver # Linux/macOS only
|
|
||||||
# info "CPU Usage" cpu_usage
|
|
||||||
info "\n \n Disk" disk
|
|
||||||
info "\n \n Battery" battery
|
|
||||||
info "\n \n Font" font
|
|
||||||
info "\n \n Song" song
|
|
||||||
[[ "$player" ]] && prin "\n \n Music Player" "$player"
|
|
||||||
info "\n \n Local IP" local_ip
|
|
||||||
# info "Public IP" public_ip
|
|
||||||
prin "└──────────────────────────────────────┘"
|
|
||||||
# info "Users" users
|
|
||||||
# info "Locale" locale # This only works on glibc systems.
|
|
||||||
# info cols
|
|
||||||
prin "\n"
|
|
||||||
|
|
||||||
prin "\n \n ${cl0}──${cl1}────${cl2}────${cl3}────${cl4}────${cl5}────${cl6}────${cl7}──"
|
|
||||||
|
|
||||||
|
|
||||||
# prin "\n \n \n \n \n \n ${cl0}⬤ \n \n ${cl1}⬤ \n \n ${cl2}⬤ \n \n ${cl3}⬤ \n \n ${cl4}⬤ \n \n ${cl5}⬤ \n \n ${cl6}⬤ \n \n ${cl7}⬤"
|
|
||||||
}
|
|
||||||
|
|
||||||
reset="\033[0m"
|
|
||||||
gray="\033[1;90m"
|
|
||||||
red="\033[1;31m"
|
|
||||||
green="\033[1;32m"
|
|
||||||
yellow="\033[1;33m"
|
|
||||||
blue="\033[1;34m"
|
|
||||||
magenta="\033[1;35m"
|
|
||||||
cyan="\033[1;36m"
|
|
||||||
white="\033[1;37m"
|
|
||||||
|
|
||||||
cl0="${gray}"
|
|
||||||
cl1="${red}"
|
|
||||||
cl2="${green}"
|
|
||||||
cl3="${yellow}"
|
|
||||||
cl4="${blue}"
|
|
||||||
cl5="${magenta}"
|
|
||||||
cl6="${cyan}"
|
|
||||||
cl7="${white}"
|
|
||||||
|
|
||||||
|
|
||||||
# Title
|
|
||||||
|
|
||||||
|
|
||||||
# Hide/Show Fully qualified domain name.
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --title_fqdn
|
|
||||||
title_fqdn="off"
|
|
||||||
|
|
||||||
|
|
||||||
# Kernel
|
|
||||||
|
|
||||||
|
|
||||||
# Shorten the output of the kernel function.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --kernel_shorthand
|
|
||||||
# Supports: Everything except *BSDs (except PacBSD and PC-BSD)
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '4.8.9-1-ARCH'
|
|
||||||
# off: 'Linux 4.8.9-1-ARCH'
|
|
||||||
kernel_shorthand="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Distro
|
|
||||||
|
|
||||||
|
|
||||||
# Shorten the output of the distro function
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'tiny', 'off'
|
|
||||||
# Flag: --distro_shorthand
|
|
||||||
# Supports: Everything except Windows and Haiku
|
|
||||||
distro_shorthand="off"
|
|
||||||
|
|
||||||
# Show/Hide OS Architecture.
|
|
||||||
# Show 'x86_64', 'x86' and etc in 'Distro:' output.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --os_arch
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Arch Linux x86_64'
|
|
||||||
# off: 'Arch Linux'
|
|
||||||
os_arch="off"
|
|
||||||
|
|
||||||
|
|
||||||
# Uptime
|
|
||||||
|
|
||||||
|
|
||||||
# Shorten the output of the uptime function
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'tiny', 'off'
|
|
||||||
# Flag: --uptime_shorthand
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '2 days, 10 hours, 3 mins'
|
|
||||||
# tiny: '2d 10h 3m'
|
|
||||||
# off: '2 days, 10 hours, 3 minutes'
|
|
||||||
uptime_shorthand="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Memory
|
|
||||||
|
|
||||||
|
|
||||||
# Show memory pecentage in output.
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --memory_percent
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '1801MiB / 7881MiB (22%)'
|
|
||||||
# off: '1801MiB / 7881MiB'
|
|
||||||
memory_percent="off"
|
|
||||||
|
|
||||||
# Change memory output unit.
|
|
||||||
#
|
|
||||||
# Default: 'mib'
|
|
||||||
# Values: 'kib', 'mib', 'gib'
|
|
||||||
# Flag: --memory_unit
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# kib '1020928KiB / 7117824KiB'
|
|
||||||
# mib '1042MiB / 6951MiB'
|
|
||||||
# gib: ' 0.98GiB / 6.79GiB'
|
|
||||||
memory_unit="mib"
|
|
||||||
|
|
||||||
|
|
||||||
# Packages
|
|
||||||
|
|
||||||
|
|
||||||
# Show/Hide Package Manager names.
|
|
||||||
#
|
|
||||||
# Default: 'tiny'
|
|
||||||
# Values: 'on', 'tiny' 'off'
|
|
||||||
# Flag: --package_managers
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '998 (pacman), 8 (flatpak), 4 (snap)'
|
|
||||||
# tiny: '908 (pacman, flatpak, snap)'
|
|
||||||
# off: '908'
|
|
||||||
package_managers="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Shell
|
|
||||||
|
|
||||||
|
|
||||||
# Show the path to $SHELL
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --shell_path
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '/bin/bash'
|
|
||||||
# off: 'bash'
|
|
||||||
shell_path="off"
|
|
||||||
|
|
||||||
# Show $SHELL version
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --shell_version
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'bash 4.4.5'
|
|
||||||
# off: 'bash'
|
|
||||||
shell_version="on"
|
|
||||||
|
|
||||||
|
|
||||||
# CPU
|
|
||||||
|
|
||||||
|
|
||||||
# CPU speed type
|
|
||||||
#
|
|
||||||
# Default: 'bios_limit'
|
|
||||||
# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.
|
|
||||||
# Flag: --speed_type
|
|
||||||
# Supports: Linux with 'cpufreq'
|
|
||||||
# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value.
|
|
||||||
speed_type="bios_limit"
|
|
||||||
|
|
||||||
# CPU speed shorthand
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'.
|
|
||||||
# Flag: --speed_shorthand
|
|
||||||
# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'i7-6500U (4) @ 3.1GHz'
|
|
||||||
# off: 'i7-6500U (4) @ 3.100GHz'
|
|
||||||
speed_shorthand="off"
|
|
||||||
|
|
||||||
# Enable/Disable CPU brand in output.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --cpu_brand
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Intel i7-6500U'
|
|
||||||
# off: 'i7-6500U (4)'
|
|
||||||
cpu_brand="on"
|
|
||||||
|
|
||||||
# CPU Speed
|
|
||||||
# Hide/Show CPU speed.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --cpu_speed
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Intel i7-6500U (4) @ 3.1GHz'
|
|
||||||
# off: 'Intel i7-6500U (4)'
|
|
||||||
cpu_speed="on"
|
|
||||||
|
|
||||||
# CPU Cores
|
|
||||||
# Display CPU cores in output
|
|
||||||
#
|
|
||||||
# Default: 'logical'
|
|
||||||
# Values: 'logical', 'physical', 'off'
|
|
||||||
# Flag: --cpu_cores
|
|
||||||
# Support: 'physical' doesn't work on BSD.
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores)
|
|
||||||
# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores)
|
|
||||||
# off: 'Intel i7-6500U @ 3.1GHz'
|
|
||||||
cpu_cores="logical"
|
|
||||||
|
|
||||||
# CPU Temperature
|
|
||||||
# Hide/Show CPU temperature.
|
|
||||||
# Note the temperature is added to the regular CPU function.
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'C', 'F', 'off'
|
|
||||||
# Flag: --cpu_temp
|
|
||||||
# Supports: Linux, BSD
|
|
||||||
# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable
|
|
||||||
# coretemp kernel module. This only supports newer Intel processors.
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]'
|
|
||||||
# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]'
|
|
||||||
# off: 'Intel i7-6500U (4) @ 3.1GHz'
|
|
||||||
cpu_temp="off"
|
|
||||||
|
|
||||||
|
|
||||||
# GPU
|
|
||||||
|
|
||||||
|
|
||||||
# Enable/Disable GPU Brand
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --gpu_brand
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'AMD HD 7950'
|
|
||||||
# off: 'HD 7950'
|
|
||||||
gpu_brand="on"
|
|
||||||
|
|
||||||
# Which GPU to display
|
|
||||||
#
|
|
||||||
# Default: 'all'
|
|
||||||
# Values: 'all', 'dedicated', 'integrated'
|
|
||||||
# Flag: --gpu_type
|
|
||||||
# Supports: Linux
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# all:
|
|
||||||
# GPU1: AMD HD 7950
|
|
||||||
# GPU2: Intel Integrated Graphics
|
|
||||||
#
|
|
||||||
# dedicated:
|
|
||||||
# GPU1: AMD HD 7950
|
|
||||||
#
|
|
||||||
# integrated:
|
|
||||||
# GPU1: Intel Integrated Graphics
|
|
||||||
gpu_type="all"
|
|
||||||
|
|
||||||
|
|
||||||
# Resolution
|
|
||||||
|
|
||||||
|
|
||||||
# Display refresh rate next to each monitor
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --refresh_rate
|
|
||||||
# Supports: Doesn't work on Windows.
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '1920x1080 @ 60Hz'
|
|
||||||
# off: '1920x1080'
|
|
||||||
refresh_rate="off"
|
|
||||||
|
|
||||||
|
|
||||||
# Gtk Theme / Icons / Font
|
|
||||||
|
|
||||||
|
|
||||||
# Shorten output of GTK Theme / Icons / Font
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --gtk_shorthand
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Numix, Adwaita'
|
|
||||||
# off: 'Numix [GTK2], Adwaita [GTK3]'
|
|
||||||
gtk_shorthand="off"
|
|
||||||
|
|
||||||
|
|
||||||
# Enable/Disable gtk2 Theme / Icons / Font
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --gtk2
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Numix [GTK2], Adwaita [GTK3]'
|
|
||||||
# off: 'Adwaita [GTK3]'
|
|
||||||
gtk2="on"
|
|
||||||
|
|
||||||
# Enable/Disable gtk3 Theme / Icons / Font
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --gtk3
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Numix [GTK2], Adwaita [GTK3]'
|
|
||||||
# off: 'Numix [GTK2]'
|
|
||||||
gtk3="on"
|
|
||||||
|
|
||||||
|
|
||||||
# IP Address
|
|
||||||
|
|
||||||
|
|
||||||
# Website to ping for the public IP
|
|
||||||
#
|
|
||||||
# Default: 'http://ident.me'
|
|
||||||
# Values: 'url'
|
|
||||||
# Flag: --ip_host
|
|
||||||
public_ip_host="http://ident.me"
|
|
||||||
|
|
||||||
# Public IP timeout.
|
|
||||||
#
|
|
||||||
# Default: '2'
|
|
||||||
# Values: 'int'
|
|
||||||
# Flag: --ip_timeout
|
|
||||||
public_ip_timeout=2
|
|
||||||
|
|
||||||
|
|
||||||
# Desktop Environment
|
|
||||||
|
|
||||||
|
|
||||||
# Show Desktop Environment version
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --de_version
|
|
||||||
de_version="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Disk
|
|
||||||
|
|
||||||
|
|
||||||
# Which disks to display.
|
|
||||||
# The values can be any /dev/sdXX, mount point or directory.
|
|
||||||
# NOTE: By default we only show the disk info for '/'.
|
|
||||||
#
|
|
||||||
# Default: '/'
|
|
||||||
# Values: '/', '/dev/sdXX', '/path/to/drive'.
|
|
||||||
# Flag: --disk_show
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# disk_show=('/' '/dev/sdb1'):
|
|
||||||
# 'Disk (/): 74G / 118G (66%)'
|
|
||||||
# 'Disk (/mnt/Videos): 823G / 893G (93%)'
|
|
||||||
#
|
|
||||||
# disk_show=('/'):
|
|
||||||
# 'Disk (/): 74G / 118G (66%)'
|
|
||||||
#
|
|
||||||
disk_show=('/storage/emulated' '/' '/server')
|
|
||||||
|
|
||||||
# Disk subtitle.
|
|
||||||
# What to append to the Disk subtitle.
|
|
||||||
#
|
|
||||||
# Default: 'mount'
|
|
||||||
# Values: 'mount', 'name', 'dir', 'none'
|
|
||||||
# Flag: --disk_subtitle
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# name: 'Disk (/dev/sda1): 74G / 118G (66%)'
|
|
||||||
# 'Disk (/dev/sdb2): 74G / 118G (66%)'
|
|
||||||
#
|
|
||||||
# mount: 'Disk (/): 74G / 118G (66%)'
|
|
||||||
# 'Disk (/mnt/Local Disk): 74G / 118G (66%)'
|
|
||||||
# 'Disk (/mnt/Videos): 74G / 118G (66%)'
|
|
||||||
#
|
|
||||||
# dir: 'Disk (/): 74G / 118G (66%)'
|
|
||||||
# 'Disk (Local Disk): 74G / 118G (66%)'
|
|
||||||
# 'Disk (Videos): 74G / 118G (66%)'
|
|
||||||
#
|
|
||||||
# none: 'Disk: 74G / 118G (66%)'
|
|
||||||
# 'Disk: 74G / 118G (66%)'
|
|
||||||
# 'Disk: 74G / 118G (66%)'
|
|
||||||
disk_subtitle="none"
|
|
||||||
|
|
||||||
# Disk percent.
|
|
||||||
# Show/Hide disk percent.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --disk_percent
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Disk (/): 74G / 118G (66%)'
|
|
||||||
# off: 'Disk (/): 74G / 118G'
|
|
||||||
disk_percent="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Song
|
|
||||||
|
|
||||||
|
|
||||||
# Manually specify a music player.
|
|
||||||
#
|
|
||||||
# Default: 'auto'
|
|
||||||
# Values: 'auto', 'player-name'
|
|
||||||
# Flag: --music_player
|
|
||||||
#
|
|
||||||
# Available values for 'player-name':
|
|
||||||
#
|
|
||||||
# amarok
|
|
||||||
# audacious
|
|
||||||
# banshee
|
|
||||||
# bluemindo
|
|
||||||
# clementine
|
|
||||||
# cmus
|
|
||||||
# deadbeef
|
|
||||||
# deepin-music
|
|
||||||
# dragon
|
|
||||||
# elisa
|
|
||||||
# exaile
|
|
||||||
# gnome-music
|
|
||||||
# gmusicbrowser
|
|
||||||
# gogglesmm
|
|
||||||
# guayadeque
|
|
||||||
# io.elementary.music
|
|
||||||
# iTunes
|
|
||||||
# juk
|
|
||||||
# lollypop
|
|
||||||
# mocp
|
|
||||||
# mopidy
|
|
||||||
# mpd
|
|
||||||
# muine
|
|
||||||
# netease-cloud-music
|
|
||||||
# olivia
|
|
||||||
# playerctl
|
|
||||||
# pogo
|
|
||||||
# pragha
|
|
||||||
# qmmp
|
|
||||||
# quodlibet
|
|
||||||
# rhythmbox
|
|
||||||
# sayonara
|
|
||||||
# smplayer
|
|
||||||
# spotify
|
|
||||||
# strawberry
|
|
||||||
# tauonmb
|
|
||||||
# tomahawk
|
|
||||||
# vlc
|
|
||||||
# xmms2d
|
|
||||||
# xnoise
|
|
||||||
# yarock
|
|
||||||
music_player="auto"
|
|
||||||
|
|
||||||
# Format to display song information.
|
|
||||||
#
|
|
||||||
# Default: '%artist% - %album% - %title%'
|
|
||||||
# Values: '%artist%', '%album%', '%title%'
|
|
||||||
# Flag: --song_format
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# default: 'Song: Jet - Get Born - Sgt Major'
|
|
||||||
song_format="%artist% - %album% - %title%"
|
|
||||||
|
|
||||||
# Print the Artist, Album and Title on separate lines
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --song_shorthand
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Artist: The Fratellis'
|
|
||||||
# 'Album: Costello Music'
|
|
||||||
# 'Song: Chelsea Dagger'
|
|
||||||
#
|
|
||||||
# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger'
|
|
||||||
song_shorthand="off"
|
|
||||||
|
|
||||||
# 'mpc' arguments (specify a host, password etc).
|
|
||||||
#
|
|
||||||
# Default: ''
|
|
||||||
# Example: mpc_args=(-h HOST -P PASSWORD)
|
|
||||||
mpc_args=()
|
|
||||||
|
|
||||||
|
|
||||||
# Text Colors
|
|
||||||
|
|
||||||
|
|
||||||
# Text Colors
|
|
||||||
#
|
|
||||||
# Default: 'distro'
|
|
||||||
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
|
|
||||||
# Flag: --colors
|
|
||||||
#
|
|
||||||
# Each number represents a different part of the text in
|
|
||||||
# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info'
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# colors=(distro) - Text is colored based on Distro colors.
|
|
||||||
# colors=(4 6 1 8 8 6) - Text is colored in the order above.
|
|
||||||
colors=(distro)
|
|
||||||
|
|
||||||
|
|
||||||
# Text Options
|
|
||||||
|
|
||||||
|
|
||||||
# Toggle bold text
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --bold
|
|
||||||
bold="on"
|
|
||||||
|
|
||||||
# Enable/Disable Underline
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --underline
|
|
||||||
underline_enabled="on"
|
|
||||||
|
|
||||||
# Underline character
|
|
||||||
#
|
|
||||||
# Default: '-'
|
|
||||||
# Values: 'string'
|
|
||||||
# Flag: --underline_char
|
|
||||||
underline_char="-"
|
|
||||||
|
|
||||||
|
|
||||||
# Info Separator
|
|
||||||
# Replace the default separator with the specified string.
|
|
||||||
#
|
|
||||||
# Default: ':'
|
|
||||||
# Flag: --separator
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# separator="->": 'Shell-> bash'
|
|
||||||
# separator=" =": 'WM = dwm'
|
|
||||||
separator=":"
|
|
||||||
|
|
||||||
|
|
||||||
# Color Blocks
|
|
||||||
|
|
||||||
|
|
||||||
# Color block range
|
|
||||||
# The range of colors to print.
|
|
||||||
#
|
|
||||||
# Default: '0', '15'
|
|
||||||
# Values: 'num'
|
|
||||||
# Flag: --block_range
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
#
|
|
||||||
# Display colors 0-7 in the blocks. (8 colors)
|
|
||||||
# neofetch --block_range 0 7
|
|
||||||
#
|
|
||||||
# Display colors 0-15 in the blocks. (16 colors)
|
|
||||||
# neofetch --block_range 0 15
|
|
||||||
block_range=(0 15)
|
|
||||||
|
|
||||||
# Toggle color blocks
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --color_blocks
|
|
||||||
color_blocks="on"
|
|
||||||
|
|
||||||
# Color block width in spaces
|
|
||||||
#
|
|
||||||
# Default: '3'
|
|
||||||
# Values: 'num'
|
|
||||||
# Flag: --block_width
|
|
||||||
block_width=3
|
|
||||||
|
|
||||||
# Color block height in lines
|
|
||||||
#
|
|
||||||
# Default: '1'
|
|
||||||
# Values: 'num'
|
|
||||||
# Flag: --block_height
|
|
||||||
block_height=1
|
|
||||||
|
|
||||||
# Color Alignment
|
|
||||||
#
|
|
||||||
# Default: 'auto'
|
|
||||||
# Values: 'auto', 'num'
|
|
||||||
# Flag: --col_offset
|
|
||||||
#
|
|
||||||
# Number specifies how far from the left side of the terminal (in spaces) to
|
|
||||||
# begin printing the columns, in case you want to e.g. center them under your
|
|
||||||
# text.
|
|
||||||
# Example:
|
|
||||||
# col_offset="auto" - Default behavior of neofetch
|
|
||||||
# col_offset=7 - Leave 7 spaces then print the colors
|
|
||||||
col_offset="auto"
|
|
||||||
|
|
||||||
# Progress Bars
|
|
||||||
|
|
||||||
|
|
||||||
# Bar characters
|
|
||||||
#
|
|
||||||
# Default: '-', '='
|
|
||||||
# Values: 'string', 'string'
|
|
||||||
# Flag: --bar_char
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# neofetch --bar_char 'elapsed' 'total'
|
|
||||||
# neofetch --bar_char '-' '='
|
|
||||||
bar_char_elapsed="-"
|
|
||||||
bar_char_total="="
|
|
||||||
|
|
||||||
# Toggle Bar border
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --bar_border
|
|
||||||
bar_border="on"
|
|
||||||
|
|
||||||
# Progress bar length in spaces
|
|
||||||
# Number of chars long to make the progress bars.
|
|
||||||
#
|
|
||||||
# Default: '15'
|
|
||||||
# Values: 'num'
|
|
||||||
# Flag: --bar_length
|
|
||||||
bar_length=15
|
|
||||||
|
|
||||||
# Progress bar colors
|
|
||||||
# When set to distro, uses your distro's logo colors.
|
|
||||||
#
|
|
||||||
# Default: 'distro', 'distro'
|
|
||||||
# Values: 'distro', 'num'
|
|
||||||
# Flag: --bar_colors
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# neofetch --bar_colors 3 4
|
|
||||||
# neofetch --bar_colors distro 5
|
|
||||||
bar_color_elapsed="distro"
|
|
||||||
bar_color_total="distro"
|
|
||||||
|
|
||||||
|
|
||||||
# Info display
|
|
||||||
# Display a bar with the info.
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'bar', 'infobar', 'barinfo', 'off'
|
|
||||||
# Flags: --cpu_display
|
|
||||||
# --memory_display
|
|
||||||
# --battery_display
|
|
||||||
# --disk_display
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# bar: '[---=======]'
|
|
||||||
# infobar: 'info [---=======]'
|
|
||||||
# barinfo: '[---=======] info'
|
|
||||||
# off: 'info'
|
|
||||||
cpu_display="off"
|
|
||||||
memory_display="off"
|
|
||||||
battery_display="off"
|
|
||||||
disk_display="off"
|
|
||||||
|
|
||||||
|
|
||||||
# Backend Settings
|
|
||||||
|
|
||||||
|
|
||||||
# Image backend.
|
|
||||||
#
|
|
||||||
# Default: 'ascii'
|
|
||||||
# Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off',
|
|
||||||
# 'pot', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty'
|
|
||||||
# Flag: --backend
|
|
||||||
image_backend="ascii"
|
|
||||||
|
|
||||||
# Image Source
|
|
||||||
#
|
|
||||||
# Which image or ascii file to display.
|
|
||||||
#
|
|
||||||
# Default: 'auto'
|
|
||||||
# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'
|
|
||||||
# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")'
|
|
||||||
# Flag: --source
|
|
||||||
#
|
|
||||||
# NOTE: 'auto' will pick the best image source for whatever image backend is used.
|
|
||||||
# In ascii mode, distro ascii art will be used and in an image mode, your
|
|
||||||
# wallpaper will be used.
|
|
||||||
image_source="$HOME/.config/neofetch/ascii.txt"
|
|
||||||
|
|
||||||
|
|
||||||
# Ascii Options
|
|
||||||
|
|
||||||
|
|
||||||
# Ascii distro
|
|
||||||
# Which distro's ascii art to display.
|
|
||||||
#
|
|
||||||
# Default: 'auto'
|
|
||||||
# Values: 'auto', 'distro_name'
|
|
||||||
# Flag: --ascii_distro
|
|
||||||
# NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, "AOSC OS",
|
|
||||||
# "AOSC OS/Retro", Apricity, ArcoLinux, ArchBox, ARCHlabs,
|
|
||||||
# ArchStrike, XFerience, ArchMerge, Arch, Artix, Arya, Bedrock,
|
|
||||||
# Bitrig, BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD,
|
|
||||||
# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
|
|
||||||
# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover,
|
|
||||||
# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin,
|
|
||||||
# DesaOS, Devuan, DracOS, DarkOs, DragonFly, Drauger, Elementary,
|
|
||||||
# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD,
|
|
||||||
# FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo,
|
|
||||||
# gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra,
|
|
||||||
# Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion,
|
|
||||||
# Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite,
|
|
||||||
# LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva,
|
|
||||||
# Manjaro, Maui, Mer, Minix, LinuxMint, MX_Linux, Namib,
|
|
||||||
# Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nurunner,
|
|
||||||
# NuTyX, OBRevenge, OpenBSD, openEuler, OpenIndiana, openmamba,
|
|
||||||
# OpenMandriva, OpenStage, OpenWrt, osmc, Oracle, OS Elbrus, PacBSD,
|
|
||||||
# Parabola, Pardus, Parrot, Parsix, TrueOS, PCLinuxOS, Peppermint,
|
|
||||||
# popos, Porteus, PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix,
|
|
||||||
# Raspbian, Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan,
|
|
||||||
# Regata, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific,
|
|
||||||
# Septor, SereneLinux, SharkLinux, Siduction, Slackware, SliTaz,
|
|
||||||
# SmartOS, Solus, Source_Mage, Sparky, Star, SteamOS, SunOS,
|
|
||||||
# openSUSE_Leap, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails,
|
|
||||||
# Trisquel, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio,
|
|
||||||
# Ubuntu, Venom, Void, Obarun, windows10, Windows7, Xubuntu, Zorin,
|
|
||||||
# and IRIX have ascii logos
|
|
||||||
# NOTE: Arch, Ubuntu, Redhat, and Dragonfly have 'old' logo variants.
|
|
||||||
# Use '{distro name}_old' to use the old logos.
|
|
||||||
# NOTE: Ubuntu has flavor variants.
|
|
||||||
# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME,
|
|
||||||
# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors.
|
|
||||||
# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu,
|
|
||||||
# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android,
|
|
||||||
# Antrix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola,
|
|
||||||
# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
|
|
||||||
# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian,
|
|
||||||
# postmarketOS, and Void have a smaller logo variant.
|
|
||||||
# Use '{distro name}_small' to use the small variants.
|
|
||||||
ascii_distro="auto"
|
|
||||||
|
|
||||||
# Ascii Colors
|
|
||||||
#
|
|
||||||
# Default: 'distro'
|
|
||||||
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
|
|
||||||
# Flag: --ascii_colors
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# ascii_colors=(distro) - Ascii is colored based on Distro colors.
|
|
||||||
# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
|
|
||||||
ascii_colors=(distro)
|
|
||||||
|
|
||||||
# Bold ascii logo
|
|
||||||
# Whether or not to bold the ascii logo.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --ascii_bold
|
|
||||||
ascii_bold="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Image Options
|
|
||||||
|
|
||||||
|
|
||||||
# Image loop
|
|
||||||
# Setting this to on will make neofetch redraw the image constantly until
|
|
||||||
# Ctrl+C is pressed. This fixes display issues in some terminal emulators.
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --loop
|
|
||||||
image_loop="off"
|
|
||||||
|
|
||||||
# Thumbnail directory
|
|
||||||
#
|
|
||||||
# Default: '~/.cache/thumbnails/neofetch'
|
|
||||||
# Values: 'dir'
|
|
||||||
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
|
|
||||||
|
|
||||||
# Crop mode
|
|
||||||
#
|
|
||||||
# Default: 'normal'
|
|
||||||
# Values: 'normal', 'fit', 'fill'
|
|
||||||
# Flag: --crop_mode
|
|
||||||
#
|
|
||||||
# See this wiki page to learn about the fit and fill options.
|
|
||||||
# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F
|
|
||||||
crop_mode="normal"
|
|
||||||
|
|
||||||
# Crop offset
|
|
||||||
# Note: Only affects 'normal' crop mode.
|
|
||||||
#
|
|
||||||
# Default: 'center'
|
|
||||||
# Values: 'northwest', 'north', 'northeast', 'west', 'center'
|
|
||||||
# 'east', 'southwest', 'south', 'southeast'
|
|
||||||
# Flag: --crop_offset
|
|
||||||
crop_offset="center"
|
|
||||||
|
|
||||||
# Image size
|
|
||||||
# The image is half the terminal width by default.
|
|
||||||
#
|
|
||||||
# Default: 'auto'
|
|
||||||
# Values: 'auto', '00px', '00%', 'none'
|
|
||||||
# Flags: --image_size
|
|
||||||
# --size
|
|
||||||
image_size="auto"
|
|
||||||
|
|
||||||
# Gap between image and text
|
|
||||||
#
|
|
||||||
# Default: '3'
|
|
||||||
# Values: 'num', '-num'
|
|
||||||
# Flag: --gap
|
|
||||||
gap=2
|
|
||||||
|
|
||||||
# Image offsets
|
|
||||||
# Only works with the w3m backend.
|
|
||||||
#
|
|
||||||
# Default: '0'
|
|
||||||
# Values: 'px'
|
|
||||||
# Flags: --xoffset
|
|
||||||
# --yoffset
|
|
||||||
yoffset=0
|
|
||||||
xoffset=0
|
|
||||||
|
|
||||||
# Image background color
|
|
||||||
# Only works with the w3m backend.
|
|
||||||
#
|
|
||||||
# Default: ''
|
|
||||||
# Values: 'color', 'blue'
|
|
||||||
# Flag: --bg_color
|
|
||||||
background_color=
|
|
||||||
|
|
||||||
|
|
||||||
# Misc Options
|
|
||||||
|
|
||||||
# Stdout mode
|
|
||||||
# Turn off all colors and disables image backend (ASCII/Image).
|
|
||||||
# Useful for piping into another command.
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
stdout="off"
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{ pkgs, ... }: {
|
|
||||||
home.packages = with pkgs; [ neofetch ];
|
|
||||||
|
|
||||||
xdg.configFile."neofetch" = {
|
|
||||||
recursive = false;
|
|
||||||
source = ./config;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
services.nextcloud-client = {
|
|
||||||
enable = true;
|
|
||||||
startInBackground = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{ programs.nixvim.plugins.nvim-autopairs = { enable = true; }; }
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{ programs.nixvim.plugins.bufferline = { enable = true; }; }
|
|
||||||
@@ -1,113 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins = {
|
|
||||||
luasnip.enable = true;
|
|
||||||
cmp-buffer = { enable = true; };
|
|
||||||
cmp-emoji = { enable = true; };
|
|
||||||
cmp-nvim-lsp = { enable = true; };
|
|
||||||
cmp-path = { enable = true; };
|
|
||||||
cmp_luasnip = { enable = true; };
|
|
||||||
|
|
||||||
cmp = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
snippet.expand =
|
|
||||||
"function(args) require('luasnip').lsp_expand(args.body) end";
|
|
||||||
sources = [
|
|
||||||
{ name = "nvim_lsp"; }
|
|
||||||
{ name = "luasnip"; }
|
|
||||||
{ name = "buffer"; }
|
|
||||||
{ name = "nvim_lua"; }
|
|
||||||
{ name = "path"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
formatting = {
|
|
||||||
fields = [ "abbr" "kind" "menu" ];
|
|
||||||
format =
|
|
||||||
# lua
|
|
||||||
''
|
|
||||||
function(_, item)
|
|
||||||
local icons = {
|
|
||||||
Namespace = "",
|
|
||||||
Text = "",
|
|
||||||
Method = "",
|
|
||||||
Function = "",
|
|
||||||
Constructor = "",
|
|
||||||
Field = "",
|
|
||||||
Variable = "",
|
|
||||||
Class = "",
|
|
||||||
Interface = "",
|
|
||||||
Module = "",
|
|
||||||
Property = "",
|
|
||||||
Unit = "",
|
|
||||||
Value = "",
|
|
||||||
Enum = "",
|
|
||||||
Keyword = "",
|
|
||||||
Snippet = "",
|
|
||||||
Color = "",
|
|
||||||
File = "",
|
|
||||||
Reference = "",
|
|
||||||
Folder = "",
|
|
||||||
EnumMember = "",
|
|
||||||
Constant = "",
|
|
||||||
Struct = "",
|
|
||||||
Event = "",
|
|
||||||
Operator = "",
|
|
||||||
TypeParameter = "",
|
|
||||||
Table = "",
|
|
||||||
Object = "",
|
|
||||||
Tag = "",
|
|
||||||
Array = "[]",
|
|
||||||
Boolean = "",
|
|
||||||
Number = "",
|
|
||||||
Null = "",
|
|
||||||
String = "",
|
|
||||||
Calendar = "",
|
|
||||||
Watch = "",
|
|
||||||
Package = "",
|
|
||||||
Copilot = "",
|
|
||||||
Codeium = "",
|
|
||||||
TabNine = "",
|
|
||||||
}
|
|
||||||
|
|
||||||
local icon = icons[item.kind] or ""
|
|
||||||
item.kind = string.format("%s %s", icon, item.kind or "")
|
|
||||||
return item
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
window = {
|
|
||||||
completion = {
|
|
||||||
winhighlight =
|
|
||||||
"FloatBorder:CmpBorder,Normal:CmpPmenu,Search:PmenuSel";
|
|
||||||
scrollbar = true;
|
|
||||||
sidePadding = 0;
|
|
||||||
border = [ "╭" "─" "╮" "│" "╯" "─" "╰" "│" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
documentation = {
|
|
||||||
border = [ "╭" "─" "╮" "│" "╯" "─" "╰" "│" ];
|
|
||||||
winhighlight =
|
|
||||||
"FloatBorder:CmpBorder,Normal:CmpPmenu,Search:PmenuSel";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
mapping = {
|
|
||||||
"<C-n>" = "cmp.mapping.select_next_item()";
|
|
||||||
"<C-p>" = "cmp.mapping.select_prev_item()";
|
|
||||||
"<Down>" = "cmp.mapping.select_next_item()";
|
|
||||||
"<Up>" = "cmp.mapping.select_prev_item()";
|
|
||||||
"<C-j>" = "cmp.mapping.select_next_item()";
|
|
||||||
"<C-k>" = "cmp.mapping.select_prev_item()";
|
|
||||||
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
|
|
||||||
"<C-f>" = "cmp.mapping.scroll_docs(4)";
|
|
||||||
"<C-Space>" = "cmp.mapping.complete()";
|
|
||||||
"<C-e>" = "cmp.mapping.close()";
|
|
||||||
"<CR>" =
|
|
||||||
"cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = true })";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins.copilot-vim = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,148 +0,0 @@
|
|||||||
{ pkgs, inputs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
inputs.nixvim.homeManagerModules.nixvim
|
|
||||||
./auto-pairs.nix
|
|
||||||
./options.nix
|
|
||||||
./bufferline.nix
|
|
||||||
./telescope.nix
|
|
||||||
./nvim-tree.nix
|
|
||||||
./lightline.nix
|
|
||||||
./git.nix
|
|
||||||
./cmp.nix
|
|
||||||
./none-ls.nix
|
|
||||||
./wilder.nix
|
|
||||||
./lsp.nix
|
|
||||||
./treesitter.nix
|
|
||||||
./toggleterm.nix
|
|
||||||
./copilot.nix
|
|
||||||
./obsidian.nix
|
|
||||||
./whichkey.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.nixvim = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
colorschemes.catppuccin.enable = true;
|
|
||||||
colorschemes.catppuccin.transparentBackground = true;
|
|
||||||
|
|
||||||
plugins.alpha = {
|
|
||||||
enable = true;
|
|
||||||
layout = [
|
|
||||||
{
|
|
||||||
type = "padding";
|
|
||||||
val = 4;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "text";
|
|
||||||
opts = { position = "center"; };
|
|
||||||
val = [
|
|
||||||
" "
|
|
||||||
" ████ ██████ █████ ██ "
|
|
||||||
" ███████████ █████ "
|
|
||||||
" █████████ ███████████████████ ███ ███████████ "
|
|
||||||
" █████████ ███ █████████████ █████ ██████████████ "
|
|
||||||
" █████████ ██████████ █████████ █████ █████ ████ █████ "
|
|
||||||
" ███████████ ███ ███ █████████ █████ █████ ████ █████ "
|
|
||||||
" ██████ █████████████████████ ████ █████ █████ ████ ██████ "
|
|
||||||
" "
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "padding";
|
|
||||||
val = 4;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "group";
|
|
||||||
val = [
|
|
||||||
{
|
|
||||||
type = "button";
|
|
||||||
val = " New file";
|
|
||||||
on_press.__raw = "function() vim.cmd[[ene]] end";
|
|
||||||
opts = {
|
|
||||||
shortcut = "n";
|
|
||||||
position = "center";
|
|
||||||
cursor = 3;
|
|
||||||
width = 50;
|
|
||||||
align_shortcut = "right";
|
|
||||||
hl_shortcut = "Keyword";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "button";
|
|
||||||
val = " NixOs Config";
|
|
||||||
on_press.__raw = "function() vim.cmd[[e ~/.config/nixos]] end";
|
|
||||||
opts = {
|
|
||||||
shortcut = "c";
|
|
||||||
position = "center";
|
|
||||||
cursor = 3;
|
|
||||||
width = 50;
|
|
||||||
align_shortcut = "right";
|
|
||||||
hl_shortcut = "Keyword";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "button";
|
|
||||||
val = " Quit Neovim";
|
|
||||||
on_press.__raw = "function() vim.cmd[[qa]] end";
|
|
||||||
opts = {
|
|
||||||
shortcut = "q";
|
|
||||||
position = "center";
|
|
||||||
cursor = 3;
|
|
||||||
width = 50;
|
|
||||||
align_shortcut = "right";
|
|
||||||
hl_shortcut = "Keyword";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
keymaps = [
|
|
||||||
{
|
|
||||||
key = "<leader>e";
|
|
||||||
action = "<CMD>Neotree toggle<CR>";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<space>fm";
|
|
||||||
action = "<CMD>lua vim.lsp.buf.format()<CR>";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
key = "<leader>ot";
|
|
||||||
action = "<cmd>lua require('obsidian').util.toggle_checkbox()<cr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
key = "<leader>oo";
|
|
||||||
action = "<cmd>ObsidianQuickSwitch<cr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
key = "<leader>on";
|
|
||||||
action = "<cmd>ObsidianNew<cr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
key = "<leader>of";
|
|
||||||
action = "<cmd>ObsidianSearch<cr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
key = "<leader>oi";
|
|
||||||
action = "<cmd>ObsidianPasteImg<cr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Terminal Mappings
|
|
||||||
{
|
|
||||||
mode = "t";
|
|
||||||
key = "<esc>";
|
|
||||||
action = "<C-\\><C-n>";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins.gitsigns = {
|
|
||||||
enable = true;
|
|
||||||
currentLineBlame = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{ programs.nixvim.plugins.lualine = { enable = true; }; }
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins = {
|
|
||||||
lsp-format.enable = true;
|
|
||||||
lsp = {
|
|
||||||
enable = true;
|
|
||||||
servers = {
|
|
||||||
bashls.enable = true;
|
|
||||||
clangd.enable = true;
|
|
||||||
gopls.enable = true;
|
|
||||||
nixd.enable = true;
|
|
||||||
tailwindcss.enable = true;
|
|
||||||
};
|
|
||||||
keymaps.lspBuf = {
|
|
||||||
"gd" = "definition";
|
|
||||||
"gD" = "references";
|
|
||||||
"gt" = "type_definition";
|
|
||||||
"gi" = "implementation";
|
|
||||||
"K" = "hover";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins.none-ls = {
|
|
||||||
enable = true;
|
|
||||||
sources = {
|
|
||||||
diagnostics = {
|
|
||||||
golangci_lint.enable = true;
|
|
||||||
statix.enable = true;
|
|
||||||
};
|
|
||||||
formatting = {
|
|
||||||
gofmt.enable = true;
|
|
||||||
goimports.enable = true;
|
|
||||||
nixfmt.enable = true;
|
|
||||||
markdownlint.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins.neo-tree = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins.obsidian = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
dir = "~/Nextcloud/obsidian";
|
|
||||||
disableFrontmatter = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
{
|
|
||||||
|
|
||||||
programs.nixvim.globals.mapleader = " ";
|
|
||||||
programs.nixvim.options = {
|
|
||||||
updatetime = 50; # Faster completion
|
|
||||||
|
|
||||||
number = true;
|
|
||||||
relativenumber = true;
|
|
||||||
|
|
||||||
autoindent = true;
|
|
||||||
clipboard = "unnamed,unnamedplus";
|
|
||||||
|
|
||||||
expandtab = true;
|
|
||||||
tabstop = 2;
|
|
||||||
softtabstop = 2;
|
|
||||||
shiftwidth = 2;
|
|
||||||
smartindent = true;
|
|
||||||
breakindent = true;
|
|
||||||
|
|
||||||
ignorecase = true;
|
|
||||||
incsearch = true;
|
|
||||||
hlsearch = true;
|
|
||||||
smartcase = true;
|
|
||||||
wildmode = "list:longest";
|
|
||||||
completeopt = [ "menuone" "noselect" ];
|
|
||||||
signcolumn = "yes";
|
|
||||||
cursorline = true;
|
|
||||||
scrolloff = 8;
|
|
||||||
mouse = "a";
|
|
||||||
|
|
||||||
wrap = false;
|
|
||||||
|
|
||||||
swapfile = false;
|
|
||||||
undofile = true;
|
|
||||||
conceallevel = 2;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins.telescope = {
|
|
||||||
enable = true;
|
|
||||||
keymaps = {
|
|
||||||
"<leader>fg" = "live_grep";
|
|
||||||
"<C-p>" = {
|
|
||||||
action = "git_files";
|
|
||||||
desc = "Telescope Git Files";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
extensions.fzf-native = { enable = true; };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins.toggleterm = {
|
|
||||||
enable = true;
|
|
||||||
openMapping = "<C-t>";
|
|
||||||
direction = "horizontal";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins = {
|
|
||||||
treesitter = {
|
|
||||||
enable = true;
|
|
||||||
nixGrammars = true;
|
|
||||||
indent = true;
|
|
||||||
};
|
|
||||||
treesitter-context.enable = true;
|
|
||||||
rainbow-delimiters.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins.which-key.enable=true;
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins.wilder = {
|
|
||||||
enable = true;
|
|
||||||
modes = [ ":" "/" "?" ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
pkgs-stable,
|
||||||
|
}:
|
||||||
|
(with pkgs-stable; [
|
||||||
|
# Web
|
||||||
|
dirb
|
||||||
|
ffuf
|
||||||
|
katana
|
||||||
|
whatweb
|
||||||
|
|
||||||
|
# Hashes
|
||||||
|
hashcat
|
||||||
|
haiti
|
||||||
|
hydra
|
||||||
|
john
|
||||||
|
|
||||||
|
# Databases
|
||||||
|
mariadb
|
||||||
|
redis
|
||||||
|
sqlmap
|
||||||
|
nosqli
|
||||||
|
|
||||||
|
# Network
|
||||||
|
inetutils
|
||||||
|
termshark # wireshark in TUI
|
||||||
|
whois
|
||||||
|
dig
|
||||||
|
nmap
|
||||||
|
samba
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
metasploit
|
||||||
|
nuclei
|
||||||
|
openvpn
|
||||||
|
|
||||||
|
# Secrets
|
||||||
|
trufflehog
|
||||||
|
|
||||||
|
# Forensics
|
||||||
|
binwalk
|
||||||
|
])
|
||||||
|
++ [ pkgs.dnsrecon ]
|
||||||
|
++ (with pkgs.nur.repos.anotherhadi; [
|
||||||
|
spilltea
|
||||||
|
jwt-tui
|
||||||
|
])
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
pkgs-stable,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = import ./cybersecurity-packages.nix {
|
||||||
|
inherit pkgs pkgs-stable;
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.user.tmpfiles.rules = [
|
||||||
|
"d %h/Cyber/tmp 0755 - - -"
|
||||||
|
"d %h/Cyber/wordlists 0755 - - -"
|
||||||
|
"d %h/Cyber/wordlists/rules 0755 - - -"
|
||||||
|
];
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
"Cyber/wordlists/seclists".source = pkgs.fetchFromGitHub {
|
||||||
|
owner = "danielmiessler";
|
||||||
|
repo = "SecLists";
|
||||||
|
rev = "47aa98053fce8670c6489e4f6fb57dc34881d8bd";
|
||||||
|
hash = "sha256-ojXLB/TXap1Qi0MtV5/WJlJpjNIDYx/sLY2KHm0uFKI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
"Cyber/wordlists/fuzz4bounty".source = pkgs.fetchFromGitHub {
|
||||||
|
owner = "0xPugal";
|
||||||
|
repo = "fuzz4bounty";
|
||||||
|
rev = "a805f6b434033f054312da0ddc2bc3021cc9a3b0";
|
||||||
|
hash = "sha256-wMhx1CcxIyw2E7gJXQxXAFc7m5nYt0FXNkoTZqFMQh4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
# RULES
|
||||||
|
"Cyber/wordlists/rules/oneruletorulethemstill".source = pkgs.fetchFromGitHub {
|
||||||
|
owner = "stealthsploit";
|
||||||
|
repo = "oneruletorulethemstill";
|
||||||
|
rev = "4bfb7322e189305b5f35bb7fcd4e9cc233c3d3c6";
|
||||||
|
hash = "sha256-h7MeymIXS/6wlPRt4lzsIEqOOssP0lDx9nQip65cwZw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
"Cyber/wordlists/rules/best64.rule".source = pkgs.fetchurl {
|
||||||
|
url = "https://raw.githubusercontent.com/CarlosLannister/OwadeReborn/refs/heads/master/owade/fileAnalyze/hashcatLib/best64.rule%7E";
|
||||||
|
hash = "sha256-T0XkMHJZQiy63/j25nGTkaiDFjc+blmgEVGTAFgVylU=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
pkgs-stable,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs;
|
||||||
|
[
|
||||||
|
go
|
||||||
|
claude-code
|
||||||
|
]
|
||||||
|
++ (with pkgs-stable; [
|
||||||
|
nodejs
|
||||||
|
air
|
||||||
|
duckdb
|
||||||
|
python3
|
||||||
|
jq
|
||||||
|
nix-prefetch-github
|
||||||
|
rsync
|
||||||
|
]);
|
||||||
|
}
|
||||||
@@ -0,0 +1,459 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
bookmarkList =
|
||||||
|
(import ./general.nix)
|
||||||
|
++ (import ./tools.nix)
|
||||||
|
++ (import ./entertainment.nix)
|
||||||
|
++ (import ./infosec.nix)
|
||||||
|
++ (import ./other.nix)
|
||||||
|
++ (import ./jack.nix);
|
||||||
|
|
||||||
|
c = config.lib.stylix.colors;
|
||||||
|
|
||||||
|
stripProtocol = url: lib.removePrefix "https://" (lib.removePrefix "http://" url);
|
||||||
|
stripDomain = url: builtins.head (lib.splitString "/" (stripProtocol url));
|
||||||
|
|
||||||
|
mkCard = item: let
|
||||||
|
domain = stripDomain item.url;
|
||||||
|
initial = builtins.substring 0 1 item.name;
|
||||||
|
in ''
|
||||||
|
<a href="${item.url}" class="card">
|
||||||
|
<div class="favicon-wrapper">
|
||||||
|
<img class="favicon" src="https://icons.duckduckgo.com/ip3/${domain}.ico" alt="" aria-hidden="true" loading="lazy" onerror="this.style.display='none';this.nextElementSibling.style.display='flex'">
|
||||||
|
<span class="favicon-fallback" style="display:none">${initial}</span>
|
||||||
|
</div>
|
||||||
|
<div class="card-info">
|
||||||
|
<span class="card-name">${item.name}</span>
|
||||||
|
<span class="card-url">${stripProtocol item.url}</span>
|
||||||
|
</div>
|
||||||
|
</a>'';
|
||||||
|
|
||||||
|
mkFolderContent = items: let
|
||||||
|
step = acc: item:
|
||||||
|
if item ? url
|
||||||
|
then acc // {pending = acc.pending ++ [item];}
|
||||||
|
else {
|
||||||
|
chunks =
|
||||||
|
acc.chunks
|
||||||
|
++ lib.optional (acc.pending != []) {
|
||||||
|
isCards = true;
|
||||||
|
items = acc.pending;
|
||||||
|
}
|
||||||
|
++ [
|
||||||
|
{
|
||||||
|
isCards = false;
|
||||||
|
folder = item;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
pending = [];
|
||||||
|
};
|
||||||
|
result =
|
||||||
|
lib.foldl' step {
|
||||||
|
chunks = [];
|
||||||
|
pending = [];
|
||||||
|
}
|
||||||
|
items;
|
||||||
|
chunks =
|
||||||
|
result.chunks
|
||||||
|
++ lib.optional (result.pending != []) {
|
||||||
|
isCards = true;
|
||||||
|
items = result.pending;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
lib.concatMapStrings (
|
||||||
|
chunk:
|
||||||
|
if chunk.isCards
|
||||||
|
then ''
|
||||||
|
<div class="cards">
|
||||||
|
${lib.concatMapStrings mkCard chunk.items}
|
||||||
|
</div>''
|
||||||
|
else mkFolder chunk.folder
|
||||||
|
)
|
||||||
|
chunks;
|
||||||
|
|
||||||
|
mkFolder = folder: let
|
||||||
|
iconHtml =
|
||||||
|
if folder ? icon
|
||||||
|
then ''<span class="material-symbols-outlined folder-icon" aria-hidden="true">${folder.icon}</span>''
|
||||||
|
else "";
|
||||||
|
in ''
|
||||||
|
<details class="folder-section" open>
|
||||||
|
<summary class="folder-title">
|
||||||
|
${iconHtml}<span class="folder-name">${folder.name}</span>
|
||||||
|
<svg class="chevron" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
||||||
|
</summary>
|
||||||
|
<div class="folder-content">
|
||||||
|
${mkFolderContent folder.bookmarks}
|
||||||
|
</div>
|
||||||
|
</details>'';
|
||||||
|
|
||||||
|
grouped = let
|
||||||
|
step = acc: item:
|
||||||
|
if item ? url
|
||||||
|
then acc // {pending = acc.pending ++ [item];}
|
||||||
|
else {
|
||||||
|
groups =
|
||||||
|
acc.groups
|
||||||
|
++ lib.optional (acc.pending != []) {
|
||||||
|
isRoot = true;
|
||||||
|
items = acc.pending;
|
||||||
|
}
|
||||||
|
++ [
|
||||||
|
{
|
||||||
|
isRoot = false;
|
||||||
|
inherit item;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
pending = [];
|
||||||
|
};
|
||||||
|
result =
|
||||||
|
lib.foldl' step {
|
||||||
|
groups = [];
|
||||||
|
pending = [];
|
||||||
|
}
|
||||||
|
bookmarkList;
|
||||||
|
in
|
||||||
|
result.groups
|
||||||
|
++ lib.optional (result.pending != []) {
|
||||||
|
isRoot = true;
|
||||||
|
items = result.pending;
|
||||||
|
};
|
||||||
|
|
||||||
|
mkSection = group:
|
||||||
|
if group.isRoot
|
||||||
|
then ''
|
||||||
|
<div class="root-section">
|
||||||
|
<div class="cards">
|
||||||
|
${lib.concatMapStrings mkCard group.items}
|
||||||
|
</div>
|
||||||
|
</div>''
|
||||||
|
else mkFolder group.item;
|
||||||
|
in {
|
||||||
|
home.file.".local/share/helium-startpage/index.html".text = ''
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Bookmarks</title>
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20,300,0,0">
|
||||||
|
<style>
|
||||||
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #${c.base00};
|
||||||
|
color: #${c.base05};
|
||||||
|
font-family: 'Source Sans Pro', sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
|
min-height: 100vh;
|
||||||
|
padding: 2.5rem 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
max-width: 1100px;
|
||||||
|
margin: 0 auto 2rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-title {
|
||||||
|
font-size: 1.3rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #${c.base0D};
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar {
|
||||||
|
flex: 1;
|
||||||
|
background-color: #${c.base01};
|
||||||
|
border: 1px solid #${c.base02};
|
||||||
|
border-radius: 8px;
|
||||||
|
color: #${c.base05};
|
||||||
|
font-family: 'Source Sans Pro', sans-serif;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
padding: 0.5rem 0.9rem;
|
||||||
|
outline: none;
|
||||||
|
transition: border-color 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar::placeholder { color: #${c.base03}; }
|
||||||
|
.search-bar:focus { border-color: #${c.base0D}; }
|
||||||
|
|
||||||
|
.collapse-btn {
|
||||||
|
flex-shrink: 0;
|
||||||
|
background: none;
|
||||||
|
border: 1px solid #${c.base02};
|
||||||
|
border-radius: 8px;
|
||||||
|
color: #${c.base03};
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0.47rem;
|
||||||
|
transition: color 0.15s ease, border-color 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.collapse-btn:hover {
|
||||||
|
color: #${c.base0D};
|
||||||
|
border-color: #${c.base0D};
|
||||||
|
}
|
||||||
|
|
||||||
|
.collapse-btn svg { width: 16px; height: 16px; }
|
||||||
|
|
||||||
|
.bookmarks-container {
|
||||||
|
max-width: 1100px;
|
||||||
|
margin: 0 auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.root-section { margin-bottom: 1rem; }
|
||||||
|
|
||||||
|
details.folder-section { border-radius: 8px; }
|
||||||
|
|
||||||
|
details.folder-section > summary {
|
||||||
|
list-style: none;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
padding: 0.45rem 0.5rem;
|
||||||
|
border-radius: 8px;
|
||||||
|
user-select: none;
|
||||||
|
transition: background-color 0.12s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
details.folder-section > summary::-webkit-details-marker { display: none; }
|
||||||
|
|
||||||
|
details.folder-section > summary:hover {
|
||||||
|
background-color: #${c.base01};
|
||||||
|
color: #${c.base0D};
|
||||||
|
}
|
||||||
|
|
||||||
|
details.folder-section > summary:hover .folder-name { color: #${c.base0D}; }
|
||||||
|
details.folder-section > summary:hover .folder-icon { color: #${c.base0D}; }
|
||||||
|
|
||||||
|
.folder-icon {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1;
|
||||||
|
flex-shrink: 0;
|
||||||
|
color: #${c.base04};
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folder-name {
|
||||||
|
font-size: 0.72rem;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: #${c.base03};
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chevron {
|
||||||
|
width: 13px;
|
||||||
|
height: 13px;
|
||||||
|
color: #${c.base03};
|
||||||
|
transition: transform 0.2s ease;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] > summary > .chevron { transform: rotate(180deg); }
|
||||||
|
|
||||||
|
.folder-content {
|
||||||
|
padding: 0.4rem 0 0.5rem 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folder-content > details.folder-section > summary { padding-left: 1.2rem; }
|
||||||
|
.folder-content > details.folder-section > .folder-content { padding-left: 1rem; }
|
||||||
|
|
||||||
|
.cards {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||||
|
gap: 0.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.7rem;
|
||||||
|
padding: 0.6rem 0.8rem;
|
||||||
|
background-color: #${c.base01};
|
||||||
|
border: 1px solid #${c.base02};
|
||||||
|
border-radius: 10px;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: background-color 0.12s ease, border-color 0.12s ease;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card:hover {
|
||||||
|
background-color: #${c.base02};
|
||||||
|
border-color: #${c.base0D};
|
||||||
|
}
|
||||||
|
|
||||||
|
.favicon-wrapper { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
|
||||||
|
|
||||||
|
.favicon {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.favicon-fallback {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background-color: #${c.base02};
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #${c.base04};
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.05rem;
|
||||||
|
overflow: hidden;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-name {
|
||||||
|
color: #${c.base05};
|
||||||
|
font-size: 0.86rem;
|
||||||
|
font-weight: 500;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
transition: color 0.12s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card:hover .card-name { color: #${c.base0D}; }
|
||||||
|
|
||||||
|
.card-url {
|
||||||
|
color: #${c.base03};
|
||||||
|
font-family: 'Maple Mono NF', monospace;
|
||||||
|
font-size: 0.7rem;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-results {
|
||||||
|
color: #${c.base03};
|
||||||
|
font-size: 0.9rem;
|
||||||
|
padding: 0.5rem 0.2rem;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="header">
|
||||||
|
<h1 class="page-title">Bookmarks</h1>
|
||||||
|
<input id="search" class="search-bar" type="text" placeholder="Search…" autocomplete="off" spellcheck="false">
|
||||||
|
<button id="collapse-btn" class="collapse-btn" title="Collapse all folders" aria-label="Collapse all folders">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="10" y1="14" x2="3" y2="21"/><line x1="21" y1="3" x2="14" y2="10"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="bookmarks-container">
|
||||||
|
<p id="no-results" class="no-results">No results</p>
|
||||||
|
${lib.concatMapStrings mkSection grouped}
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
window.addEventListener('DOMContentLoaded', function () {
|
||||||
|
const input = document.getElementById('search');
|
||||||
|
const noResults = document.getElementById('no-results');
|
||||||
|
const collapseBtn = document.getElementById('collapse-btn');
|
||||||
|
|
||||||
|
input.focus();
|
||||||
|
|
||||||
|
collapseBtn.addEventListener('click', function () {
|
||||||
|
document.querySelectorAll('details.folder-section').forEach(function (d) {
|
||||||
|
d.open = false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
input.addEventListener('input', function () {
|
||||||
|
const query = this.value.toLowerCase().trim();
|
||||||
|
let anyVisible = false;
|
||||||
|
|
||||||
|
if (query) {
|
||||||
|
document.querySelectorAll('details.folder-section').forEach(function (d) {
|
||||||
|
d.open = true;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
document.querySelectorAll('.folder-section, .root-section').forEach(function (section) {
|
||||||
|
let sectionVisible = false;
|
||||||
|
section.querySelectorAll('.card').forEach(function (card) {
|
||||||
|
const name = card.querySelector('.card-name').textContent.toLowerCase();
|
||||||
|
const url = card.querySelector('.card-url').textContent.toLowerCase();
|
||||||
|
const match = !query || name.includes(query) || url.includes(query);
|
||||||
|
card.style.display = match ? ''' : 'none';
|
||||||
|
if (match) { sectionVisible = true; anyVisible = true; }
|
||||||
|
});
|
||||||
|
section.style.display = sectionVisible ? ''' : 'none';
|
||||||
|
});
|
||||||
|
|
||||||
|
noResults.style.display = anyVisible || !query ? 'none' : 'block';
|
||||||
|
});
|
||||||
|
|
||||||
|
input.addEventListener('keydown', function (e) {
|
||||||
|
if (e.key === 'Enter') {
|
||||||
|
const val = this.value.trim();
|
||||||
|
const isUrl = /^https?:\/\//i.test(val) || /^[a-zA-Z0-9-]+(\.[a-zA-Z]{2,})(\/.*)?$/.test(val);
|
||||||
|
if (isUrl) {
|
||||||
|
location.href = /^https?:\/\//i.test(val) ? val : 'https://' + val;
|
||||||
|
} else {
|
||||||
|
const first = document.querySelector('.card:not([style*="none"])');
|
||||||
|
if (first) {
|
||||||
|
location.href = first.href;
|
||||||
|
} else {
|
||||||
|
const q = encodeURIComponent(val);
|
||||||
|
if (q) location.href = 'https://duckduckgo.com/?q=' + q;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (e.key === 'Escape') {
|
||||||
|
this.value = ''';
|
||||||
|
this.dispatchEvent(new Event('input'));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
'';
|
||||||
|
|
||||||
|
systemd.user.services.helium-startpage = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Helium startpage HTTP server";
|
||||||
|
After = ["network.target"];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
Type = "simple";
|
||||||
|
ExecStart = "${pkgs.darkhttpd}/bin/darkhttpd %h/.local/share/helium-startpage --port 8888 --addr 127.0.0.1 --no-listing";
|
||||||
|
Restart = "on-failure";
|
||||||
|
};
|
||||||
|
Install.WantedBy = ["default.target"];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
name = "Entertainment";
|
||||||
|
icon = "movie";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Youtube";
|
||||||
|
url = "https://youtube.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Jellyfin";
|
||||||
|
url = "https://media.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Seerr";
|
||||||
|
url = "https://demandemedia.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Social Media";
|
||||||
|
icon = "group";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Medium";
|
||||||
|
url = "https://medium.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Bluesky";
|
||||||
|
url = "https://bsky.app";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Reddit";
|
||||||
|
url = "https://reddit.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Instagram";
|
||||||
|
url = "https://instagram.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Discord";
|
||||||
|
url = "https://discord.com/channels/@me/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Gitlab";
|
||||||
|
url = "https://gitlab.com/";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
name = "Proton Mail";
|
||||||
|
url = "https://mail.proton.me";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Proton Drive";
|
||||||
|
url = "https://drive.proton.me";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Github";
|
||||||
|
url = "https://github.com";
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
name = "Infosec";
|
||||||
|
icon = "terminal";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Nix 4 Cyber";
|
||||||
|
url = "https://n4c.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Infosec Notes - Anotherhadi";
|
||||||
|
url = "https://hadi.icu/notes";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Cyberchef";
|
||||||
|
url = "https://cyberchef.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "TryHackMe";
|
||||||
|
url = "https://tryhackme.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Root-Me";
|
||||||
|
url = "https://root-me.org";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Hack The Box";
|
||||||
|
url = "https://hackthebox.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Iknowyou";
|
||||||
|
url = "https://iknowyou-prod.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Exploit-DB";
|
||||||
|
url = "https://exploit-db.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Reverse Shell Generator";
|
||||||
|
url = "https://revshells.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "GTFOBins";
|
||||||
|
url = "https://gtfobins.org/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Crack Station";
|
||||||
|
url = "https://crackstation.net";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Osint Tracker";
|
||||||
|
url = "https://app.osintracker.com";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
name = "Jack";
|
||||||
|
icon = "dns";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Glance";
|
||||||
|
url = "https://home.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Blog";
|
||||||
|
url = "https://hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Gitea";
|
||||||
|
url = "https://git.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Mealie";
|
||||||
|
url = "https://mealie.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Wallpapers";
|
||||||
|
url = "https://wallpapers.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Default Creds";
|
||||||
|
url = "https://default-creds.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Media";
|
||||||
|
icon = "subscriptions";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Radarr";
|
||||||
|
url = "https://radarr.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Sonarr";
|
||||||
|
url = "https://sonarr.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Bazarr";
|
||||||
|
url = "https://bazarr.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Prowlarr";
|
||||||
|
url = "https://prowlarr.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Transmission";
|
||||||
|
url = "https://transmission.hadi.icu";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Infrastructure";
|
||||||
|
icon = "construction";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "AdGuard";
|
||||||
|
url = "https://adguard.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Umami";
|
||||||
|
url = "https://umami.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Cloudflare";
|
||||||
|
url = "https://dash.cloudflare.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Cloudflare Zero Trust";
|
||||||
|
url = "https://one.dash.cloudflare.com";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
name = "Other";
|
||||||
|
icon = "category";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Documentation";
|
||||||
|
icon = "menu_book";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Hyprland Wiki";
|
||||||
|
url = "https://wiki.hypr.land";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Nerdfont Cheatsheet";
|
||||||
|
url = "https://www.nerdfonts.com/cheat-sheet";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Helium Bangs";
|
||||||
|
url = "https://helium.computer/bangs";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "NVF Options";
|
||||||
|
url = "https://nvf.notashelf.dev/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Stylix Wiki";
|
||||||
|
url = "https://nix-community.github.io/stylix/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Nixpkgs";
|
||||||
|
url = "https://github.com/NixOS/nixpkgs";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "tldr";
|
||||||
|
url = "https://tldr.inbrowser.app/";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Startpage Config";
|
||||||
|
url = "https://www.startpage.com/do/mypage.pl?prfe=45d331deb05471d659dba933e7400df51d952bb103da6f6125c0e769a6be1d65610456a479f495ceeee7e97311cf227d7c1bb198de0ceeb193d8cddf9c455c19a409cc35c3e3f542ee27bd7cecd3";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Feedly";
|
||||||
|
url = "https://feedly.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "MyNixOS";
|
||||||
|
url = "https://mynixos.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Amazon";
|
||||||
|
url = "https://amazon.fr";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
name = "Tools";
|
||||||
|
icon = "handyman";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Maps";
|
||||||
|
url = "https://maps.apple.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Excalidraw";
|
||||||
|
url = "https://excalidraw.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Cobalt (downloader)";
|
||||||
|
url = "https://cobalt.meowing.de";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Mazanoke (image)";
|
||||||
|
url = "https://mazanoke.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Vert";
|
||||||
|
url = "https://vert.sh";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Markdown to PDF";
|
||||||
|
url = "https://md2file.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Image to Vector";
|
||||||
|
url = "https://www.vectorcascade.com/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "PrivateBin";
|
||||||
|
url = "https://privatebin.net";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Claude";
|
||||||
|
url = "https://claude.ai";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Gemini";
|
||||||
|
url = "https://gemini.google.com";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,139 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
c = config.lib.stylix.colors;
|
||||||
|
rgb = base: map lib.strings.toInt [c."${base}-rgb-r" c."${base}-rgb-g" c."${base}-rgb-b"];
|
||||||
|
|
||||||
|
themeId = "abcadngacjlikcpkhleafekcdjmddegk";
|
||||||
|
themeKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6t46VoE3mdV1QNMgybpmQLi5PtYHejnNrSj4DkBZyiTzMzs7Yyvg64f78w3QubZA5cTXSQ7FVhVHvv30I8ym/jNzsSN6reh1t4PtKsFjFRugAty8bfKJGD404HZLOFN2z3G9UPVLBBgzDH3DWbb/kcOq60Mlo/QDCIjsieZg0G3EYMl4efoThzYPWoyv0UEoiliwrE/AChxbgipQetUZ48bFhTCsmnYzCze7clssfTobzWtJJG0qFx76LauHKymRS5OTFfgsovKqHUSFJ202Q53vFdUPP/j8PjSPr1kZeg1NYc7Ba3MoA49EwtJf5ol9oYu05EEnSQ5+1AoYVmdE8QIDAQAB";
|
||||||
|
|
||||||
|
themeManifest = builtins.toJSON {
|
||||||
|
manifest_version = 2;
|
||||||
|
name = "Stylix Theme";
|
||||||
|
version = "1.0";
|
||||||
|
key = themeKey;
|
||||||
|
theme.colors = {
|
||||||
|
frame = rgb "base00";
|
||||||
|
frame_inactive = rgb "base00";
|
||||||
|
frame_incognito = rgb "base00";
|
||||||
|
frame_incognito_inactive = rgb "base00";
|
||||||
|
toolbar = rgb "base00";
|
||||||
|
toolbar_button_icon = rgb "base05";
|
||||||
|
control_background = rgb "base00";
|
||||||
|
tab_text = rgb "base0D";
|
||||||
|
background_tab = rgb "base00";
|
||||||
|
tab_background_text = rgb "base04";
|
||||||
|
tab_background_text_inactive = rgb "base04";
|
||||||
|
ntp_background = rgb "base00";
|
||||||
|
ntp_text = rgb "base05";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
heliumFlags = [
|
||||||
|
"--ozone-platform=wayland"
|
||||||
|
"--enable-features=UseOzonePlatform,VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization"
|
||||||
|
"--disable-features=UseChromeOSDirectVideoDecoder,WaylandWpColorManagerV1"
|
||||||
|
"--enable-accelerated-video-decode"
|
||||||
|
"--enable-gpu-rasterization"
|
||||||
|
"--use-gl=egl"
|
||||||
|
"--no-default-browser-check"
|
||||||
|
"--show-avatar-button=never"
|
||||||
|
];
|
||||||
|
|
||||||
|
originalPkg = (inputs.helium-browser.packages.${pkgs.stdenv.hostPlatform.system}.helium).override {
|
||||||
|
flags = heliumFlags;
|
||||||
|
};
|
||||||
|
|
||||||
|
patchScript = pkgs.writeShellScript "helium-patch-prefs" ''
|
||||||
|
PROFILE="$HOME/.config/net.imput.helium/Default"
|
||||||
|
THEME_DIR="$PROFILE/Extensions/${themeId}/1.0_0"
|
||||||
|
PREFS="$PROFILE/Preferences"
|
||||||
|
|
||||||
|
mkdir -p "$THEME_DIR"
|
||||||
|
rm -f "$THEME_DIR/Cached Theme.pak"
|
||||||
|
printf '%s' '${themeManifest}' > "$THEME_DIR/manifest.json"
|
||||||
|
|
||||||
|
if [ -f "$PREFS" ]; then
|
||||||
|
tmp=$(mktemp)
|
||||||
|
${lib.getExe pkgs.jq} \
|
||||||
|
--arg id "${themeId}" \
|
||||||
|
--slurpfile manifest "$THEME_DIR/manifest.json" \
|
||||||
|
'
|
||||||
|
.helium.browser.layout = 3 |
|
||||||
|
.helium.browser.minimal_location_bar = true |
|
||||||
|
.helium.browser.show_dynamic_new_tab_button = false |
|
||||||
|
.helium.browser.rounded_frame = false |
|
||||||
|
.bookmark_bar.show_tab_groups = false |
|
||||||
|
.extensions.settings[$id] = {
|
||||||
|
"active_permissions": {"api": [], "explicit_host": [], "manifest_permissions": [], "scriptable_host": []},
|
||||||
|
"creation_flags": 0,
|
||||||
|
"from_webstore": false,
|
||||||
|
"install_time": "13300000000000000",
|
||||||
|
"location": 1,
|
||||||
|
"manifest": $manifest[0],
|
||||||
|
"path": ($id + "/1.0_0"),
|
||||||
|
"state": 1,
|
||||||
|
"was_installed_by_default": false,
|
||||||
|
"was_installed_by_oem": false
|
||||||
|
} |
|
||||||
|
.extensions.theme = {"id": $id, "use_system": false}
|
||||||
|
' "$PREFS" > "$tmp" && mv "$tmp" "$PREFS"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
baseWrapped = pkgs.symlinkJoin {
|
||||||
|
name = "helium-wrapped";
|
||||||
|
paths = [originalPkg];
|
||||||
|
nativeBuildInputs = [pkgs.makeWrapper];
|
||||||
|
postBuild = ''
|
||||||
|
wrapProgram $out/bin/helium \
|
||||||
|
--set-default GTK_USE_PORTAL 1 \
|
||||||
|
--run ${lib.escapeShellArg (toString patchScript)}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
wrappedPkg = baseWrapped // {override = _: baseWrapped;};
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
inputs.helium-browser.homeModules.default
|
||||||
|
./bookmarks
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.helium = {
|
||||||
|
enable = true;
|
||||||
|
package = lib.mkForce wrappedPkg;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.sessionVariables.BROWSER = "${config.programs.helium.package}/bin/helium";
|
||||||
|
|
||||||
|
xdg.desktopEntries.helium = {
|
||||||
|
name = "Helium";
|
||||||
|
genericName = "Web Browser";
|
||||||
|
exec = "${config.programs.helium.package}/bin/helium %U";
|
||||||
|
icon = "${config.programs.helium.package}/share/icons/hicolor/256x256/apps/helium.png";
|
||||||
|
terminal = false;
|
||||||
|
categories = ["Network" "WebBrowser"];
|
||||||
|
mimeType = [
|
||||||
|
"text/html"
|
||||||
|
"text/xml"
|
||||||
|
"application/xhtml+xml"
|
||||||
|
"x-scheme-handler/http"
|
||||||
|
"x-scheme-handler/https"
|
||||||
|
"x-scheme-handler/ftp"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.desktopEntries.helium-private = {
|
||||||
|
name = "Helium (Private window)";
|
||||||
|
genericName = "Web Browser";
|
||||||
|
exec = "${config.programs.helium.package}/bin/helium --incognito %U";
|
||||||
|
icon = "${config.programs.helium.package}/share/icons/hicolor/256x256/apps/helium.png";
|
||||||
|
terminal = false;
|
||||||
|
categories = ["Network" "WebBrowser"];
|
||||||
|
mimeType = ["text/html" "text/xml" "application/xhtml+xml"];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
{...}: let
|
||||||
|
bookmarkList =
|
||||||
|
(import ./bookmarks/general.nix)
|
||||||
|
++ (import ./bookmarks/tools.nix)
|
||||||
|
++ (import ./bookmarks/entertainment.nix)
|
||||||
|
++ (import ./bookmarks/infosec.nix)
|
||||||
|
++ (import ./bookmarks/other.nix)
|
||||||
|
++ (import ./bookmarks/jack.nix);
|
||||||
|
|
||||||
|
toChromium = items:
|
||||||
|
map (item:
|
||||||
|
if item ? url
|
||||||
|
then {inherit (item) name url;}
|
||||||
|
else {
|
||||||
|
name = item.name;
|
||||||
|
children = toChromium item.bookmarks;
|
||||||
|
})
|
||||||
|
items;
|
||||||
|
in {
|
||||||
|
stylix.targets.chromium.enable = false;
|
||||||
|
|
||||||
|
programs.helium = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
policies = {
|
||||||
|
BrowserSignin = 0;
|
||||||
|
SyncDisabled = true;
|
||||||
|
SigninAllowed = false;
|
||||||
|
|
||||||
|
PasswordManagerEnabled = false;
|
||||||
|
AutofillAddressEnabled = false;
|
||||||
|
AutofillCreditCardEnabled = false;
|
||||||
|
SafeBrowsingEnabled = false;
|
||||||
|
MetricsReportingEnabled = false;
|
||||||
|
SpellCheckServiceEnabled = false;
|
||||||
|
DefaultCookiesSetting = 1;
|
||||||
|
DefaultGeolocationSetting = 2;
|
||||||
|
DefaultNotificationsSetting = 2;
|
||||||
|
DefaultPopupsSetting = 2;
|
||||||
|
|
||||||
|
DefaultBrowserSettingEnabled = false;
|
||||||
|
DeveloperToolsAvailability = 1;
|
||||||
|
|
||||||
|
DnsOverHttpsMode = "automatic";
|
||||||
|
DnsOverHttpsTemplates = "https://dns.quad9.net/dns-query";
|
||||||
|
|
||||||
|
DefaultSearchProviderEnabled = true;
|
||||||
|
DefaultSearchProviderName = "Startpage";
|
||||||
|
DefaultSearchProviderSearchURL = "https://www.startpage.com/do/search?q={searchTerms}";
|
||||||
|
DefaultSearchProviderSuggestURL = "https://www.startpage.com/do/suggest?q={searchTerms}";
|
||||||
|
|
||||||
|
NewTabPageLocation = "http://127.0.0.1:8888";
|
||||||
|
HomepageIsNewTabPage = false;
|
||||||
|
HomepageLocation = "http://127.0.0.1:8888";
|
||||||
|
ShowHomeButton = false;
|
||||||
|
RestoreOnStartup = 4;
|
||||||
|
|
||||||
|
BookmarkBarEnabled = false;
|
||||||
|
ManagedBookmarks = toChromium bookmarkList;
|
||||||
|
|
||||||
|
ExtensionInstallForcelist = [
|
||||||
|
"dbepggeogbaibhgnhhndojpepiihcmeb" # Vimiu
|
||||||
|
"gcknhkkoolaabfmlnjonogaaifnjlfnp" # FoxyProxy
|
||||||
|
"ghmbeldphafepmbegfdlkpapadhbakde" # Proton Pass
|
||||||
|
"mdjildafknihdffpkfmmpnpoiajfjnjd" # Consent-O-Matic
|
||||||
|
"pkehgijcmpdhfbdbbnkijodmdjhbjlgp" # Privacy Badger
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
{pkgs-stable, ...}: {
|
||||||
|
home.packages = with pkgs-stable; [
|
||||||
|
vlc # Video player
|
||||||
|
obsidian # Note taking app
|
||||||
|
textpieces # Manipulate texts
|
||||||
|
resources # Resource monitor
|
||||||
|
gnome-clocks # Clocks app
|
||||||
|
gnome-text-editor # Basic graphic text editor
|
||||||
|
ticktick # Todo app
|
||||||
|
pinta # Image editor
|
||||||
|
switcheroo # Convert images between different formats
|
||||||
|
onlyoffice-desktopeditors # Office suite
|
||||||
|
blanket # Listen to different sounds
|
||||||
|
signal-desktop # Messaging app
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
wayland.windowManager.hyprland.settings.exec-once = [
|
||||||
|
"protonvpn-app --start-minimized"
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
pkgs-stable,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs-stable; [
|
||||||
|
proton-vpn
|
||||||
|
proton-pass
|
||||||
|
proton-authenticator
|
||||||
|
];
|
||||||
|
|
||||||
|
# Fix Proton Authenticator desktop entry
|
||||||
|
xdg.desktopEntries = {
|
||||||
|
"Proton Authenticator" = {
|
||||||
|
name = "Proton Authenticator";
|
||||||
|
exec = "env WEBKIT_DISABLE_COMPOSITING_MODE=1 ${pkgs-stable.proton-authenticator}/bin/proton-authenticator";
|
||||||
|
icon = "proton-authenticator";
|
||||||
|
type = "Application";
|
||||||
|
categories = ["Utility"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
"Proton Calendar" = {
|
||||||
|
name = "Proton Calendar";
|
||||||
|
exec = ''${config.programs.helium.package}/bin/helium "https://calendar.proton.me"'';
|
||||||
|
icon = "proton-calendar";
|
||||||
|
type = "Application";
|
||||||
|
categories = ["Utility"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
"Proton Mail" = {
|
||||||
|
name = "Proton Mail";
|
||||||
|
exec = ''${config.programs.helium.package}/bin/helium "https://mail.proton.me/"'';
|
||||||
|
icon = "proton-mail";
|
||||||
|
type = "Application";
|
||||||
|
categories = ["Utility"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,174 @@
|
|||||||
|
# Thunar is a file explorer
|
||||||
|
{
|
||||||
|
pkgs-stable,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
user = config.var.username;
|
||||||
|
in {
|
||||||
|
# ctrl + m to toggle the menubar
|
||||||
|
home.packages =
|
||||||
|
(with pkgs-stable; [
|
||||||
|
thunar
|
||||||
|
xfconf
|
||||||
|
tumbler
|
||||||
|
thunar-archive-plugin
|
||||||
|
thunar-volman
|
||||||
|
thunar-media-tags-plugin
|
||||||
|
p7zip
|
||||||
|
xarchiver
|
||||||
|
])
|
||||||
|
++ (with pkgs-stable; [
|
||||||
|
papirus-icon-theme
|
||||||
|
material-icons
|
||||||
|
material-design-icons
|
||||||
|
material-symbols
|
||||||
|
]);
|
||||||
|
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
iconTheme = {
|
||||||
|
name = "Papirus-Dark";
|
||||||
|
package = pkgs-stable.papirus-icon-theme;
|
||||||
|
};
|
||||||
|
|
||||||
|
# bookmarks for the side pane
|
||||||
|
gtk3.bookmarks = [
|
||||||
|
"file:///home/${user}/Downloads Downloads"
|
||||||
|
"file:///home/${user}/Pictures Pictures"
|
||||||
|
"file:///home/${user}/.config/nixos NixOS"
|
||||||
|
"file:///home/${user}/dev Development"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
qt.enable = true;
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
XDG_ICON_DIR = "${pkgs-stable.papirus-icon-theme}/share/icons/Papirus";
|
||||||
|
QS_ICON_THEME = "Papirus";
|
||||||
|
QT_STYLE_OVERRIDE = lib.mkForce "Fusion";
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file.".config/xarchiver/xarchiverrc".text = ''
|
||||||
|
[xarchiver]
|
||||||
|
preferred_format=0
|
||||||
|
prefer_unzip=true
|
||||||
|
confirm_deletion=true
|
||||||
|
sort_filename_content=false
|
||||||
|
advanced_isearch=true
|
||||||
|
auto_expand=true
|
||||||
|
store_output=false
|
||||||
|
icon_size=2
|
||||||
|
show_archive_comment=false
|
||||||
|
show_sidebar=true
|
||||||
|
show_location_bar=true
|
||||||
|
show_toolbar=true
|
||||||
|
preferred_custom_cmd=
|
||||||
|
preferred_temp_dir=/tmp
|
||||||
|
preferred_extract_dir=./
|
||||||
|
allow_sub_dir=0
|
||||||
|
ensure_directory=true
|
||||||
|
overwrite=false
|
||||||
|
full_path=2
|
||||||
|
touch=false
|
||||||
|
fresh=false
|
||||||
|
update=false
|
||||||
|
store_path=false
|
||||||
|
updadd=true
|
||||||
|
freshen=false
|
||||||
|
recurse=true
|
||||||
|
solid_archive=false
|
||||||
|
remove_files=false
|
||||||
|
'';
|
||||||
|
|
||||||
|
home.file.".config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml" = {
|
||||||
|
text = ''
|
||||||
|
<?xml version="1.1" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<channel name="thunar" version="1.0">
|
||||||
|
<property name="last-view" type="string" value="ThunarIconView"/>
|
||||||
|
<property name="last-icon-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_100_PERCENT"/>
|
||||||
|
<property name="last-window-maximized" type="bool" value="true"/>
|
||||||
|
<property name="last-separator-position" type="int" value="230"/>
|
||||||
|
<property name="last-statusbar-visible" type="bool" value="false"/>
|
||||||
|
<property name="last-menubar-visible" type="bool" value="false"/>
|
||||||
|
<property name="misc-single-click" type="bool" value="false"/>
|
||||||
|
<property name="shortcuts-icon-emblems" type="bool" value="true"/>
|
||||||
|
<property name="tree-icon-emblems" type="bool" value="true"/>
|
||||||
|
<property name="misc-file-size-binary" type="bool" value="false"/>
|
||||||
|
<property name="misc-thumbnail-draw-frames" type="bool" value="true"/>
|
||||||
|
<property name="misc-text-beside-icons" type="bool" value="false"/>
|
||||||
|
<property name="misc-change-window-icon" type="bool" value="false"/>
|
||||||
|
<property name="hidden-bookmarks" type="array">
|
||||||
|
<value type="string" value="computer:///"/>
|
||||||
|
<value type="string" value="recent:///"/>
|
||||||
|
<value type="string" value="network:///"/>
|
||||||
|
</property>
|
||||||
|
<property name="hidden-devices" type="array">
|
||||||
|
<value type="string" value="52FEA905FEA8E309"/>
|
||||||
|
</property>
|
||||||
|
<property name="last-toolbar-item-order" type="string" value="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/>
|
||||||
|
<property name="last-toolbar-visible-buttons" type="string" value="0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0"/>
|
||||||
|
<property name="last-location-bar" type="string" value="ThunarLocationButtons"/>
|
||||||
|
<property name="last-show-hidden" type="bool" value="false"/>
|
||||||
|
<property name="last-details-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_38_PERCENT"/>
|
||||||
|
<property name="last-details-view-column-widths" type="string" value="50,50,118,111,50,50,50,50,993,50,50,84,50,151"/>
|
||||||
|
<property name="last-toolbar-items" type="string" value="menu:1,undo:1,back:1,forward:1,open-parent:0,open-home:0,redo:0,zoom-in:0,zoom-out:0,zoom-reset:0,location-bar:1,view-switcher:1,search:1,view-as-icons:0,view-as-detailed-list:0,view-as-compact-list:0,toggle-split-view:0,reload:0,new-tab:0,new-window:0,uca-action-1700000000000001:0"/>
|
||||||
|
<property name="last-side-pane" type="string" value="THUNAR_SIDEPANE_TYPE_SHORTCUTS"/>
|
||||||
|
<property name="last-image-preview-visible" type="bool" value="false"/>
|
||||||
|
<property name="misc-use-csd" type="bool" value="true"/>
|
||||||
|
<property name="default-view" type="string" value="ThunarIconView"/>
|
||||||
|
<property name="misc-thumbnail-max-file-size" type="uint64" value="1073741824"/>
|
||||||
|
<property name="misc-symbolic-icons-in-toolbar" type="bool" value="true"/>
|
||||||
|
<property name="misc-date-style" type="string" value="THUNAR_DATE_STYLE_SIMPLE"/>
|
||||||
|
<property name="shortcuts-icon-size" type="string" value="THUNAR_ICON_SIZE_16"/>
|
||||||
|
<property name="tree-icon-size" type="string" value="THUNAR_ICON_SIZE_16"/>
|
||||||
|
<property name="misc-symbolic-icons-in-sidepane" type="bool" value="true"/>
|
||||||
|
<property name="misc-open-new-window-as-tab" type="bool" value="false"/>
|
||||||
|
<property name="misc-full-path-in-tab-title" type="bool" value="true"/>
|
||||||
|
<property name="misc-show-delete-action" type="bool" value="false"/>
|
||||||
|
</channel>
|
||||||
|
'';
|
||||||
|
force = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."Thunar/uca.xml".text = ''
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<actions>
|
||||||
|
<action>
|
||||||
|
<icon>utilities-terminal</icon>
|
||||||
|
<name>Open Terminal Here</name>
|
||||||
|
<unique-id>1700000000000001</unique-id>
|
||||||
|
<command>ghostty -d %f</command>
|
||||||
|
<description>Opens terminal in the selected folder</description>
|
||||||
|
<patterns>*</patterns>
|
||||||
|
<startup-notify/>
|
||||||
|
<directories/>
|
||||||
|
</action>
|
||||||
|
<action>
|
||||||
|
<icon></icon>
|
||||||
|
<name>Extract here</name>
|
||||||
|
<submenu></submenu>
|
||||||
|
<unique-id>1689618425925956-3</unique-id>
|
||||||
|
<command>xarchiver -x . %f</command>
|
||||||
|
<description>Extracts the archive into the directory it is located in.</description>
|
||||||
|
<range>*</range>
|
||||||
|
<patterns>*.tar.bz2;*.tar.gz;*.tar.xz;*.tar.Z;*.tar;*.taz;*.tb2;*.tbz;*.tbz2;*.tgz;*.txz;*.zip;*.bz2;*.docx;*.apk;*.gz;*.odt;</patterns>
|
||||||
|
<other-files/>
|
||||||
|
</action>
|
||||||
|
<action>
|
||||||
|
<icon>package-x-generic</icon>
|
||||||
|
<name>Compress here (tar.gz)</name>
|
||||||
|
<submenu></submenu>
|
||||||
|
<unique-id>1700000000000003</unique-id>
|
||||||
|
<command>tar -czvf %n.tar.gz %N</command>
|
||||||
|
<description>Creates a compressed archive (.tar.gz) of selected files/folders.</description>
|
||||||
|
<range>*</range>
|
||||||
|
<patterns>*</patterns>
|
||||||
|
<directories/>
|
||||||
|
<other-files/>
|
||||||
|
</action>
|
||||||
|
</actions>
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
# Ghostty is a terminal emulator
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cursorShaders = pkgs.fetchFromGitHub {
|
||||||
|
owner = "sahaj-b";
|
||||||
|
repo = "ghostty-cursor-shaders";
|
||||||
|
rev = "06d4e90fb5410e9c4d0b3131584060adddf89406";
|
||||||
|
hash = "sha256-G/UIr1bKnxn1AcHl/4FL/jou6b7M2VeREslYVELxdmw=";
|
||||||
|
};
|
||||||
|
c = config.lib.stylix.colors;
|
||||||
|
in {
|
||||||
|
home.sessionVariables = {
|
||||||
|
TERMINAL = "ghostty";
|
||||||
|
TERM = "ghostty";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.ghostty = {
|
||||||
|
enable = true;
|
||||||
|
installVimSyntax = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
settings = {
|
||||||
|
window-padding-x = 10;
|
||||||
|
confirm-close-surface = false;
|
||||||
|
window-padding-y = 10;
|
||||||
|
gtk-single-instance = true;
|
||||||
|
clipboard-read = "allow";
|
||||||
|
clipboard-write = "allow";
|
||||||
|
copy-on-select = "clipboard";
|
||||||
|
app-notifications = false;
|
||||||
|
custom-shader = "${cursorShaders}/cursor_warp.glsl";
|
||||||
|
custom-shader-animation = "always";
|
||||||
|
keybind = [
|
||||||
|
"shift+ctrl+tab=new_tab"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
# Git configuration
|
||||||
|
{config, ...}: let
|
||||||
|
username = config.var.git.username;
|
||||||
|
email = config.var.git.email;
|
||||||
|
in {
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
ignores = [
|
||||||
|
".cache/"
|
||||||
|
".DS_Store"
|
||||||
|
".idea/"
|
||||||
|
"*.swp"
|
||||||
|
"*.elc"
|
||||||
|
"auto-save-list"
|
||||||
|
".direnv/"
|
||||||
|
"node_modules"
|
||||||
|
"result"
|
||||||
|
"result-*"
|
||||||
|
".superpowers/"
|
||||||
|
"docs/superpowers/"
|
||||||
|
];
|
||||||
|
settings = {
|
||||||
|
user.name = username;
|
||||||
|
user.email = email;
|
||||||
|
init.defaultBranch = "main";
|
||||||
|
pull.rebase = "false";
|
||||||
|
push.autoSetupRemote = true;
|
||||||
|
color.ui = "1";
|
||||||
|
alias = {
|
||||||
|
essa = "push --force";
|
||||||
|
co = "checkout";
|
||||||
|
fuck = "commit --amend -m";
|
||||||
|
c = "commit -m";
|
||||||
|
ca = "commit -am";
|
||||||
|
forgor = "commit --amend --no-edit";
|
||||||
|
graph = "log --all --decorate --graph --oneline";
|
||||||
|
oops = "checkout --";
|
||||||
|
l = "log";
|
||||||
|
r = "rebase";
|
||||||
|
s = "status --short";
|
||||||
|
ss = "status";
|
||||||
|
d = "diff";
|
||||||
|
ps = "!git push origin $(git rev-parse --abbrev-ref HEAD)";
|
||||||
|
pl = "!git pull origin $(git rev-parse --abbrev-ref HEAD)";
|
||||||
|
st = "status";
|
||||||
|
br = "branch";
|
||||||
|
hist = ''log --pretty=format:"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)" --graph --date=relative --decorate --all'';
|
||||||
|
llog = ''log --graph --name-status --pretty=format:"%C(red)%h %C(reset)(%cd) %C(green)%an %Creset%s %C(yellow)%d%Creset" --date=relative'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# Lazygit is a simple terminal UI for git commands.
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
accent = "#${config.lib.stylix.colors.base0D}";
|
||||||
|
muted = "#${config.lib.stylix.colors.base03}";
|
||||||
|
in {
|
||||||
|
programs.lazygit = {
|
||||||
|
enable = true;
|
||||||
|
settings = lib.mkForce {
|
||||||
|
disableStartupPopups = true;
|
||||||
|
notARepository = "skip";
|
||||||
|
promptToReturnFromSubprocess = false;
|
||||||
|
update.method = "never";
|
||||||
|
git = {
|
||||||
|
commit.signOff = true;
|
||||||
|
overrideGpg = true;
|
||||||
|
parseEmoji = true;
|
||||||
|
};
|
||||||
|
gui = {
|
||||||
|
theme = {
|
||||||
|
activeBorderColor = [
|
||||||
|
accent
|
||||||
|
"bold"
|
||||||
|
];
|
||||||
|
inactiveBorderColor = [muted];
|
||||||
|
};
|
||||||
|
showListFooter = false;
|
||||||
|
showRandomTip = false;
|
||||||
|
showCommandLog = false;
|
||||||
|
showBottomLine = false;
|
||||||
|
nerdFontsVersion = "3";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
# This file is used to sign git commits using an SSH key.
|
||||||
|
{
|
||||||
|
# CHANGEME: change this to your own SSH key.
|
||||||
|
home.file.".ssh/allowed_signers".text = "* ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIINhWby7lUUXQNKbRu9/UOrGjWDf3fvoAwGHomWv/+lL";
|
||||||
|
|
||||||
|
programs.git = {
|
||||||
|
signing.format = "openpgp";
|
||||||
|
settings = {
|
||||||
|
commit.gpgsign = true;
|
||||||
|
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
|
||||||
|
gpg.format = "ssh";
|
||||||
|
user.signingkey = "~/.ssh/key.pub";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
{config, ...}: let
|
||||||
|
c = config.lib.stylix.colors;
|
||||||
|
in {
|
||||||
|
home.file.".config/ilovetui/config.yaml".text = ''
|
||||||
|
colors:
|
||||||
|
base00: "#${c.base00}" # Background
|
||||||
|
base01: "#${c.base01}" # Lighter Background / Status Bars
|
||||||
|
base02: "#${c.base02}" # Selection Background
|
||||||
|
base03: "#${c.base03}" # Comments / Invisibles
|
||||||
|
base04: "#${c.base04}" # Dark Foreground / Status Bars
|
||||||
|
base05: "#${c.base05}" # Default Foreground
|
||||||
|
base06: "#${c.base06}" # Light Foreground
|
||||||
|
base07: "#${c.base07}" # Light Background
|
||||||
|
base08: "#${c.base08}" # Variables / Errors / Diff Deleted
|
||||||
|
base09: "#${c.base09}" # Integers / Constants / Booleans
|
||||||
|
base0a: "#${c.base0A}" # Classes / Warnings / Search Background
|
||||||
|
base0b: "#${c.base0B}" # Strings / Success / Diff Inserted
|
||||||
|
base0c: "#${c.base0C}" # Support / Regex / Escape Characters
|
||||||
|
base0d: "#${c.base0D}" # Functions / Methods / Headings / Accent
|
||||||
|
base0e: "#${c.base0E}" # Keywords / Storage / Diff Changed
|
||||||
|
base0f: "#${c.base0F}" # Embedded / Misc
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{inputs, ...}: {
|
||||||
|
imports = [inputs.nix-index-database.homeModules.default];
|
||||||
|
programs.nix-index.enable = true;
|
||||||
|
programs.nix-index-database.comma.enable = true;
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
# - ## Nixy
|
||||||
|
#-
|
||||||
|
#- Nixy is a simple script that I use to manage my NixOS system. It's a simple script that provides a menu to rebuild, test, update, collect garbage, clean boot menu, etc.
|
||||||
|
#-
|
||||||
|
#- - `nixy` - UI wizard to manage the system.
|
||||||
|
#- - `nixy rebuild` - Rebuild the system.
|
||||||
|
#- - `nixy ...` - ... see the script for more commands.
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options.programs.nixy = {
|
||||||
|
enable = lib.mkEnableOption "nixy";
|
||||||
|
configDirectory = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "$HOME/.config/nixos";
|
||||||
|
description = "Path to the NixOS configuration directory";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.programs.nixy.enable {
|
||||||
|
home.packages = [
|
||||||
|
(import ./package.nix {
|
||||||
|
inherit pkgs;
|
||||||
|
inherit (config.programs.nixy) configDirectory;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
system,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
packages.${system}.nixy = import ./package.nix {
|
||||||
|
inherit pkgs;
|
||||||
|
configDirectory = "$HOME/.config/nixos";
|
||||||
|
};
|
||||||
|
|
||||||
|
homeManagerModules.nixy = {
|
||||||
|
imports = [./default.nix];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
configDirectory,
|
||||||
|
}:
|
||||||
|
pkgs.writeShellScriptBin "nixy"
|
||||||
|
# bash
|
||||||
|
''
|
||||||
|
EXTRA_ARGS="''${@:2}"
|
||||||
|
|
||||||
|
function exec() {
|
||||||
|
$@
|
||||||
|
}
|
||||||
|
|
||||||
|
function ui(){
|
||||||
|
DEFAULT_ICON=""
|
||||||
|
|
||||||
|
# "icon;name;command"[]
|
||||||
|
apps=(
|
||||||
|
";Rebuild;nixy rebuild"
|
||||||
|
";Test;nixy test"
|
||||||
|
";Update;nixy update"
|
||||||
|
";Collect Garbage;nixy gc"
|
||||||
|
";Clean Boot Menu;nixy cb"
|
||||||
|
";List generation;nixy listgen"
|
||||||
|
)
|
||||||
|
|
||||||
|
# Apply default icons if empty:
|
||||||
|
for i in "''${!apps[@]}"; do
|
||||||
|
apps[i]=$(echo "''${apps[i]}" | sed 's/^;/'$DEFAULT_ICON';/')
|
||||||
|
done
|
||||||
|
|
||||||
|
fzf_result=$(printf "%s\n" "''${apps[@]}" | awk -F ';' '{print $1" "$2}' | fzf)
|
||||||
|
[[ -z $fzf_result ]] && exit 0
|
||||||
|
fzf_result=''${fzf_result/ /;}
|
||||||
|
line=$(printf "%s\n" "''${apps[@]}" | grep "$fzf_result")
|
||||||
|
command=$(echo "$line" | sed 's/^[^;]*;//;s/^[^;]*;//')
|
||||||
|
|
||||||
|
exec "$command"
|
||||||
|
exit $?
|
||||||
|
}
|
||||||
|
|
||||||
|
[[ $1 == "" ]] && ui
|
||||||
|
|
||||||
|
if [[ $1 == "rebuild" ]];then
|
||||||
|
cd ${configDirectory} && git add . && sudo nixos-rebuild switch --flake . $EXTRA_ARGS
|
||||||
|
elif [[ $1 == "test" ]];then
|
||||||
|
cd ${configDirectory} && git add . && sudo nixos-rebuild test --flake . $EXTRA_ARGS
|
||||||
|
elif [[ $1 == "update" ]];then
|
||||||
|
cd ${configDirectory} && nix flake update $EXTRA_ARGS
|
||||||
|
elif [[ $1 == "gc" ]];then
|
||||||
|
echo "Starting Nix garbage collection..."
|
||||||
|
cd ${configDirectory} && \
|
||||||
|
echo "Cleaning up system garbage..." && \
|
||||||
|
sudo nix-collect-garbage -d && \
|
||||||
|
echo "Cleaning up user garbage..." && \
|
||||||
|
nix-collect-garbage -d && \
|
||||||
|
echo "Collecting garbage from Nix store..." && \
|
||||||
|
nix-store --gc && \
|
||||||
|
echo "Optimizing Nix store..." && \
|
||||||
|
nix-store --optimise
|
||||||
|
echo "Nix garbage collection complete."
|
||||||
|
elif [[ $1 == "cb" ]];then
|
||||||
|
sudo /run/current-system/bin/switch-to-configuration boot
|
||||||
|
elif [[ $1 == "listgen" ]];then
|
||||||
|
sudo nix-env -p /nix/var/nix/profiles/system --list-generations
|
||||||
|
else
|
||||||
|
echo "Unknown argument"
|
||||||
|
fi
|
||||||
|
''
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.sessionVariables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.nvf = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
vim.luaConfigRC = lib.mkIf (config ? stylix && config.stylix.enable) {
|
||||||
|
hl-overrides = let
|
||||||
|
c = config.lib.stylix.colors;
|
||||||
|
in ''
|
||||||
|
local function apply_hl()
|
||||||
|
vim.api.nvim_set_hl(0, "MiniStarterHeader", { fg = "#${c.base0D}", bold = true })
|
||||||
|
vim.api.nvim_set_hl(0, "SnacksPickerBorder", { fg = "#${c.base0D}" })
|
||||||
|
vim.api.nvim_set_hl(0, "SnacksPickerTitle", { fg = "#${c.base0D}", bold = true })
|
||||||
|
end
|
||||||
|
apply_hl()
|
||||||
|
vim.api.nvim_create_autocmd("ColorScheme", { pattern = "*", callback = apply_hl })
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
imports = [
|
||||||
|
./options.nix
|
||||||
|
./languages.nix
|
||||||
|
./picker.nix
|
||||||
|
./snacks.nix
|
||||||
|
./keymaps.nix
|
||||||
|
./utils.nix
|
||||||
|
./mini.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Generated
+133
@@ -0,0 +1,133 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"flake-compat": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1777699697,
|
||||||
|
"narHash": "sha256-Eg9b/rq/ECYwNwEXs5i9wHyhxNI0JrYx2srdI2uZMaQ=",
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"rev": "382052b74656a369c5408822af3f2501e9b1af81",
|
||||||
|
"revCount": 94,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.lix.systems/lix-project/flake-compat.git"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.lix.systems/lix-project/flake-compat.git"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"nvf",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1778716662,
|
||||||
|
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mnw": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1780772958,
|
||||||
|
"narHash": "sha256-VKKe8r4pwCGWZ3Yr9CPN129R4S3CKLSrlYqdYz3vKpM=",
|
||||||
|
"owner": "Gerg-L",
|
||||||
|
"repo": "mnw",
|
||||||
|
"rev": "0871dbf63a53610c95db04439ed8ea4d6ec9c160",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Gerg-L",
|
||||||
|
"repo": "mnw",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1785133411,
|
||||||
|
"narHash": "sha256-Yjv0WEg39KRYS0rBdTbu6Fc/or/ihAKk13W9sQ6VWd0=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "2f5a153c270b70cb0f8c11f46d96d6d3bc39f4e3",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-26.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1781216227,
|
||||||
|
"narHash": "sha256-9mUW6gNwoN2SWc/l0fW4svPNOulXLl8ijqKyeSOGgJE=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "a0374025a863d007d98e3297f6aa46cc3141c2f0",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-26.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nvf": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat",
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"mnw": "mnw",
|
||||||
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1781997110,
|
||||||
|
"narHash": "sha256-6D6xtYN5t1kZGNd69eMZsRBkgX5Df1roErn/kFR1C+A=",
|
||||||
|
"owner": "notashelf",
|
||||||
|
"repo": "nvf",
|
||||||
|
"rev": "320f60b97075a58d38b90fc5e39f478421dbd38a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "notashelf",
|
||||||
|
"repo": "nvf",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs",
|
||||||
|
"nvf": "nvf"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
description = "Hadi's NVF Neovim configuration";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
||||||
|
nvf.url = "github:notashelf/nvf";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = {
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
nvf,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
|
||||||
|
forAllSystems = f: nixpkgs.lib.genAttrs systems f;
|
||||||
|
modules = [
|
||||||
|
./options.nix
|
||||||
|
./languages.nix
|
||||||
|
./picker.nix
|
||||||
|
./snacks.nix
|
||||||
|
./keymaps.nix
|
||||||
|
./utils.nix
|
||||||
|
./mini.nix
|
||||||
|
];
|
||||||
|
in {
|
||||||
|
packages = forAllSystems (system: let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
nvim = (nvf.lib.neovimConfiguration {inherit pkgs modules;}).neovim;
|
||||||
|
in {
|
||||||
|
inherit nvim;
|
||||||
|
default = nvim;
|
||||||
|
});
|
||||||
|
|
||||||
|
apps = forAllSystems (system: let
|
||||||
|
nvim = {
|
||||||
|
type = "app";
|
||||||
|
program = "${self.packages.${system}.nvim}/bin/nvim";
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
inherit nvim;
|
||||||
|
default = nvim;
|
||||||
|
});
|
||||||
|
|
||||||
|
homeManagerModules = rec {
|
||||||
|
nvim = {
|
||||||
|
imports = [
|
||||||
|
nvf.homeManagerModules.default
|
||||||
|
./default.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
default = nvim;
|
||||||
|
};
|
||||||
|
|
||||||
|
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,327 @@
|
|||||||
|
{
|
||||||
|
vim = {
|
||||||
|
globals.mapleader = " ";
|
||||||
|
|
||||||
|
keymaps = [
|
||||||
|
{
|
||||||
|
key = "s";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua MiniJump2d.start(MiniJump2d.builtin_opts.single_character)<cr>";
|
||||||
|
desc = "Jump2d";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "K";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua vim.lsp.buf.hover()<cr>";
|
||||||
|
desc = "LSP Hover";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<C-tab>";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>bnext<cr>";
|
||||||
|
desc = "Next Buffer";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Format
|
||||||
|
{
|
||||||
|
key = "<leader>lf";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua require('conform').format({ async = true, lsp_format = 'fallback' })<cr>";
|
||||||
|
desc = "Format file";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Terminal
|
||||||
|
{
|
||||||
|
key = "<leader>tt";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.terminal.toggle()<cr>";
|
||||||
|
desc = "Toggle terminal";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>tf";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.terminal.toggle(nil, { style = 'float' })<cr>";
|
||||||
|
desc = "Toggle terminal (float)";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>tg";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.lazygit()<cr>";
|
||||||
|
desc = "Lazygit";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>ts";
|
||||||
|
mode = "v";
|
||||||
|
silent = true;
|
||||||
|
action = ":<C-u>SttrTransform<CR>";
|
||||||
|
desc = "String Transform";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>tj";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = ":JwtTui<CR>";
|
||||||
|
desc = "JWT TUI";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>tj";
|
||||||
|
mode = "v";
|
||||||
|
silent = true;
|
||||||
|
action = ":<C-u>JwtTuiOpen<CR>";
|
||||||
|
desc = "JWT TUI";
|
||||||
|
}
|
||||||
|
|
||||||
|
# UI
|
||||||
|
{
|
||||||
|
key = "<leader>uw";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>set wrap!<cr>";
|
||||||
|
desc = "Toggle word wrapping";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>ul";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>set linebreak!<cr>";
|
||||||
|
desc = "Toggle linebreak";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>us";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>set spell!<cr>";
|
||||||
|
desc = "Toggle spellLazyGitcheck";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>uc";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>set cursorline!<cr>";
|
||||||
|
desc = "Toggle cursorline";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>un";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>set number!<cr>";
|
||||||
|
desc = "Toggle line numbers";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>ur";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>set relativenumber!<cr>";
|
||||||
|
desc = "Toggle relative line numbers";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>ut";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>set showtabline=2<cr>";
|
||||||
|
desc = "Show tabline";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>uT";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>set showtabline=0<cr>";
|
||||||
|
desc = "Hide tabline";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Todos
|
||||||
|
{
|
||||||
|
key = "<leader>xt";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>TodoTrouble<cr>";
|
||||||
|
desc = "Todo (Trouble)";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Shell
|
||||||
|
{
|
||||||
|
key = "<leader>!";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
lua = true;
|
||||||
|
desc = "Insert command output";
|
||||||
|
action = ''
|
||||||
|
function()
|
||||||
|
local cmd = vim.fn.input("Command: ")
|
||||||
|
if cmd == "" then return end
|
||||||
|
local lines = vim.fn.systemlist(cmd)
|
||||||
|
while #lines > 0 and lines[#lines] == "" do
|
||||||
|
table.remove(lines)
|
||||||
|
end
|
||||||
|
if #lines == 0 then return end
|
||||||
|
vim.api.nvim_put(lines, "l", true, true)
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>!";
|
||||||
|
mode = "v";
|
||||||
|
silent = true;
|
||||||
|
lua = true;
|
||||||
|
desc = "Run command with selection";
|
||||||
|
action = ''
|
||||||
|
function()
|
||||||
|
local start_line = vim.fn.line("'<")
|
||||||
|
local end_line = vim.fn.line("'>")
|
||||||
|
local lines = vim.api.nvim_buf_get_lines(0, start_line - 1, end_line, false)
|
||||||
|
local input_text = table.concat(lines, "\n")
|
||||||
|
|
||||||
|
local cmd = vim.fn.input("$ ")
|
||||||
|
if cmd == "" then return end
|
||||||
|
|
||||||
|
local result = vim.fn.system({"bash", "-c", cmd}, input_text)
|
||||||
|
local output = vim.split(result, "\n", { plain = true })
|
||||||
|
if output[#output] == "" then table.remove(output) end
|
||||||
|
if #output == 0 then return end
|
||||||
|
|
||||||
|
vim.api.nvim_buf_set_lines(0, start_line - 1, end_line, false, output)
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
||||||
|
# QOL
|
||||||
|
{
|
||||||
|
key = ">";
|
||||||
|
mode = "v";
|
||||||
|
silent = true;
|
||||||
|
action = ">gv";
|
||||||
|
desc = "Indent and keep selection";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<";
|
||||||
|
mode = "v";
|
||||||
|
silent = true;
|
||||||
|
action = "<gv";
|
||||||
|
desc = "Dedent and keep selection";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Move
|
||||||
|
{
|
||||||
|
key = "<C-h>";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<C-w>h";
|
||||||
|
desc = "Move to left window";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<C-j>";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<C-w>j";
|
||||||
|
desc = "Move to bottom window";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<C-k>";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<C-w>k";
|
||||||
|
desc = "Move to top window";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<C-l>";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<C-w>l";
|
||||||
|
desc = "Move to right window";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Save
|
||||||
|
{
|
||||||
|
key = "<C-s>";
|
||||||
|
mode = [
|
||||||
|
"n"
|
||||||
|
"i"
|
||||||
|
"v"
|
||||||
|
];
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>w<cr>";
|
||||||
|
desc = "Save file";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Deactivate "esc"
|
||||||
|
{
|
||||||
|
key = "<Esc>";
|
||||||
|
mode = [
|
||||||
|
"n"
|
||||||
|
"i"
|
||||||
|
"v"
|
||||||
|
];
|
||||||
|
silent = true;
|
||||||
|
action = "<Nop>";
|
||||||
|
desc = "Disable Escape";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Disable Arrow Keys in Normal Mode and Middle click
|
||||||
|
{
|
||||||
|
key = "<Up>";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<Nop>";
|
||||||
|
desc = "Disable Up Arrow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<Down>";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<Nop>";
|
||||||
|
desc = "Disable Down Arrow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<Left>";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<Nop>";
|
||||||
|
desc = "Disable Left Arrow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<Right>";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<Nop>";
|
||||||
|
desc = "Disable Right Arrow";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<MiddleMouse>";
|
||||||
|
mode = [
|
||||||
|
"n"
|
||||||
|
"i"
|
||||||
|
"v"
|
||||||
|
];
|
||||||
|
action = "<nop>";
|
||||||
|
silent = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<2-MiddleMouse>";
|
||||||
|
mode = [
|
||||||
|
"n"
|
||||||
|
"i"
|
||||||
|
"v"
|
||||||
|
];
|
||||||
|
action = "<nop>";
|
||||||
|
silent = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<3-MiddleMouse>";
|
||||||
|
mode = [
|
||||||
|
"n"
|
||||||
|
"i"
|
||||||
|
"v"
|
||||||
|
];
|
||||||
|
action = "<nop>";
|
||||||
|
silent = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
vim = {
|
||||||
|
diagnostics = {
|
||||||
|
enable = true;
|
||||||
|
config = {
|
||||||
|
signs = {
|
||||||
|
text = {
|
||||||
|
"vim.diagnostic.severity.Error" = " ";
|
||||||
|
"vim.diagnostic.severity.Warn" = " ";
|
||||||
|
"vim.diagnostic.severity.Hint" = " ";
|
||||||
|
"vim.diagnostic.severity.Info" = " ";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
underline = true;
|
||||||
|
update_in_insert = true;
|
||||||
|
virtual_text = true;
|
||||||
|
};
|
||||||
|
nvim-lint = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
treesitter = {
|
||||||
|
enable = true;
|
||||||
|
autotagHtml = true;
|
||||||
|
context.enable = true;
|
||||||
|
highlight.enable = true;
|
||||||
|
textobjects.enable = true;
|
||||||
|
grammars = [pkgs.vimPlugins.nvim-treesitter.grammarPlugins.http];
|
||||||
|
};
|
||||||
|
lsp = {
|
||||||
|
enable = true;
|
||||||
|
presets = {
|
||||||
|
tailwindcss-language-server = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
trouble.enable = true;
|
||||||
|
lspSignature.enable = true;
|
||||||
|
lspconfig.enable = true;
|
||||||
|
formatOnSave = false;
|
||||||
|
mappings.format = null;
|
||||||
|
inlayHints.enable = true;
|
||||||
|
servers.nil.settings.nix.autoArchive = true;
|
||||||
|
otter-nvim = {
|
||||||
|
enable = true;
|
||||||
|
setupOpts = {
|
||||||
|
buffers.set_filetype = true;
|
||||||
|
lsp = {
|
||||||
|
diagnostic_update_event = [
|
||||||
|
"BufWritePost"
|
||||||
|
"InsertLeave"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
lspkind.enable = true;
|
||||||
|
lspsaga = {
|
||||||
|
enable = true;
|
||||||
|
setupOpts = {
|
||||||
|
ui = {
|
||||||
|
code_action = "";
|
||||||
|
};
|
||||||
|
lightbulb = {
|
||||||
|
sign = false;
|
||||||
|
virtual_text = true;
|
||||||
|
};
|
||||||
|
symbol_in_winbar.enable = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
languages = {
|
||||||
|
enableExtraDiagnostics = true;
|
||||||
|
enableFormat = true;
|
||||||
|
enableTreesitter = true;
|
||||||
|
|
||||||
|
python = {
|
||||||
|
enable = true;
|
||||||
|
lsp = {
|
||||||
|
enable = true;
|
||||||
|
servers = ["pyright"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
astro.enable = true;
|
||||||
|
go.enable = true;
|
||||||
|
markdown = {
|
||||||
|
enable = true;
|
||||||
|
format.type = ["prettierd"];
|
||||||
|
extensions = {
|
||||||
|
markview-nvim = {
|
||||||
|
enable = true;
|
||||||
|
setupOpts = {
|
||||||
|
preview = {
|
||||||
|
hybrid_modes = ["n"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
extraDiagnostics.enable = true;
|
||||||
|
};
|
||||||
|
typescript.enable = true;
|
||||||
|
css.enable = true;
|
||||||
|
svelte.enable = true;
|
||||||
|
html.enable = true;
|
||||||
|
bash.enable = true;
|
||||||
|
nix.enable = true;
|
||||||
|
lua.enable = true;
|
||||||
|
};
|
||||||
|
formatter = {
|
||||||
|
conform-nvim = {
|
||||||
|
enable = true;
|
||||||
|
setupOpts.format_on_save = {
|
||||||
|
lsp_format = "fallback";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
{lib, ...}: {
|
||||||
|
vim.luaConfigRC.mini-clue = ''
|
||||||
|
local miniclue = require('mini.clue')
|
||||||
|
miniclue.setup({
|
||||||
|
triggers = {
|
||||||
|
{ mode = 'n', keys = '<Leader>' },
|
||||||
|
{ mode = 'x', keys = '<Leader>' },
|
||||||
|
{ mode = 'n', keys = 'g' },
|
||||||
|
{ mode = 'x', keys = 'g' },
|
||||||
|
{ mode = 'n', keys = "'" },
|
||||||
|
{ mode = 'n', keys = '`' },
|
||||||
|
{ mode = 'n', keys = '"' },
|
||||||
|
{ mode = 'i', keys = '<C-r>' },
|
||||||
|
{ mode = 'c', keys = '<C-r>' },
|
||||||
|
{ mode = 'n', keys = '<C-w>' },
|
||||||
|
{ mode = 'n', keys = 'z' },
|
||||||
|
},
|
||||||
|
clues = {
|
||||||
|
miniclue.gen_clues.g(),
|
||||||
|
miniclue.gen_clues.marks(),
|
||||||
|
miniclue.gen_clues.registers(),
|
||||||
|
miniclue.gen_clues.windows({ submode_resize = true }),
|
||||||
|
miniclue.gen_clues.z(),
|
||||||
|
{ mode = 'n', keys = '<Leader>f', desc = '+find' },
|
||||||
|
{ mode = 'n', keys = '<Leader>s', desc = '+search' },
|
||||||
|
{ mode = 'n', keys = '<Leader>t', desc = '+terminal' },
|
||||||
|
{ mode = 'n', keys = '<Leader>u', desc = '+ui' },
|
||||||
|
{ mode = 'n', keys = '<Leader>l', desc = '+lsp' },
|
||||||
|
{ mode = 'n', keys = '<Leader>x', desc = '+trouble' },
|
||||||
|
{ mode = 'n', keys = '<Leader>!', desc = 'shell' },
|
||||||
|
{ mode = 'v', keys = '<Leader>!', desc = 'shell' },
|
||||||
|
{ mode = 'n', keys = '<Leader>e', desc = 'yazi' },
|
||||||
|
},
|
||||||
|
window = { delay = 300 },
|
||||||
|
})
|
||||||
|
'';
|
||||||
|
|
||||||
|
vim.mini = {
|
||||||
|
ai.enable = true;
|
||||||
|
starter = {
|
||||||
|
enable = true;
|
||||||
|
setupOpts = {
|
||||||
|
header = ''
|
||||||
|
⣟⣯⣟⣯⡇⠀⣿⢩⣛⡼⣏⠀⠈⠋⠀⣈⡷⣙⢎⡳⣙⢮⣙⢮⣙⢎⡳⣙⢾⣿
|
||||||
|
⢿⡾⣽⡞⣷⣤⣏⡳⡜⡼⠗⠁⢀⠀⠙⢧⠳⣍⢞⡱⣭⠲⣍⠶⣩⢞⡱⡭⣾⣿
|
||||||
|
⠈⠻⠧⢿⣧⣿⠶⣵⢻⢞⡷⢲⡟⡶⢴⡭⢿⣜⣮⡱⢎⡳⣍⢞⡱⢮⡱⣳⣿⣽
|
||||||
|
⠀⣰⣶⡏⢷⣈⣿⣸⣇⣾⣸⣿⣾⣹⣆⡹⡎⡶⢇⡿⣹⢷⣾⣈⠷⣇⢷⣿⣿⣹
|
||||||
|
⣾⣻⣭⣿⣾⣿⣿⣟⣿⣿⡿⣽⡿⣿⢿⣿⣿⣿⣾⣶⣵⣾⠲⣭⢳⣞⣾⡿⣷⣿
|
||||||
|
⣿⣿⣿⣯⣷⣿⣿⠿⢝⠚⠋⠉⠉⠉⠙⠚⠛⡾⢿⣿⣻⣿⣿⣶⣏⠶⣩⠿⣿⡈
|
||||||
|
⣿⣟⣿⣻⣿⡏⠀⠀⠀⠳⡀⠀⠀⠀⠀⠰⠊⠀⠀⠈⠙⠳⣿⣿⣿⣿⣧⣻⣿⣿
|
||||||
|
⠘⢻⣿⣿⣽⡇⠈⠧⣄⠀⠀⠀⠀⠀⠀⢀⣄⡤⠴⠚⠀⠀⠀⠙⢿⣷⡿⣿⣿⣿
|
||||||
|
⠀⠠⢈⢛⣿⠀⠚⠉⠉⠱⣼⡷⠀⠀⠀⠀⠉⠉⠑⠶⠀⠀⠀⠀⠀⠻⣿⣿⣾⢿
|
||||||
|
⠀⠡⠈⠉⠹⡀⠀⠀⡄⠀⣸⡀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣯⣿⢿
|
||||||
|
⠀⠁⢶⣶⠀⢷⠀⠀⠉⠉⠀⠈⠉⠶⠆⠈⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⣿⣾⣿
|
||||||
|
⠀⠡⢸⢹⠏⡍⠓⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣺⡟⠋⠉⢹⢭⢣
|
||||||
|
⠀⠀⢸⣹⡏⠭⠭⠭⠙⣲⣦⣤⣤⣀⣀⣀⣀⣤⣤⣶⣞⠉⠙⠛⠷⢀⣀⠘⣎⠧
|
||||||
|
⢁⣈⣀⣀⢀⣀⣀⣀⣼⠟⠹⢿⣯⣟⣿⣻⡿⠿⠛⢿⣿⣦⡀⠀⠀⠀⠀⠉⠉⠘
|
||||||
|
'';
|
||||||
|
footer = "";
|
||||||
|
items = [
|
||||||
|
{
|
||||||
|
name = "files";
|
||||||
|
action = lib.mkLuaInline "function() Snacks.picker.files() end";
|
||||||
|
section = "";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "directories";
|
||||||
|
action = lib.mkLuaInline "function() Snacks.explorer() end";
|
||||||
|
section = "";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "tmp";
|
||||||
|
action = lib.mkLuaInline ''
|
||||||
|
function()
|
||||||
|
local uuid = vim.fn.system("uuidgen"):match("(%S+)")
|
||||||
|
vim.cmd("edit /tmp/" .. uuid .. ".md")
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
section = "";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "recent";
|
||||||
|
action = lib.mkLuaInline "function() Snacks.picker.recent() end";
|
||||||
|
section = "";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
comment.enable = true;
|
||||||
|
icons.enable = true;
|
||||||
|
indentscope.enable = true;
|
||||||
|
pairs.enable = true;
|
||||||
|
diff.enable = true;
|
||||||
|
git.enable = true;
|
||||||
|
jump2d.enable = true;
|
||||||
|
statusline.enable = true;
|
||||||
|
clue.enable = true;
|
||||||
|
surround.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
{lib, ...}: {
|
||||||
|
vim = {
|
||||||
|
viAlias = false;
|
||||||
|
vimAlias = true;
|
||||||
|
withNodeJs = true;
|
||||||
|
options = {
|
||||||
|
autoindent = true;
|
||||||
|
smartindent = true;
|
||||||
|
shiftwidth = 2;
|
||||||
|
foldlevel = 99;
|
||||||
|
foldcolumn = "auto:1";
|
||||||
|
mousescroll = "ver:1,hor:1";
|
||||||
|
mousemoveevent = true;
|
||||||
|
fillchars = "eob:‿,fold: ,foldopen:▼,foldsep:⸽,foldclose:⏵";
|
||||||
|
signcolumn = "yes";
|
||||||
|
tabstop = 2;
|
||||||
|
softtabstop = 2;
|
||||||
|
wrap = false;
|
||||||
|
};
|
||||||
|
globals.navic_silence = true;
|
||||||
|
clipboard = {
|
||||||
|
enable = true;
|
||||||
|
registers = "unnamedplus";
|
||||||
|
};
|
||||||
|
luaConfigRC.osc52-clipboard = ''
|
||||||
|
vim.g.clipboard = {
|
||||||
|
name = 'OSC 52',
|
||||||
|
copy = {
|
||||||
|
['+'] = require('vim.ui.clipboard.osc52').copy '+',
|
||||||
|
['*'] = require('vim.ui.clipboard.osc52').copy '*',
|
||||||
|
},
|
||||||
|
paste = {
|
||||||
|
['+'] = require('vim.ui.clipboard.osc52').paste '+',
|
||||||
|
['*'] = require('vim.ui.clipboard.osc52').paste '*',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
theme = {
|
||||||
|
enable = true;
|
||||||
|
name = lib.mkForce "catppuccin";
|
||||||
|
style = lib.mkForce "mocha";
|
||||||
|
transparent = lib.mkForce true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,162 @@
|
|||||||
|
{
|
||||||
|
vim = {
|
||||||
|
utility = {
|
||||||
|
snacks-nvim = {
|
||||||
|
setupOpts = {
|
||||||
|
picker.enabled = true;
|
||||||
|
explorer.enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
keymaps = [
|
||||||
|
# Top Pickers & Explorer
|
||||||
|
{
|
||||||
|
key = "<leader> ";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.smart()<cr>";
|
||||||
|
desc = "Smart Find Files";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>e";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.explorer()<cr>";
|
||||||
|
desc = "File Explorer";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>/";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.lines()<cr>";
|
||||||
|
desc = "Buffer Lines";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Find
|
||||||
|
{
|
||||||
|
key = "<leader>fb";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.buffers()<cr>";
|
||||||
|
desc = "Buffers";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>ff";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.files()<cr>";
|
||||||
|
desc = "Find Files";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>fp";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.projects()<cr>";
|
||||||
|
desc = "Projects";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>fr";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.recent()<cr>";
|
||||||
|
desc = "Recent";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>f:";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.command_history()<cr>";
|
||||||
|
desc = "Command History";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>fn";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.notifications()<cr>";
|
||||||
|
desc = "Notification History";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Grep
|
||||||
|
{
|
||||||
|
key = "<leader>sg";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.grep()<cr>";
|
||||||
|
desc = "Grep";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>st";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.todo_comments()<cr>";
|
||||||
|
desc = "Todos";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>sw";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.grep_word()<cr>";
|
||||||
|
desc = "Visual selection or word";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>sr";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>nohlsearch<cr>";
|
||||||
|
desc = "Reset search";
|
||||||
|
}
|
||||||
|
|
||||||
|
# LSP
|
||||||
|
{
|
||||||
|
key = "gd";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.lsp_definitions()<cr>";
|
||||||
|
desc = "Goto Definition";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "gD";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.lsp_declarations()<cr>";
|
||||||
|
desc = "Goto Declaration";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "gr";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.lsp_references()<cr>";
|
||||||
|
desc = "References";
|
||||||
|
nowait = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "gI";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.lsp_implementations()<cr>";
|
||||||
|
desc = "Goto Implementation";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "gy";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.lsp_type_definitions()<cr>";
|
||||||
|
desc = "Goto Type Definition";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>ss";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.lsp_symbols()<cr>";
|
||||||
|
desc = "LSP Symbols";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>sS";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua Snacks.picker.lsp_workspace_symbols()<cr>";
|
||||||
|
desc = "LSP Workspace Symbols";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
vim.utility.snacks-nvim = {
|
||||||
|
enable = true;
|
||||||
|
setupOpts = {
|
||||||
|
quickfile.enabled = true;
|
||||||
|
statuscolumn.enabled = true;
|
||||||
|
zen.enabled = true;
|
||||||
|
bufdelete.enabled = true;
|
||||||
|
gitsigns.enabled = true;
|
||||||
|
animate.enabled = true;
|
||||||
|
lazygit = {
|
||||||
|
enabled = true;
|
||||||
|
configure = false;
|
||||||
|
};
|
||||||
|
terminal.enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
vim = {
|
||||||
|
luaConfigRC.remove-todo-keymaps = ''
|
||||||
|
vim.keymap.del("n", "<leader>tdq")
|
||||||
|
vim.keymap.del("n", "<leader>tdt")
|
||||||
|
'';
|
||||||
|
undoFile.enable = true;
|
||||||
|
notes.todo-comments.enable = true;
|
||||||
|
|
||||||
|
autocomplete = {
|
||||||
|
nvim-cmp = {
|
||||||
|
enable = true;
|
||||||
|
sources = {
|
||||||
|
buffer = "[Buffer]";
|
||||||
|
path = "[Path]";
|
||||||
|
};
|
||||||
|
sourcePlugins = [
|
||||||
|
pkgs.vimPlugins.cmp-cmdline
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
snippets.luasnip.enable = true;
|
||||||
|
ui = {
|
||||||
|
noice.enable = true;
|
||||||
|
colorizer.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
visuals = {
|
||||||
|
rainbow-delimiters.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
extraPlugins = {
|
||||||
|
sttr-nvim = {
|
||||||
|
package = pkgs.vimUtils.buildVimPlugin {
|
||||||
|
name = "sttr-nvim";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "anotherhadi";
|
||||||
|
repo = "sttr.nvim";
|
||||||
|
rev = "b41f2f51372222e23efbe5df9d72391cd933d4d1";
|
||||||
|
hash = "sha256-JPv0NNNUUNPNJM5LHYjcmTvilbOKB3OxI2Q6wxVbTks=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
setup = ''
|
||||||
|
require("sttr").setup()
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
jwt-tui-nvim = {
|
||||||
|
package = pkgs.vimUtils.buildVimPlugin {
|
||||||
|
name = "jwt-tui-nvim";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "anotherhadi";
|
||||||
|
repo = "jwt-tui.nvim";
|
||||||
|
rev = "c5100cb2cdfaf333014076a1a5c4c6a778bf3983";
|
||||||
|
hash = "sha256-qnQYZuQwyWkezhuyOorM67KBtatUboubofuT9A6McJI=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
setup = ''
|
||||||
|
require("jwt-tui").setup()
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
pkgs-stable,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs-stable; [
|
||||||
|
# I love TUIs
|
||||||
|
caligula # User-friendly, lightweight TUI for disk imaging (ISO, USB BOOT)
|
||||||
|
dysk # A terminal-based disk usage analyzer
|
||||||
|
wikiman # Offline search engine for manual pages (arch wiki, tldr)
|
||||||
|
tealdeer # Fast tldr client
|
||||||
|
sttr # Minimalist "cyberchef" like. Cross-platform, cli app to perform various operations on string
|
||||||
|
wiremix # Simple TUI mixer for PipeWire
|
||||||
|
slides # A terminal-based presentation tool that allows you to create and deliver presentations directly from the command line
|
||||||
|
pom # Pomodoro timer in your terminal
|
||||||
|
tabiew # A terminal-based CSV viewer and manipulator
|
||||||
|
jless # A pager for JSON
|
||||||
|
pkgs.wifitui # TUI for managing wifi
|
||||||
|
pkgs.nur.repos.anotherhadi.usbguard-tui # TUI for managing USBGuard rules
|
||||||
|
pkgs.nur.repos.anotherhadi.sheets # Terminal based spreadsheet tool
|
||||||
|
|
||||||
|
# I love CLIs
|
||||||
|
httpie # Command-line HTTP client, a user-friendly cURL replacement
|
||||||
|
gh # GitHub
|
||||||
|
gh-dash # A terminal dashboard for GitHub
|
||||||
|
figlet # Transform text into ASCII art
|
||||||
|
pastel # Command-line tool to generate, analyze, convert and manipulate colors
|
||||||
|
imagemagick # Image manipulation tool
|
||||||
|
chafa # Image to ANSI/Unicode converter and more.
|
||||||
|
|
||||||
|
# Just cool
|
||||||
|
tty-solitaire
|
||||||
|
bastet
|
||||||
|
peaclock
|
||||||
|
cbonsai
|
||||||
|
pipes
|
||||||
|
cmatrix
|
||||||
|
fastfetch
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,8 +1,11 @@
|
|||||||
|
# Import all shell configurations
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./fzf.nix
|
./fzf.nix
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
./starship.nix
|
./starship.nix
|
||||||
./zoxide.nix
|
./zoxide.nix
|
||||||
|
./eza.nix
|
||||||
|
./direnv.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{pkgs-stable, ...}: {
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs-stable.direnv;
|
||||||
|
nix-direnv = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs-stable.nix-direnv;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
# Eza is a ls replacement
|
||||||
|
{pkgs-stable, ...}: {
|
||||||
|
programs.eza = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs-stable.eza;
|
||||||
|
icons = "auto";
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--group-directories-first"
|
||||||
|
"--no-quotes"
|
||||||
|
"--icons=always"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
# Fzf is a general-purpose command-line fuzzy finder.
|
||||||
|
{
|
||||||
|
pkgs-stable,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
accent = "#" + config.lib.stylix.colors.base0D;
|
||||||
|
foreground = "#" + config.lib.stylix.colors.base05;
|
||||||
|
muted = "#" + config.lib.stylix.colors.base03;
|
||||||
|
in {
|
||||||
|
programs.fzf = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs-stable.fzf;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
colors = lib.mkForce {
|
||||||
|
"fg+" = accent;
|
||||||
|
"bg+" = "-1";
|
||||||
|
"fg" = foreground;
|
||||||
|
"bg" = "-1";
|
||||||
|
"prompt" = muted;
|
||||||
|
"pointer" = accent;
|
||||||
|
};
|
||||||
|
defaultOptions = [
|
||||||
|
"--margin=1"
|
||||||
|
"--layout=reverse"
|
||||||
|
"--border=none"
|
||||||
|
"--info='hidden'"
|
||||||
|
"--header=''"
|
||||||
|
"--prompt='/ '"
|
||||||
|
"-i"
|
||||||
|
"--no-bold"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
# starship is a minimal, fast, and extremely customizable prompt for any shell!
|
||||||
|
{
|
||||||
|
pkgs-stable,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
accent = "#${config.lib.stylix.colors.base0D}";
|
||||||
|
background-alt = "#${config.lib.stylix.colors.base01}";
|
||||||
|
in {
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs-stable.starship;
|
||||||
|
settings = {
|
||||||
|
add_newline = true;
|
||||||
|
format = lib.concatStrings [
|
||||||
|
"$nix_shell"
|
||||||
|
"$hostname"
|
||||||
|
"$directory"
|
||||||
|
"$git_branch"
|
||||||
|
"$git_state"
|
||||||
|
"$git_status"
|
||||||
|
"$character"
|
||||||
|
];
|
||||||
|
directory = {
|
||||||
|
style = accent;
|
||||||
|
};
|
||||||
|
|
||||||
|
character = {
|
||||||
|
success_symbol = "[❯](${accent})";
|
||||||
|
error_symbol = "[❯](red)";
|
||||||
|
vimcmd_symbol = "[❮](cyan)";
|
||||||
|
};
|
||||||
|
|
||||||
|
nix_shell = {
|
||||||
|
format = "[$symbol]($style) ";
|
||||||
|
symbol = "🐚";
|
||||||
|
style = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
git_branch = {
|
||||||
|
symbol = "[](${background-alt}) ";
|
||||||
|
style = "fg:${accent} bg:${background-alt}";
|
||||||
|
format = "on [$symbol$branch]($style)[](${background-alt}) ";
|
||||||
|
};
|
||||||
|
|
||||||
|
git_status = {
|
||||||
|
format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218)($ahead_behind$stashed)]($style)";
|
||||||
|
style = "cyan";
|
||||||
|
conflicted = "";
|
||||||
|
renamed = "";
|
||||||
|
deleted = "";
|
||||||
|
stashed = "≡";
|
||||||
|
};
|
||||||
|
|
||||||
|
git_state = {
|
||||||
|
format = "([$state( $progress_current/$progress_total)]($style)) ";
|
||||||
|
style = "bright-black";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
# Zoxide is a cd replacement
|
||||||
|
{pkgs-stable, ...}: {
|
||||||
|
programs.zoxide = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs-stable.zoxide;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,198 @@
|
|||||||
|
# My shell configuration
|
||||||
|
{
|
||||||
|
pkgs-stable,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs-stable; [
|
||||||
|
bat
|
||||||
|
ripgrep
|
||||||
|
];
|
||||||
|
|
||||||
|
home = {
|
||||||
|
sessionPath = ["$HOME/go/bin"];
|
||||||
|
sessionVariables = {
|
||||||
|
COLORTERM = "truecolor";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
autosuggestion.enable = true;
|
||||||
|
syntaxHighlighting = {
|
||||||
|
enable = true;
|
||||||
|
highlighters = [
|
||||||
|
"main"
|
||||||
|
"brackets"
|
||||||
|
"pattern"
|
||||||
|
"regexp"
|
||||||
|
"root"
|
||||||
|
"line"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
historySubstringSearch.enable = true;
|
||||||
|
|
||||||
|
history = {
|
||||||
|
ignoreDups = true;
|
||||||
|
save = 10000;
|
||||||
|
size = 10000;
|
||||||
|
};
|
||||||
|
|
||||||
|
profileExtra = lib.optionalString (config.home.sessionPath != []) ''
|
||||||
|
export PATH="$PATH''${PATH:+:}${lib.concatStringsSep ":" config.home.sessionPath}"
|
||||||
|
'';
|
||||||
|
|
||||||
|
shellAliases = {
|
||||||
|
# Change default
|
||||||
|
vim = "nvim";
|
||||||
|
vi = "nvim";
|
||||||
|
cd = "z";
|
||||||
|
ls = "eza --icons=always --no-quotes";
|
||||||
|
tree = "eza --icons=always --tree --no-quotes";
|
||||||
|
cat = "bat --theme=base16 --color=always --paging=never --tabs=2 --wrap=never --plain";
|
||||||
|
mkdir = "mkdir -p";
|
||||||
|
|
||||||
|
# Shortcuts
|
||||||
|
spt = "spotatui";
|
||||||
|
v = "nvim";
|
||||||
|
c = "clear";
|
||||||
|
e = "exit";
|
||||||
|
open = "${pkgs-stable.xdg-utils}/bin/xdg-open";
|
||||||
|
|
||||||
|
notes = "nvim ~/notes/index.md --cmd 'cd ~/notes' -c ':lua Snacks.picker.smart()'";
|
||||||
|
nix-shell = "nix-shell --command zsh";
|
||||||
|
|
||||||
|
# git
|
||||||
|
g = "lazygit";
|
||||||
|
ga = "git add";
|
||||||
|
gc = "git commit";
|
||||||
|
gcu = "git add . && git commit -m 'Update'";
|
||||||
|
gp = "git push";
|
||||||
|
gpl = "git pull";
|
||||||
|
gs = "git status";
|
||||||
|
gd = "git diff";
|
||||||
|
gco = "git checkout";
|
||||||
|
gcb = "git checkout -b";
|
||||||
|
gbr = "git branch";
|
||||||
|
grs = "git reset HEAD~1";
|
||||||
|
grh = "git reset --hard HEAD~1";
|
||||||
|
gaa = "git add .";
|
||||||
|
gcm = "git commit -m";
|
||||||
|
|
||||||
|
# Typo
|
||||||
|
clera = "clear";
|
||||||
|
celar = "clear";
|
||||||
|
claer = "clear";
|
||||||
|
sl = "ls";
|
||||||
|
};
|
||||||
|
|
||||||
|
initContent =
|
||||||
|
# bash
|
||||||
|
''
|
||||||
|
bindkey -e
|
||||||
|
|
||||||
|
# Open command in VIM
|
||||||
|
autoload -Uz edit-command-line
|
||||||
|
zle -N edit-command-line
|
||||||
|
bindkey '^X' edit-command-line
|
||||||
|
|
||||||
|
# Suffix Aliases
|
||||||
|
alias -s {nix,md,txt,yml,yaml,go}=nvim
|
||||||
|
alias -s {json,jsonl}=jless
|
||||||
|
alias -s {csv,tsv,parquet,pqt,arrow,db,sqlite,xls,xlsx,xlsm,xlsb,fwf}=tw
|
||||||
|
alias -s {png,jpg,jpeg,gif,pdf}=xdg-open
|
||||||
|
|
||||||
|
# 3. Global Aliases (expanded anywhere in the command, not just at the start)
|
||||||
|
alias -g G="| grep"
|
||||||
|
alias -g L="| less"
|
||||||
|
alias -g V="| nvim"
|
||||||
|
alias -g H="| head"
|
||||||
|
alias -g T="| tail"
|
||||||
|
alias -g JQ="| jq"
|
||||||
|
alias -g C="| wl-copy"
|
||||||
|
alias -g NE="2>/dev/null"
|
||||||
|
alias -g ND=">/dev/null"
|
||||||
|
alias -g NUL=">/dev/null 2>&1"
|
||||||
|
|
||||||
|
# search history based on what's typed in the prompt
|
||||||
|
autoload -U history-search-end
|
||||||
|
zle -N history-beginning-search-backward-end history-search-end
|
||||||
|
zle -N history-beginning-search-forward-end history-search-end
|
||||||
|
bindkey "^[OA" history-beginning-search-backward-end
|
||||||
|
bindkey "^[OB" history-beginning-search-forward-end
|
||||||
|
|
||||||
|
# General completion behavior
|
||||||
|
zstyle ':completion:*' completer _extensions _complete _approximate
|
||||||
|
|
||||||
|
# Use cache
|
||||||
|
zstyle ':completion:*' use-cache on
|
||||||
|
zstyle ':completion:*' cache-path "$XDG_CACHE_HOME/zsh/.zcompcache"
|
||||||
|
|
||||||
|
# Complete the alias
|
||||||
|
zstyle ':completion:*' complete true
|
||||||
|
|
||||||
|
# Autocomplete options
|
||||||
|
zstyle ':completion:*' complete-options true
|
||||||
|
|
||||||
|
# Completion matching control
|
||||||
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
||||||
|
zstyle ':completion:*' keep-prefix true
|
||||||
|
|
||||||
|
# Group matches and describe
|
||||||
|
zstyle ':completion:*' menu select
|
||||||
|
zstyle ':completion:*' list-grouped false
|
||||||
|
zstyle ':completion:*' list-separator '''
|
||||||
|
zstyle ':completion:*' group-name '''
|
||||||
|
zstyle ':completion:*' verbose yes
|
||||||
|
zstyle ':completion:*:matches' group 'yes'
|
||||||
|
zstyle ':completion:*:warnings' format '%F{red}%B-- No match for: %d --%b%f'
|
||||||
|
zstyle ':completion:*:messages' format '%d'
|
||||||
|
zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
|
||||||
|
zstyle ':completion:*:descriptions' format '[%d]'
|
||||||
|
|
||||||
|
# Colors
|
||||||
|
zstyle ':completion:*' list-colors ''${(s.:.)LS_COLORS}
|
||||||
|
|
||||||
|
# Case insensitive tab completion
|
||||||
|
zstyle ':completion:*:*:cd:*' tag-order local-directories directory-stack path-directories
|
||||||
|
zstyle ':completion:*:*:cd:*:directory-stack' menu yes select
|
||||||
|
zstyle ':completion:*:-tilde-:*' group-order 'named-directories' 'path-directories' 'users' 'expand'
|
||||||
|
zstyle ':completion:*:*:-command-:*:*' group-order aliases builtins functions commands
|
||||||
|
zstyle ':completion:*' special-dirs true
|
||||||
|
zstyle ':completion:*' squeeze-slashes true
|
||||||
|
|
||||||
|
# Sort
|
||||||
|
zstyle ':completion:*' sort false
|
||||||
|
zstyle ":completion:*:git-checkout:*" sort false
|
||||||
|
zstyle ':completion:*' file-sort modification
|
||||||
|
zstyle ':completion:*:eza' sort false
|
||||||
|
zstyle ':completion:complete:*:options' sort false
|
||||||
|
zstyle ':completion:files' sort false
|
||||||
|
|
||||||
|
autoload zmv
|
||||||
|
|
||||||
|
hash -d dl=~/Downloads
|
||||||
|
hash -d ni=~/.config/nixos
|
||||||
|
hash -d de=~/dev
|
||||||
|
hash -d cy=~/Cyber
|
||||||
|
|
||||||
|
${lib.optionalString config.services.gpg-agent.enable ''
|
||||||
|
gnupg_path=$(ls $XDG_RUNTIME_DIR/gnupg)
|
||||||
|
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gnupg/$gnupg_path/S.gpg-agent.ssh"
|
||||||
|
''}
|
||||||
|
|
||||||
|
# Allow foot to pipe command output
|
||||||
|
function precmd {
|
||||||
|
if ! builtin zle; then
|
||||||
|
print -n "\e]133;D\e\\"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
function preexec {
|
||||||
|
print -n "\e]133;C\e\\"
|
||||||
|
}
|
||||||
|
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,104 @@
|
|||||||
|
# Spotatui is a terminal user interface for Spotify, written in Rust. It allows you to control your Spotify playback and manage your playlists directly from the terminal.
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs-stable,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
c = config.lib.stylix.colors;
|
||||||
|
rgb = base: "${c."${base}-rgb-r"}, ${c."${base}-rgb-g"}, ${c."${base}-rgb-b"}";
|
||||||
|
in {
|
||||||
|
home.packages = with pkgs-stable; [
|
||||||
|
spotatui
|
||||||
|
];
|
||||||
|
|
||||||
|
home.file.".config/spotatui/config.yml".text = ''
|
||||||
|
keybindings:
|
||||||
|
back: q
|
||||||
|
next_page: ctrl-d
|
||||||
|
previous_page: ctrl-u
|
||||||
|
jump_to_start: ctrl-a
|
||||||
|
jump_to_end: ctrl-e
|
||||||
|
jump_to_album: a
|
||||||
|
jump_to_artist_album: A
|
||||||
|
jump_to_context: o
|
||||||
|
manage_devices: d
|
||||||
|
decrease_volume: '-'
|
||||||
|
increase_volume: +
|
||||||
|
toggle_playback: space
|
||||||
|
seek_backwards: <
|
||||||
|
seek_forwards: '>'
|
||||||
|
next_track: n
|
||||||
|
previous_track: p
|
||||||
|
force_previous_track: P
|
||||||
|
help: '?'
|
||||||
|
shuffle: ctrl-s
|
||||||
|
repeat: ctrl-r
|
||||||
|
search: /
|
||||||
|
submit: enter
|
||||||
|
copy_song_url: c
|
||||||
|
copy_album_url: C
|
||||||
|
audio_analysis: v
|
||||||
|
lyrics_view: B
|
||||||
|
cover_art_view: G
|
||||||
|
add_item_to_queue: z
|
||||||
|
show_queue: Q
|
||||||
|
open_settings: alt-,
|
||||||
|
save_settings: alt-s
|
||||||
|
listening_party: ctrl-p
|
||||||
|
like_track: F
|
||||||
|
behavior:
|
||||||
|
seek_milliseconds: 5000
|
||||||
|
volume_increment: 10
|
||||||
|
volume_percent: 100
|
||||||
|
tick_rate_milliseconds: 16
|
||||||
|
enable_text_emphasis: true
|
||||||
|
show_loading_indicator: true
|
||||||
|
enforce_wide_search_bar: true
|
||||||
|
enable_global_song_count: false
|
||||||
|
disable_mouse_inputs: false
|
||||||
|
enable_discord_rpc: false
|
||||||
|
discord_rpc_client_id: null
|
||||||
|
enable_announcements: false
|
||||||
|
announcement_feed_url: null
|
||||||
|
seen_announcement_ids:
|
||||||
|
- 2026-05-19-sonos-help-wanted
|
||||||
|
- 2026-02-27-major-refactor-complete
|
||||||
|
shuffle_enabled: false
|
||||||
|
liked_icon: ♥
|
||||||
|
shuffle_icon: 🔀
|
||||||
|
repeat_track_icon: 🔂
|
||||||
|
repeat_context_icon: 🔁
|
||||||
|
playing_icon: ▶
|
||||||
|
paused_icon: ⏸
|
||||||
|
set_window_title: true
|
||||||
|
visualizer_style: Equalizer
|
||||||
|
dismissed_announcements: []
|
||||||
|
relay_server_url: wss://spotatui-party.spotatui.workers.dev/ws
|
||||||
|
stop_after_current_track: false
|
||||||
|
sidebar_width_percent: 20
|
||||||
|
playbar_height_rows: 6
|
||||||
|
library_height_percent: 30
|
||||||
|
startup_behavior: continue
|
||||||
|
disable_auto_update: true
|
||||||
|
auto_update_delay: '0'
|
||||||
|
keepawake_enabled: true
|
||||||
|
theme:
|
||||||
|
preset: Custom
|
||||||
|
active: ${rgb "base0D"}
|
||||||
|
banner: ${rgb "base0C"}
|
||||||
|
error_border: ${rgb "base08"}
|
||||||
|
error_text: ${rgb "base08"}
|
||||||
|
hint: ${rgb "base0A"}
|
||||||
|
hovered: ${rgb "base0E"}
|
||||||
|
inactive: ${rgb "base03"}
|
||||||
|
playbar_background: Reset
|
||||||
|
playbar_progress: ${rgb "base0D"}
|
||||||
|
playbar_progress_text: ${rgb "base05"}
|
||||||
|
playbar_text: Reset
|
||||||
|
selected: ${rgb "base0D"}
|
||||||
|
text: Reset
|
||||||
|
background: Reset
|
||||||
|
header: Reset
|
||||||
|
highlighted_lyrics: ${rgb "base0B"}
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -0,0 +1,129 @@
|
|||||||
|
{pkgs, pkgs-stable, ...}: {
|
||||||
|
programs.yazi = {
|
||||||
|
enable = true;
|
||||||
|
shellWrapperName = "y";
|
||||||
|
|
||||||
|
plugins = {
|
||||||
|
git = {
|
||||||
|
package = pkgs.yaziPlugins.git;
|
||||||
|
setup = true;
|
||||||
|
};
|
||||||
|
ouch = pkgs.yaziPlugins.ouch;
|
||||||
|
piper = pkgs.yaziPlugins.piper;
|
||||||
|
convert = pkgs.yaziPlugins.convert;
|
||||||
|
"jump-to-char" = pkgs.yaziPlugins."jump-to-char";
|
||||||
|
"wl-clipboard" = pkgs.yaziPlugins."wl-clipboard";
|
||||||
|
"batch-rename-gui" = pkgs.yaziPlugins.mkYaziPlugin {
|
||||||
|
pname = "batch-rename-gui.yazi";
|
||||||
|
version = "0-unstable-2025-07-08";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "pakhromov";
|
||||||
|
repo = "batch-rename-gui.yazi";
|
||||||
|
rev = "5c2d5aa349948b6ab405a171541faab44751f6a5";
|
||||||
|
hash = "sha256-3RviPY3WOyYi5GWXWRYMWp6VLxCe5cuJX7Kb7AyWxLE=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
settings.mgr.ratio = [0 4 3];
|
||||||
|
|
||||||
|
settings.plugin = {
|
||||||
|
prepend_fetchers = [
|
||||||
|
{
|
||||||
|
url = "*";
|
||||||
|
run = "git";
|
||||||
|
group = "git";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
url = "*/";
|
||||||
|
run = "git";
|
||||||
|
group = "git";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
prepend_previewers = [
|
||||||
|
{
|
||||||
|
url = "*.md";
|
||||||
|
run = ''piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
prepend_openers = [
|
||||||
|
{
|
||||||
|
url = "*.{zip,tar,gz,bz2,xz,7z,rar}";
|
||||||
|
run = "ouch";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
keymap.mgr.prepend_keymap = [
|
||||||
|
{
|
||||||
|
on = ["C"];
|
||||||
|
run = "plugin ouch";
|
||||||
|
desc = "Compress";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["X"];
|
||||||
|
run = "plugin ouch --args=extract";
|
||||||
|
desc = "Extract";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["c" "p"];
|
||||||
|
run = "plugin convert -- --extension='png'";
|
||||||
|
desc = "Convert to PNG";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["c" "j"];
|
||||||
|
run = "plugin convert -- --extension='jpg'";
|
||||||
|
desc = "Convert to JPG";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["c" "w"];
|
||||||
|
run = "plugin convert -- --extension='webp'";
|
||||||
|
desc = "Convert to WebP";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["M"];
|
||||||
|
run = ''shell 'exiftool "$@" | less' --block'';
|
||||||
|
desc = "Show metadata";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["T"];
|
||||||
|
run = "plugin toggle-parent";
|
||||||
|
desc = "Toggle parent pane";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["F"];
|
||||||
|
run = "plugin jump-to-char";
|
||||||
|
desc = "Jump to char";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["Y"];
|
||||||
|
run = "plugin wl-clipboard";
|
||||||
|
desc = "Copy to clipboard (Wayland)";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = ["B"];
|
||||||
|
run = "plugin batch-rename-gui";
|
||||||
|
desc = "Batch rename";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs-stable; [glow ouch hexyl exiftool wl-clipboard];
|
||||||
|
|
||||||
|
xdg.configFile."yazi/plugins/toggle-parent.yazi/main.lua".text = ''
|
||||||
|
--- @sync entry
|
||||||
|
local RESTORE_WIDTH = 1
|
||||||
|
return {
|
||||||
|
entry = function(st, job)
|
||||||
|
local r = rt.mgr.ratio
|
||||||
|
if r.parent == 0 then
|
||||||
|
rt.mgr.ratio = { st.width or RESTORE_WIDTH, r.current, r.preview }
|
||||||
|
else
|
||||||
|
st.width = r.parent
|
||||||
|
rt.mgr.ratio = { 0, r.current, r.preview }
|
||||||
|
end
|
||||||
|
ya.emit("app:resize", {})
|
||||||
|
end
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -1,278 +0,0 @@
|
|||||||
{ config, ... }: {
|
|
||||||
|
|
||||||
imports = [ ./duckduckgo-colorscheme.nix ];
|
|
||||||
|
|
||||||
programs.qutebrowser = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
searchEngines = {
|
|
||||||
"DEFAULT" = "https://duckduckgo.com/?q={}&ia=web";
|
|
||||||
"d" = "https://duckduckgo.com/?q={}&ia=web";
|
|
||||||
"g" = "https://google.com/search?q={}";
|
|
||||||
"y" = "https://youtube.com/results?search_query={}";
|
|
||||||
"n" = "https://mynixos.com/search?q={}";
|
|
||||||
"nixo" = "https://search.nixos.org/options?channel=unstable&query={}";
|
|
||||||
"nixp" = "https://search.nixos.org/packages?channel=unstable&query={}";
|
|
||||||
};
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
|
|
||||||
url = {
|
|
||||||
default_page = "https://duckduckgo.com";
|
|
||||||
start_pages = [ "https://duckduckgo.com" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
colors = {
|
|
||||||
tabs = {
|
|
||||||
odd.bg = "#${config.theme.colors.bg}";
|
|
||||||
odd.fg = "#${config.theme.colors.fg}";
|
|
||||||
even.bg = "#${config.theme.colors.bg}";
|
|
||||||
even.fg = "#${config.theme.colors.fg}";
|
|
||||||
selected.odd.bg = "#${config.theme.colors.primary-bg}";
|
|
||||||
selected.odd.fg = "#${config.theme.colors.primary-fg}";
|
|
||||||
selected.even.bg = "#${config.theme.colors.primary-bg}";
|
|
||||||
selected.even.fg = "#${config.theme.colors.primary-fg}";
|
|
||||||
indicator.error = "#${config.theme.colors.color1}";
|
|
||||||
indicator.start = "#${config.theme.colors.alt-bg}";
|
|
||||||
indicator.stop = "#${config.theme.colors.alt-bg}";
|
|
||||||
};
|
|
||||||
|
|
||||||
hints = {
|
|
||||||
bg = "#${config.theme.colors.alt-bg}";
|
|
||||||
fg = "#${config.theme.colors.alt-fg}";
|
|
||||||
match.fg = "#${config.theme.colors.bg}";
|
|
||||||
};
|
|
||||||
|
|
||||||
completion = {
|
|
||||||
category.bg = "#${config.theme.colors.bg}";
|
|
||||||
category.fg = "#${config.theme.colors.fg}";
|
|
||||||
category.border.top = "#${config.theme.colors.bg}";
|
|
||||||
category.border.bottom = "#${config.theme.colors.bg}";
|
|
||||||
|
|
||||||
odd.bg = "#${config.theme.colors.bg}";
|
|
||||||
even.bg = "#${config.theme.colors.bg}";
|
|
||||||
|
|
||||||
fg = [ "#FFFFFF" "#FFFFFF" "#FFFFFF" ];
|
|
||||||
|
|
||||||
match.fg = "#${config.theme.colors.primary-bg}";
|
|
||||||
|
|
||||||
item.selected.bg = "#${config.theme.colors.primary-bg}";
|
|
||||||
item.selected.border.top = "#${config.theme.colors.primary-bg}";
|
|
||||||
item.selected.border.bottom = "#${config.theme.colors.primary-bg}";
|
|
||||||
item.selected.fg = "#${config.theme.colors.primary-fg}";
|
|
||||||
item.selected.match.fg = "#${config.theme.colors.primary-fg}";
|
|
||||||
};
|
|
||||||
|
|
||||||
statusbar = {
|
|
||||||
normal.bg = "#${config.theme.colors.bg}";
|
|
||||||
normal.fg = "#${config.theme.colors.fg}";
|
|
||||||
private.bg = "#${config.theme.colors.bg}";
|
|
||||||
private.fg = "#${config.theme.colors.fg}";
|
|
||||||
command = {
|
|
||||||
bg = "#${config.theme.colors.alt-bg}";
|
|
||||||
fg = "#${config.theme.colors.alt-fg}";
|
|
||||||
private.bg = "#${config.theme.colors.alt-bg}";
|
|
||||||
private.fg = "#${config.theme.colors.alt-fg}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
messages = {
|
|
||||||
info = {
|
|
||||||
bg = "#${config.theme.colors.alt-bg}";
|
|
||||||
fg = "#${config.theme.colors.alt-fg}";
|
|
||||||
border = "#${config.theme.colors.alt-bg}";
|
|
||||||
};
|
|
||||||
|
|
||||||
error = {
|
|
||||||
bg = "#${config.theme.colors.color1}";
|
|
||||||
fg = "#${config.theme.colors.alt-fg}";
|
|
||||||
border = "#${config.theme.colors.color1}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
fonts = { default_family = "#${config.theme.font}"; };
|
|
||||||
|
|
||||||
completion = {
|
|
||||||
height = "30%";
|
|
||||||
open_categories = [ "history" ];
|
|
||||||
scrollbar = {
|
|
||||||
padding = 0;
|
|
||||||
width = 0;
|
|
||||||
};
|
|
||||||
show = "always";
|
|
||||||
shrink = true;
|
|
||||||
timestamp_format = "";
|
|
||||||
web_history.max_items = 7;
|
|
||||||
};
|
|
||||||
|
|
||||||
content = {
|
|
||||||
autoplay = false;
|
|
||||||
javascript.clipboard = "access";
|
|
||||||
pdfjs = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
downloads = {
|
|
||||||
position = "bottom";
|
|
||||||
remove_finished = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
fileselect = {
|
|
||||||
handler = "external";
|
|
||||||
multiple_files.command = [
|
|
||||||
"alacritty"
|
|
||||||
"--embed"
|
|
||||||
"$(xdotool getactivewindow)"
|
|
||||||
"-e"
|
|
||||||
"lf"
|
|
||||||
"-selection-path"
|
|
||||||
"{}"
|
|
||||||
];
|
|
||||||
single_file.command = [
|
|
||||||
"alacritty"
|
|
||||||
"--embed"
|
|
||||||
"$(xdotool getactivewindow)"
|
|
||||||
"-e"
|
|
||||||
"lf"
|
|
||||||
"-selection-path"
|
|
||||||
"{}"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
hints = {
|
|
||||||
border = "none";
|
|
||||||
radius = 1;
|
|
||||||
};
|
|
||||||
|
|
||||||
scrolling = {
|
|
||||||
bar = "never";
|
|
||||||
smooth = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
statusbar = {
|
|
||||||
show = "never";
|
|
||||||
widgets = [ ];
|
|
||||||
};
|
|
||||||
|
|
||||||
tabs = {
|
|
||||||
show = "multiple";
|
|
||||||
last_close = "close";
|
|
||||||
mode_on_change = "restore";
|
|
||||||
close_mouse_button = "right";
|
|
||||||
};
|
|
||||||
|
|
||||||
zoom.default = "100%";
|
|
||||||
};
|
|
||||||
|
|
||||||
keyMappings = {
|
|
||||||
"<Super-l>" = "o";
|
|
||||||
"<Super-t>" = "O";
|
|
||||||
};
|
|
||||||
|
|
||||||
keyBindings = {
|
|
||||||
normal = {
|
|
||||||
",p" = "tab-move -";
|
|
||||||
",n" = "tab-move +";
|
|
||||||
|
|
||||||
"<Super-r>" = "config-source";
|
|
||||||
|
|
||||||
"<Super-c>" = "fake-key <Ctrl-c>";
|
|
||||||
|
|
||||||
"<Super-Up>" = "scroll-to-perc 0";
|
|
||||||
"<Super-Down>" = "scroll-to-perc";
|
|
||||||
"<Super-Left>" = "back";
|
|
||||||
"<Super-Right>" = "forward";
|
|
||||||
|
|
||||||
"<Super-n>" = "open -w";
|
|
||||||
"<Super-Shift-p>" = "open -p";
|
|
||||||
|
|
||||||
"<Super-w>" = "tab-close";
|
|
||||||
"<Super-1>" = "tab-focus 1";
|
|
||||||
"<Super-2>" = "tab-focus 2";
|
|
||||||
"<Super-3>" = "tab-focus 3";
|
|
||||||
"<Super-4>" = "tab-focus 4";
|
|
||||||
"<Super-5>" = "tab-focus 5";
|
|
||||||
"<Super-6>" = "tab-focus 6";
|
|
||||||
"<Super-7>" = "tab-focus 7";
|
|
||||||
"<Super-8>" = "tab-focus 8";
|
|
||||||
"<Super-9>" = "tab-focus 9";
|
|
||||||
"<Super-0>" = "tab-focus 10";
|
|
||||||
|
|
||||||
"gtb" = "open https://github.com/noib3";
|
|
||||||
"ttb" = "open -t https://github.com/noib3";
|
|
||||||
|
|
||||||
"gma" = "open https://mail.protonmail.com/inbox";
|
|
||||||
"tma" = "open -t https://mail.protonmail.com/inbox";
|
|
||||||
|
|
||||||
"gkp" = "open https://keep.google.com";
|
|
||||||
"tkp" = "open -t https://keep.google.com";
|
|
||||||
|
|
||||||
"grhm" =
|
|
||||||
"open https://github.com/nix-community/home-manager/find/master";
|
|
||||||
"trhm" =
|
|
||||||
"open -t https://github.com/nix-community/home-manager/find/master";
|
|
||||||
|
|
||||||
"gnv" = "open https://github.com/neovim/neovim/tree/master/src/nvim";
|
|
||||||
"tnv" = "open -t https://github.com/neovim/neovim/tree/master/src/nvim";
|
|
||||||
|
|
||||||
"gbg" = "open https://rarbgunblocked.org/torrents.php";
|
|
||||||
"tbg" = "open -t https://rarbgunblocked.org/torrents.php";
|
|
||||||
|
|
||||||
"g12ft" = "open https://12ft.io/";
|
|
||||||
"t12ft" = "open -t https://12ft.io/";
|
|
||||||
|
|
||||||
"gtra" = "open http://localhost:9091/transmission/web/";
|
|
||||||
"ttra" = "open -t http://localhost:9091/transmission/web/";
|
|
||||||
};
|
|
||||||
|
|
||||||
command = {
|
|
||||||
"<Super-w>" = "tab-close";
|
|
||||||
|
|
||||||
"<Super-c>" = "completion-item-yank";
|
|
||||||
"<Super-v>" = "fake-key --global <Ctrl-v>";
|
|
||||||
|
|
||||||
"<Super-Left>" = "rl-beginning-of-line";
|
|
||||||
"<Super-Right>" = "rl-end-of-line";
|
|
||||||
"<Alt-Backspace>" = "rl-backward-kill-word";
|
|
||||||
"<Super-Backspace>" = "rl-unix-line-discard";
|
|
||||||
};
|
|
||||||
|
|
||||||
insert = {
|
|
||||||
"<Super-w>" = "tab-close";
|
|
||||||
|
|
||||||
"<Super-c>" = "fake-key <Ctrl-c>";
|
|
||||||
"<Super-v>" = "fake-key <Ctrl-v>";
|
|
||||||
"<Super-x>" = "fake-key <Ctrl-x>";
|
|
||||||
"<Super-z>" = "fake-key <Ctrl-z>";
|
|
||||||
|
|
||||||
"<Super-Left>" = "fake-key <Home>";
|
|
||||||
"<Super-Right>" = "fake-key <End>";
|
|
||||||
"<Alt-Backspace>" = "fake-key <Ctrl-Backspace>";
|
|
||||||
"<Super-Backspace>" = "fake-key <Shift-Home><Delete>";
|
|
||||||
|
|
||||||
"<Super-1>" = "tab-focus 1";
|
|
||||||
"<Super-2>" = "tab-focus 2";
|
|
||||||
"<Super-3>" = "tab-focus 3";
|
|
||||||
"<Super-4>" = "tab-focus 4";
|
|
||||||
"<Super-5>" = "tab-focus 5";
|
|
||||||
"<Super-6>" = "tab-focus 6";
|
|
||||||
"<Super-7>" = "tab-focus 7";
|
|
||||||
"<Super-8>" = "tab-focus 8";
|
|
||||||
"<Super-9>" = "tab-focus 9";
|
|
||||||
"<Super-0>" = "tab-focus 10";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = ''
|
|
||||||
config.unbind("gm")
|
|
||||||
config.unbind("gd")
|
|
||||||
config.unbind("gb")
|
|
||||||
config.unbind("tl")
|
|
||||||
config.unbind("gt")
|
|
||||||
|
|
||||||
c.tabs.padding = {"bottom": 0, "left": 7, "right": 7, "top": 0}
|
|
||||||
|
|
||||||
config.load_autoconfig(True)
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
{ config, ... }: {
|
|
||||||
|
|
||||||
xdg.configFile."duckduckgo-colorscheme.js".text = ''
|
|
||||||
// Cookies string for your theme
|
|
||||||
const cookie = '7=${config.theme.colors.bg}; j=${config.theme.colors.bg}; 9=${config.theme.colors.fg}; aa=${config.theme.colors.alt-fg}; 8=${config.theme.colors.color7}; x=${config.theme.colors.primary-bg}; 21=${config.theme.colors.alt-bg};';
|
|
||||||
|
|
||||||
// Converts cookie string into formatted JSON
|
|
||||||
const cookieToJSON = (cookieRaw) => {
|
|
||||||
const cookieJson = {};
|
|
||||||
const items = cookieRaw.split(/[ ,]+/);
|
|
||||||
|
|
||||||
items.forEach((item) => {
|
|
||||||
const parts = item.split('=');
|
|
||||||
cookieJson[parts[0]] = parts[1];
|
|
||||||
});
|
|
||||||
|
|
||||||
return cookieJson;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Iterates over JSON, and adds to browser cookie store
|
|
||||||
const setCookies = (cookieJson) => {
|
|
||||||
Object.keys(cookieJson).forEach((key) => {
|
|
||||||
document.cookie = `''${key}=''${cookieJson [ key ]}`;
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
alert('The GitHub Dark theme will be applied.');
|
|
||||||
|
|
||||||
// Call set cookies, passing in formated cookie data
|
|
||||||
setCookies(cookieToJSON(cookie));
|
|
||||||
|
|
||||||
// All done, reload page for changes to take effect :)
|
|
||||||
location.reload();
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{ imports = [ ./scripts.nix ./nerdfetch.nix ]; }
|
|
||||||
@@ -1,372 +0,0 @@
|
|||||||
{ pkgs, config, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
homedir = config.home.homeDirectory;
|
|
||||||
|
|
||||||
nerdfetch = pkgs.writeShellScriptBin "nerdfetch" ''
|
|
||||||
ostype="$(uname)"
|
|
||||||
|
|
||||||
version=8.1.1
|
|
||||||
font=nerd
|
|
||||||
distrotype=none
|
|
||||||
osi=""
|
|
||||||
ki=""
|
|
||||||
ri=""
|
|
||||||
pi=""
|
|
||||||
ui=""
|
|
||||||
ci=""
|
|
||||||
|
|
||||||
case $1 in
|
|
||||||
"-p")
|
|
||||||
font=phosphor
|
|
||||||
osi=""
|
|
||||||
ki=""
|
|
||||||
ri=""
|
|
||||||
pi=""
|
|
||||||
ui=""
|
|
||||||
ci=""
|
|
||||||
;;
|
|
||||||
"-c")
|
|
||||||
font=cozette
|
|
||||||
ki="♥"
|
|
||||||
ri=""
|
|
||||||
pi=""
|
|
||||||
ui=""
|
|
||||||
ci=""
|
|
||||||
;;
|
|
||||||
"-e")
|
|
||||||
font=emoji
|
|
||||||
osi="🐧"
|
|
||||||
ki="💓"
|
|
||||||
ri="🐐"
|
|
||||||
pi="📦"
|
|
||||||
ui="☕"
|
|
||||||
ci="🎨"
|
|
||||||
;;
|
|
||||||
"-v")
|
|
||||||
echo "NerdFetch $version"
|
|
||||||
exit
|
|
||||||
;;
|
|
||||||
"-h")
|
|
||||||
echo "Flags:
|
|
||||||
-c: Cozette font
|
|
||||||
-p: Phosphor font
|
|
||||||
-e: Emoji font
|
|
||||||
-v: Version"
|
|
||||||
exit
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if command -v getprop 1>/dev/null; then
|
|
||||||
distrotype=android
|
|
||||||
fi
|
|
||||||
kernel="$(echo $(uname -r) | cut -d'-' -f1-1)"
|
|
||||||
case $ostype in
|
|
||||||
*"Linux"*)
|
|
||||||
if [ $distrotype = android ]; then
|
|
||||||
host="$(hostname)"
|
|
||||||
USER="$(whoami)"
|
|
||||||
os="Android $(getprop ro.build.version.release)"
|
|
||||||
case $font in
|
|
||||||
phosphor) osi="" ;;
|
|
||||||
emoji) osi="🤖" ;;
|
|
||||||
*) osi="" ;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
host="$(cat /proc/sys/kernel/hostname)"
|
|
||||||
. /etc/os-release
|
|
||||||
if [ -f /bedrock/etc/bedrock-release ]; then
|
|
||||||
os="$(brl version)"
|
|
||||||
else
|
|
||||||
os="''${PRETTY_NAME}"
|
|
||||||
if [ $font = nerd ]; then
|
|
||||||
case $(echo $ID | sed 's/ .*//') in
|
|
||||||
debian) osi="" ;;
|
|
||||||
arch) osi="" ;;
|
|
||||||
endeavouros) osi="" ;;
|
|
||||||
fedora) osi="" ;;
|
|
||||||
gentoo) osi="" ;;
|
|
||||||
rhel) osi="" ;;
|
|
||||||
slackware) osi="" ;;
|
|
||||||
void) osi="" ;;
|
|
||||||
alpine) osi="" ;;
|
|
||||||
nixos) osi="" ;;
|
|
||||||
artix) osi="" ;;
|
|
||||||
exherbo) osi="" ;;
|
|
||||||
mageia) osi="" ;;
|
|
||||||
manjaro) osi="" ;;
|
|
||||||
opensuse) osi="" ;;
|
|
||||||
solus) osi="" ;;
|
|
||||||
ubuntu) osi="" ;;
|
|
||||||
mint) osi="" ;;
|
|
||||||
trisquel) osi="" ;;
|
|
||||||
puppy) osi="" ;;
|
|
||||||
coreos) osi="" ;;
|
|
||||||
mx) osi="" ;;
|
|
||||||
vanilla) osi="" ;;
|
|
||||||
pop_os) osi="" ;;
|
|
||||||
raspbian) osi="" ;;
|
|
||||||
deepin) osi="" ;;
|
|
||||||
almalinux) osi="" ;;
|
|
||||||
garuda) osi="" ;;
|
|
||||||
centos) osi="" ;;
|
|
||||||
rocky) osi="" ;;
|
|
||||||
esac
|
|
||||||
elif [ $font = cozette ]; then
|
|
||||||
case $(echo $ID | sed 's/ .*//') in
|
|
||||||
debian) osi="" ;;
|
|
||||||
arch) osi="" ;;
|
|
||||||
fedora) osi="" ;;
|
|
||||||
gentoo) osi="" ;;
|
|
||||||
slackware) osi="" ;;
|
|
||||||
void) osi="" ;;
|
|
||||||
alpine) osi="" ;;
|
|
||||||
nixos) osi="" ;;
|
|
||||||
mageia) osi="" ;;
|
|
||||||
manjaro) osi="" ;;
|
|
||||||
opensuse) osi="" ;;
|
|
||||||
ubuntu) osi="" ;;
|
|
||||||
mint) osi="" ;;
|
|
||||||
coreos) osi="" ;;
|
|
||||||
centos) osi="" ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
shell=$(basename "$SHELL")
|
|
||||||
;;
|
|
||||||
*"Darwin"*)
|
|
||||||
host="$(hostname -f | sed -e 's/^[^.]*\.//')"
|
|
||||||
mac_product="$(/usr/libexec/PlistBuddy -c "Print:ProductName" /System/Library/CoreServices/SystemVersion.plist)"
|
|
||||||
mac_version="$(/usr/libexec/PlistBuddy -c "Print:ProductVersion" /System/Library/CoreServices/SystemVersion.plist)"
|
|
||||||
os="''${mac_product} ''${mac_version}"
|
|
||||||
case $font in
|
|
||||||
nerd) osi="" ;;
|
|
||||||
phosphor) osi="" ;;
|
|
||||||
cozette) osi="" ;;
|
|
||||||
emoji) osi="🍎" ;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
*"FreeBSD"*)
|
|
||||||
host="$(hostname)"
|
|
||||||
distrotype=bsd
|
|
||||||
os="FreeBSD $(freebsd-version | sed 's/-.*//')"
|
|
||||||
case $font in
|
|
||||||
nerd) osi="" ;;
|
|
||||||
phosphor) osi="" ;;
|
|
||||||
cozette) osi="" ;;
|
|
||||||
emoji) osi="😈" ;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
*"OpenBSD"*)
|
|
||||||
host="$(hostname)"
|
|
||||||
distrotype=bsd
|
|
||||||
os="OpenBSD $(uname -r)"
|
|
||||||
case $font in
|
|
||||||
nerd) osi="" ;;
|
|
||||||
phosphor) osi="" ;;
|
|
||||||
cozette) osi="⌘" ;;
|
|
||||||
emoji) osi="🐡" ;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
*"NetBSD"*)
|
|
||||||
host="$(hostname)"
|
|
||||||
distrotype=netbsd
|
|
||||||
os="NetBSD $(uname -r)"
|
|
||||||
case $font in
|
|
||||||
nerd) osi="" ;;
|
|
||||||
phosphor) osi="" ;;
|
|
||||||
cozette) osi="" ;;
|
|
||||||
emoji) osi="🚩" ;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
os="Unix-like"
|
|
||||||
host="host"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
## PACKAGE MANAGER AND PACKAGES DETECTION
|
|
||||||
|
|
||||||
MANAGER=$(which nix-env pkg flatpak yum zypper dnf rpm dpkg-query brew port pacman xbps-query emerge cave apk kiss pmm /usr/sbin/slackpkg bulge birb yay paru pacstall cpm pmm eopkg getprop 2>/dev/null)
|
|
||||||
manager=$(basename "$MANAGER")
|
|
||||||
if [ $distrotype = netbsd ]; then
|
|
||||||
manager="pkg_info-netbsd"
|
|
||||||
fi
|
|
||||||
case $manager in
|
|
||||||
cpm) packages="$(cpm C)" ;;
|
|
||||||
flatpak) packages="$(flatpak list --app | wc -l)" ;;
|
|
||||||
brew) packages="$(printf '%s\n' "$(brew --cellar)/"* | wc -l)" ;;
|
|
||||||
port) packages="$(port installed | wc -l)" ;;
|
|
||||||
dpkg-query) packages="$(dpkg-query -f '${
|
|
||||||
"binary:Package"
|
|
||||||
}\n' -W | wc -l)" ;;
|
|
||||||
rpm) packages="$(rpm -qa --last | wc -l)" ;;
|
|
||||||
yum) packages="$(yum list installed | wc -l)" ;;
|
|
||||||
dnf) packages="$(dnf list installed | wc -l)" ;;
|
|
||||||
zypper) packages="$(zypper se | wc -l)" ;;
|
|
||||||
pacman) packages="$(pacman -Q | wc -l)" ;;
|
|
||||||
yay) packages="$(yay -Q | wc -l)" ;;
|
|
||||||
paru) packages="$(paru -Q | wc -l)" ;;
|
|
||||||
pacstall) packages="$(pacstall -L | wc -l)" ;;
|
|
||||||
kiss) packages="$(kiss list | wc -l)" ;;
|
|
||||||
emerge) packages="$(qlist -I | wc -l)" ;;
|
|
||||||
pkg) packages="$(pkg info | wc -l | tr -d ' ')" ;;
|
|
||||||
cave) packages="$(cave show installed-slots | wc -l)" ;;
|
|
||||||
xbps-query) packages="$(xbps-query -l | wc -l)" ;;
|
|
||||||
nix-env) packages="$(nix-store -q --requisites /run/current-system/sw | wc -l)" ;;
|
|
||||||
apk) packages="$(apk list --installed | wc -l)" ;;
|
|
||||||
pmm) packages="$(/bedrock/libexec/pmm pacman pmm -Q 2>/dev/null | wc -l)" ;;
|
|
||||||
eopkg) packages="$(eopkg li | wc -l)" ;;
|
|
||||||
/usr/sbin/slackpkg) packages="$(ls /var/log/packages | wc -l)" ;;
|
|
||||||
bulge) packages="$(bulge list | wc -l)" ;;
|
|
||||||
birb) packages="$(birb --list-installed | wc -l)" ;;
|
|
||||||
pkg_info)
|
|
||||||
packages="$(pkg_info -A | wc -l)"
|
|
||||||
manager="pkg"
|
|
||||||
;;
|
|
||||||
pkg_info-netbsd)
|
|
||||||
packages="$(pkg_info -a | wc -l)"
|
|
||||||
manager="pkg"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
if [ $distrotype = android ]; then
|
|
||||||
packages="$(dpkg-query -f '${"binary:Package"}\n' -W | wc -l)"
|
|
||||||
manager="dpkg"
|
|
||||||
else
|
|
||||||
packages="$(ls /usr/bin | wc -l)"
|
|
||||||
manager="bin"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
packages="''${packages#"''${packages%%[![:space:]]*}"}"
|
|
||||||
manager=$(echo $manager | sed "s/-query//; s/\/usr\/.*\///")
|
|
||||||
|
|
||||||
## UPTIME DETECTION
|
|
||||||
|
|
||||||
if [ $distrotype = android ]; then
|
|
||||||
uptime="$(echo $(uptime -p) | cut -c 4-)"
|
|
||||||
elif [ $distrotype = bsd ] || [ $distrotype = netbsd ]; then
|
|
||||||
uptime="$(uptime | sed -e 's/.* up //; s/, [0-9]* user.*//')"
|
|
||||||
else
|
|
||||||
case $ostype in
|
|
||||||
*"Linux"*)
|
|
||||||
IFS=. read -r s _ </proc/uptime
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
s=$(sysctl -n kern.boottime)
|
|
||||||
s=''${s#*=}
|
|
||||||
s=''${s%,*}
|
|
||||||
s=$(($(date +%s) - s))
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
d="$((s / 60 / 60 / 24))"
|
|
||||||
h="$((s / 60 / 60 % 24))"
|
|
||||||
m="$((s / 60 % 60))"
|
|
||||||
# Plurals
|
|
||||||
[ "$d" -gt 1 ] && dp=s
|
|
||||||
[ "$h" -gt 1 ] && hp=s
|
|
||||||
[ "$m" -gt 1 ] && mp=s
|
|
||||||
[ "$s" -gt 1 ] && sp=s
|
|
||||||
# Hide empty fields.
|
|
||||||
[ "$d" = 0 ] && d=
|
|
||||||
[ "$h" = 0 ] && h=
|
|
||||||
[ "$m" = 0 ] && m=
|
|
||||||
[ "$m" != "" ] && s=
|
|
||||||
# Make the output of uptime smaller.
|
|
||||||
[ "$d" ] && uptime="$d day$dp, "
|
|
||||||
[ "$h" ] && uptime="$uptime$h hour$hp, "
|
|
||||||
[ "$m" ] && uptime="$uptime$m min$mp"
|
|
||||||
[ "$s" ] && uptime="$uptime$s sec$sp"
|
|
||||||
uptime=''${uptime%, }
|
|
||||||
fi
|
|
||||||
|
|
||||||
## RAM DETECTION
|
|
||||||
|
|
||||||
case $ostype in
|
|
||||||
*"Linux"*)
|
|
||||||
while IFS=':k ' read -r key val _; do
|
|
||||||
case $key in
|
|
||||||
MemTotal)
|
|
||||||
mem_used=$((mem_used + val))
|
|
||||||
mem_full=$val
|
|
||||||
;;
|
|
||||||
Shmem) mem_used=$((mem_used + val)) ;;
|
|
||||||
MemFree | Buffers | Cached | SReclaimable) mem_used=$((mem_used - val)) ;;
|
|
||||||
esac
|
|
||||||
done </proc/meminfo
|
|
||||||
mem_used=$((mem_used / 1024))
|
|
||||||
mem_full=$((mem_full / 1024))
|
|
||||||
;;
|
|
||||||
*"Darwin"*)
|
|
||||||
mem_full=$(($(sysctl -n hw.memsize) / 1024 / 1024))
|
|
||||||
while IFS=:. read -r key val; do
|
|
||||||
case $key in
|
|
||||||
*' wired'* | *' active'* | *' occupied'*)
|
|
||||||
mem_used=$((mem_used + ${"val:-0"}))
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done <-EOF
|
|
||||||
$(vm_stat)
|
|
||||||
EOF
|
|
||||||
|
|
||||||
mem_used=$((mem_used * 4 / 1024))
|
|
||||||
;;
|
|
||||||
*"BSD"*)
|
|
||||||
mem_full=$(($(sysctl -n hw.physmem) / 1024 / 1024))
|
|
||||||
if [ $distrotype = netbsd ]; then
|
|
||||||
mem_free=$(($(vmstat | awk 'NR==3 {print $4}') / 1024))
|
|
||||||
else
|
|
||||||
mem_free=$(($(sysctl -n vm.stats.vm.v_free_count) * $(sysctl -n vm.stats.vm.v_page_size) / 1024 / 1024))
|
|
||||||
fi
|
|
||||||
mem_used=$((mem_full - mem_free))
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
mem_full=1
|
|
||||||
mem_used=0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
memstat="''${mem_used}/''${mem_full} MiB"
|
|
||||||
if which expr >/dev/null 2>&1; then
|
|
||||||
mempercent="($(expr $(expr ''${mem_used} \* 100 / ''${mem_full}))%)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
## DEFINE COLORS
|
|
||||||
|
|
||||||
bold='[1m'
|
|
||||||
black='[30m'
|
|
||||||
red='[31m'
|
|
||||||
green='[32m'
|
|
||||||
yellow='[33m'
|
|
||||||
blue='[34m'
|
|
||||||
magenta='[35m'
|
|
||||||
cyan='[36m'
|
|
||||||
white='[37m'
|
|
||||||
grey='[90m'
|
|
||||||
reset='[0m'
|
|
||||||
|
|
||||||
## USER VARIABLES -- YOU CAN CHANGE THESE
|
|
||||||
|
|
||||||
lc="$reset$bold$magenta" # labels
|
|
||||||
nc="$reset$bold$magenta" # user
|
|
||||||
hn="$reset$bold$magenta" # hostname
|
|
||||||
ic="$reset$white" # info
|
|
||||||
c0="$reset$grey" # first color
|
|
||||||
c1="$reset$white" # second color
|
|
||||||
c2="$reset$yellow" # third color
|
|
||||||
|
|
||||||
## OUTPUT
|
|
||||||
|
|
||||||
echo """
|
|
||||||
''${c0} ___ ''${nc}''${USER}''${grey}@''${reset}''${hn}''${host}''${reset}
|
|
||||||
''${c0} (''${c1}.. ''${c0}\ ''${lc}''${osi} ''${ic}''${os}''${reset}
|
|
||||||
''${c0} (''${c2}<> ''${c0}| ''${lc}''${ki} ''${ic}''${kernel}''${reset}
|
|
||||||
''${c0} /''${c1}/ \\ ''${c0}\\ ''${lc}''${ri} ''${ic}''${RAM}''${memstat} ''${mempercent}
|
|
||||||
''${c0} ( ''${c1}| | ''${c0}/| ''${lc}''${pi} ''${ic}''${packages} (''${manager})''${reset}
|
|
||||||
''${c2} _''${c0}/\\ ''${c1}__)''${c0}/''${c2}_''${c0}) ''${lc}''${ui} ''${ic}''${uptime}''${reset}
|
|
||||||
''${c2} \/''${c0}-____''${c2}\/''${reset} ''${lc}''${ci} ''${red}███''${green}███''${yellow}███''${blue}███''${magenta}███''${cyan}███''${reset}
|
|
||||||
"""
|
|
||||||
'';
|
|
||||||
|
|
||||||
in { home.packages = with pkgs; [ nerdfetch ]; }
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user