mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-08-21 10:45:49 +02:00
Compare commits
442 Commits
651de22342
...
v2.1.0
| Author | SHA1 | Date | |
|---|---|---|---|
| c6cc2b3e2b | |||
| 61eac2f021 | |||
| 55cfb67493 | |||
| 082fbb2130 | |||
| 207caa7ba5 | |||
| 9d03a16364 | |||
| 7832f5f750 | |||
| c9775af4ea | |||
| 146afb1de5 | |||
| e9e7d4f06f | |||
| 273fd77b86 | |||
| cf04176b10 | |||
| eb3083346f | |||
| 5078a34ee3 | |||
| b5f27c6ed6 | |||
| cb7c2f3c40 | |||
| 3e6f8b856d | |||
| 38b516453a | |||
| 2e9fd1710f | |||
| 4b8593b097 | |||
| fd5dfea2c4 | |||
| b623474fc0 | |||
| ffcd2c0c19 | |||
| aa1a9c25d7 | |||
| cd837e208e | |||
| eca9b216ba | |||
| f1bff29cd9 | |||
| e452d79f0c | |||
| 0fb184e8d3 | |||
| 5b337e5e94 | |||
| 498c03decc | |||
| 5f6fb011a2 | |||
| 46b913a7d3 | |||
| 0ecb821342 | |||
| f7d23ddee9 | |||
| fb63d4c0e9 | |||
| 9bddf6dab9 | |||
| 2f39827f03 | |||
| 41a6417a2d | |||
| 02331d9deb | |||
| 742aa325aa | |||
| 6d487ab9f0 | |||
| a0f7128a28 | |||
| fdd5d685d6 | |||
| 62213109f7 | |||
| 9c43c89a3f | |||
| 9c1fc992e2 | |||
| cc2b0989d3 | |||
| 3ee5f2097d | |||
| 5657e0b24c | |||
| b51725e7cd | |||
| 86f8c99554 | |||
| c256b870aa | |||
| 94103e9dfb | |||
| af6319c8ec | |||
| 6edda0e6e1 | |||
| 3ba7648eb0 | |||
| 484d82a788 | |||
| be0d934622 | |||
| abab0d1b96 | |||
| 9dd462b0b8 | |||
| 28404f07cd | |||
| eb0e205e99 | |||
| 0c856fe2d2 | |||
| 26452fbf23 | |||
| 6f2ad22139 | |||
| e79b8ac14c | |||
| 9826faa7d0 | |||
| 68e5393f5d | |||
| f3e7766229 | |||
| 76f7b763cf | |||
| 51191f82c7 | |||
| e86c831653 | |||
| 91f8e392ef | |||
| 7ce04c1ae9 | |||
| 1aff187d21 | |||
| 856c0c3212 | |||
| acfaa9d9e8 | |||
| 20307f9096 | |||
| ff1d70ba79 | |||
| 188e34a575 | |||
| 373c2d4546 | |||
| ae1335d4d2 | |||
| 70e9831d3a | |||
| 446e610c59 | |||
| 894e9872c3 | |||
| f00d34f38b | |||
| 93395308a0 | |||
| 3fcd3c316f | |||
| 07a2b77f84 | |||
| 1a28823b3b | |||
| 597afc0b39 | |||
| 540636df16 | |||
| 1c8b68182a | |||
| dee40034cd | |||
| cb347c715b | |||
| 0e683e111f | |||
| ceb8e98fbf | |||
| da50226d9f | |||
| 3ba87d750f | |||
| 2cab0e6903 | |||
| 846e83545f | |||
| 14b568ae7d | |||
| 1fc8bce262 | |||
| 16f8d6d8b3 | |||
| ae337d1631 | |||
| c9959e4715 | |||
| 26fd7e8775 | |||
| 1819e78c0b | |||
| e26a6eb442 | |||
| 4cc072fa14 | |||
| 46436db4a5 | |||
| 1e0f379981 | |||
| 2027dd0cd1 | |||
| 59be989faa | |||
| fadb6fcfd8 | |||
| 988f7a68db | |||
| 60ef1c61f2 | |||
| a70bb23316 | |||
| 186d1c69de | |||
| 90f0adb29e | |||
| 11a12e6ca6 | |||
| ec1c7f1dc6 | |||
| e8f3660561 | |||
| 173c2f89fc | |||
| 577d33bdd1 | |||
| 5d09cd1097 | |||
| ade814e4af | |||
| 4c39b0044d | |||
| 08c43f4771 | |||
| def4d2a994 | |||
| 7256d94c49 | |||
| 52345c06cd | |||
| 26f6c935af | |||
| 7aa0413931 | |||
| 04b54566b1 | |||
| ff0e41c73f | |||
| b070d20ef4 | |||
| 5849179d0b | |||
| 9aa13777c5 | |||
| 79ca8b68a8 | |||
| 99038231a8 | |||
| 5c877f5f76 | |||
| 2beda6180b | |||
| 3921780961 | |||
| 6d856f0bfa | |||
| 7ef5dac5cb | |||
| ada5bebfe0 | |||
| fd472e7abc | |||
| 67c02f59de | |||
| 34a090cb13 | |||
| 6c66562c77 | |||
| 44474f2cbb | |||
| 0c34497671 | |||
| 957d749df5 | |||
| 23e45b3679 | |||
| 58f45a48b4 | |||
| 64884b1367 | |||
| 41808ad011 | |||
| f1f9ee57f0 | |||
| 2fa2d20c8b | |||
| d1047e2abf | |||
| eb75f6e451 | |||
| 95329e82fb | |||
| c139f1c12a | |||
| 4ead1d07ae | |||
| 81d9c22cbc | |||
| 5da1dcccba | |||
| 6a950d4bcc | |||
| 26263eee48 | |||
| ba0a151f1e | |||
| 2c5be469f0 | |||
| 9728b2ed6b | |||
| 2255bd8d7c | |||
| 7617488f52 | |||
| c0b0ed81c8 | |||
| 4ab75fb583 | |||
| 339eb8877c | |||
| 2e92ce971e | |||
| 51e58883fa | |||
| 59fe18dcd6 | |||
| d543f308b3 | |||
| 0881baf082 | |||
| 3f4590bda4 | |||
| c692d33216 | |||
| 33de46de17 | |||
| ff55504616 | |||
| 627435b452 | |||
| 64f057b1b1 | |||
| f6f4acf2b6 | |||
| 44b79b0ff0 | |||
| f5887c9f24 | |||
| 178aeb2aac | |||
| 8e8caed609 | |||
| 92c1b38ca5 | |||
| 9f196b8fb8 | |||
| a8ad3a28fb | |||
| 19f5613c74 | |||
| 35848dfd62 | |||
| a37fda47ea | |||
| 60f5d20cbe | |||
| 6a808cbc89 | |||
| 75f9e08d7b | |||
| 1d7d1e1c89 | |||
| b8356528ba | |||
| 602423d9ae | |||
| 295085c7e9 | |||
| 872735897c | |||
| b064228958 | |||
| 156ca28cbf | |||
| cd08d5ad46 | |||
| 109cd5075b | |||
| bbdf394dda | |||
| c1ace49f38 | |||
| 05c1fe6313 | |||
| a94489d52d | |||
| 2db08a1a06 | |||
| abf9f53eee | |||
| 33e9ca6021 | |||
| 601306033d | |||
| a67177bbb3 | |||
| 13cecc6f19 | |||
| 83ee267214 | |||
| 7322f50f14 | |||
| e91e838528 | |||
| 332caad470 | |||
| de1ef7f45e | |||
| 6375bcaf34 | |||
| 12394f2945 | |||
| 4e7ae503f8 | |||
| 53ae7625af | |||
| ba48ce3942 | |||
| 9a236765ed | |||
| 355c13c8f0 | |||
| 0810128ee4 | |||
| be7548e10a | |||
| b3df107c36 | |||
| 56df3723d2 | |||
| 27abeac6db | |||
| da81e80716 | |||
| d70cf4ebe7 | |||
| ab11bf5b91 | |||
| 88ff53dc29 | |||
| d93dda3f6d | |||
| fed0845912 | |||
| f18c96bcea | |||
| dd81dc8e54 | |||
| 67dae73157 | |||
| 27cffd8917 | |||
| 5338fa3c93 | |||
| 9ab398c6d2 | |||
| 1a1ec40517 | |||
| ab6813996d | |||
| d84912df76 | |||
| cfb4904976 | |||
| 9ac6e92dc5 | |||
| a5e1ee5285 | |||
| d34eafd868 | |||
| 402a1a512a | |||
| f26f8ad0e1 | |||
| 8cc97c5cc7 | |||
| 242298923e | |||
| 85011e69d3 | |||
| b4ad55a8c2 | |||
| 8935e3e520 | |||
| 883d95ca39 | |||
| 91055f207f | |||
| 299222f9fd | |||
| a2485b18b3 | |||
| 75bc825770 | |||
| b6c4c0e00a | |||
| 6797cb1107 | |||
| 1bd451a8bb | |||
| 63f101763d | |||
| 01e890081a | |||
| 147e0715cf | |||
| 2922ef04a4 | |||
| 9f2afd0f8a | |||
| ba31976fcf | |||
| ce2dcf66a4 | |||
| 0d9b79c73e | |||
| a17e3583e6 | |||
| 1885087e56 | |||
| b79d37ad06 | |||
| 8952cbaade | |||
| cbda10510d | |||
| e09cae9c44 | |||
| 187bdb0a32 | |||
| 5ba463757e | |||
| 7763a854af | |||
| 6cd8da4bf1 | |||
| a397f5e82b | |||
| 31ba52c9ac | |||
| bd5998521b | |||
| 5d043297d3 | |||
| 07dd6c09a5 | |||
| 28513feea4 | |||
| 982c4b2f80 | |||
| cd3ac7cfbc | |||
| 58bbb5532a | |||
| 6b115d6d28 | |||
| 7d97cc9148 | |||
| 992929e13a | |||
| 65b80a7d8d | |||
| 396a4dcf84 | |||
| dae5881128 | |||
| c00de1af0e | |||
| 5c760f5bfc | |||
| d3881d0897 | |||
| 64771ae931 | |||
| 516b7eaed4 | |||
| dc11045158 | |||
| c462a44130 | |||
| 9130b97e13 | |||
| c1291fa9e7 | |||
| 282031208e | |||
| 2ee7347334 | |||
| d3d4c5c7e6 | |||
| 47b46bdbf1 | |||
| a5750d59be | |||
| e7324aa80d | |||
| 61728dd166 | |||
| f405b40518 | |||
| 4fbcff7320 | |||
| 9e77650fa6 | |||
| 2e3a459e5c | |||
| 3e0a36a9d9 | |||
| 84463917f5 | |||
| b23b815696 | |||
| d2858a640b | |||
| 8cd055be59 | |||
| 7a3787d62d | |||
| 985dd82c6f | |||
| b828545a42 | |||
| c1a311e021 | |||
| 98fc1e131b | |||
| f19b74c2e9 | |||
| 0aae361973 | |||
| e925d6712c | |||
| 553455474b | |||
| b53c5bb5b1 | |||
| f76419c158 | |||
| fb44fb3fab | |||
| d19182608d | |||
| ebbb2dd780 | |||
| ce24afcea0 | |||
| 4b1c84319b | |||
| 7d46fa680f | |||
| 73961f5caf | |||
| 89c194d604 | |||
| fc50d282ca | |||
| 101cbd0761 | |||
| 48f7c42a21 | |||
| a6d00d0823 | |||
| e02c11e258 | |||
| 3554bf257e | |||
| ec0e54e4b2 | |||
| 8d60d1d914 | |||
| 2555bc641b | |||
| dfc48d1525 | |||
| 80a61f86dc | |||
| 1cde20d8bc | |||
| 378bdade49 | |||
| b87610007a | |||
| c216a5e997 | |||
| ccf0ee95c6 | |||
| 0a2644f5d4 | |||
| 7f31c039e8 | |||
| cfbf65a7f5 | |||
| 1f67c4a752 | |||
| b9dbcac931 | |||
| 0b713dfa4e | |||
| 140bd5c510 | |||
| ae68f811f2 | |||
| 1c25f3421d | |||
| 3f4477d938 | |||
| 7d0afea3bf | |||
| 4eab3730be | |||
| 07d95c5255 | |||
| ddb412cdea | |||
| 5c29aeffc5 | |||
| f9dfd7ae1a | |||
| 34a8b4ffed | |||
| 93480fdf86 | |||
| f5605570e0 | |||
| 9d9e3570df | |||
| 8be54bb19b | |||
| b533415ab7 | |||
| 3b2fd0b3f4 | |||
| ef90d16de8 | |||
| 5222447894 | |||
| 8d9d8d4ca2 | |||
| f32ad388b2 | |||
| e1ff3e4624 | |||
| 1187753bb7 | |||
| dde5b26215 | |||
| 1db52368f7 | |||
| 9e9970f517 | |||
| 00df88dc0e | |||
| de09bd0179 | |||
| 2180d78dfc | |||
| 1cb0490c03 | |||
| 424dd06e18 | |||
| 17b23c8497 | |||
| ba6bb433b6 | |||
| c3120b819e | |||
| edcb1af2d9 | |||
| 0cc43ddbb5 | |||
| 3f4096dfe5 | |||
| 2b27db1bff | |||
| f9aafdc772 | |||
| 0568b5d256 | |||
| 76ed5e3b0a | |||
| 61a70a7c37 | |||
| cebb8d311d | |||
| 42d7bb5c6e | |||
| 0eb1751e41 | |||
| c995295397 | |||
| 448a482497 | |||
| 9bd0c2f190 | |||
| 283d757327 | |||
| 32c9cd7504 | |||
| fac419453e | |||
| b043028ec7 | |||
| 900eb52b17 | |||
| 89d705f414 | |||
| 34e5fbb417 | |||
| 0aa6df37cd | |||
| a185bd740d | |||
| bd81378c22 | |||
| 96c6f25c3c | |||
| 61a67cd51d | |||
| fe6ef8762e | |||
| c6c053585c | |||
| f3dcd108db | |||
| 8e8bb981e1 | |||
| 5000562333 | |||
| e2aad1b524 | |||
| bb383dcddb | |||
| d59434285a | |||
| e55f66e4fb | |||
| 7c3ff59a0f |
@@ -0,0 +1 @@
|
|||||||
|
todolist.md
|
||||||
|
|||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
keys:
|
||||||
|
- &primary age12yvtj49pfh3fqzqflscm0ek4yzrjhr6cqhn7x89gdxnlykq0xudq5c7334
|
||||||
|
creation_rules:
|
||||||
|
- path_regex: hosts/laptop/secrets/laptop.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *primary
|
||||||
|
- path_regex: hosts/server/secrets/server.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *primary
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2024 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,92 @@
|
|||||||
|
[//]: # (Title: Nixy)
|
||||||
|
[//]: # (Description: Nixy is a Hyprland NixOS configuration with home-manager, secrets and custom theming all in one place. It's a simple way to manage your system configuration and dotfiles.)
|
||||||
|
[//]: # (Author: Hadi)
|
||||||
|
[//]: # (Date: 08/18/24)
|
||||||
|
[//]: # (Version: v2.0.1)
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<img src="https://raw.githubusercontent.com/anotherhadi/nixy/main/docs/src/logo.png" width="100px" />
|
||||||
|
</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">
|
||||||
|
<img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=Version&message=v2.0.1&colorA=181825&colorB=89b4fa&logo=githubactions&logoColor=89b4fa"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/stargazers">
|
||||||
|
<img src="https://img.shields.io/github/stars/anotherhadi/nixy?color=89b4fa&labelColor=181825&style=for-the-badge&logo=starship&logoColor=89b4fa">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/">
|
||||||
|
<img src="https://img.shields.io/github/repo-size/anotherhadi/nixy?color=89b4fa&labelColor=181825&style=for-the-badge&logo=github&logoColor=89b4fa">
|
||||||
|
</a>
|
||||||
|
<a href="https://nixos.org">
|
||||||
|
<img src="https://img.shields.io/badge/NixOS-unstable-blue.svg?style=for-the-badge&labelColor=181825&logo=NixOS&logoColor=89b4fa&color=89b4fa">
|
||||||
|
</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=181825&colorB=89b4fa&logo=unlicense&logoColor=89b4fa"/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
|
||||||
Every things that you *must* change got a "CHANGEME" comment.
|
**Nixy** is a **Hyprland** NixOS configuration with **home-manager**, **secrets**, and **custom theming** all in one place.
|
||||||
You can search for it with ripgrep: `rg "CHANGEME"`
|
It's a simple way to manage your system configuration and dotfiles.
|
||||||
|
|
||||||
# TODOLIST
|
## Table of Content
|
||||||
|
|
||||||
- [ ] Variable user & homeDir
|
- [Table of Content](#table-of-content)
|
||||||
- [ ] Settings fzf
|
- [Gallery](#gallery)
|
||||||
- [ ] Nixvim Alpha config
|
- [Architecture](#architecture)
|
||||||
- [ ] Scripts:
|
- [Installation](#installation)
|
||||||
- [ ] Edit
|
- [Documentation](#documentation)
|
||||||
- [ ] Rebuild
|
|
||||||
- [ ] Update
|
## Gallery
|
||||||
- [ ] Garbage collector
|
|
||||||
- [ ] Ricing things
|

|
||||||
- [ ] Peaclock
|

|
||||||
- [ ] Find a tui app for white noises (does that exist ? If not, I'll build my own)
|

|
||||||
- [ ] Custom GTK & Qt Theme based on the colorscheme
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
- 🏠 `home` are the dotfiles and configuration files for the users
|
||||||
|
- 'programs' is a collection of apps configured with home-manager
|
||||||
|
- 'scripts' is a folder full of bash scripts (see [SCRIPTS.md](docs/SCRIPTS.md))
|
||||||
|
- 'system' is some desktop environment like configuration
|
||||||
|
- 'wallpapers' are... wallpapers
|
||||||
|
- 💻 `hosts` are the system configuration files
|
||||||
|
- 'laptop' is my configuration for my laptop with Nvidia that you can copy
|
||||||
|
- 'server' is for my homeserver (w/nextcloud, nginx, vaultwarden, ... look `hosts/server`)
|
||||||
|
- 'themes' contains all the *themes* available *(see [THEMES.md](docs/THEMES.md))*
|
||||||
|
- 'modules' are some nix modules that you can import (Nvidia, prime, fonts, ...)
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
||||||
|
```
|
||||||
|
|
||||||
|
- Copy the `hosts/laptop` folder, rename it to your system name, and change the variables inside the `variables.nix` file
|
||||||
|
- Add your `hardware-configuration.nix` to your new host's folder
|
||||||
|
- Add your 'nixosConfigurations' inside `flake.nix` (You can edit your hostname one and change the lines containing '# CHANGEME')
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> When you add new files, don't forget to run `git add .` to add them to the git repository
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
- [THEMES.md](docs/THEMES.md): How themes work and how to create your own
|
||||||
|
- [APPS.md](docs/APPS.md): Which apps are installed
|
||||||
|
- [SCRIPTS.md](docs/SCRIPTS.md): Scripts that are available
|
||||||
|
- [KEYBINDINGS.md](docs/KEYBINDINGS.md): Keybindings available in Hyprland
|
||||||
|
- [WALLPAPERS.md](docs/WALLPAPERS.md): Preview of every wallpapers available
|
||||||
|
|
||||||
|
- [TODO.md](docs/TODO.md): What's next (feel free to contribute)
|
||||||
|
- [CONTRIBUTING.md](docs/CONTRIBUTING.md): How to contribute
|
||||||
|
- [LICENSE](LICENSE): MIT License
|
||||||
|
|||||||
@@ -0,0 +1,56 @@
|
|||||||
|
# Apps and services
|
||||||
|
|
||||||
|
*non-exhaustive lists*
|
||||||
|
|
||||||
|
## Laptop
|
||||||
|
|
||||||
|
The laptop configuration is used by an Omen 16 laptop w/ nvidia and an amd gpu running NixOS.
|
||||||
|
The configurations files can be found in the `hosts/laptop` directory.
|
||||||
|
|
||||||
|
| Category | Name |
|
||||||
|
|-----------------------------------------|----------------|
|
||||||
|
| WM | Hyprland |
|
||||||
|
| | hyprlock |
|
||||||
|
| | hyprpaper |
|
||||||
|
| | hypridle |
|
||||||
|
| | wlogout |
|
||||||
|
| Bar | waybar |
|
||||||
|
| Terminal | kitty |
|
||||||
|
| Shell | zsh |
|
||||||
|
| | tmux |
|
||||||
|
| | starship |
|
||||||
|
| | bat |
|
||||||
|
| | eza |
|
||||||
|
| | zoxide |
|
||||||
|
| | fzf |
|
||||||
|
| Editor | neovim(nixvim) |
|
||||||
|
| File manager | lf |
|
||||||
|
| | thunar |
|
||||||
|
| Browser | qutebrowser |
|
||||||
|
| Music | spicetify |
|
||||||
|
| Notifications | dunst |
|
||||||
|
| Launcher | wofi |
|
||||||
|
| DM | tuigreet |
|
||||||
|
| Secrets | sops-nix |
|
||||||
|
| Misc | lazygit |
|
||||||
|
| | neofetch |
|
||||||
|
| | cava |
|
||||||
|
| See [hosts/laptop](../hosts/laptop/)... | |
|
||||||
|
|
||||||
|
## Server
|
||||||
|
|
||||||
|
The server configuration is used by a home server running NixOS.
|
||||||
|
The configurations files can be found in the `hosts/server` directory.
|
||||||
|
I mainly use it for self-hosting websites and services such as Nextcloud, Vaultwarden, ...
|
||||||
|
I exposed some services to the internet using a reverse proxy (Nginx) and cloudflare-dyndns, others are accessed through a tailscale network
|
||||||
|
|
||||||
|
### Apps
|
||||||
|
|
||||||
|
- Nextcloud
|
||||||
|
- Vaultwarden
|
||||||
|
- Adguard Home
|
||||||
|
- Unifi Controler
|
||||||
|
- Uptime Kuma
|
||||||
|
- "Jackflix"
|
||||||
|
- Jellyfin, Transmission, *arr
|
||||||
|
- See [hosts/server](../hosts/server/)...
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# Contributing to Nixy
|
||||||
|
|
||||||
|
Everybody is invited and welcome to contribute to Nixy. There is a lot to do... Check the [TODO.md](./TODO.md) file!
|
||||||
|
|
||||||
|
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, task in to-do, ...).
|
||||||
|
- Create a Pull Request against the main branch of Nixy.
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> When wallpapers are added, run `./docs/scripts/compress_png.sh` and `./docs/scripts/create_preview_wallpapers.sh`
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> To update the README, change the `./docs/src/README_template.md` and run `./docs/scripts/create_readme.sh`
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> Don't push your host's folder
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# Keybindings
|
||||||
|
|
||||||
|
The list of the keybindings working on Hyprland:
|
||||||
|
|
||||||
|
| Description | Keybinding | Command |
|
||||||
|
| --------------------------- | ---------------------- | ------------------------------------------------------------------ |
|
||||||
|
| Switch Workspace | SUPER + {Number} | workspace {Number} |
|
||||||
|
| Move app to Workspace | SUPER SHIFT + {Number} | movetoworkspace {Number} |
|
||||||
|
| Kitty | SUPER + RETURN | exec \${pkgs.kitty}/bin/kitty |
|
||||||
|
| Thunar | SUPER + E | exec \${pkgs.xfce.thunar}/bin/thunar |
|
||||||
|
| Qutebrowser | SUPER + B | exec \${pkgs.qutebrowser}/bin/qutebrowser |
|
||||||
|
| Bitwarden | SUPER + K | exec \${pkgs.bitwarden}/bin/bitwarden |
|
||||||
|
| Peaclock | SUPER + C | exec \${pkgs.kitty}/bin/kitty --class peaclock peaclock |
|
||||||
|
| Lock | SUPER + L | exec \${pkgs.hyprlock}/bin/hyprlock |
|
||||||
|
| Powermenu | SUPER + X | exec powermenu |
|
||||||
|
| Launcher | SUPER + SPACE | exec menu |
|
||||||
|
| Close window | SUPER + Q | killactive |
|
||||||
|
| Toggle Floating | SUPER + T | togglefloating |
|
||||||
|
| Toggle Fullscreen | SUPER + F | fullscreen |
|
||||||
|
| Move focus left | SUPER + left | movefocus l |
|
||||||
|
| Move focus Right | SUPER + right | movefocus r |
|
||||||
|
| Move focus Up | SUPER + up | movefocus u |
|
||||||
|
| Move focus Down | SUPER + down | movefocus d |
|
||||||
|
| Screenshot window | SUPER + PRINT | exec screenshot window |
|
||||||
|
| Screenshot monitor | PRINT | exec screenshot monitor |
|
||||||
|
| Screenshot region | SUPER SHIFT + PRINT | exec screenshot region |
|
||||||
|
| Screenshot region then edit | ALT PRINT | exec screenshot region swappy |
|
||||||
|
| Turn off night shift | SUPER + F2 | exec night-shift-off |
|
||||||
|
| Turn on night shift | SUPER + F3 | exec night-shift-on |
|
||||||
|
| Choose sound output | SUPER + F5 | exec \${pkgs.kitty}/bin/kitty --class floating zsh -c sound-output |
|
||||||
|
| Move Window (mouse) | SUPER + mouse:272 | movewindow |
|
||||||
|
| Resize Window (mouse) | SUPER + R | resizewindow |
|
||||||
|
| Toggle Mute | XF86AudioMute | exec sound-toggle |
|
||||||
|
| Lock when closing Lid | switch:Lid Switch | exec \${pkgs.hyprlock}/bin/hyprlock |
|
||||||
|
| Sound Up | XF86AudioRaiseVolume | exec sound-up |
|
||||||
|
| Sound Down | XF86AudioLowerVolume | exec sound-down |
|
||||||
|
| Brightness Up | XF86MonBrightnessUp | exec brightness-up |
|
||||||
|
| Brightness Down | XF86MonBrightnessDown | exec brightness-down |
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
# Scripts
|
||||||
|
|
||||||
|
Scripts are located in the `home/scripts` folder. Home-manager add those in the path.
|
||||||
|
|
||||||
|
## Nix/NixOs shortcuts
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> The `hostname` variable in `hosts/yourhost/variables.nix` should be also the name of the `nixosConfiguration` in `flake.nix` file.
|
||||||
|
|
||||||
|
- `nixy` # UI
|
||||||
|
- `nixy rebuild`
|
||||||
|
- `nixy update`
|
||||||
|
- `nixy upgrade`
|
||||||
|
- `nixy gc` # garbage collection
|
||||||
|
- `nixy cb` # clean boot menu
|
||||||
|
|
||||||
|
## Brightness control
|
||||||
|
|
||||||
|
- `brightness-up`
|
||||||
|
- `brightness-down`
|
||||||
|
- `brightness-change <up/down> <increment>`
|
||||||
|
|
||||||
|
## Sound control
|
||||||
|
|
||||||
|
- `sound-up`
|
||||||
|
- `sound-down`
|
||||||
|
- `sound-toggle`
|
||||||
|
- `sound-output`
|
||||||
|
- `sound-change [up/down/mute] <increment>`
|
||||||
|
|
||||||
|
## Caffeine
|
||||||
|
|
||||||
|
Caffeine is a simple script that toggles hypridle (disable suspend & screenlock).
|
||||||
|
|
||||||
|
- `caffeine` # Toggle caffeine
|
||||||
|
- `caffeine-status` # Return active/inactive
|
||||||
|
|
||||||
|
## Night-Shift
|
||||||
|
|
||||||
|
Blue light filter, using wlsunset
|
||||||
|
|
||||||
|
- `night-shift` # Toggle night shift
|
||||||
|
- `night-shift-status` # Return active/inactive
|
||||||
|
- `night-shift-on`
|
||||||
|
- `night-shift-off`
|
||||||
|
|
||||||
|
## Nerdfont FZF
|
||||||
|
|
||||||
|
Nerdfont fzf is a quick way to search for nerdfont icons locally.
|
||||||
|
It will copy the selected icon to the clipboard.
|
||||||
|
|
||||||
|
- `nerdfont-fzf`
|
||||||
|
|
||||||
|
## Compress/Extract
|
||||||
|
|
||||||
|
Some shortcuts to compress and extract files.
|
||||||
|
|
||||||
|
- `compress` ...
|
||||||
|
- `extract` ...
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
# Themes
|
||||||
|
|
||||||
|
Themes are defined in `hosts/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.
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> To apply the theme to DuckDuckGo, follow the instructions in `$HOME/.duckduckgo-colorscheme.js`
|
||||||
|
|
||||||
|
## Create your theme
|
||||||
|
|
||||||
|
Create a copy of one of the existing themes and change the variables.
|
||||||
|
Wallpapers are loaded from the `home/wallpapers` folder.
|
||||||
|
|
||||||
|
## Gallery
|
||||||
|
|
||||||
|
### Nixy
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
### Catppuccin
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
### Windows
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
# Todolist
|
||||||
|
|
||||||
|
feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
|
||||||
|
|
||||||
|
- [ ] Jackflix V2
|
||||||
|
- Backup Radarr, Prowlarr, Sonarr config
|
||||||
|
|
||||||
|
- [ ] Nixy
|
||||||
|
- [~] Installation script ([install.sh](./scripts/install.sh) to test on a fresh install)
|
||||||
|
- [~] Variables-template with defaults
|
||||||
|
- [ ] Themes
|
||||||
|
- [ ] macOS theme
|
||||||
|
- [ ] Tofi (Wofi, but terminal based)
|
||||||
|
|
||||||
|
- [ ] Qutebrowser
|
||||||
|
- [ ] !!! Bitwarden integration (I need this.)
|
||||||
|
|
||||||
|
- [ ] Hyprland
|
||||||
|
- [-] Implement Hyprcursor (see home/system/hyprland/hyprcursor.nix: Not working, small cursor on some apps, big one on others)
|
||||||
|
- [ ] Animations based on app name
|
||||||
|
- [ ] Wofi: popin
|
||||||
|
- [ ] Wlogout: fade in
|
||||||
|
- [ ] Fix screenshots
|
||||||
|
- [ ] Fix hyprlock
|
||||||
|
- [ ] Hyprlock tty theme
|
||||||
|
|
||||||
|
- [ ] Nixvim
|
||||||
|
- [ ] Keymaps:
|
||||||
|
- Trouble
|
||||||
|
- Tagbar
|
||||||
|
- [ ] Disable background color for headlines.nvim for titles
|
||||||
|
|
||||||
|
- [ ] Backup system for some folders ($home/dev, $home/pictures, ...)
|
||||||
|
- [ ] Exclude file pattern (nodes modules, ...)
|
||||||
|
- [ ] Auto backup when a specific usb key is plugged
|
||||||
|
- [ ] Pika backup?
|
||||||
|
|
||||||
|
- [ ] Markdown to pdf tool
|
||||||
|
|
||||||
|
- [ ] Server
|
||||||
|
- [ ] Bitcoin-git
|
||||||
|
- [ ] ServerFetch: Neofetch like, but for server: CPU, RAM, Disk, Network, Uptime, status (check with uptime kuma API)
|
||||||
|
- [ ] Ntfy auth file
|
||||||
|
- [ ] Launch transmission-openvpn on boot (see hosts/server/modules/jackflix/transmission.nix)
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
# Wallpapers
|
||||||
|
|
||||||
|
Wallpapers can be found in the `/home/wallpapers` folder.
|
||||||
|
|
||||||
|
| Name | Preview |
|
||||||
|
|---------------------|----------------------------------------------------------------|
|
||||||
|
| astronaut.png |  |
|
||||||
|
| aurore.png |  |
|
||||||
|
| barcode.png |  |
|
||||||
|
| cat-leaves.png |  |
|
||||||
|
| city.png |  |
|
||||||
|
| cloud.png |  |
|
||||||
|
| clouds2.png |  |
|
||||||
|
| clouds.png |  |
|
||||||
|
| coffee.png |  |
|
||||||
|
| dark_cloud.png |  |
|
||||||
|
| dark.png |  |
|
||||||
|
| fuji-dark.png |  |
|
||||||
|
| fuji-light.png |  |
|
||||||
|
| galaxy.png |  |
|
||||||
|
| house-cloud.png |  |
|
||||||
|
| key.png |  |
|
||||||
|
| lavender-cat.png |  |
|
||||||
|
| lofi-computer.png |  |
|
||||||
|
| lofi-urban.png |  |
|
||||||
|
| magma.png |  |
|
||||||
|
| mountains-black.png |  |
|
||||||
|
| mountains.png |  |
|
||||||
|
| nix.png |  |
|
||||||
|
| problems.png |  |
|
||||||
|
| sea.png |  |
|
||||||
|
| see.png |  |
|
||||||
|
| space2.png |  |
|
||||||
|
| space.png |  |
|
||||||
|
| street.png |  |
|
||||||
|
| sun.png |  |
|
||||||
|
| tokyo.png |  |
|
||||||
|
| train.png |  |
|
||||||
|
| windows.png |  |
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Compress png files in ./docs/src and ./home/wallpapers
|
||||||
|
|
||||||
|
[[ -d "./docs" ]] || (echo "Folder ./docs not found" && exit 1)
|
||||||
|
|
||||||
|
# Main images
|
||||||
|
for file in ./docs/src/*.png; do
|
||||||
|
optipng "$file"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Theme's images
|
||||||
|
for file in ./docs/src/*/*.png; do
|
||||||
|
optipng "$file"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Wallpapers
|
||||||
|
for file in ./home/wallpapers/*.png; do
|
||||||
|
optipng "$file"
|
||||||
|
done
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
[[ -d "./docs" ]] || (echo "Folder ./docs not found" && exit 1)
|
||||||
|
|
||||||
|
# Create WALLPAPERS.md to preview wallpapers in ./home/wallpapers
|
||||||
|
|
||||||
|
WALLPAPERS_FOLDER="./home/wallpapers"
|
||||||
|
WALLPAPERS_MD="./docs/WALLPAPERS.md"
|
||||||
|
[[ -d "$WALLPAPERS_FOLDER" ]] || (echo "Wallpapers folder not found" && exit 1)
|
||||||
|
|
||||||
|
echo "# Wallpapers" >"$WALLPAPERS_MD"
|
||||||
|
echo "" >>"$WALLPAPERS_MD"
|
||||||
|
echo "Wallpapers can be found in the \`/home/wallpapers\` folder." >>"$WALLPAPERS_MD"
|
||||||
|
echo "" >>"$WALLPAPERS_MD"
|
||||||
|
echo "| Name | Preview |" >>"$WALLPAPERS_MD"
|
||||||
|
echo "| -- | -- |" >>"$WALLPAPERS_MD"
|
||||||
|
|
||||||
|
for file in "$WALLPAPERS_FOLDER"/*.png; do
|
||||||
|
filename=$(basename "$file")
|
||||||
|
echo "| $filename |  |" >>"$WALLPAPERS_MD"
|
||||||
|
done
|
||||||
|
|
||||||
|
pandoc -t commonmark_x "$WALLPAPERS_MD" -o "/tmp/wallpapers.md"
|
||||||
|
mv "/tmp/wallpapers.md" "$WALLPAPERS_MD"
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Create the README.md file from the docs/src/README_template.md file
|
||||||
|
|
||||||
|
[[ -d "./docs" ]] || (echo "Folder ./docs not found" && exit 1)
|
||||||
|
|
||||||
|
README_FILE="./README.md"
|
||||||
|
|
||||||
|
header=$(cat "./docs/src/header.md")
|
||||||
|
table_of_content=$(md-table-of-contents ./docs/src/README_template.md) # https://github.com/anotherhadi/md-table-of-contents
|
||||||
|
version=$(git describe --tags --abbrev=0)
|
||||||
|
readme_content=$(cat "./docs/src/README_template.md")
|
||||||
|
description=$(curl -s https://api.github.com/repos/anotherhadi/nixy | jq .description)
|
||||||
|
description="${description%\"}"
|
||||||
|
description="${description#\"}"
|
||||||
|
|
||||||
|
header=${header//\{date\}/$(date '+%D')}
|
||||||
|
header=${header//\{primarycolor\}/89b4fa}
|
||||||
|
header=${header//\{backgroundcolor\}/181825}
|
||||||
|
header=${header//\{version\}/$version}
|
||||||
|
header=${header//\{description\}/$description}
|
||||||
|
readme_content=${readme_content//\{md_table_of_content\}/$table_of_content}
|
||||||
|
|
||||||
|
echo "$header" >"$README_FILE"
|
||||||
|
echo "$readme_content" >>"$README_FILE"
|
||||||
|
sed 's/\r//' "$README_FILE" >"/tmp/readme.md"
|
||||||
|
mv "/tmp/readme.md" "$README_FILE"
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# A script to parse the Hyprland configuration to store keybindings in a table
|
||||||
|
|
||||||
|
[[ -d "./docs" ]] || (echo "Folder ./docs not found" && exit 1)
|
||||||
|
|
||||||
|
KEYBINDINGS_FILE="./docs/KEYBINDINGS.md"
|
||||||
|
|
||||||
|
function getList() {
|
||||||
|
content=$1
|
||||||
|
name=$2
|
||||||
|
list_start=$(echo "$content" | sed "/$name = \[/!d;=;Q")
|
||||||
|
list=$(echo "$content" | tail +"$list_start")
|
||||||
|
list_end=$(echo "$list" | sed '/\]/!d;=;Q')
|
||||||
|
list=$(echo "$list" | head -n"$list_end")
|
||||||
|
|
||||||
|
echo "$list"
|
||||||
|
}
|
||||||
|
|
||||||
|
[[ -f "./home/system/hyprland/default.nix" ]] || (echo "File ./home/system/hyprland/default.nix not found" && exit 1)
|
||||||
|
|
||||||
|
config=$(cat "./home/system/hyprland/default.nix")
|
||||||
|
|
||||||
|
# Bind
|
||||||
|
bind=$(getList "$config" "bind")
|
||||||
|
# Bindm (mouse)
|
||||||
|
bindm=$(getList "$config" "bindm")
|
||||||
|
# Bindl (lock)
|
||||||
|
bindl=$(getList "$config" "bindl")
|
||||||
|
# Bindle (lock, repetition)
|
||||||
|
bindle=$(getList "$config" "bindle")
|
||||||
|
|
||||||
|
# Join the lists:
|
||||||
|
keybindings=$(echo -e "$bind\n$bindm\n$bindl\n$bindle" | grep '"')
|
||||||
|
|
||||||
|
echo "# Keybindings" >"$KEYBINDINGS_FILE"
|
||||||
|
echo "" >>"$KEYBINDINGS_FILE"
|
||||||
|
echo "The list of the keybindings working on Hyprland:" >>"$KEYBINDINGS_FILE"
|
||||||
|
echo "" >>"$KEYBINDINGS_FILE"
|
||||||
|
|
||||||
|
echo "| Description | Keybinding |" >>"$KEYBINDINGS_FILE"
|
||||||
|
echo "| -- | -- |" >>"$KEYBINDINGS_FILE"
|
||||||
|
echo "| Switch Workspace | SUPER + {Number} |" >>"$KEYBINDINGS_FILE"
|
||||||
|
echo "| Move app to Workspace | SHIFT + SUPER + {Number} |" >>"$KEYBINDINGS_FILE"
|
||||||
|
echo "$keybindings" | while read line; do
|
||||||
|
comment=$(echo "$line" | cut -d\# -f2)
|
||||||
|
line=$(echo "$line" | cut -d\# -f1)
|
||||||
|
line=${line:1:${#line}-3}
|
||||||
|
mod=$(echo "$line" | cut -d, -f1)
|
||||||
|
key=$(echo "$line" | cut -d, -f2)
|
||||||
|
dispatcher=$(echo "$line" | cut -d, -f3)
|
||||||
|
params=$(echo "$line" | cut -d, -f4)
|
||||||
|
|
||||||
|
[[ $mod == '$mod' ]] && mod="SUPER + "
|
||||||
|
[[ $mod == '$shiftMod' ]] && mod="SHIFT + SUPER + "
|
||||||
|
|
||||||
|
echo "| $comment | $mod$key |" >>"$KEYBINDINGS_FILE"
|
||||||
|
done
|
||||||
|
|
||||||
|
pandoc -t commonmark_x "$KEYBINDINGS_FILE" -o "/tmp/keybindings.md"
|
||||||
|
mv "/tmp/keybindings.md" "$KEYBINDINGS_FILE"
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
[[ -d "./docs" ]] || (echo "Folder ./docs not found" && exit 1)
|
||||||
|
|
||||||
|
TAG=$(git describe --tags --abbrev=0)
|
||||||
|
echo "Current tag: $TAG"
|
||||||
|
|
||||||
|
read -rp "Enter the new tag name: " NEW_TAG
|
||||||
|
|
||||||
|
echo "Compresing png files..."
|
||||||
|
bash ./docs/scripts/compress_png.sh
|
||||||
|
echo "Creating wallpapers preview..."
|
||||||
|
bash ./docs/scripts/create_preview_wallpapers.sh
|
||||||
|
echo "Creating README.md..."
|
||||||
|
bash ./docs/scripts/create_readme.sh
|
||||||
|
echo "Creating keybindings.md..."
|
||||||
|
bash ./docs/scripts/create_keybindings.sh
|
||||||
|
|
||||||
|
git add .
|
||||||
|
git commit -m "Release $NEW_TAG"
|
||||||
|
git tag -a "$NEW_TAG" -m "Release $NEW_TAG"
|
||||||
|
git push origin "$NEW_TAG"
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
[ "$1" = "" ] && echo "Usage: $0 <theme_name>" && exit 1
|
||||||
|
theme_name=$1
|
||||||
|
|
||||||
|
# Switch to workspace 1
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
# Step 1
|
||||||
|
kitty --class peaclock peaclock &
|
||||||
|
sleep 1
|
||||||
|
menu &
|
||||||
|
sleep 1
|
||||||
|
hyprshot -m "output" -m "active" -o "$HOME/.config/nixos/docs/src/$theme_name" -f "1.png" -d
|
||||||
|
sleep 2
|
||||||
|
pkill peaclock
|
||||||
|
menu
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
# Step 2
|
||||||
|
kitty cmatrix &
|
||||||
|
sleep 1
|
||||||
|
kitty &
|
||||||
|
sleep 1
|
||||||
|
qutebrowser &
|
||||||
|
sleep 3
|
||||||
|
hyprshot -m "output" -m "active" -o "$HOME/.config/nixos/docs/src/$theme_name" -f "2.png" -d
|
||||||
|
sleep 2
|
||||||
|
pkill cmatrix
|
||||||
|
pkill --newest qutebrowser ""
|
||||||
|
pkill --newest kitty
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
# Step 3
|
||||||
|
kitty cava &
|
||||||
|
sleep 1
|
||||||
|
spotify &
|
||||||
|
sleep 10
|
||||||
|
brightness-down
|
||||||
|
sleep 1
|
||||||
|
hyprshot -m "output" -m "active" -o "$HOME/.config/nixos/docs/src/$theme_name" -f "3.png" -d
|
||||||
|
sleep 2
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
|
||||||
|
**Nixy** is a **Hyprland** NixOS configuration with **home-manager**, **secrets**, and **custom theming** all in one place.
|
||||||
|
It's a simple way to manage your system configuration and dotfiles.
|
||||||
|
|
||||||
|
## Table of Content
|
||||||
|
|
||||||
|
{md_table_of_content}
|
||||||
|
|
||||||
|
## Gallery
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
- 🏠 `home` are the dotfiles and configuration files for the users
|
||||||
|
- 'programs' is a collection of apps configured with home-manager
|
||||||
|
- 'scripts' is a folder full of bash scripts (see [SCRIPTS.md](docs/SCRIPTS.md))
|
||||||
|
- 'system' is some desktop environment like configuration
|
||||||
|
- 'wallpapers' are... wallpapers
|
||||||
|
- 💻 `hosts` are the system configuration files
|
||||||
|
- 'laptop' is my configuration for my laptop with Nvidia that you can copy
|
||||||
|
- 'server' is for my homeserver (w/nextcloud, nginx, vaultwarden, ... look `hosts/server`)
|
||||||
|
- 'themes' contains all the *themes* available *(see [THEMES.md](docs/THEMES.md))*
|
||||||
|
- 'modules' are some nix modules that you can import (Nvidia, prime, fonts, ...)
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
||||||
|
```
|
||||||
|
|
||||||
|
- Copy the `hosts/laptop` folder, rename it to your system name, and change the variables inside the `variables.nix` file
|
||||||
|
- Add your `hardware-configuration.nix` to your new host's folder
|
||||||
|
- Add your 'nixosConfigurations' inside `flake.nix` (You can edit your hostname one and change the lines containing '# CHANGEME')
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> When you add new files, don't forget to run `git add .` to add them to the git repository
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
- [THEMES.md](docs/THEMES.md): How themes work and how to create your own
|
||||||
|
- [APPS.md](docs/APPS.md): Which apps are installed
|
||||||
|
- [SCRIPTS.md](docs/SCRIPTS.md): Scripts that are available
|
||||||
|
- [KEYBINDINGS.md](docs/KEYBINDINGS.md): Keybindings available in Hyprland
|
||||||
|
- [WALLPAPERS.md](docs/WALLPAPERS.md): Preview of every wallpapers available
|
||||||
|
|
||||||
|
- [TODO.md](docs/TODO.md): What's next (feel free to contribute)
|
||||||
|
- [CONTRIBUTING.md](docs/CONTRIBUTING.md): How to contribute
|
||||||
|
- [LICENSE](LICENSE): MIT License
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
[//]: # (Title: Nixy)
|
||||||
|
[//]: # (Description: {description})
|
||||||
|
[//]: # (Author: Hadi)
|
||||||
|
[//]: # (Date: {date})
|
||||||
|
[//]: # (Version: {version})
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<img src="https://raw.githubusercontent.com/anotherhadi/nixy/main/docs/src/logo.png" width="100px" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
# Nixy
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<div align="center">
|
||||||
|
<a href="https://github.com/anotherhadi/nixy">
|
||||||
|
<img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=Version&message={version}&colorA={backgroundcolor}&colorB={primarycolor}&logo=githubactions&logoColor={primarycolor}"/>
|
||||||
|
</a>
|
||||||
|
<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>
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 5.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1 @@
|
|||||||
|
8c00e379ddd7f89e4bbf9f381a5721d980c8026f
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
62b52ad02a886c19a8cfe1ea17e8aaad50f23632
|
||||||
Generated
+442
-117
@@ -11,11 +11,11 @@
|
|||||||
"sf-pro": "sf-pro"
|
"sf-pro": "sf-pro"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705496891,
|
"lastModified": 1719591391,
|
||||||
"narHash": "sha256-lLX87aJ9oUT3u0Iaf60xKIJ2RQNt3v4Ne2cvSWyaS7U=",
|
"narHash": "sha256-sVTFewitXIYe5vBihbCFQGdBPdnT26kES1T05umBBnE=",
|
||||||
"owner": "Lyndeno",
|
"owner": "Lyndeno",
|
||||||
"repo": "apple-fonts.nix",
|
"repo": "apple-fonts.nix",
|
||||||
"rev": "e6ffbc887752ba0fe035fbcc8b282555804dd3f6",
|
"rev": "0e21619dad5b0d9ca2e050155e32448380547b06",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -24,20 +24,52 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"aquamarine": {
|
||||||
|
"inputs": {
|
||||||
|
"hyprutils": [
|
||||||
|
"hyprland",
|
||||||
|
"hyprutils"
|
||||||
|
],
|
||||||
|
"hyprwayland-scanner": [
|
||||||
|
"hyprland",
|
||||||
|
"hyprwayland-scanner"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1723920171,
|
||||||
|
"narHash": "sha256-dVCMrAe+D/5S91erhwQj2DSzHOVzAanWqoy+vPWB9DY=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "aquamarine",
|
||||||
|
"rev": "71d49670fe246cdaff4860b0effba0ab9f163b72",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "aquamarine",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"devshell": {
|
"devshell": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_2",
|
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixvim",
|
"nixvim",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710156081,
|
"lastModified": 1722113426,
|
||||||
"narHash": "sha256-4PMY6aumJi5dLFjBzF5O4flKXmadMNq3AGUHKYfchh0=",
|
"narHash": "sha256-Yo/3loq572A8Su6aY5GP56knpuKYRvM2a1meP9oJZCw=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "devshell",
|
"repo": "devshell",
|
||||||
"rev": "bc68b058dc7e6d4d6befc4ec6c60082b6e844b7d",
|
"rev": "67cce7359e4cd3c45296fb4aaf6a19e2a9c757ae",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -60,22 +92,6 @@
|
|||||||
"url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"
|
"url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat_2": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1696426674,
|
|
||||||
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
@@ -84,11 +100,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1709336216,
|
"lastModified": 1722555600,
|
||||||
"narHash": "sha256-Dt/wOWeW6Sqm11Yh+2+t0dfEWxoMxGBvv3JpIocFl9E=",
|
"narHash": "sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC+x4=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "f7b3c975cf067e56e7cda6cb098ebe3fb4d74ca2",
|
"rev": "8471fe90ad337a8074e957b69ca4d0089218391d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -102,11 +118,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705309234,
|
"lastModified": 1710146030,
|
||||||
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
|
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
|
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -117,14 +133,14 @@
|
|||||||
},
|
},
|
||||||
"flake-utils_2": {
|
"flake-utils_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_2"
|
"systems": "systems_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1701680307,
|
"lastModified": 1710146030,
|
||||||
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
|
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
|
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -134,24 +150,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_3": {
|
"flake-utils_3": {
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_3"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1701680307,
|
|
||||||
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils_4": {
|
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_4"
|
"systems": "systems_4"
|
||||||
},
|
},
|
||||||
@@ -169,20 +167,50 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"gitignore": {
|
"git-hooks": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"flake-compat": [
|
||||||
|
"nixvim",
|
||||||
|
"flake-compat"
|
||||||
|
],
|
||||||
|
"gitignore": "gitignore",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixvim",
|
"nixvim",
|
||||||
"pre-commit-hooks",
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nixpkgs-stable": [
|
||||||
|
"nixvim",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703887061,
|
"lastModified": 1723202784,
|
||||||
"narHash": "sha256-gGPa9qWNc6eCXT/+Z5/zMkyYOuRZqeFZBDbopNZQkuY=",
|
"narHash": "sha256-qbhjc/NEGaDbyy0ucycubq4N3//gDFFH3DOmp1D3u1Q=",
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "git-hooks.nix",
|
||||||
|
"rev": "c7012d0c18567c889b948781bc74a501e92275d1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "git-hooks.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gitignore": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixvim",
|
||||||
|
"git-hooks",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1709087332,
|
||||||
|
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "gitignore.nix",
|
"repo": "gitignore.nix",
|
||||||
"rev": "43e1aa1308018f37118e34d3a9cb4f5e75dc11d5",
|
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -198,11 +226,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710281778,
|
"lastModified": 1723986931,
|
||||||
"narHash": "sha256-bvWr9vvBrAxb44kHM3H3cY/uQg+4pYP1BM/Nu3e/7V8=",
|
"narHash": "sha256-Fy+KEvDQ+Hc8lJAV3t6leXhZJ2ncU5/esxkgt3b8DEY=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "49a266d2ca59df8a03249550e73a54626181b65d",
|
"rev": "2598861031b78aadb4da7269df7ca9ddfc3e1671",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -219,11 +247,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710062421,
|
"lastModified": 1723399884,
|
||||||
"narHash": "sha256-FiCNRfyUgJOLYIokLiFsfI7B+Zn9HDnOzFR3uVr5qsQ=",
|
"narHash": "sha256-97wn0ihhGqfMb8WcUgzzkM/TuAxce2Gd20A8oiruju4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "36f873dfc8e2b6b89936ff3e2b74803d50447e0a",
|
"rev": "086f619dd991a4d355c07837448244029fc2d9ab",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -232,6 +260,168 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"hyprcursor": {
|
||||||
|
"inputs": {
|
||||||
|
"hyprlang": [
|
||||||
|
"hyprland",
|
||||||
|
"hyprlang"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1722623071,
|
||||||
|
"narHash": "sha256-sLADpVgebpCBFXkA1FlCXtvEPu1tdEsTfqK1hfeHySE=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprcursor",
|
||||||
|
"rev": "912d56025f03d41b1ad29510c423757b4379eb1c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprcursor",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprland": {
|
||||||
|
"inputs": {
|
||||||
|
"aquamarine": "aquamarine",
|
||||||
|
"hyprcursor": "hyprcursor",
|
||||||
|
"hyprlang": "hyprlang",
|
||||||
|
"hyprutils": "hyprutils",
|
||||||
|
"hyprwayland-scanner": "hyprwayland-scanner",
|
||||||
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"systems": "systems_2",
|
||||||
|
"xdph": "xdph"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1724014641,
|
||||||
|
"narHash": "sha256-ub/HCvrxuvvqmnWpNdcyi/mp0G9+rNjtKHrA7cwyuis=",
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"rev": "f4045ab8d032186b7c5409cd9f05eeaa813320ba",
|
||||||
|
"revCount": 5109,
|
||||||
|
"submodules": true,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/hyprwm/Hyprland"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"submodules": true,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/hyprwm/Hyprland"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprland-protocols": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"xdph",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"xdph",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1721326555,
|
||||||
|
"narHash": "sha256-zCu4R0CSHEactW9JqYki26gy8h9f6rHmSwj4XJmlHgg=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprland-protocols",
|
||||||
|
"rev": "5a11232266bf1a1f5952d5b179c3f4b2facaaa84",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprland-protocols",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprlang": {
|
||||||
|
"inputs": {
|
||||||
|
"hyprutils": [
|
||||||
|
"hyprland",
|
||||||
|
"hyprutils"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1721324361,
|
||||||
|
"narHash": "sha256-BiJKO0IIdnSwHQBSrEJlKlFr753urkLE48wtt0UhNG4=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprlang",
|
||||||
|
"rev": "adbefbf49664a6c2c8bf36b6487fd31e3eb68086",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprlang",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprutils": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1722869141,
|
||||||
|
"narHash": "sha256-0KU4qhyMp441qfwbirNg3+wbm489KnEjXOz2I/RbeFs=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprutils",
|
||||||
|
"rev": "0252fd13e78e60fb0da512a212e56007515a49f7",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprutils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprwayland-scanner": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1721324119,
|
||||||
|
"narHash": "sha256-SOOqIT27/X792+vsLSeFdrNTF+OSRp5qXv6Te+fb2Qg=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprwayland-scanner",
|
||||||
|
"rev": "a048a6cb015340bd82f97c1f40a4b595ca85cc30",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprwayland-scanner",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nix-darwin": {
|
"nix-darwin": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -240,11 +430,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1709771483,
|
"lastModified": 1722924007,
|
||||||
"narHash": "sha256-Hjzu9nCknHLQvhdaRFfCEprH0o15KcaNu1QDr3J88DI=",
|
"narHash": "sha256-+CQDamNwqO33REJLft8c26NbUi2Td083hq6SvAm2xkU=",
|
||||||
"owner": "lnl7",
|
"owner": "lnl7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "550340062c16d7ef8c2cc20a3d2b97bcd3c6b6f6",
|
"rev": "91010a5613ffd7ee23ee9263213157a1c422b705",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -253,13 +443,29 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixos-hardware": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1723310128,
|
||||||
|
"narHash": "sha256-IiH8jG6PpR4h9TxSGMYh+2/gQiJW9MwehFvheSb5rPc=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"rev": "c54cf53e022b0b3c1d3b8207aa0f9b194c24f0cf",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "master",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1696375444,
|
"lastModified": 1717786204,
|
||||||
"narHash": "sha256-Sv0ICt/pXfpnFhTGYTsX6lUr1SljnuXWejYTI2ZqHa4=",
|
"narHash": "sha256-4q0s6m0GUcN7q+Y2DqD27iLvbcd1G50T2lv08kKxkSI=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "81e8f48ebdecf07aab321182011b067aafc78896",
|
"rev": "051f920625ab5aabe37c920346e3e69d7d34400e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -269,13 +475,45 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-stable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1721524707,
|
||||||
|
"narHash": "sha256-5NctRsoE54N86nWd0psae70YSLfrOek3Kv1e8KoXe/0=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "556533a23879fc7e5f98dd2e0b31a6911a213171",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "release-24.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710272261,
|
"lastModified": 1723637854,
|
||||||
"narHash": "sha256-g0bDwXFmTE7uGDOs9HcJsfLFhH7fOsASbAuOzDC+fhQ=",
|
"narHash": "sha256-med8+5DSWa2UnOqtdICndjDAEjxr5D7zaIiK4pn0Q7c=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "c3aa7b8938b17aebd2deecf7be0636000d62a2b9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1723637854,
|
||||||
|
"narHash": "sha256-med8+5DSWa2UnOqtdICndjDAEjxr5D7zaIiK4pn0Q7c=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0ad13a6833440b8e238947e47bea7f11071dc2b2",
|
"rev": "c3aa7b8938b17aebd2deecf7be0636000d62a2b9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -285,7 +523,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1686020360,
|
"lastModified": 1686020360,
|
||||||
"narHash": "sha256-Wee7lIlZ6DIZHHLiNxU5KdYZQl0iprENXa/czzI6Cj4=",
|
"narHash": "sha256-Wee7lIlZ6DIZHHLiNxU5KdYZQl0iprENXa/czzI6Cj4=",
|
||||||
@@ -306,19 +544,21 @@
|
|||||||
"devshell": "devshell",
|
"devshell": "devshell",
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
|
"git-hooks": "git-hooks",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"pre-commit-hooks": "pre-commit-hooks"
|
"nuschtosSearch": "nuschtosSearch",
|
||||||
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710283972,
|
"lastModified": 1724010176,
|
||||||
"narHash": "sha256-kkN0CJwykU4XoTDLHG68eEBXyp+GLTp7eJGDVrI7QIU=",
|
"narHash": "sha256-26fas5WqF8w1PMrMuJNde4bH6WSXFfRbh+L4krgPOzY=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "c2cd3cb7a13c0677c49f46d55a8c65b50b7d9431",
|
"rev": "c52ba6785661f095221aa1e1eb24f57e89d7b2de",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -327,10 +567,47 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nurpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1724012881,
|
||||||
|
"narHash": "sha256-lqn4UX+tvtwOmBZ2Dxh6euXKNcXGEYqPolEdjtONDVY=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"rev": "8c7136cb22fd96cde881225863b450df75876ebc",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nuschtosSearch": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_2",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixvim",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1723367906,
|
||||||
|
"narHash": "sha256-v1qA4WBGDI2uH/TVqRwuXSBP341W681psbzYJ8zrjog=",
|
||||||
|
"owner": "NuschtOS",
|
||||||
|
"repo": "search",
|
||||||
|
"rev": "6ca2c3ae05a915c160512bd41f6810f456c9b30d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NuschtOS",
|
||||||
|
"repo": "search",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"ny": {
|
"ny": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-phACDdjI8RX6yD77PSmFcsriagt+2UuySD7+WEzdzGo=",
|
"narHash": "sha256-FkV8Z2fdUTwvcKeltFJVCisvAarcdnmlj/33exdyxnQ=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
|
||||||
},
|
},
|
||||||
@@ -339,47 +616,23 @@
|
|||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pre-commit-hooks": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat_2",
|
|
||||||
"flake-utils": "flake-utils_3",
|
|
||||||
"gitignore": "gitignore",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixvim",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"nixpkgs-stable": [
|
|
||||||
"nixvim",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1708018599,
|
|
||||||
"narHash": "sha256-M+Ng6+SePmA8g06CmUZWi1AjG2tFBX9WCXElBHEKnyM=",
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "pre-commit-hooks.nix",
|
|
||||||
"rev": "5df5a70ad7575f6601d91f0efec95dd9bc619431",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "pre-commit-hooks.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"apple-fonts": "apple-fonts",
|
"apple-fonts": "apple-fonts",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"hyprland": "hyprland",
|
||||||
|
"nixos-hardware": "nixos-hardware",
|
||||||
|
"nixpkgs": "nixpkgs_3",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
|
"nurpkgs": "nurpkgs",
|
||||||
|
"sops-nix": "sops-nix",
|
||||||
"spicetify-nix": "spicetify-nix"
|
"spicetify-nix": "spicetify-nix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sf-arabic": {
|
"sf-arabic": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-CPewXMGI78xHsjdRU8ZJIBSYjh5UY6UW21ihE4B+Bkk=",
|
"narHash": "sha256-u+Q2Hd+JCiKhIQtbQqawg1lIEgGhjmdGye2cNdWlBG0=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Arabic.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Arabic.dmg"
|
||||||
},
|
},
|
||||||
@@ -391,7 +644,7 @@
|
|||||||
"sf-compact": {
|
"sf-compact": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-nJkPlddKF2dIwj+6jiVvS60hDcGAMasEOWemUwBS2mQ=",
|
"narHash": "sha256-9kXXWmu2zg0LSE7SihItXmBltLvNwyG1Ba6QehvMh04=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Compact.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Compact.dmg"
|
||||||
},
|
},
|
||||||
@@ -403,7 +656,7 @@
|
|||||||
"sf-mono": {
|
"sf-mono": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-KT1RXz3NcWPetyxVlgMfh/dsoznpI3lMnplz6V7PCUU=",
|
"narHash": "sha256-BVmYmgqq79ezgyqNClyHkj2L4N3/PRisPm8YFBQZQ98=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Mono.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Mono.dmg"
|
||||||
},
|
},
|
||||||
@@ -415,7 +668,7 @@
|
|||||||
"sf-pro": {
|
"sf-pro": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-cn8ae2UddF8Pru6i3fSG2Wki5sf1DmWKD2FmKMsoeAA=",
|
"narHash": "sha256-yQhtaEPTuYOIOaC6eSPdka/Jv5Ydw3Mnd8Prlcgjs90=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
|
||||||
},
|
},
|
||||||
@@ -424,10 +677,31 @@
|
|||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"sops-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nixpkgs-stable": "nixpkgs-stable"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1723501126,
|
||||||
|
"narHash": "sha256-N9IcHgj/p1+2Pvk8P4Zc1bfrMwld5PcosVA0nL6IGdE=",
|
||||||
|
"owner": "Mic92",
|
||||||
|
"repo": "sops-nix",
|
||||||
|
"rev": "be0eec2d27563590194a9206f551a6f73d52fa34",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Mic92",
|
||||||
|
"repo": "sops-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"spicetify-nix": {
|
"spicetify-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_4",
|
"flake-utils": "flake-utils_3",
|
||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1704167711,
|
"lastModified": 1704167711,
|
||||||
@@ -460,16 +734,16 @@
|
|||||||
},
|
},
|
||||||
"systems_2": {
|
"systems_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1689347949,
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
||||||
"owner": "nix-systems",
|
"owner": "nix-systems",
|
||||||
"repo": "default",
|
"repo": "default-linux",
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-systems",
|
"owner": "nix-systems",
|
||||||
"repo": "default",
|
"repo": "default-linux",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -502,6 +776,57 @@
|
|||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"treefmt-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixvim",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1723454642,
|
||||||
|
"narHash": "sha256-S0Gvsenh0II7EAaoc9158ZB4vYyuycvMGKGxIbERNAM=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"rev": "349de7bc435bdff37785c2466f054ed1766173be",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"xdph": {
|
||||||
|
"inputs": {
|
||||||
|
"hyprland-protocols": "hyprland-protocols",
|
||||||
|
"hyprlang": [
|
||||||
|
"hyprland",
|
||||||
|
"hyprlang"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1722365976,
|
||||||
|
"narHash": "sha256-Khdm+mDzYA//XaU0M+hftod+rKr5q9SSHSEuiQ0/9ow=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "xdg-desktop-portal-hyprland",
|
||||||
|
"rev": "7f2a77ddf60390248e2a3de2261d7102a13e5341",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "xdg-desktop-portal-hyprland",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
description = "NixOS configuration";
|
# https://github.com/anotherhadi/nixy
|
||||||
|
description = ''
|
||||||
|
Nixy is a NixOS configuration with home-manager, secrets and custom theming all in one place.
|
||||||
|
It's a simple way to manage your system configuration and dotfiles.
|
||||||
|
'';
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
@@ -13,30 +17,56 @@
|
|||||||
};
|
};
|
||||||
apple-fonts.url = "github:Lyndeno/apple-fonts.nix";
|
apple-fonts.url = "github:Lyndeno/apple-fonts.nix";
|
||||||
spicetify-nix.url = "github:the-argus/spicetify-nix";
|
spicetify-nix.url = "github:the-argus/spicetify-nix";
|
||||||
|
sops-nix = {
|
||||||
|
url = "github:Mic92/sops-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
|
nurpkgs.url = "github:nix-community/NUR";
|
||||||
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, home-manager, nixvim, spicetify-nix, ... }: {
|
outputs = inputs@{ nixpkgs, ... }: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
nixy = nixpkgs.lib.nixosSystem {
|
|
||||||
|
nixy = nixpkgs.lib.nixosSystem { # CHANGE ME
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./nixos/configuration.nix
|
./hosts/laptop/configuration.nix # CHANGE ME
|
||||||
./hosts
|
inputs.nixos-hardware.nixosModules.omen-16-n0005ne # CHANGE ME
|
||||||
{ _module.args = { inherit inputs; }; }
|
inputs.home-manager.nixosModules.home-manager
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
{
|
{
|
||||||
|
nixpkgs.overlays = [ inputs.nurpkgs.overlay ];
|
||||||
|
_module.args = { inherit inputs; };
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users.hadi = import ./home/home.nix; # CHANGEME - replace "hadi"
|
users."hadi" = import ./hosts/laptop/home.nix; # CHANGE ME
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = { inherit inputs; };
|
||||||
inherit inputs;
|
|
||||||
inherit spicetify-nix;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
jack = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
inputs.sops-nix.nixosModules.sops
|
||||||
|
./hosts/server/configuration.nix
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [ inputs.nurpkgs.overlay ];
|
||||||
|
_module.args = { inherit inputs; };
|
||||||
|
home-manager = {
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
users."hadi" = import ./hosts/server/home.nix;
|
||||||
|
extraSpecialArgs = { inherit inputs; };
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,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,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,9 @@
|
|||||||
|
{
|
||||||
|
programs.btop = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
color_theme = "Default";
|
||||||
|
theme_background = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
programs.cava = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
general.framerate = 60;
|
||||||
|
smoothing.noise_reduction = 88;
|
||||||
|
color = {
|
||||||
|
background = "'#${config.var.theme.colors.bg}'";
|
||||||
|
foreground = "'#${config.var.theme.colors.accent}'";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{ imports = [ ./neofetch ./nerdfetch ]; }
|
||||||
@@ -0,0 +1,150 @@
|
|||||||
|
{ pkgs, config, ... }: {
|
||||||
|
home.packages = with pkgs; [ neofetch ];
|
||||||
|
|
||||||
|
xdg.configFile."neofetch/ascii.txt".text = ''
|
||||||
|
''${c6}
|
||||||
|
⡏⠉⠉⠉⠉⠉⠉⠋⠉⠉⠉⠉⠉⠉⠋⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠙⠉⠉⠉⢹
|
||||||
|
⡇⢸⣿⡟⠛⢿⣷⠀⢸⣿⡟⠛⢿⣷⡄⢸⣿⡇⠀⢸⣿⡇⢸⣿⡇⠀⢸⣿⡇⢸
|
||||||
|
⡇⢸⣿⣧⣤⣾⠿⠀⢸⣿⣇⣀⣸⡿⠃⢸⣿⡇⠀⢸⣿⡇⢸⣿⣇⣀⣸⣿⡇⢸
|
||||||
|
⡇⢸⣿⡏⠉⢹⣿⡆⢸⣿⡟⠛⢻⣷⡄⢸⣿⡇⠀⢸⣿⡇⢸⣿⡏⠉⢹⣿⡇⢸
|
||||||
|
⡇⢸⣿⣧⣤⣼⡿⠃⢸⣿⡇⠀⢸⣿⡇⠸⣿⣧⣤⣼⡿⠁⢸⣿⡇⠀⢸⣿⡇⢸
|
||||||
|
⣇⣀⣀⣀⣀⣀⣀⣄⣀⣀⣀⣀⣀⣀⣀⣠⣀⡈⠉⣁⣀⣄⣀⣀⣀⣠⣀⣀⣀⣸
|
||||||
|
⣇⣿⠘⣿⣿⣿⡿⡿⣟⣟⢟⢟⢝⠵⡝⣿⡿⢂⣼⣿⣷⣌⠩⡫⡻⣝⠹⢿⣿⣷
|
||||||
|
⡆⣿⣆⠱⣝⡵⣝⢅⠙⣿⢕⢕⢕⢕⢝⣥⢒⠅⣿⣿⣿⡿⣳⣌⠪⡪⣡⢑⢝⣇
|
||||||
|
⡆⣿⣿⣦⠹⣳⣳⣕⢅⠈⢗⢕⢕⢕⢕⢕⢈⢆⠟⠋⠉⠁⠉⠉⠁⠈⠼⢐⢕⢽
|
||||||
|
⡗⢰⣶⣶⣦⣝⢝⢕⢕⠅⡆⢕⢕⢕⢕⢕⣴⠏⣠⡶⠛⡉⡉⡛⢶⣦⡀⠐⣕⢕
|
||||||
|
⡝⡄⢻⢟⣿⣿⣷⣕⣕⣅⣿⣔⣕⣵⣵⣿⣿⢠⣿⢠⣮⡈⣌⠨⠅⠹⣷⡀⢱⢕
|
||||||
|
⡝⡵⠟⠈⢀⣀⣀⡀⠉⢿⣿⣿⣿⣿⣿⣿⣿⣼⣿⢈⡋⠴⢿⡟⣡⡇⣿⡇⡀⢕
|
||||||
|
⡝⠁⣠⣾⠟⡉⡉⡉⠻⣦⣻⣿⣿⣿⣿⣿⣿⣿⣿⣧⠸⣿⣦⣥⣿⡇⡿⣰⢗⢄
|
||||||
|
⠁⢰⣿⡏⣴⣌⠈⣌⠡⠈⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣬⣉⣉⣁⣄⢖⢕⢕⢕
|
||||||
|
⡀⢻⣿⡇⢙⠁⠴⢿⡟⣡⡆⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣵⣵⣿
|
||||||
|
⡻⣄⣻⣿⣌⠘⢿⣷⣥⣿⠇⣿⣿⣿⣿⣿⣿⠛⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
|
||||||
|
⣷⢄⠻⣿⣟⠿⠦⠍⠉⣡⣾⣿⣿⣿⣿⣿⣿⢸⣿⣦⠙⣿⣿⣿⣿⣿⣿⣿⣿⠟
|
||||||
|
⡕⡑⣑⣈⣻⢗⢟⢞⢝⣻⣿⣿⣿⣿⣿⣿⣿⠸⣿⠿⠃⣿⣿⣿⣿⣿⣿⡿⠁⣠
|
||||||
|
⡝⡵⡈⢟⢕⢕⢕⢕⣵⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣿⣿⣿⣿⣿⠿⠋⣀⣈⠙
|
||||||
|
⡝⡵⡕⡀⠑⠳⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⢉⡠⡲⡫⡪⡪⡣
|
||||||
|
'';
|
||||||
|
|
||||||
|
xdg.configFile."neofetch/config.conf".text = ''
|
||||||
|
# From: https://github.com/Chick2D/neofetch-themes/
|
||||||
|
# Made by https://github.com/Dan1jel
|
||||||
|
|
||||||
|
print_info() {
|
||||||
|
prin "\n"
|
||||||
|
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 "\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
|
||||||
|
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_fqdn="off"
|
||||||
|
kernel_shorthand="on"
|
||||||
|
distro_shorthand="off"
|
||||||
|
os_arch="off"
|
||||||
|
uptime_shorthand="on"
|
||||||
|
memory_percent="off"
|
||||||
|
memory_unit="mib"
|
||||||
|
package_managers="on"
|
||||||
|
shell_path="off"
|
||||||
|
shell_version="on"
|
||||||
|
speed_type="bios_limit"
|
||||||
|
speed_shorthand="off"
|
||||||
|
cpu_brand="on"
|
||||||
|
cpu_speed="on"
|
||||||
|
cpu_cores="logical"
|
||||||
|
cpu_temp="off"
|
||||||
|
gpu_brand="on"
|
||||||
|
gpu_type="all"
|
||||||
|
refresh_rate="off"
|
||||||
|
gtk_shorthand="off"
|
||||||
|
gtk2="on"
|
||||||
|
gtk3="on"
|
||||||
|
de_version="on"
|
||||||
|
disk_show=('/storage/emulated' '/' '/server')
|
||||||
|
disk_subtitle="none"
|
||||||
|
disk_percent="on"
|
||||||
|
music_player="auto"
|
||||||
|
song_format="%artist% - %album% - %title%"
|
||||||
|
song_shorthand="off"
|
||||||
|
mpc_args=()
|
||||||
|
colors=(${toString config.var.theme.colors.accentNumber} 1 ${
|
||||||
|
toString config.var.theme.colors.accentNumber
|
||||||
|
} ${toString config.var.theme.colors.accentNumber} 7)
|
||||||
|
bold="on"
|
||||||
|
underline_enabled="on"
|
||||||
|
underline_char="-"
|
||||||
|
separator=":"
|
||||||
|
block_range=(0 15)
|
||||||
|
color_blocks="on"
|
||||||
|
block_width=3
|
||||||
|
block_height=1
|
||||||
|
col_offset="auto"
|
||||||
|
bar_char_elapsed="-"
|
||||||
|
bar_char_total="="
|
||||||
|
bar_border="on"
|
||||||
|
bar_length=15
|
||||||
|
bar_color_elapsed="distro"
|
||||||
|
bar_color_total="distro"
|
||||||
|
cpu_display="off"
|
||||||
|
memory_display="off"
|
||||||
|
battery_display="off"
|
||||||
|
disk_display="off"
|
||||||
|
image_backend="ascii"
|
||||||
|
image_source="$HOME/.config/neofetch/ascii.txt"
|
||||||
|
ascii_distro="auto"
|
||||||
|
ascii_colors=(distro)
|
||||||
|
ascii_bold="on"
|
||||||
|
image_loop="off"
|
||||||
|
thumbnail_dir="''${XDG_CACHE_HOME:-''${HOME}/.cache}/thumbnails/neofetch"
|
||||||
|
crop_mode="normal"
|
||||||
|
crop_offset="center"
|
||||||
|
image_size="auto"
|
||||||
|
gap=2
|
||||||
|
yoffset=0
|
||||||
|
xoffset=0
|
||||||
|
background_color=
|
||||||
|
stdout="off"
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -1,8 +1,5 @@
|
|||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
homedir = config.home.homeDirectory;
|
|
||||||
|
|
||||||
nerdfetch = pkgs.writeShellScriptBin "nerdfetch" ''
|
nerdfetch = pkgs.writeShellScriptBin "nerdfetch" ''
|
||||||
ostype="$(uname)"
|
ostype="$(uname)"
|
||||||
|
|
||||||
@@ -348,9 +345,9 @@ let
|
|||||||
|
|
||||||
## USER VARIABLES -- YOU CAN CHANGE THESE
|
## USER VARIABLES -- YOU CAN CHANGE THESE
|
||||||
|
|
||||||
lc="$reset$bold$magenta" # labels
|
lc="$reset$bold''$${config.var.theme.colors.accentName}" # labels
|
||||||
nc="$reset$bold$magenta" # user
|
nc="$reset$bold''$${config.var.theme.colors.accentName}" # labels
|
||||||
hn="$reset$bold$magenta" # hostname
|
hn="$reset$bold''$${config.var.theme.colors.accentName}" # labels
|
||||||
ic="$reset$white" # info
|
ic="$reset$white" # info
|
||||||
c0="$reset$grey" # first color
|
c0="$reset$grey" # first color
|
||||||
c1="$reset$white" # second color
|
c1="$reset$white" # second color
|
||||||
@@ -369,4 +366,4 @@ let
|
|||||||
"""
|
"""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in { home.packages = with pkgs; [ nerdfetch ]; }
|
in { home.packages = [ nerdfetch ]; }
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = config.var.git.username;
|
||||||
|
userEmail = config.var.git.email;
|
||||||
|
ignores = [
|
||||||
|
".cache/"
|
||||||
|
".DS_Store"
|
||||||
|
".idea/"
|
||||||
|
"*.swp"
|
||||||
|
"*.elc"
|
||||||
|
"auto-save-list"
|
||||||
|
".direnv/"
|
||||||
|
"node_modules"
|
||||||
|
"result"
|
||||||
|
"result-*"
|
||||||
|
];
|
||||||
|
extraConfig = {
|
||||||
|
init.defaultBranch = "main";
|
||||||
|
push.autoSetupRemote = true;
|
||||||
|
};
|
||||||
|
aliases = {
|
||||||
|
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)";
|
||||||
|
af = "!git add $(git ls-files -m -o --exclude-standard | sk -m)";
|
||||||
|
st = "status";
|
||||||
|
br = "branch";
|
||||||
|
df = "!git hist | peco | awk '{print $2}' | xargs -I {} git diff {}^ {}";
|
||||||
|
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'';
|
||||||
|
edit-unmerged =
|
||||||
|
"!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; hx `f`";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
{ config, pkgs, ... }: {
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
scrollback_lines = 10000;
|
||||||
|
initial_window_width = 1200;
|
||||||
|
initial_window_height = 600;
|
||||||
|
update_check_interval = 0;
|
||||||
|
enable_audio_bell = false;
|
||||||
|
confirm_os_window_close = "0";
|
||||||
|
remember_window_size = "no";
|
||||||
|
disable_ligatures = "never";
|
||||||
|
shell = "${pkgs.tmux}/bin/tmux";
|
||||||
|
url_style = "curly";
|
||||||
|
cursor_shape = "Underline";
|
||||||
|
cursor_underline_thickness = config.var.theme.border-size;
|
||||||
|
window_padding_width = config.var.theme.gaps-in;
|
||||||
|
|
||||||
|
# Font
|
||||||
|
font_family = config.var.theme.font-mono;
|
||||||
|
font_size = config.var.theme.font-size;
|
||||||
|
|
||||||
|
# Colors
|
||||||
|
background = "#" + config.var.theme.colors.bg;
|
||||||
|
url_color = "#" + config.var.theme.colors.accent;
|
||||||
|
color0 = "#" + config.var.theme.colors.c0;
|
||||||
|
color8 = "#" + config.var.theme.colors.c8;
|
||||||
|
color1 = "#" + config.var.theme.colors.c1;
|
||||||
|
color9 = "#" + config.var.theme.colors.c9;
|
||||||
|
color2 = "#" + config.var.theme.colors.c2;
|
||||||
|
color10 = "#" + config.var.theme.colors.c10;
|
||||||
|
color3 = "#" + config.var.theme.colors.c3;
|
||||||
|
color11 = "#" + config.var.theme.colors.c11;
|
||||||
|
color4 = "#" + config.var.theme.colors.c4;
|
||||||
|
color12 = "#" + config.var.theme.colors.c12;
|
||||||
|
color5 = "#" + config.var.theme.colors.c5;
|
||||||
|
color13 = "#" + config.var.theme.colors.c13;
|
||||||
|
color6 = "#" + config.var.theme.colors.c6;
|
||||||
|
color14 = "#" + config.var.theme.colors.c14;
|
||||||
|
color7 = "#" + config.var.theme.colors.c7;
|
||||||
|
color15 = "#" + config.var.theme.colors.c15;
|
||||||
|
cursor = "#" + config.var.theme.colors.fg;
|
||||||
|
cursor_text_color = "#" + config.var.theme.colors.bg;
|
||||||
|
selection_foreground = "#" + config.var.theme.colors.accentFg;
|
||||||
|
selection_background = "#" + config.var.theme.colors.accent;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,174 @@
|
|||||||
|
# vim:ft=dircolors
|
||||||
|
# (This is not a dircolors file but it helps to highlight colors and comments)
|
||||||
|
|
||||||
|
# default values from dircolors
|
||||||
|
# (entries with a leading # are not implemented in lf)
|
||||||
|
# #no 00 # NORMAL
|
||||||
|
# fi 00 # FILE
|
||||||
|
# #rs 0 # RESET
|
||||||
|
# di 01;34 # DIR
|
||||||
|
# ln 01;36 # LINK
|
||||||
|
# #mh 00 # MULTIHARDLINK
|
||||||
|
# pi 40;33 # FIFO
|
||||||
|
# so 01;35 # SOCK
|
||||||
|
# #do 01;35 # DOOR
|
||||||
|
# bd 40;33;01 # BLK
|
||||||
|
# cd 40;33;01 # CHR
|
||||||
|
# or 40;31;01 # ORPHAN
|
||||||
|
# #mi 00 # MISSING
|
||||||
|
# su 37;41 # SETUID
|
||||||
|
# sg 30;43 # SETGID
|
||||||
|
# #ca 30;41 # CAPABILITY
|
||||||
|
# tw 30;42 # STICKY_OTHER_WRITABLE
|
||||||
|
# ow 34;42 # OTHER_WRITABLE
|
||||||
|
# st 37;44 # STICKY
|
||||||
|
# ex 01;32 # EXEC
|
||||||
|
|
||||||
|
# default values from lf (with matching order)
|
||||||
|
# ln 01;36 # LINK
|
||||||
|
# or 31;01 # ORPHAN
|
||||||
|
# tw 01;34 # STICKY_OTHER_WRITABLE
|
||||||
|
# ow 01;34 # OTHER_WRITABLE
|
||||||
|
# st 01;34 # STICKY
|
||||||
|
# di 01;34 # DIR
|
||||||
|
# pi 33 # FIFO
|
||||||
|
# so 01;35 # SOCK
|
||||||
|
# bd 33;01 # BLK
|
||||||
|
# cd 33;01 # CHR
|
||||||
|
# su 01;32 # SETUID
|
||||||
|
# sg 01;32 # SETGID
|
||||||
|
# ex 01;32 # EXEC
|
||||||
|
# fi 00 # FILE
|
||||||
|
|
||||||
|
# file types (with matching order)
|
||||||
|
ln 01;36 # LINK
|
||||||
|
or 31;01 # ORPHAN
|
||||||
|
tw 34 # STICKY_OTHER_WRITABLE
|
||||||
|
ow 34 # OTHER_WRITABLE
|
||||||
|
st 01;34 # STICKY
|
||||||
|
di 01;34 # DIR
|
||||||
|
pi 33 # FIFO
|
||||||
|
so 01;35 # SOCK
|
||||||
|
bd 33;01 # BLK
|
||||||
|
cd 33;01 # CHR
|
||||||
|
su 01;32 # SETUID
|
||||||
|
sg 01;32 # SETGID
|
||||||
|
ex 01;32 # EXEC
|
||||||
|
fi 00 # FILE
|
||||||
|
|
||||||
|
# archives or compressed (dircolors defaults)
|
||||||
|
*.tar 01;31
|
||||||
|
*.tgz 01;31
|
||||||
|
*.arc 01;31
|
||||||
|
*.arj 01;31
|
||||||
|
*.taz 01;31
|
||||||
|
*.lha 01;31
|
||||||
|
*.lz4 01;31
|
||||||
|
*.lzh 01;31
|
||||||
|
*.lzma 01;31
|
||||||
|
*.tlz 01;31
|
||||||
|
*.txz 01;31
|
||||||
|
*.tzo 01;31
|
||||||
|
*.t7z 01;31
|
||||||
|
*.zip 01;31
|
||||||
|
*.z 01;31
|
||||||
|
*.dz 01;31
|
||||||
|
*.gz 01;31
|
||||||
|
*.lrz 01;31
|
||||||
|
*.lz 01;31
|
||||||
|
*.lzo 01;31
|
||||||
|
*.xz 01;31
|
||||||
|
*.zst 01;31
|
||||||
|
*.tzst 01;31
|
||||||
|
*.bz2 01;31
|
||||||
|
*.bz 01;31
|
||||||
|
*.tbz 01;31
|
||||||
|
*.tbz2 01;31
|
||||||
|
*.tz 01;31
|
||||||
|
*.deb 01;31
|
||||||
|
*.rpm 01;31
|
||||||
|
*.jar 01;31
|
||||||
|
*.war 01;31
|
||||||
|
*.ear 01;31
|
||||||
|
*.sar 01;31
|
||||||
|
*.rar 01;31
|
||||||
|
*.alz 01;31
|
||||||
|
*.ace 01;31
|
||||||
|
*.zoo 01;31
|
||||||
|
*.cpio 01;31
|
||||||
|
*.7z 01;31
|
||||||
|
*.rz 01;31
|
||||||
|
*.cab 01;31
|
||||||
|
*.wim 01;31
|
||||||
|
*.swm 01;31
|
||||||
|
*.dwm 01;31
|
||||||
|
*.esd 01;31
|
||||||
|
|
||||||
|
# image formats (dircolors defaults)
|
||||||
|
*.jpg 01;35
|
||||||
|
*.jpeg 01;35
|
||||||
|
*.mjpg 01;35
|
||||||
|
*.mjpeg 01;35
|
||||||
|
*.gif 01;35
|
||||||
|
*.bmp 01;35
|
||||||
|
*.pbm 01;35
|
||||||
|
*.pgm 01;35
|
||||||
|
*.ppm 01;35
|
||||||
|
*.tga 01;35
|
||||||
|
*.xbm 01;35
|
||||||
|
*.xpm 01;35
|
||||||
|
*.tif 01;35
|
||||||
|
*.tiff 01;35
|
||||||
|
*.png 01;35
|
||||||
|
*.svg 01;35
|
||||||
|
*.svgz 01;35
|
||||||
|
*.mng 01;35
|
||||||
|
*.pcx 01;35
|
||||||
|
*.mov 01;35
|
||||||
|
*.mpg 01;35
|
||||||
|
*.mpeg 01;35
|
||||||
|
*.m2v 01;35
|
||||||
|
*.mkv 01;35
|
||||||
|
*.webm 01;35
|
||||||
|
*.ogm 01;35
|
||||||
|
*.mp4 01;35
|
||||||
|
*.m4v 01;35
|
||||||
|
*.mp4v 01;35
|
||||||
|
*.vob 01;35
|
||||||
|
*.qt 01;35
|
||||||
|
*.nuv 01;35
|
||||||
|
*.wmv 01;35
|
||||||
|
*.asf 01;35
|
||||||
|
*.rm 01;35
|
||||||
|
*.rmvb 01;35
|
||||||
|
*.flc 01;35
|
||||||
|
*.avi 01;35
|
||||||
|
*.fli 01;35
|
||||||
|
*.flv 01;35
|
||||||
|
*.gl 01;35
|
||||||
|
*.dl 01;35
|
||||||
|
*.xcf 01;35
|
||||||
|
*.xwd 01;35
|
||||||
|
*.yuv 01;35
|
||||||
|
*.cgm 01;35
|
||||||
|
*.emf 01;35
|
||||||
|
*.ogv 01;35
|
||||||
|
*.ogx 01;35
|
||||||
|
|
||||||
|
# audio formats (dircolors defaults)
|
||||||
|
*.aac 00;36
|
||||||
|
*.au 00;36
|
||||||
|
*.flac 00;36
|
||||||
|
*.m4a 00;36
|
||||||
|
*.mid 00;36
|
||||||
|
*.midi 00;36
|
||||||
|
*.mka 00;36
|
||||||
|
*.mp3 00;36
|
||||||
|
*.mpc 00;36
|
||||||
|
*.ogg 00;36
|
||||||
|
*.ra 00;36
|
||||||
|
*.wav 00;36
|
||||||
|
*.oga 00;36
|
||||||
|
*.opus 00;36
|
||||||
|
*.spx 00;36
|
||||||
|
*.xspf 00;36
|
||||||
@@ -0,0 +1,361 @@
|
|||||||
|
# vim:ft=conf
|
||||||
|
|
||||||
|
# These examples require Nerd Fonts or a compatible font to be used.
|
||||||
|
# See https://www.nerdfonts.com for more information.
|
||||||
|
|
||||||
|
# default values from lf (with matching order)
|
||||||
|
# ln l # LINK
|
||||||
|
# or l # ORPHAN
|
||||||
|
# tw t # STICKY_OTHER_WRITABLE
|
||||||
|
# ow d # OTHER_WRITABLE
|
||||||
|
# st t # STICKY
|
||||||
|
# di d # DIR
|
||||||
|
# pi p # FIFO
|
||||||
|
# so s # SOCK
|
||||||
|
# bd b # BLK
|
||||||
|
# cd c # CHR
|
||||||
|
# su u # SETUID
|
||||||
|
# sg g # SETGID
|
||||||
|
# ex x # EXEC
|
||||||
|
# fi - # FILE
|
||||||
|
|
||||||
|
# file types (with matching order)
|
||||||
|
ln # LINK
|
||||||
|
or # ORPHAN
|
||||||
|
tw t # STICKY_OTHER_WRITABLE
|
||||||
|
ow # OTHER_WRITABLE
|
||||||
|
st t # STICKY
|
||||||
|
di # DIR
|
||||||
|
pi p # FIFO
|
||||||
|
so s # SOCK
|
||||||
|
bd b # BLK
|
||||||
|
cd c # CHR
|
||||||
|
su u # SETUID
|
||||||
|
sg g # SETGID
|
||||||
|
ex # EXEC
|
||||||
|
fi # FILE
|
||||||
|
|
||||||
|
# file extensions (vim-devicons)
|
||||||
|
*.styl
|
||||||
|
*.sass
|
||||||
|
*.scss
|
||||||
|
*.htm
|
||||||
|
*.html
|
||||||
|
*.slim
|
||||||
|
*.haml
|
||||||
|
*.ejs
|
||||||
|
*.css
|
||||||
|
*.less
|
||||||
|
*.md
|
||||||
|
*.mdx
|
||||||
|
*.markdown
|
||||||
|
*.rmd
|
||||||
|
*.json
|
||||||
|
*.webmanifest
|
||||||
|
*.js
|
||||||
|
*.mjs
|
||||||
|
*.jsx
|
||||||
|
*.rb
|
||||||
|
*.gemspec
|
||||||
|
*.rake
|
||||||
|
*.php
|
||||||
|
*.py
|
||||||
|
*.pyc
|
||||||
|
*.pyo
|
||||||
|
*.pyd
|
||||||
|
*.coffee
|
||||||
|
*.mustache
|
||||||
|
*.hbs
|
||||||
|
*.conf
|
||||||
|
*.ini
|
||||||
|
*.yml
|
||||||
|
*.yaml
|
||||||
|
*.toml
|
||||||
|
*.bat
|
||||||
|
*.mk
|
||||||
|
*.jpg
|
||||||
|
*.jpeg
|
||||||
|
*.bmp
|
||||||
|
*.png
|
||||||
|
*.webp
|
||||||
|
*.gif
|
||||||
|
*.ico
|
||||||
|
*.twig
|
||||||
|
*.cpp
|
||||||
|
*.c++
|
||||||
|
*.cxx
|
||||||
|
*.cc
|
||||||
|
*.cp
|
||||||
|
*.c
|
||||||
|
*.cs
|
||||||
|
*.h
|
||||||
|
*.hh
|
||||||
|
*.hpp
|
||||||
|
*.hxx
|
||||||
|
*.hs
|
||||||
|
*.lhs
|
||||||
|
*.nix
|
||||||
|
*.lua
|
||||||
|
*.java
|
||||||
|
*.sh
|
||||||
|
*.fish
|
||||||
|
*.bash
|
||||||
|
*.zsh
|
||||||
|
*.ksh
|
||||||
|
*.csh
|
||||||
|
*.awk
|
||||||
|
*.ps1
|
||||||
|
*.ml λ
|
||||||
|
*.mli λ
|
||||||
|
*.diff
|
||||||
|
*.db
|
||||||
|
*.sql
|
||||||
|
*.dump
|
||||||
|
*.clj
|
||||||
|
*.cljc
|
||||||
|
*.cljs
|
||||||
|
*.edn
|
||||||
|
*.scala
|
||||||
|
*.go
|
||||||
|
*.dart
|
||||||
|
*.xul
|
||||||
|
*.sln
|
||||||
|
*.suo
|
||||||
|
*.pl
|
||||||
|
*.pm
|
||||||
|
*.t
|
||||||
|
*.rss
|
||||||
|
'*.f#'
|
||||||
|
*.fsscript
|
||||||
|
*.fsx
|
||||||
|
*.fs
|
||||||
|
*.fsi
|
||||||
|
*.rs
|
||||||
|
*.rlib
|
||||||
|
*.d
|
||||||
|
*.erl
|
||||||
|
*.hrl
|
||||||
|
*.ex
|
||||||
|
*.exs
|
||||||
|
*.eex
|
||||||
|
*.leex
|
||||||
|
*.heex
|
||||||
|
*.vim
|
||||||
|
*.ai
|
||||||
|
*.psd
|
||||||
|
*.psb
|
||||||
|
*.ts
|
||||||
|
*.tsx
|
||||||
|
*.jl
|
||||||
|
*.pp
|
||||||
|
*.vue
|
||||||
|
*.elm
|
||||||
|
*.swift
|
||||||
|
*.xcplayground
|
||||||
|
*.tex
|
||||||
|
*.r
|
||||||
|
*.rproj
|
||||||
|
*.sol
|
||||||
|
*.pem
|
||||||
|
|
||||||
|
# file names (vim-devicons) (case-insensitive not supported in lf)
|
||||||
|
*gruntfile.coffee
|
||||||
|
*gruntfile.js
|
||||||
|
*gruntfile.ls
|
||||||
|
*gulpfile.coffee
|
||||||
|
*gulpfile.js
|
||||||
|
*gulpfile.ls
|
||||||
|
*mix.lock
|
||||||
|
*dropbox
|
||||||
|
*.ds_store
|
||||||
|
*.gitconfig
|
||||||
|
*.gitignore
|
||||||
|
*.gitattributes
|
||||||
|
*.gitlab-ci.yml
|
||||||
|
*.bashrc
|
||||||
|
*.zshrc
|
||||||
|
*.zshenv
|
||||||
|
*.zprofile
|
||||||
|
*.vimrc
|
||||||
|
*.gvimrc
|
||||||
|
*_vimrc
|
||||||
|
*_gvimrc
|
||||||
|
*.bashprofile
|
||||||
|
*favicon.ico
|
||||||
|
*license
|
||||||
|
*node_modules
|
||||||
|
*react.jsx
|
||||||
|
*procfile
|
||||||
|
*dockerfile
|
||||||
|
*docker-compose.yml
|
||||||
|
*docker-compose.yaml
|
||||||
|
*compose.yml
|
||||||
|
*compose.yaml
|
||||||
|
*rakefile
|
||||||
|
*config.ru
|
||||||
|
*gemfile
|
||||||
|
*makefile
|
||||||
|
*cmakelists.txt
|
||||||
|
*robots.txt
|
||||||
|
|
||||||
|
# file names (case-sensitive adaptations)
|
||||||
|
*Gruntfile.coffee
|
||||||
|
*Gruntfile.js
|
||||||
|
*Gruntfile.ls
|
||||||
|
*Gulpfile.coffee
|
||||||
|
*Gulpfile.js
|
||||||
|
*Gulpfile.ls
|
||||||
|
*Dropbox
|
||||||
|
*.DS_Store
|
||||||
|
*LICENSE
|
||||||
|
*React.jsx
|
||||||
|
*Procfile
|
||||||
|
*Dockerfile
|
||||||
|
*Docker-compose.yml
|
||||||
|
*Docker-compose.yaml
|
||||||
|
*Rakefile
|
||||||
|
*Gemfile
|
||||||
|
*Makefile
|
||||||
|
*CMakeLists.txt
|
||||||
|
|
||||||
|
# file patterns (vim-devicons) (patterns not supported in lf)
|
||||||
|
# .*jquery.*\.js$
|
||||||
|
# .*angular.*\.js$
|
||||||
|
# .*backbone.*\.js$
|
||||||
|
# .*require.*\.js$
|
||||||
|
# .*materialize.*\.js$
|
||||||
|
# .*materialize.*\.css$
|
||||||
|
# .*mootools.*\.js$
|
||||||
|
# .*vimrc.*
|
||||||
|
# Vagrantfile$
|
||||||
|
|
||||||
|
# file patterns (file name adaptations)
|
||||||
|
*jquery.min.js
|
||||||
|
*angular.min.js
|
||||||
|
*backbone.min.js
|
||||||
|
*require.min.js
|
||||||
|
*materialize.min.js
|
||||||
|
*materialize.min.css
|
||||||
|
*mootools.min.js
|
||||||
|
*vimrc
|
||||||
|
Vagrantfile
|
||||||
|
|
||||||
|
# archives or compressed (extensions from dircolors defaults)
|
||||||
|
*.tar
|
||||||
|
*.tgz
|
||||||
|
*.arc
|
||||||
|
*.arj
|
||||||
|
*.taz
|
||||||
|
*.lha
|
||||||
|
*.lz4
|
||||||
|
*.lzh
|
||||||
|
*.lzma
|
||||||
|
*.tlz
|
||||||
|
*.txz
|
||||||
|
*.tzo
|
||||||
|
*.t7z
|
||||||
|
*.zip
|
||||||
|
*.z
|
||||||
|
*.dz
|
||||||
|
*.gz
|
||||||
|
*.lrz
|
||||||
|
*.lz
|
||||||
|
*.lzo
|
||||||
|
*.xz
|
||||||
|
*.zst
|
||||||
|
*.tzst
|
||||||
|
*.bz2
|
||||||
|
*.bz
|
||||||
|
*.tbz
|
||||||
|
*.tbz2
|
||||||
|
*.tz
|
||||||
|
*.deb
|
||||||
|
*.rpm
|
||||||
|
*.jar
|
||||||
|
*.war
|
||||||
|
*.ear
|
||||||
|
*.sar
|
||||||
|
*.rar
|
||||||
|
*.alz
|
||||||
|
*.ace
|
||||||
|
*.zoo
|
||||||
|
*.cpio
|
||||||
|
*.7z
|
||||||
|
*.rz
|
||||||
|
*.cab
|
||||||
|
*.wim
|
||||||
|
*.swm
|
||||||
|
*.dwm
|
||||||
|
*.esd
|
||||||
|
|
||||||
|
# image formats (extensions from dircolors defaults)
|
||||||
|
*.jpg
|
||||||
|
*.jpeg
|
||||||
|
*.mjpg
|
||||||
|
*.mjpeg
|
||||||
|
*.gif
|
||||||
|
*.bmp
|
||||||
|
*.pbm
|
||||||
|
*.pgm
|
||||||
|
*.ppm
|
||||||
|
*.tga
|
||||||
|
*.xbm
|
||||||
|
*.xpm
|
||||||
|
*.tif
|
||||||
|
*.tiff
|
||||||
|
*.png
|
||||||
|
*.svg
|
||||||
|
*.svgz
|
||||||
|
*.mng
|
||||||
|
*.pcx
|
||||||
|
*.mov
|
||||||
|
*.mpg
|
||||||
|
*.mpeg
|
||||||
|
*.m2v
|
||||||
|
*.mkv
|
||||||
|
*.webm
|
||||||
|
*.ogm
|
||||||
|
*.mp4
|
||||||
|
*.m4v
|
||||||
|
*.mp4v
|
||||||
|
*.vob
|
||||||
|
*.qt
|
||||||
|
*.nuv
|
||||||
|
*.wmv
|
||||||
|
*.asf
|
||||||
|
*.rm
|
||||||
|
*.rmvb
|
||||||
|
*.flc
|
||||||
|
*.avi
|
||||||
|
*.fli
|
||||||
|
*.flv
|
||||||
|
*.gl
|
||||||
|
*.dl
|
||||||
|
*.xcf
|
||||||
|
*.xwd
|
||||||
|
*.yuv
|
||||||
|
*.cgm
|
||||||
|
*.emf
|
||||||
|
*.ogv
|
||||||
|
*.ogx
|
||||||
|
|
||||||
|
# audio formats (extensions from dircolors defaults)
|
||||||
|
*.aac
|
||||||
|
*.au
|
||||||
|
*.flac
|
||||||
|
*.m4a
|
||||||
|
*.mid
|
||||||
|
*.midi
|
||||||
|
*.mka
|
||||||
|
*.mp3
|
||||||
|
*.mpc
|
||||||
|
*.ogg
|
||||||
|
*.ra
|
||||||
|
*.wav
|
||||||
|
*.oga
|
||||||
|
*.opus
|
||||||
|
*.spx
|
||||||
|
*.xspf
|
||||||
|
|
||||||
|
# other formats
|
||||||
|
*.pdf
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
home.packages = with pkgs; [ pistol ];
|
||||||
|
|
||||||
|
programs.lf = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
commands = {
|
||||||
|
dragon-out = ''%${pkgs.xdragon}/bin/xdragon -a -x "$fx"'';
|
||||||
|
editor-open = "$$EDITOR $f";
|
||||||
|
mkdir = ''
|
||||||
|
''${{
|
||||||
|
printf "Directory Name: "
|
||||||
|
read DIR
|
||||||
|
mkdir $DIR
|
||||||
|
}}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
keybindings = {
|
||||||
|
d = "delete";
|
||||||
|
x = "cut";
|
||||||
|
"<enter>" = "open";
|
||||||
|
"<c-g>" = "quit";
|
||||||
|
"<esc>" = "quit";
|
||||||
|
"H" = "set hidden!";
|
||||||
|
"\\\"" = "";
|
||||||
|
o = "";
|
||||||
|
c = "mkdir";
|
||||||
|
"." = "set hidden!";
|
||||||
|
"`" = "mark-load";
|
||||||
|
"\\'" = "mark-load";
|
||||||
|
"g~" = "cd";
|
||||||
|
do = "dragon-out";
|
||||||
|
gh = "cd";
|
||||||
|
"g/" = "/";
|
||||||
|
ee = "editor-open";
|
||||||
|
V = ''$''${pkgs.bat}/bin/bat --paging=always "$f"'';
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
ratios = [ 1 1 2 ];
|
||||||
|
preview = true;
|
||||||
|
hidden = true;
|
||||||
|
drawbox = true;
|
||||||
|
icons = true;
|
||||||
|
ignorecase = true;
|
||||||
|
incsearch = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
previewer.source = "${pkgs.pistol}/bin/pistol";
|
||||||
|
|
||||||
|
extraConfig = let
|
||||||
|
previewer = pkgs.writeShellScriptBin "pv.sh" ''
|
||||||
|
file=$1
|
||||||
|
w=$2
|
||||||
|
h=$3
|
||||||
|
x=$4
|
||||||
|
y=$5
|
||||||
|
|
||||||
|
if [[ "$( ${pkgs.file}/bin/file -Lb --mime-type "$file")" =~ ^image ]]; then
|
||||||
|
${pkgs.kitty}/bin/kitty +kitten icat --silent --stdin no --transfer-mode file --place "''${w}x''${h}@''${x}x''${y}" "$file" < /dev/null > /dev/tty
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
${pkgs.pistol}/bin/pistol "$file"
|
||||||
|
'';
|
||||||
|
cleaner = pkgs.writeShellScriptBin "clean.sh" ''
|
||||||
|
${pkgs.kitty}/bin/kitty +kitten icat --clear --stdin no --silent --transfer-mode file < /dev/null > /dev/tty
|
||||||
|
'';
|
||||||
|
in ''
|
||||||
|
set cleaner ${cleaner}/bin/clean.sh
|
||||||
|
set previewer ${previewer}/bin/pv.sh
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."lf" = {
|
||||||
|
recursive = true;
|
||||||
|
source = ./config;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
services.nextcloud-client = {
|
||||||
|
enable = true;
|
||||||
|
startInBackground = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim = {
|
||||||
|
enable = true;
|
||||||
|
colorschemes.catppuccin = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
transparent_background = true;
|
||||||
|
flavour = "mocha";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
imports = [
|
||||||
|
inputs.nixvim.homeManagerModules.nixvim
|
||||||
|
./plugins/cmp.nix
|
||||||
|
./plugins/dashboard.nix
|
||||||
|
./plugins/lsp.nix
|
||||||
|
./plugins/markdown.nix
|
||||||
|
./plugins/tree.nix
|
||||||
|
./plugins/ui.nix
|
||||||
|
./plugins/utils.nix
|
||||||
|
./plugins/zen-mode.nix
|
||||||
|
|
||||||
|
./options.nix
|
||||||
|
./colorscheme.nix
|
||||||
|
./keymaps.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.keymaps = [
|
||||||
|
{
|
||||||
|
key = "<leader>fm";
|
||||||
|
action = "<cmd>lua vim.lsp.buf.format()<cr>";
|
||||||
|
options.desc = "LSP Format";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>w";
|
||||||
|
action = "<cmd>set wrap!<cr>";
|
||||||
|
options.desc = "Toggle word wrapping";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>W";
|
||||||
|
action = "<cmd>set linebreak!<cr>";
|
||||||
|
options.desc = "Toggle linebreak";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>z";
|
||||||
|
action = "<cmd>ZenMode<cr>";
|
||||||
|
options.desc = "ZenMode";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
programs.nixvim.globals.mapleader = " ";
|
programs.nixvim.globals.mapleader = " ";
|
||||||
programs.nixvim.options = {
|
programs.nixvim.opts = {
|
||||||
updatetime = 50; # Faster completion
|
updatetime = 50; # Faster completion
|
||||||
|
|
||||||
number = true;
|
number = true;
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
wildmode = "list:longest";
|
wildmode = "list:longest";
|
||||||
completeopt = [ "menuone" "noselect" ];
|
completeopt = [ "menuone" "noselect" ];
|
||||||
signcolumn = "yes";
|
signcolumn = "yes";
|
||||||
cursorline = true;
|
cursorline = false;
|
||||||
scrolloff = 8;
|
scrolloff = 8;
|
||||||
mouse = "a";
|
mouse = "a";
|
||||||
|
|
||||||
@@ -32,6 +32,6 @@
|
|||||||
|
|
||||||
swapfile = false;
|
swapfile = false;
|
||||||
undofile = true;
|
undofile = true;
|
||||||
conceallevel = 2;
|
conceallevel = 3;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,148 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
|
||||||
|
programs.nixvim.highlight = {
|
||||||
|
AlphaHeaderColor.fg = "#${config.var.theme.colors.accent}";
|
||||||
|
AlphaTextColor.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
AlphaShortcutColor.fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.nixvim.plugins.alpha = {
|
||||||
|
enable = true;
|
||||||
|
layout = [
|
||||||
|
{
|
||||||
|
type = "padding";
|
||||||
|
val = 4;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "text";
|
||||||
|
opts = {
|
||||||
|
position = "center";
|
||||||
|
hl = "AlphaHeaderColor";
|
||||||
|
};
|
||||||
|
val = [
|
||||||
|
" "
|
||||||
|
" ████ ██████ █████ ██ "
|
||||||
|
" ███████████ █████ "
|
||||||
|
" █████████ ███████████████████ ███ ███████████ "
|
||||||
|
" █████████ ███ █████████████ █████ ██████████████ "
|
||||||
|
" █████████ ██████████ █████████ █████ █████ ████ █████ "
|
||||||
|
" ███████████ ███ ███ █████████ █████ █████ ████ █████ "
|
||||||
|
" ██████ █████████████████████ ████ █████ █████ ████ ██████ "
|
||||||
|
" "
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "padding";
|
||||||
|
val = 4;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "group";
|
||||||
|
|
||||||
|
val = [
|
||||||
|
{
|
||||||
|
type = "button";
|
||||||
|
val = " Find file";
|
||||||
|
on_press.__raw = "function() vim.cmd[[Telescope find_files]] end";
|
||||||
|
opts = {
|
||||||
|
shortcut = "nf";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "AlphaShortcutColor";
|
||||||
|
hl = "AlphaTextColor";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "button";
|
||||||
|
val = " New file";
|
||||||
|
on_press.__raw = "function() vim.cmd[[ene]] end";
|
||||||
|
opts = {
|
||||||
|
shortcut = "nn";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "AlphaShortcutColor";
|
||||||
|
hl = "AlphaTextColor";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "button";
|
||||||
|
val = " NixOs Config";
|
||||||
|
on_press.__raw =
|
||||||
|
"function() vim.cmd[[Neotree ${config.var.configDirectory}]] end";
|
||||||
|
opts = {
|
||||||
|
shortcut = "nc";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "AlphaShortcutColor";
|
||||||
|
hl = "AlphaTextColor";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "button";
|
||||||
|
val = " Keybindings";
|
||||||
|
on_press.__raw =
|
||||||
|
"function() vim.cmd[[e ${config.var.configDirectory}/docs/KEYBINDINGS.md]] end";
|
||||||
|
opts = {
|
||||||
|
shortcut = "nc";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "AlphaShortcutColor";
|
||||||
|
hl = "AlphaTextColor";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "button";
|
||||||
|
val = " Recently used";
|
||||||
|
on_press.__raw = "function() vim.cmd[[Telescope oldfiles]] end";
|
||||||
|
opts = {
|
||||||
|
shortcut = "no";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "AlphaShortcutColor";
|
||||||
|
hl = "AlphaTextColor";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "button";
|
||||||
|
val = " Find text";
|
||||||
|
on_press.__raw = "function() vim.cmd[[Telescope live_grep]] end";
|
||||||
|
opts = {
|
||||||
|
shortcut = "nt";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "AlphaShortcutColor";
|
||||||
|
hl = "AlphaTextColor";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "button";
|
||||||
|
val = " Quit Neovim";
|
||||||
|
on_press.__raw = "function() vim.cmd[[qa]] end";
|
||||||
|
opts = {
|
||||||
|
shortcut = "nq";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "AlphaShortcutColor";
|
||||||
|
hl = "AlphaTextColor";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
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;
|
||||||
|
html.enable = true;
|
||||||
|
svelte.enable = true;
|
||||||
|
marksman.enable = true;
|
||||||
|
ltex = {
|
||||||
|
enable = false;
|
||||||
|
settings = {
|
||||||
|
enabled = false;
|
||||||
|
language = "en";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
keymaps.lspBuf = {
|
||||||
|
"gd" = "definition";
|
||||||
|
"gD" = "references";
|
||||||
|
"gt" = "type_definition";
|
||||||
|
"gi" = "implementation";
|
||||||
|
"K" = "hover";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
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;
|
||||||
|
tidy.enable = true;
|
||||||
|
shellharden.enable = true;
|
||||||
|
shfmt.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,133 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins = {
|
||||||
|
mkdnflow = {
|
||||||
|
enable = true;
|
||||||
|
mappings = {
|
||||||
|
|
||||||
|
# Main
|
||||||
|
MkdnEnter = {
|
||||||
|
key = "<CR>";
|
||||||
|
modes = [ "n" "v" "i" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Links
|
||||||
|
MkdnCreateLink = false;
|
||||||
|
MkdnCreateLinkFromClipboard = {
|
||||||
|
key = "<leader>lc";
|
||||||
|
modes = [ "n" "v" ];
|
||||||
|
};
|
||||||
|
MkdnDestroyLink = {
|
||||||
|
key = "<leader>dl";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnFollowLink = false;
|
||||||
|
MkdnNextLink = {
|
||||||
|
key = "<Tab>";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnYankAnchorLink = {
|
||||||
|
key = "ya";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnYankFileAnchorLink = {
|
||||||
|
key = "yfa";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnPrevLink = {
|
||||||
|
key = "<S-Tab>";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
|
||||||
|
MkdnDecreaseHeading = {
|
||||||
|
key = "-";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnExtendList = false;
|
||||||
|
MkdnFoldSection = {
|
||||||
|
key = "<leader>ff";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnUnfoldSection = {
|
||||||
|
key = "<leader>fu";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnGoBack = {
|
||||||
|
key = "<BS>";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnGoForward = {
|
||||||
|
key = "<Del>";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnIncreaseHeading = {
|
||||||
|
key = "+";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnMoveSource = {
|
||||||
|
key = "<F2>";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnNewListItem = false;
|
||||||
|
MkdnNewListItemAboveInsert = {
|
||||||
|
key = "O";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnNewListItemBelowInsert = {
|
||||||
|
key = "o";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnNextHeading = {
|
||||||
|
key = "]]";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnPrevHeading = {
|
||||||
|
key = "[[";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnSTab = false;
|
||||||
|
MkdnTab = false;
|
||||||
|
MkdnTableFormat = {
|
||||||
|
key = "<leader>ft";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnTableNewColAfter = {
|
||||||
|
key = "<leader>ic";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnTableNewColBefore = {
|
||||||
|
key = "<leader>iC";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnTableNewRowAbove = {
|
||||||
|
key = "<leader>iR";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnTableNewRowBelow = {
|
||||||
|
key = "<leader>ir";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
MkdnTableNextCell = {
|
||||||
|
key = "<S-Tab>";
|
||||||
|
modes = "i";
|
||||||
|
};
|
||||||
|
MkdnTableNextRow = false;
|
||||||
|
MkdnTablePrevCell = {
|
||||||
|
key = "<M-Tab>";
|
||||||
|
modes = "i";
|
||||||
|
};
|
||||||
|
MkdnTablePrevRow = {
|
||||||
|
key = "<M-CR>";
|
||||||
|
modes = "i";
|
||||||
|
};
|
||||||
|
MkdnToggleToDo = {
|
||||||
|
key = "<C-Space>";
|
||||||
|
modes = [ "n" "v" ];
|
||||||
|
};
|
||||||
|
MkdnUpdateNumbering = {
|
||||||
|
key = "<leader>nn";
|
||||||
|
modes = "n";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim = {
|
||||||
|
plugins = {
|
||||||
|
neo-tree.enable = true;
|
||||||
|
oil = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
default_file_explorer = false;
|
||||||
|
skip_confirm_for_simple_edits = true;
|
||||||
|
win_options = {
|
||||||
|
concealcursor = "ncv";
|
||||||
|
conceallevel = 3;
|
||||||
|
cursorcolumn = false;
|
||||||
|
foldcolumn = "0";
|
||||||
|
list = false;
|
||||||
|
signcolumn = "no";
|
||||||
|
spell = false;
|
||||||
|
wrap = false;
|
||||||
|
};
|
||||||
|
float = { padding = 5; };
|
||||||
|
keymaps = {
|
||||||
|
"-" = "actions.parent";
|
||||||
|
"b" = "actions.parent";
|
||||||
|
"<C-c>" = "actions.close";
|
||||||
|
"<C-h>" = "actions.select_split";
|
||||||
|
"<C-l>" = "actions.refresh";
|
||||||
|
"<C-p>" = "actions.preview";
|
||||||
|
"<C-s>" = "actions.select_vsplit";
|
||||||
|
"<C-t>" = "actions.select_tab";
|
||||||
|
"<CR>" = "actions.select";
|
||||||
|
_ = "actions.open_cwd";
|
||||||
|
"`" = "actions.cd";
|
||||||
|
"g." = "actions.toggle_hidden";
|
||||||
|
"g?" = "actions.show_help";
|
||||||
|
"g\\" = "actions.toggle_trash";
|
||||||
|
gs = "actions.change_sort";
|
||||||
|
gx = "actions.open_external";
|
||||||
|
"~" = "actions.tcd";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
keymaps = [
|
||||||
|
{
|
||||||
|
key = "-";
|
||||||
|
action = "<cmd>Oil<cr>";
|
||||||
|
options.desc = "Oil";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>e";
|
||||||
|
action = "<cmd>Oil --float<cr>";
|
||||||
|
options.desc = "Oil";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<leader>E";
|
||||||
|
action = "<cmd>Neotree toggle<cr>";
|
||||||
|
options.desc = "Neotree";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
home.packages = with pkgs; [ ctags ];
|
||||||
|
programs.nixvim = {
|
||||||
|
plugins = {
|
||||||
|
lualine.enable = true;
|
||||||
|
noice.enable = true;
|
||||||
|
gitsigns = {
|
||||||
|
enable = true;
|
||||||
|
settings.current_line_blame = false;
|
||||||
|
};
|
||||||
|
bufferline.enable = true;
|
||||||
|
trouble.enable = true;
|
||||||
|
which-key.enable = true;
|
||||||
|
headlines = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
markdown = {
|
||||||
|
codeblock_highlight = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
nvim-colorizer.enable = true;
|
||||||
|
# tagbar.enable = true;
|
||||||
|
};
|
||||||
|
keymaps = [{
|
||||||
|
key = "<leader>t";
|
||||||
|
action = "<cmd>TroubleToggle<cr>";
|
||||||
|
options.desc = "Trouble";
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
programs.nixvim = {
|
||||||
|
highlightOverride = {
|
||||||
|
FloatBorder.fg = "#${config.var.theme.colors.accent}";
|
||||||
|
};
|
||||||
|
plugins = {
|
||||||
|
copilot-vim.enable = true;
|
||||||
|
flash.enable = true;
|
||||||
|
# image.enable = true;
|
||||||
|
tmux-navigator.enable = true;
|
||||||
|
comment.enable = true;
|
||||||
|
nvim-autopairs.enable = true;
|
||||||
|
friendly-snippets.enable = true;
|
||||||
|
telescope = {
|
||||||
|
enable = true;
|
||||||
|
keymaps = {
|
||||||
|
"<leader>fg" = "live_grep";
|
||||||
|
"<leader> " = "find_files";
|
||||||
|
};
|
||||||
|
extensions.fzf-native = { enable = true; };
|
||||||
|
};
|
||||||
|
treesitter = {
|
||||||
|
enable = true;
|
||||||
|
nixGrammars = true;
|
||||||
|
settings = {
|
||||||
|
indent.enable = true;
|
||||||
|
highlight.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
treesitter-context.enable = true;
|
||||||
|
};
|
||||||
|
keymaps = [
|
||||||
|
{
|
||||||
|
key = "<C-h>";
|
||||||
|
action = "<cmd>TmuxNavigateLeft<cr>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<C-j>";
|
||||||
|
action = "<cmd>TmuxNavigateDown<cr>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<C-k>";
|
||||||
|
action = "<cmd>TmuxNavigateUp<cr>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<C-l>";
|
||||||
|
action = "<cmd>TmuxNavigateRight<cr>";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.zen-mode = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
on_open = ''
|
||||||
|
function()
|
||||||
|
require("gitsigns.actions").toggle_current_line_blame()
|
||||||
|
vim.opt.relativenumber = false
|
||||||
|
vim.opt.signcolumn = "no"
|
||||||
|
vim.opt.wrap = true
|
||||||
|
vim.opt.linebreak = true
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
plugins = {
|
||||||
|
gitsigns = { enabled = true; };
|
||||||
|
options = {
|
||||||
|
enabled = true;
|
||||||
|
ruler = false;
|
||||||
|
showcmd = false;
|
||||||
|
};
|
||||||
|
tmux = { enabled = true; };
|
||||||
|
};
|
||||||
|
window = {
|
||||||
|
backdrop = 0.95;
|
||||||
|
height = 1;
|
||||||
|
options = { signcolumn = "no"; };
|
||||||
|
width = 0.9;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,342 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
let
|
||||||
|
settings = ''
|
||||||
|
{
|
||||||
|
"config": {
|
||||||
|
"title" : "Welcome Home",
|
||||||
|
"openLinksInNewTab": false,
|
||||||
|
"locale": "fr-FR",
|
||||||
|
"colors": {
|
||||||
|
"primary": "#${config.var.theme.colors.accent}",
|
||||||
|
"background": "#${config.var.theme.colors.bg}",
|
||||||
|
"foreground": "#${config.var.theme.colors.fg}",
|
||||||
|
"muted": "#${config.var.theme.colors.c8}"
|
||||||
|
},
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"name": "Bookmarks",
|
||||||
|
"links": [
|
||||||
|
{"title": "MyNixOs", "url": "https://mynixos.com", "icon": ""},
|
||||||
|
{"title": "Github", "url": "https://github.com", "icon": ""},
|
||||||
|
{"title": "Proton", "url": "https://mail.proton.me/u/0/inbox", "icon": ""},
|
||||||
|
{"title": "Cloudflare One", "url": "https://one.dash.cloudflare.com/", "icon": ""},
|
||||||
|
{"title": "Chat GPT", "url": "https://chat.openai.com/", "icon": ""},
|
||||||
|
{"title": "Nixvim", "url": "https://nix-community.github.io/nixvim/", "icon": ""},
|
||||||
|
{"title": "Hyprland Wiki", "url": "https://wiki.hyprland.org/", "icon": ""},
|
||||||
|
{"title": "Youtube", "url": "https://youtube.com", "icon": ""},
|
||||||
|
{"title": "Figma", "url": "https://figma.com", "icon": ""},
|
||||||
|
{"title": "Server", "url": "https://home.anotherhadi.com", "icon": ""}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Work",
|
||||||
|
"links": [
|
||||||
|
{"title": "Outlook", "url": "https://outlook.office.com/mail/", "icon": ""},
|
||||||
|
{"title": "Office", "url": "https://www.office.com/?auth=2", "icon": ""},
|
||||||
|
{"title": "Teams", "url": "https://teams.microsoft.com/_", "icon": ""}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
|
homepage = pkgs.buildNpmPackage {
|
||||||
|
pname = "homepage";
|
||||||
|
version = "0.0.0";
|
||||||
|
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "anotherhadi";
|
||||||
|
repo = "homepage";
|
||||||
|
rev = "b77d35ed3596eb451bd2ec78063d7cc6e73c773d";
|
||||||
|
hash = "sha256-j/40922kfAh6zqJ4IRYpr66YXNNYsxuXwZ0aiJFJea0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
# npmDepsHash = lib.fakeHash;
|
||||||
|
npmDepsHash = "sha256-bG+CHTq2Rst3JMxsjAC81KhK+G7WwsTVD1eyP87g0z4=";
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
npm install
|
||||||
|
cp ${
|
||||||
|
pkgs.writeText "src/routes/config.json" settings
|
||||||
|
} src/routes/config.json
|
||||||
|
npm run build
|
||||||
|
mkdir $out
|
||||||
|
mv build $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "homepage";
|
||||||
|
homepage = "https://github.com/anotherhadi/homepage";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
in {
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./duckduckgo-colorscheme.nix
|
||||||
|
# ./userscripts.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={}";
|
||||||
|
"ya" = "https://yandex.com/search/?text={}";
|
||||||
|
"n" = "https://mynixos.com/search?q={}";
|
||||||
|
"nixo" = "https://search.nixos.org/options?channel=unstable&query={}";
|
||||||
|
"nixp" = "https://search.nixos.org/packages?channel=unstable&query={}";
|
||||||
|
"gt" = "https://github.com/search?q={}&type=repositories";
|
||||||
|
};
|
||||||
|
|
||||||
|
quickmarks = {
|
||||||
|
home = "${homepage}/build/index.html";
|
||||||
|
server = "https://home.anotherhadi.com";
|
||||||
|
jack = "https://home.anotherhadi.com";
|
||||||
|
mynixos = "https://mynixos.com";
|
||||||
|
github = "https://github.com";
|
||||||
|
outlook = "https://outlook.office.com/mail/";
|
||||||
|
office = "https://www.office.com/?auth=2";
|
||||||
|
teams = "https://teams.microsoft.com/_";
|
||||||
|
casa = "http://192.168.2.16:8081/#/";
|
||||||
|
proton = "https://mail.proton.me/u/0/inbox";
|
||||||
|
cloudflare-one = "https://one.dash.cloudflare.com/";
|
||||||
|
chatgpt = "https://chat.openai.com/";
|
||||||
|
nixvim = "https://nix-community.github.io/nixvim/";
|
||||||
|
hyprland = "https://wiki.hyprland.org/";
|
||||||
|
nerdfont = "https://www.nerdfonts.com/cheat-sheet";
|
||||||
|
youtube = "https://youtube.com/";
|
||||||
|
cloudflare = "https://dash.cloudflare.com/";
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
url = {
|
||||||
|
default_page = "${homepage}/build/index.html";
|
||||||
|
start_pages = [ "${homepage}/build/index.html" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
colors = {
|
||||||
|
tabs = {
|
||||||
|
odd.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
odd.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
even.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
even.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
selected = {
|
||||||
|
odd = {
|
||||||
|
bg = "#${config.var.theme.colors.accent}";
|
||||||
|
fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
};
|
||||||
|
even = {
|
||||||
|
bg = "#${config.var.theme.colors.accent}";
|
||||||
|
fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
indicator = {
|
||||||
|
error = "#${config.var.theme.colors.c1}";
|
||||||
|
start = "#${config.var.theme.colors.bgalt}";
|
||||||
|
stop = "#${config.var.theme.colors.bgalt}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
hints = {
|
||||||
|
bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
match.fg = "#${config.var.theme.colors.bg}";
|
||||||
|
};
|
||||||
|
|
||||||
|
completion = {
|
||||||
|
category = {
|
||||||
|
bg = "#${config.var.theme.colors.bg}";
|
||||||
|
fg = "#${config.var.theme.colors.fg}";
|
||||||
|
border = {
|
||||||
|
top = "#${config.var.theme.colors.bg}";
|
||||||
|
bottom = "#${config.var.theme.colors.bg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
odd.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
even.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
|
||||||
|
fg = [ "#FFFFFF" "#FFFFFF" "#FFFFFF" ];
|
||||||
|
|
||||||
|
match.fg = "#${config.var.theme.colors.accent}";
|
||||||
|
|
||||||
|
item.selected = {
|
||||||
|
bg = "#${config.var.theme.colors.accent}";
|
||||||
|
border.top = "#${config.var.theme.colors.accent}";
|
||||||
|
border.bottom = "#${config.var.theme.colors.accent}";
|
||||||
|
fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
match.fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
statusbar = {
|
||||||
|
normal.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
normal.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
private.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
private.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
insert.bg = "#${config.var.theme.colors.accent}";
|
||||||
|
insert.fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
command = {
|
||||||
|
bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
private.bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
private.fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
messages = {
|
||||||
|
info = {
|
||||||
|
bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
border = "#${config.var.theme.colors.bgalt}";
|
||||||
|
};
|
||||||
|
|
||||||
|
error = {
|
||||||
|
bg = "#${config.var.theme.colors.c1}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
border = "#${config.var.theme.colors.c1}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#webpage.darkmode.enabled = true; # Enable dark mode for all websites (Weird on images)
|
||||||
|
webpage.preferred_color_scheme =
|
||||||
|
"dark"; # Enable dark mode for websites that support it
|
||||||
|
};
|
||||||
|
|
||||||
|
statusbar.show = "in-mode";
|
||||||
|
|
||||||
|
fonts = { default_family = "${config.var.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";
|
||||||
|
javascript.enabled = true;
|
||||||
|
webgl = true;
|
||||||
|
pdfjs = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
downloads = {
|
||||||
|
position = "bottom";
|
||||||
|
remove_finished = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
hints = {
|
||||||
|
border = "none";
|
||||||
|
radius = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
scrolling = {
|
||||||
|
bar = "never";
|
||||||
|
smooth = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
tabs = {
|
||||||
|
show = "multiple";
|
||||||
|
last_close = "close";
|
||||||
|
mode_on_change = "restore";
|
||||||
|
close_mouse_button = "right";
|
||||||
|
};
|
||||||
|
|
||||||
|
zoom.default = "100%";
|
||||||
|
|
||||||
|
qt.force_software_rendering = "chromium";
|
||||||
|
};
|
||||||
|
|
||||||
|
keyBindings = {
|
||||||
|
normal = {
|
||||||
|
"gh" = "open ${homepage}/build/index.html";
|
||||||
|
"gs" = "open https://home.anotherhadi.com";
|
||||||
|
|
||||||
|
" p" = "tab-move -";
|
||||||
|
" n" = "tab-move +";
|
||||||
|
" w" = "tab-close";
|
||||||
|
|
||||||
|
" 1" = "tab-focus 1";
|
||||||
|
" 2" = "tab-focus 2";
|
||||||
|
" 3" = "tab-focus 3";
|
||||||
|
" 4" = "tab-focus 4";
|
||||||
|
" 5" = "tab-focus 5";
|
||||||
|
" 6" = "tab-focus 6";
|
||||||
|
" 7" = "tab-focus 7";
|
||||||
|
" 8" = "tab-focus 8";
|
||||||
|
" 9" = "tab-focus 9";
|
||||||
|
" 0" = "tab-focus 10";
|
||||||
|
|
||||||
|
"<Ctrl-w>" = "tab-close";
|
||||||
|
"<Ctrl-n>" = "open -w";
|
||||||
|
|
||||||
|
"<Ctrl-1>" = "tab-focus 1";
|
||||||
|
"<Ctrl-2>" = "tab-focus 2";
|
||||||
|
"<Ctrl-3>" = "tab-focus 3";
|
||||||
|
"<Ctrl-4>" = "tab-focus 4";
|
||||||
|
"<Ctrl-5>" = "tab-focus 5";
|
||||||
|
"<Ctrl-6>" = "tab-focus 6";
|
||||||
|
"<Ctrl-7>" = "tab-focus 7";
|
||||||
|
"<Ctrl-8>" = "tab-focus 8";
|
||||||
|
"<Ctrl-9>" = "tab-focus 9";
|
||||||
|
"<Ctrl-0>" = "tab-focus 10";
|
||||||
|
};
|
||||||
|
|
||||||
|
command = {
|
||||||
|
"<Ctrl-w>" = "tab-close";
|
||||||
|
"<Ctrl-n>" = "open -w";
|
||||||
|
"<Ctrl-1>" = "tab-focus 1";
|
||||||
|
"<Ctrl-2>" = "tab-focus 2";
|
||||||
|
"<Ctrl-3>" = "tab-focus 3";
|
||||||
|
"<Ctrl-4>" = "tab-focus 4";
|
||||||
|
"<Ctrl-5>" = "tab-focus 5";
|
||||||
|
"<Ctrl-6>" = "tab-focus 6";
|
||||||
|
"<Ctrl-7>" = "tab-focus 7";
|
||||||
|
"<Ctrl-8>" = "tab-focus 8";
|
||||||
|
"<Ctrl-9>" = "tab-focus 9";
|
||||||
|
"<Ctrl-0>" = "tab-focus 10";
|
||||||
|
};
|
||||||
|
|
||||||
|
insert = {
|
||||||
|
"<Ctrl-w>" = "tab-close";
|
||||||
|
"<Ctrl-n>" = "open -w";
|
||||||
|
"<Ctrl-1>" = "tab-focus 1";
|
||||||
|
"<Ctrl-2>" = "tab-focus 2";
|
||||||
|
"<Ctrl-3>" = "tab-focus 3";
|
||||||
|
"<Ctrl-4>" = "tab-focus 4";
|
||||||
|
"<Ctrl-5>" = "tab-focus 5";
|
||||||
|
"<Ctrl-6>" = "tab-focus 6";
|
||||||
|
"<Ctrl-7>" = "tab-focus 7";
|
||||||
|
"<Ctrl-8>" = "tab-focus 8";
|
||||||
|
"<Ctrl-9>" = "tab-focus 9";
|
||||||
|
"<Ctrl-0>" = "tab-focus 10";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
config.unbind("gm")
|
||||||
|
config.unbind("gd")
|
||||||
|
config.unbind("gb")
|
||||||
|
config.unbind("tl")
|
||||||
|
config.unbind("gt")
|
||||||
|
|
||||||
|
c.tabs.padding = {"bottom": 6, "left": 7, "right": 7, "top": 6}
|
||||||
|
c.statusbar.padding = {"bottom": 6, "left": 7, "right": 7, "top": 6}
|
||||||
|
|
||||||
|
config.load_autoconfig(True)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
+5
-4
@@ -1,8 +1,9 @@
|
|||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
|
home.file.".duckduckgo-colorscheme.js".text = ''
|
||||||
xdg.configFile."duckduckgo-colorscheme.js".text = ''
|
// Go to DuckDuckGo settings page, open the console, paste the code and hit enter.
|
||||||
|
// based on https://ddg.codingcodax.dev/
|
||||||
// Cookies string for your theme
|
// 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};';
|
const cookie = '7=${config.var.theme.colors.bg}; j=${config.var.theme.colors.bg}; 9=${config.var.theme.colors.fg}; aa=${config.var.theme.colors.fgalt}; 8=${config.var.theme.colors.c7}; x=${config.var.theme.colors.accent}; 21=${config.var.theme.colors.bgalt};';
|
||||||
|
|
||||||
// Converts cookie string into formatted JSON
|
// Converts cookie string into formatted JSON
|
||||||
const cookieToJSON = (cookieRaw) => {
|
const cookieToJSON = (cookieRaw) => {
|
||||||
@@ -24,7 +25,7 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
alert('The GitHub Dark theme will be applied.');
|
alert('The Nixy theme will be applied.');
|
||||||
|
|
||||||
// Call set cookies, passing in formated cookie data
|
// Call set cookies, passing in formated cookie data
|
||||||
setCookies(cookieToJSON(cookie));
|
setCookies(cookieToJSON(cookie));
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
keyutils
|
||||||
|
python3
|
||||||
|
python311Packages.pyperclip
|
||||||
|
python312Packages.tldextract
|
||||||
|
];
|
||||||
|
|
||||||
|
xdg.configFile."qutebrowser/userscripts/bitwarden" = {
|
||||||
|
source = ./userscripts/qute-bitwarden.py;
|
||||||
|
executable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,291 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
# SPDX-FileCopyrightText: Chris Braun (cryzed) <cryzed@googlemail.com>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
"""
|
||||||
|
Insert login information using Bitwarden CLI and a dmenu-compatible application
|
||||||
|
(e.g. dmenu, rofi -dmenu, ...).
|
||||||
|
"""
|
||||||
|
|
||||||
|
USAGE = """The domain of the site has to be in the name of the Bitwarden entry, for example: "github.com/cryzed" or
|
||||||
|
"websites/github.com". The login information is inserted by emulating key events using qutebrowser's fake-key command in this manner:
|
||||||
|
[USERNAME]<Tab>[PASSWORD], which is compatible with almost all login forms.
|
||||||
|
|
||||||
|
If enabled, with the `--totp` flag, it will also move the TOTP code to the
|
||||||
|
clipboard, much like the Firefox add-on.
|
||||||
|
|
||||||
|
You must log into Bitwarden CLI using `bw login` prior to use of this script.
|
||||||
|
The session key will be stored using keyctl for the number of seconds passed to
|
||||||
|
the --auto-lock option.
|
||||||
|
|
||||||
|
To use in qutebrowser, run: `spawn --userscript qute-bitwarden`
|
||||||
|
"""
|
||||||
|
|
||||||
|
EPILOG = """Dependencies: tldextract (Python 3 module), pyperclip (optional
|
||||||
|
Python module, used for TOTP codes), Bitwarden CLI (1.7.4 is known to work
|
||||||
|
but older versions may well also work)
|
||||||
|
|
||||||
|
WARNING: The login details are viewable as plaintext in qutebrowser's debug log
|
||||||
|
(qute://log) and might be shared if you decide to submit a crash report!"""
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import enum
|
||||||
|
import functools
|
||||||
|
import os
|
||||||
|
import shlex
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import json
|
||||||
|
import tldextract
|
||||||
|
|
||||||
|
argument_parser = argparse.ArgumentParser(
|
||||||
|
description=__doc__,
|
||||||
|
usage=USAGE,
|
||||||
|
epilog=EPILOG,
|
||||||
|
)
|
||||||
|
argument_parser.add_argument('url', nargs='?', default=os.getenv('QUTE_URL'))
|
||||||
|
argument_parser.add_argument('--dmenu-invocation', '-d', default='wofi --dmenu -i',
|
||||||
|
help='Invocation used to execute a dmenu-provider')
|
||||||
|
argument_parser.add_argument('--password-prompt-invocation', '-p', default='rofi -dmenu -p "Master Password" -password -lines 0',
|
||||||
|
help='Invocation used to prompt the user for their Bitwarden password')
|
||||||
|
argument_parser.add_argument('--no-insert-mode', '-n', dest='insert_mode', action='store_false',
|
||||||
|
help="Don't automatically enter insert mode")
|
||||||
|
argument_parser.add_argument('--totp', '-t', action='store_true',
|
||||||
|
help="Copy TOTP key to clipboard")
|
||||||
|
argument_parser.add_argument('--io-encoding', '-i', default='UTF-8',
|
||||||
|
help='Encoding used to communicate with subprocesses')
|
||||||
|
argument_parser.add_argument('--merge-candidates', '-m', action='store_true',
|
||||||
|
help='Merge pass candidates for fully-qualified and registered domain name')
|
||||||
|
argument_parser.add_argument('--auto-lock', type=int, default=900,
|
||||||
|
help='Automatically lock the vault after this many seconds')
|
||||||
|
group = argument_parser.add_mutually_exclusive_group()
|
||||||
|
group.add_argument('--username-only', '-e',
|
||||||
|
action='store_true', help='Only insert username')
|
||||||
|
group.add_argument('--password-only', '-w',
|
||||||
|
action='store_true', help='Only insert password')
|
||||||
|
group.add_argument('--totp-only', '-T',
|
||||||
|
action='store_true', help='Only insert totp code')
|
||||||
|
|
||||||
|
stderr = functools.partial(print, file=sys.stderr)
|
||||||
|
|
||||||
|
|
||||||
|
class ExitCodes(enum.IntEnum):
|
||||||
|
SUCCESS = 0
|
||||||
|
FAILURE = 1
|
||||||
|
# 1 is automatically used if Python throws an exception
|
||||||
|
NO_PASS_CANDIDATES = 2
|
||||||
|
COULD_NOT_MATCH_USERNAME = 3
|
||||||
|
COULD_NOT_MATCH_PASSWORD = 4
|
||||||
|
|
||||||
|
|
||||||
|
def qute_command(command):
|
||||||
|
with open(os.environ['QUTE_FIFO'], 'w') as fifo:
|
||||||
|
fifo.write(command + '\n')
|
||||||
|
fifo.flush()
|
||||||
|
|
||||||
|
|
||||||
|
def ask_password(password_prompt_invocation):
|
||||||
|
process = subprocess.run(
|
||||||
|
shlex.split(password_prompt_invocation),
|
||||||
|
text=True,
|
||||||
|
stdout=subprocess.PIPE,
|
||||||
|
)
|
||||||
|
if process.returncode > 0:
|
||||||
|
raise Exception('Could not unlock vault')
|
||||||
|
master_pass = process.stdout.strip()
|
||||||
|
return subprocess.check_output(
|
||||||
|
['bw', 'unlock', '--raw', master_pass],
|
||||||
|
text=True,
|
||||||
|
).strip()
|
||||||
|
|
||||||
|
|
||||||
|
def get_session_key(auto_lock, password_prompt_invocation):
|
||||||
|
if auto_lock == 0:
|
||||||
|
subprocess.call(['keyctl', 'purge', 'user', 'bw_session'])
|
||||||
|
return ask_password(password_prompt_invocation)
|
||||||
|
else:
|
||||||
|
process = subprocess.run(
|
||||||
|
['keyctl', 'request', 'user', 'bw_session'],
|
||||||
|
text=True,
|
||||||
|
stdout=subprocess.PIPE,
|
||||||
|
)
|
||||||
|
key_id = process.stdout.strip()
|
||||||
|
if process.returncode > 0:
|
||||||
|
session = ask_password(password_prompt_invocation)
|
||||||
|
if not session:
|
||||||
|
raise Exception('Could not unlock vault')
|
||||||
|
key_id = subprocess.check_output(
|
||||||
|
['keyctl', 'add', 'user', 'bw_session', session, '@u'],
|
||||||
|
text=True,
|
||||||
|
).strip()
|
||||||
|
|
||||||
|
if auto_lock > 0:
|
||||||
|
subprocess.call(['keyctl', 'timeout', str(key_id), str(auto_lock)])
|
||||||
|
return subprocess.check_output(
|
||||||
|
['keyctl', 'pipe', str(key_id)],
|
||||||
|
text=True,
|
||||||
|
).strip()
|
||||||
|
|
||||||
|
|
||||||
|
def pass_(domain, encoding, auto_lock, password_prompt_invocation):
|
||||||
|
session_key = get_session_key(auto_lock, password_prompt_invocation)
|
||||||
|
process = subprocess.run(
|
||||||
|
['bw', 'list', 'items', '--session', session_key, '--url', domain],
|
||||||
|
capture_output=True,
|
||||||
|
)
|
||||||
|
|
||||||
|
err = process.stderr.decode(encoding).strip()
|
||||||
|
if err:
|
||||||
|
msg = 'Bitwarden CLI returned for {:s} - {:s}'.format(domain, err)
|
||||||
|
stderr(msg)
|
||||||
|
|
||||||
|
if process.returncode:
|
||||||
|
return '[]'
|
||||||
|
|
||||||
|
out = process.stdout.decode(encoding).strip()
|
||||||
|
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
def get_totp_code(selection_id, domain_name, encoding, auto_lock, password_prompt_invocation):
|
||||||
|
session_key = get_session_key(auto_lock, password_prompt_invocation)
|
||||||
|
process = subprocess.run(
|
||||||
|
['bw', 'get', 'totp', '--session', session_key, selection_id],
|
||||||
|
capture_output=True,
|
||||||
|
)
|
||||||
|
|
||||||
|
err = process.stderr.decode(encoding).strip()
|
||||||
|
if err:
|
||||||
|
# domain_name instead of selection_id to make it more user-friendly
|
||||||
|
msg = 'Bitwarden CLI returned for {:s} - {:s}'.format(domain_name, err)
|
||||||
|
stderr(msg)
|
||||||
|
|
||||||
|
if process.returncode:
|
||||||
|
return '[]'
|
||||||
|
|
||||||
|
out = process.stdout.decode(encoding).strip()
|
||||||
|
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
def dmenu(items, invocation, encoding):
|
||||||
|
command = shlex.split(invocation)
|
||||||
|
process = subprocess.run(command, input='\n'.join(
|
||||||
|
items).encode(encoding), stdout=subprocess.PIPE)
|
||||||
|
return process.stdout.decode(encoding).strip()
|
||||||
|
|
||||||
|
|
||||||
|
def fake_key_raw(text):
|
||||||
|
for character in text:
|
||||||
|
# Escape all characters by default, space requires special handling
|
||||||
|
sequence = '" "' if character == ' ' else r'\{}'.format(character)
|
||||||
|
qute_command('fake-key {}'.format(sequence))
|
||||||
|
|
||||||
|
|
||||||
|
def main(arguments):
|
||||||
|
if not arguments.url:
|
||||||
|
argument_parser.print_help()
|
||||||
|
return ExitCodes.FAILURE
|
||||||
|
|
||||||
|
extract_result = tldextract.extract(arguments.url)
|
||||||
|
|
||||||
|
# Try to find candidates using targets in the following order: fully-qualified domain name (includes subdomains),
|
||||||
|
# the registered domain name and finally: the IPv4 address if that's what
|
||||||
|
# the URL represents
|
||||||
|
candidates = []
|
||||||
|
for target in filter(None, [
|
||||||
|
extract_result.fqdn,
|
||||||
|
extract_result.registered_domain,
|
||||||
|
extract_result.subdomain + '.' + extract_result.domain,
|
||||||
|
extract_result.domain,
|
||||||
|
extract_result.ipv4]):
|
||||||
|
target_candidates = json.loads(
|
||||||
|
pass_(
|
||||||
|
target,
|
||||||
|
arguments.io_encoding,
|
||||||
|
arguments.auto_lock,
|
||||||
|
arguments.password_prompt_invocation,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
if not target_candidates:
|
||||||
|
continue
|
||||||
|
|
||||||
|
candidates = candidates + target_candidates
|
||||||
|
if not arguments.merge_candidates:
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
if not candidates:
|
||||||
|
stderr('No pass candidates for URL {!r} found!'.format(
|
||||||
|
arguments.url))
|
||||||
|
return ExitCodes.NO_PASS_CANDIDATES
|
||||||
|
|
||||||
|
if len(candidates) == 1:
|
||||||
|
selection = candidates.pop()
|
||||||
|
else:
|
||||||
|
choices = ['{:s} | {:s}'.format(c['name'], c['login']['username']) for c in candidates]
|
||||||
|
choice = dmenu(choices, arguments.dmenu_invocation, arguments.io_encoding)
|
||||||
|
choice_tokens = choice.split('|')
|
||||||
|
choice_name = choice_tokens[0].strip()
|
||||||
|
choice_username = choice_tokens[1].strip()
|
||||||
|
selection = next((c for (i, c) in enumerate(candidates)
|
||||||
|
if c['name'] == choice_name
|
||||||
|
and c['login']['username'] == choice_username),
|
||||||
|
None)
|
||||||
|
|
||||||
|
# Nothing was selected, simply return
|
||||||
|
if not selection:
|
||||||
|
return ExitCodes.SUCCESS
|
||||||
|
|
||||||
|
username = selection['login']['username']
|
||||||
|
password = selection['login']['password']
|
||||||
|
totp = selection['login']['totp']
|
||||||
|
|
||||||
|
if arguments.username_only:
|
||||||
|
fake_key_raw(username)
|
||||||
|
elif arguments.password_only:
|
||||||
|
fake_key_raw(password)
|
||||||
|
elif arguments.totp_only:
|
||||||
|
# No point in moving it to the clipboard in this case
|
||||||
|
fake_key_raw(
|
||||||
|
get_totp_code(
|
||||||
|
selection['id'],
|
||||||
|
selection['name'],
|
||||||
|
arguments.io_encoding,
|
||||||
|
arguments.auto_lock,
|
||||||
|
arguments.password_prompt_invocation,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
# Enter username and password using fake-key and <Tab> (which seems to work almost universally), then switch
|
||||||
|
# back into insert-mode, so the form can be directly submitted by
|
||||||
|
# hitting enter afterwards
|
||||||
|
fake_key_raw(username)
|
||||||
|
qute_command('fake-key <Tab>')
|
||||||
|
fake_key_raw(password)
|
||||||
|
|
||||||
|
if arguments.insert_mode:
|
||||||
|
qute_command('mode-enter insert')
|
||||||
|
|
||||||
|
# If it finds a TOTP code, it copies it to the clipboard,
|
||||||
|
# which is the same behavior as the Firefox add-on.
|
||||||
|
if not arguments.totp_only and totp and arguments.totp:
|
||||||
|
# The import is done here, to make pyperclip an optional dependency
|
||||||
|
import pyperclip
|
||||||
|
pyperclip.copy(
|
||||||
|
get_totp_code(
|
||||||
|
selection['id'],
|
||||||
|
selection['name'],
|
||||||
|
arguments.io_encoding,
|
||||||
|
arguments.auto_lock,
|
||||||
|
arguments.password_prompt_invocation,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
return ExitCodes.SUCCESS
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
arguments = argument_parser.parse_args()
|
||||||
|
sys.exit(main(arguments))
|
||||||
@@ -4,5 +4,8 @@
|
|||||||
./zsh.nix
|
./zsh.nix
|
||||||
./starship.nix
|
./starship.nix
|
||||||
./zoxide.nix
|
./zoxide.nix
|
||||||
|
./tmux.nix
|
||||||
|
./lazygit.nix
|
||||||
|
./eza.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
programs.eza = {
|
||||||
|
enable = true;
|
||||||
|
icons = true;
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--group-directories-first"
|
||||||
|
"--no-quotes"
|
||||||
|
"--git-ignore"
|
||||||
|
"--icons=always"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
{
|
{ config, ... }: {
|
||||||
programs.fzf = {
|
programs.fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
colors = {
|
colors = {
|
||||||
"fg+" = "magenta";
|
"fg+" = config.var.theme.colors.accentName;
|
||||||
"bg+" = "-1";
|
"bg+" = "-1";
|
||||||
"fg" = "white";
|
"fg" = "white";
|
||||||
"bg" = "-1";
|
"bg" = "-1";
|
||||||
"prompt" = "grey";
|
"prompt" = "grey";
|
||||||
"pointer" = "magenta";
|
"pointer" = config.var.theme.colors.accentName;
|
||||||
};
|
};
|
||||||
defaultOptions = [
|
defaultOptions = [
|
||||||
"--margin=1"
|
"--margin=1"
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
programs.lazygit = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
gui.theme = {
|
||||||
|
ligthTheme = false;
|
||||||
|
activeBorderColor = [ "${config.var.theme.colors.accentName}" "bold" ];
|
||||||
|
inactiveBorderColor = [ "black" ];
|
||||||
|
selectedLineBgColor = [ "default" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
{ config, lib, ... }: {
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
add_newline = true;
|
||||||
|
format = lib.concatStrings [
|
||||||
|
"$directory"
|
||||||
|
"$git_branch"
|
||||||
|
"$git_state"
|
||||||
|
"$git_status"
|
||||||
|
"$character"
|
||||||
|
];
|
||||||
|
directory = { style = "#${config.var.theme.colors.accent}"; };
|
||||||
|
|
||||||
|
character = {
|
||||||
|
success_symbol = "[❯](#${config.var.theme.colors.accent})";
|
||||||
|
error_symbol = "[❯](red)";
|
||||||
|
vimcmd_symbol = "[❮](cyan)";
|
||||||
|
};
|
||||||
|
|
||||||
|
git_branch = {
|
||||||
|
format = "[$branch]($style)";
|
||||||
|
style = "bright-black";
|
||||||
|
};
|
||||||
|
|
||||||
|
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,48 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
programs.tmux = {
|
||||||
|
enable = true;
|
||||||
|
mouse = true;
|
||||||
|
shell = "${pkgs.zsh}/bin/zsh";
|
||||||
|
prefix = "C-s";
|
||||||
|
terminal = "kitty";
|
||||||
|
keyMode = "vi";
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
bind-key h select-pane -L
|
||||||
|
bind-key j select-pane -D
|
||||||
|
bind-key k select-pane -U
|
||||||
|
bind-key l select-pane -R
|
||||||
|
set -gq allow-passthrough on
|
||||||
|
'';
|
||||||
|
|
||||||
|
plugins = with pkgs; [
|
||||||
|
tmuxPlugins.vim-tmux-navigator
|
||||||
|
{
|
||||||
|
plugin = tmuxPlugins.catppuccin;
|
||||||
|
extraConfig = ''
|
||||||
|
set-option -g status-position top
|
||||||
|
set -g @catppuccin_window_left_separator ""
|
||||||
|
set -g @catppuccin_window_right_separator " "
|
||||||
|
set -g @catppuccin_window_middle_separator " █"
|
||||||
|
set -g @catppuccin_window_number_position "right"
|
||||||
|
|
||||||
|
set -g @catppuccin_window_default_fill "number"
|
||||||
|
set -g @catppuccin_window_default_text "#W"
|
||||||
|
|
||||||
|
set -g @catppuccin_window_current_fill "number"
|
||||||
|
set -g @catppuccin_window_current_text "#W"
|
||||||
|
|
||||||
|
set -g @catppuccin_status_modules_right ""
|
||||||
|
set -g @catppuccin_status_left_separator " "
|
||||||
|
set -g @catppuccin_status_right_separator ""
|
||||||
|
set -g @catppuccin_status_fill "icon"
|
||||||
|
set -g @catppuccin_status_connect_separator "no"
|
||||||
|
|
||||||
|
set -g @catppuccin_directory_text "#{pane_current_path}"
|
||||||
|
set -g @catppuccin_status_background "default"
|
||||||
|
set-option -g default-terminal "screen-256color"
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,73 @@
|
|||||||
|
{ pkgs, lib, config, ... }: {
|
||||||
|
|
||||||
|
home.packages = with pkgs; [ bat ripgrep tldr ];
|
||||||
|
|
||||||
|
home.sessionPath = [ "$HOME/go/bin" ];
|
||||||
|
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
autosuggestion.enable = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
|
historySubstringSearch.enable = true;
|
||||||
|
|
||||||
|
initExtraFirst = ''
|
||||||
|
bindkey -e
|
||||||
|
${if config.var.theme.fetch == "neofetch" then
|
||||||
|
pkgs.neofetch + "/bin/neofetch"
|
||||||
|
else if config.var.theme.fetch == "nerdfetch" then
|
||||||
|
"nerdfetch"
|
||||||
|
else if config.var.theme.fetch == "pfetch" then
|
||||||
|
"echo; ${pkgs.pfetch}/bin/pfetch"
|
||||||
|
else
|
||||||
|
""}
|
||||||
|
'';
|
||||||
|
|
||||||
|
history = {
|
||||||
|
ignoreDups = true;
|
||||||
|
save = 1000000;
|
||||||
|
size = 1000000;
|
||||||
|
};
|
||||||
|
|
||||||
|
profileExtra = lib.optionalString (config.home.sessionPath != [ ]) ''
|
||||||
|
export PATH="$PATH''${PATH:+:}${
|
||||||
|
lib.concatStringsSep ":" config.home.sessionPath
|
||||||
|
}"
|
||||||
|
'';
|
||||||
|
|
||||||
|
shellAliases = {
|
||||||
|
vim = "nvim";
|
||||||
|
vi = "nvim";
|
||||||
|
v = "nvim";
|
||||||
|
c = "clear";
|
||||||
|
clera = "clear";
|
||||||
|
celar = "clear";
|
||||||
|
e = "exit";
|
||||||
|
cd = "z";
|
||||||
|
ls = "eza --icons=always --no-quotes";
|
||||||
|
tree = "eza --icons=always --tree --no-quotes";
|
||||||
|
sl = "ls";
|
||||||
|
open = "${pkgs.xdg_utils}/bin/xdg-open";
|
||||||
|
icat = "${pkgs.kitty}/bin/kitty +kitten icat";
|
||||||
|
wireguard-import = "nmcli connection import type wireguard file";
|
||||||
|
neorg =
|
||||||
|
"cd ~/nextcloud/neorg && vim -c ':ZenMode' -c ':Telescope find_files' index.norg";
|
||||||
|
notes =
|
||||||
|
"cd ~/nextcloud/Notes && vim -c ':ZenMode' -c ':Telescope find_files' index.md";
|
||||||
|
note = "notes";
|
||||||
|
|
||||||
|
# git
|
||||||
|
ga = "git add";
|
||||||
|
gc = "git commit";
|
||||||
|
gcm = "git commit -m";
|
||||||
|
gcu = "git commit -am 'Update'";
|
||||||
|
gp = "git push";
|
||||||
|
gpl = "git pull";
|
||||||
|
gs = "git status";
|
||||||
|
gd = "git diff";
|
||||||
|
gco = "git checkout";
|
||||||
|
gcb = "git checkout -b";
|
||||||
|
gbr = "git branch";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
{ pkgs, config, lib, inputs, ... }:
|
||||||
|
let spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
|
||||||
|
in {
|
||||||
|
|
||||||
|
imports = [ inputs.spicetify-nix.homeManagerModules.default ];
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [ "spotify" ];
|
||||||
|
programs.spicetify = {
|
||||||
|
enable = true;
|
||||||
|
theme = spicePkgs.themes.text;
|
||||||
|
colorScheme = "custom";
|
||||||
|
|
||||||
|
customColorScheme = {
|
||||||
|
text = "${config.var.theme.colors.fg}";
|
||||||
|
subtext = "${config.var.theme.colors.fgalt}";
|
||||||
|
sidebar-text = "${config.var.theme.colors.fgalt}";
|
||||||
|
main = "${config.var.theme.colors.bg}";
|
||||||
|
sidebar = "${config.var.theme.colors.bg}";
|
||||||
|
background = "${config.var.theme.colors.bg}";
|
||||||
|
player = "${config.var.theme.colors.bg}";
|
||||||
|
card = "${config.var.theme.colors.bg}";
|
||||||
|
shadow = "000000";
|
||||||
|
selected-row = "${config.var.theme.colors.bgalt}";
|
||||||
|
button = "${config.var.theme.colors.accent}";
|
||||||
|
button-active = "${config.var.theme.colors.accent}";
|
||||||
|
button-disabled = "${config.var.theme.colors.bgalt}";
|
||||||
|
tab-active = "${config.var.theme.colors.accent}";
|
||||||
|
misc = "${config.var.theme.colors.fgalt}";
|
||||||
|
};
|
||||||
|
|
||||||
|
enabledExtensions = with spicePkgs.extensions; [
|
||||||
|
playlistIcons
|
||||||
|
lastfm
|
||||||
|
historyShortcut
|
||||||
|
hidePodcasts
|
||||||
|
fullAppDisplay
|
||||||
|
shuffle
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
programs.yazi = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
log = { enabled = false; };
|
||||||
|
manager = {
|
||||||
|
show_hidden = false;
|
||||||
|
sort_by = "modified";
|
||||||
|
sort_dir_first = true;
|
||||||
|
sort_reverse = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
theme = {
|
||||||
|
filetype = {
|
||||||
|
rules = [
|
||||||
|
{
|
||||||
|
fg = "#7AD9E5";
|
||||||
|
mime = "image/*";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
fg = "#F3D398";
|
||||||
|
mime = "video/*";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
fg = "#F3D398";
|
||||||
|
mime = "audio/*";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
fg = "#CD9EFC";
|
||||||
|
mime = "application/x-bzip";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
# PDF viewer
|
||||||
|
{
|
||||||
|
programs.zathura = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
options = {
|
||||||
|
guioptions = "v";
|
||||||
|
adjust-open = "width";
|
||||||
|
statusbar-basename = true;
|
||||||
|
render-loading = false;
|
||||||
|
scroll-step = 120;
|
||||||
|
|
||||||
|
# highlight-color = ");
|
||||||
|
# highlight-active-color = mkForce (rgba "base0D");
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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)
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
battery-watch = pkgs.writeShellScriptBin "battery-watch" ''
|
||||||
|
while true;do
|
||||||
|
battery-plugged &
|
||||||
|
battery-level &
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
battery-plugged = pkgs.writeShellScriptBin "battery-plugged" ''
|
||||||
|
BATTERY_STATUS=$(cat /sys/class/power_supply/BAT*/status | head -n1)
|
||||||
|
OLD_BATTERY_STATUS=$(cat /tmp/old_battery_status 2>/dev/null || echo "Unknown")
|
||||||
|
if [[ $BATTERY_STATUS != $OLD_BATTERY_STATUS && $OLD_BATTERY_STATUS != "Unknown" ]]; then
|
||||||
|
if [[ $BATTERY_STATUS == "Discharging" ]]; then
|
||||||
|
notif "battery" " Battery is unplugged"
|
||||||
|
else
|
||||||
|
notif "battery" " Battery is plugged in"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
echo $BATTERY_STATUS > /tmp/old_battery_status
|
||||||
|
'';
|
||||||
|
|
||||||
|
battery-level = pkgs.writeShellScriptBin "battery-level" ''
|
||||||
|
BATTERY_LEVEL=$(cat /sys/class/power_supply/BAT*/capacity | head -n1)
|
||||||
|
BATTERY_STATUS=$(cat /sys/class/power_supply/BAT*/status | head -n1)
|
||||||
|
if [[ $BATTERY_LEVEL -le 20 ]] && [[ $BATTERY_STATUS == "Discharging" ]]; then
|
||||||
|
notif "battery" " Low battery" "Battery level is $BATTERY_LEVEL%"
|
||||||
|
elif [[ $BATTERY_LEVEL -le 10 ]] && [[ $BATTERY_STATUS == "Discharging" ]]; then
|
||||||
|
notif "battery" " Very low battery" "Battery level is $BATTERY_LEVEL%"
|
||||||
|
# elif [[ $BATTERY_LEVEL -eq 100 ]] && [[ $BATTERY_STATUS -ne "Discharging" ]]; then
|
||||||
|
# notif "battery" " Fully charged"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = [ battery-watch battery-plugged battery-level ]; }
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
increments = "5";
|
||||||
|
|
||||||
|
brightness-change = pkgs.writeShellScriptBin "brightness-change" ''
|
||||||
|
sleep 0.05
|
||||||
|
|
||||||
|
[[ $1 == "up" ]] && ${pkgs.brightnessctl}/bin/brightnessctl set ${increments}%+
|
||||||
|
[[ $1 == "down" ]] && ${pkgs.brightnessctl}/bin/brightnessctl set ${increments}%-
|
||||||
|
|
||||||
|
brightness_level=$(${pkgs.brightnessctl}/bin/brightnessctl get)
|
||||||
|
|
||||||
|
message=" Brightness: $brightness_level%"
|
||||||
|
|
||||||
|
notif "brightness" "$message" "extraargs=-h int:value:$brightness_level"
|
||||||
|
'';
|
||||||
|
|
||||||
|
brightness-up = pkgs.writeShellScriptBin "brightness-up" ''
|
||||||
|
brightness-change up ${increments}
|
||||||
|
'';
|
||||||
|
|
||||||
|
brightness-down = pkgs.writeShellScriptBin "brightness-down" ''
|
||||||
|
brightness-change down ${increments}
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = [ brightness-change brightness-up brightness-down ]; }
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
caffeine-status = pkgs.writeShellScriptBin "caffeine-status" ''
|
||||||
|
[[ -f /tmp/caffeine ]] && echo "1" || echo "0"
|
||||||
|
'';
|
||||||
|
|
||||||
|
caffeine = pkgs.writeShellScriptBin "caffeine" ''
|
||||||
|
if [[ -f /tmp/caffeine ]]; then
|
||||||
|
rm /tmp/caffeine
|
||||||
|
${pkgs.hyprland}/bin/hyprctl dispatch exec ${pkgs.hypridle}/bin/hypridle
|
||||||
|
message=" Caffeine Deactivated"
|
||||||
|
else
|
||||||
|
touch /tmp/caffeine
|
||||||
|
pkill hypridle
|
||||||
|
message=" Caffeine Activated"
|
||||||
|
fi
|
||||||
|
notif "caffeine" "$message"
|
||||||
|
'';
|
||||||
|
|
||||||
|
caffeine-status-icon = pkgs.writeShellScriptBin "caffeine-status-icon" ''
|
||||||
|
status=$(caffeine-status)
|
||||||
|
if [[ $status == "1" ]]; then
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = [ caffeine-status caffeine caffeine-status-icon ]; }
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
# From https://github.com/Frost-Phoenix/nixos-config
|
||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
compress = pkgs.writeShellScriptBin "compress" ''
|
||||||
|
if (( $# == 1 )) then
|
||||||
|
# echo -ne "Archive name: "
|
||||||
|
# read name
|
||||||
|
# tar -cvzf "$name.tar.gz" $1
|
||||||
|
tar -cvzf "$1.tar.gz" $1
|
||||||
|
else
|
||||||
|
echo "Wrong number of arguments..."
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
extract = pkgs.writeShellScriptBin "extract" ''
|
||||||
|
for i in "$@" ; do
|
||||||
|
tar -xvzf $i
|
||||||
|
break
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = [ compress extract ]; }
|
||||||
@@ -1 +1,17 @@
|
|||||||
{ imports = [ ./scripts.nix ./nerdfetch.nix ]; }
|
{
|
||||||
|
imports = [
|
||||||
|
./nixy
|
||||||
|
./sounds
|
||||||
|
./brightness
|
||||||
|
./caffeine
|
||||||
|
./night-shift
|
||||||
|
./screenshot
|
||||||
|
./startup
|
||||||
|
./nerdfont_fzf
|
||||||
|
./notification
|
||||||
|
./battery
|
||||||
|
./compress
|
||||||
|
./misc
|
||||||
|
./tofi
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
menu = pkgs.writeShellScriptBin "menu" ''
|
||||||
|
if pgrep wofi; then
|
||||||
|
pkill wofi
|
||||||
|
else
|
||||||
|
wofi --show drun
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
powermenu = pkgs.writeShellScriptBin "powermenu" ''
|
||||||
|
if pgrep wlogout; then
|
||||||
|
pkill wlogout
|
||||||
|
else
|
||||||
|
${pkgs.wlogout}/bin/wlogout
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
lock = pkgs.writeShellScriptBin "lock" ''
|
||||||
|
${pkgs.hyprlock}/bin/hyprlock
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = [ menu powermenu lock ]; }
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
let
|
||||||
|
homedir = config.home.homeDirectory;
|
||||||
|
|
||||||
|
nerdfont-fzf = pkgs.writeShellScriptBin "nerdfont-fzf" ''
|
||||||
|
# Dependencies: jq, fzf, wl-copy, wget
|
||||||
|
icons=$(jq -r 'to_entries[] | "\(.key):\(.value.char)"' "${homedir}/.config/nerdfont_glyphnames.json" | awk -F: '{print "\033[95m "$2" \033[0m "$1}')
|
||||||
|
fzf_result=$(echo "$icons" | fzf --ansi --border none | awk '{print $1}')
|
||||||
|
if [ -z "$fzf_result" ]; then
|
||||||
|
echo "No icon selected"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Copied to clipboard: $fzf_result"
|
||||||
|
echo "Paste it to close the window"
|
||||||
|
${pkgs.wl-clipboard}/bin/wl-copy -o "$fzf_result" # wait for paste before exiting.. not cool
|
||||||
|
'';
|
||||||
|
|
||||||
|
nerdfont-fzf-fetch = pkgs.writeShellScriptBin "nerdfont-fzf-fetch" ''
|
||||||
|
wget "https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/glyphnames.json" -O "glyphnames.json" || exit 1
|
||||||
|
jq 'del(.METADATA)' "glyphnames.json"
|
||||||
|
'';
|
||||||
|
|
||||||
|
nerdfont-popup = pkgs.writeShellScriptBin "nerdfont-popup" ''
|
||||||
|
${pkgs.kitty}/bin/kitty --class floating -o font_size=18 zsh -c nerdfont-fzf 2>/dev/null
|
||||||
|
'';
|
||||||
|
|
||||||
|
in {
|
||||||
|
home.packages = [ nerdfont-fzf nerdfont-fzf-fetch nerdfont-popup ];
|
||||||
|
|
||||||
|
xdg.configFile."nerdfont_glyphnames.json" = {
|
||||||
|
source = ./nerdfont_glyphnames.json;
|
||||||
|
};
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user