Compare commits
453 Commits
v5.0.1
..
acb7db87df
| Author | SHA1 | Date | |
|---|---|---|---|
| acb7db87df | |||
| 0f5b7f60b6 | |||
| d7264b0de1 | |||
| 23b518381a | |||
| 8876aae16c | |||
| 0ed5d1cf04 | |||
| 83decac5e9 | |||
| 9104494893 | |||
| 10d1a73eeb | |||
| 307c0b5edd | |||
| 321914861f | |||
| b851c527af | |||
| 69f1aa3072 | |||
| aeaee053c4 | |||
| 7632e82867 | |||
| ffbb5eb322 | |||
| fe6288d42c | |||
| f54ec0a5ab | |||
| 768b475183 | |||
| 0643968e77 | |||
| 18a17abad4 | |||
| c4b19710ef | |||
| 1beb1be29c | |||
| 621520e9e8 | |||
| f030f9b6ed | |||
| f6c5f90a75 | |||
| 3ad6f353b6 | |||
| debc426717 | |||
| 0e6f7110e4 | |||
| af3b9fcd6e | |||
| 8e5df9ff90 | |||
| 7e1eaf33af | |||
| 6a12e7cde9 | |||
| 9a4fb9fd61 | |||
| c77dd39a98 | |||
| a0a7d5755a | |||
| 5efa224a57 | |||
| 61e195d134 | |||
| 5b2c6db769 | |||
| c6fee1ccd6 | |||
| 60652a60df | |||
| b41f3576c9 | |||
| edacf85795 | |||
| 7dd9f021f0 | |||
| ce4da71c70 | |||
| 0380714faa | |||
| 2b7d962b27 | |||
| 11f73f74ff | |||
| 8cc101b169 | |||
| 0bd30d921b | |||
| fe238ca49a | |||
| 527a22c37b | |||
| e1ad72405f | |||
| 985a8b063d | |||
| 66677bc08e | |||
| f3434352d2 | |||
| 65b82b3609 | |||
| c3e544248f | |||
| 6a33d7ac72 | |||
| 9b8c5b9b19 | |||
| 130415e809 | |||
| 52a029e998 | |||
| d1a8286a21 | |||
| 78bccf2c7e | |||
| 4290cc3c35 | |||
| 8f70b0d26b | |||
| d9580c1dff | |||
| 763fa5e549 | |||
| 0c68ac35b5 | |||
| 3ed7128cc4 | |||
| d7f34d9f0e | |||
| 826fd6aaaf | |||
| 1fba2d19b3 | |||
| d92bbe59a6 | |||
| edc0243200 | |||
| 27ac4008f8 | |||
| 9dc7b851f5 | |||
| 4a2d941991 | |||
| a62c549e8f | |||
| 7232c54382 | |||
| 25067c9d06 | |||
| be8b1b696c | |||
| 885f18806e | |||
| b9ebf59fea | |||
| ba007b4710 | |||
| 1d8bc979c3 | |||
| a7197e360e | |||
| 878754ad8b | |||
| 4a08e654e0 | |||
| 5d94699990 | |||
| d98468a34d | |||
| 5f73e46e73 | |||
| 674ef50ac9 | |||
| d276202288 | |||
| 9b31f3be8d | |||
| 24d0f22f8e | |||
| 13cf7cd494 | |||
| 65c430318f | |||
| b4e6f9d48c | |||
| a024023c43 | |||
| 6edf2cd0b9 | |||
| d2b3e6b430 | |||
| b5476da7ef | |||
| 9c1afd279c | |||
| f998316b9e | |||
| fea1eade7f | |||
| 2517219f4c | |||
| c5d95b14ea | |||
| 0a7befb23b | |||
| 41116fb2b5 | |||
| cf2f5f2f9b | |||
| 35ba84724f | |||
| 2151fc6f90 | |||
| 45ed8258ca | |||
| ffc95dcd1b | |||
| 2c68166067 | |||
| ae83c7497a | |||
| 03c675cf62 | |||
| a4d8670563 | |||
| 0114b629e6 | |||
| 7f4280af72 | |||
| e7b4080c2a | |||
| c541832066 | |||
| 8b57bffcd6 | |||
| 7a4e3ad1a3 | |||
| 7a2c2c6201 | |||
| a8c0fdb670 | |||
| 5ce310fe6d | |||
| 89818e9ee2 | |||
| d943b85cc9 | |||
| 8eaa78bf4b | |||
| 82d6c29f21 | |||
| 72a8aa16bb | |||
| 5c9b799afe | |||
| eb584dac56 | |||
| 2fd610a09c | |||
| 8eb88f474a | |||
| f73291c269 | |||
| e93e5807f9 | |||
| 6d0a2e186b | |||
| c2a700ef3a | |||
| 7b0deaf9c1 | |||
| 98d1ccb2c0 | |||
| e6f46e1788 | |||
| e6c2becccb | |||
| cfc9f99c83 | |||
| 3c43b277b7 | |||
| 64f789e52a | |||
| 9ab4dae87b | |||
| f2b742e470 | |||
| a3f44fa53c | |||
| 91d06ef6a4 | |||
| b9df9861fc | |||
| 049e2a9214 | |||
| 78bb7ff465 | |||
| 8e04a559b9 | |||
| aa3f3e2269 | |||
| bcc505f5dd | |||
| f0617924b0 | |||
| 14c33a8191 | |||
| fcd92d0155 | |||
| 9d73c644a7 | |||
| c5c0fdc7cc | |||
| 42d7b8b820 | |||
| 2983dd6270 | |||
| 7d684153a9 | |||
| bc26eb05a7 | |||
| ec38767570 | |||
| 5340cfeb84 | |||
| 734e310f28 | |||
| e388cc7556 | |||
| 0263e08415 | |||
| 65f8fcc926 | |||
| 59a3c1d4de | |||
| 206d4d7433 | |||
| 8c8833b26e | |||
| 392a3e4998 | |||
| 76a423a964 | |||
| 63c19a0c61 | |||
| f3f4689cc8 | |||
| 2050efbfbf | |||
| 8d5734b739 | |||
| f23897d7d8 | |||
| 22b00bf301 | |||
| 76355d3ca1 | |||
| 14b29a6588 | |||
| 5eafcf5b76 | |||
| 9c43d22eb1 | |||
| 06428958dd | |||
| 0d84783032 | |||
| 25af8d6213 | |||
| e3549ce9e5 | |||
| 1d859e5c13 | |||
| 4ef84d1f8d | |||
| ed791eb748 | |||
| 5c6acc2028 | |||
| a9dc177a34 | |||
| ef32063715 | |||
| bdaa52dedc | |||
| c5d7ba76c7 | |||
| 358e8c9158 | |||
| d1dd841da8 | |||
| 8137ebfd99 | |||
| cc45eda3ef | |||
| 8415d92264 | |||
| 17d95716b6 | |||
| 6db2fc373d | |||
| ebbf404c68 | |||
| 9fc328f675 | |||
| ba489aaea3 | |||
| 67ec1dd41f | |||
| ae50fc36d6 | |||
| f401067dd9 | |||
| a02bee95de | |||
| ec7b2a2fe9 | |||
| 2a40427cd6 | |||
| eb42d3e4d1 | |||
| 03f4715693 | |||
| c35dfb8017 | |||
| 7bdacd9ed5 | |||
| c8ca22f308 | |||
| 13b147932e | |||
| 29b6dc17c0 | |||
| 8ff1df4333 | |||
| af0241f1eb | |||
| 3719cc90be | |||
| 396297d6f7 | |||
| cb4b5741d7 | |||
| da000e60bd | |||
| c4a38e7691 | |||
| 8972cd081b | |||
| b930a7e9f7 | |||
| 85a7fc8ca7 | |||
| 869a442843 | |||
| 49b6d81216 | |||
| 21d84fd39d | |||
| 2a12db0133 | |||
| 9c5118264c | |||
| 3a8df54936 | |||
| a3c8ad5efb | |||
| b38a1ccef8 | |||
| 321bb0bd16 | |||
| 6c96796584 | |||
| c6bc2ba192 | |||
| c5f8e0f7a2 | |||
| 9ff0e4cbe4 | |||
| 4c0a61ccad | |||
| 8ddabcee34 | |||
| ccef91e0ed | |||
| f9057b2983 | |||
| 5e276e88f8 | |||
| 6c4428b4ef | |||
| fd32e06cd2 | |||
| 1a4615a781 | |||
| 3823561a0a | |||
| b667a65f31 | |||
| 88df4c8d42 | |||
| 8082c06548 | |||
| 21bf90efc0 | |||
| 6d22f2d409 | |||
| ffa788dd4e | |||
| 79a045e3bb | |||
| 2fb8a97b71 | |||
| 26065f3699 | |||
| 4f2ba52404 | |||
| be23ff67aa | |||
| ff79cbf502 | |||
| 8b8f3fa54b | |||
| 1f2bb4c33a | |||
| 9d458b7e04 | |||
| dedf840131 | |||
| 7dc2c69292 | |||
| def86d31a4 | |||
| 3038f62405 | |||
| fe01b971cf | |||
| 918c865202 | |||
| 6e30f6cd4e | |||
| ff73c05ba6 | |||
| dbf520b556 | |||
| fc046db74b | |||
| 96bae83dd1 | |||
| aae802193c | |||
| 8dc316d6a4 | |||
| ad86356f9a | |||
| 007ef7304b | |||
| 019a6deaf4 | |||
| 7da96ad2c7 | |||
| 7ebc1ba322 | |||
| c5e9cb9c32 | |||
| a3ec52058e | |||
| d78f213006 | |||
| 73b2015d02 | |||
| cedad9a7a6 | |||
| 65d6c2f28f | |||
| 18c7618ebf | |||
| e29a5c2517 | |||
| 6f3c922010 | |||
| 2b902ef731 | |||
| 7cb070b6b1 | |||
| e788f5954e | |||
| bfb370d8fe | |||
| 0332b6c56b | |||
| e5bdab5a24 | |||
| a42ef3ff84 | |||
| da33cf1fd3 | |||
| 4290a5e814 | |||
| 8e425d5d87 | |||
| 8aeff4bb9a | |||
| 6d23ca208e | |||
| 41ccb74258 | |||
| 5f1b047221 | |||
| a5b26b92de | |||
| 5e71ef48dd | |||
| 2fc51aa02e | |||
| 7dc90af1c8 | |||
| 7a564110a5 | |||
| bb08cd494a | |||
| 3b5885e2c9 | |||
| d9810c3c1f | |||
| 13f060d100 | |||
| 40164e8cbd | |||
| f9187d3252 | |||
| b86fe8b3c7 | |||
| 9cdddb99c5 | |||
| 35bb470eb1 | |||
| 1a1597ba49 | |||
| 8c55eb48af | |||
| cd3dfb985c | |||
| 19bf7838c4 | |||
| 05da8fd990 | |||
| d28ad77974 | |||
| 379424e228 | |||
| 355336c9ff | |||
| 46b213bbfa | |||
| 4fda4eda9e | |||
| 3bffc0142c | |||
| 21f5d55569 | |||
| 12d7254c83 | |||
| 35dd9bb964 | |||
| e104aec12d | |||
| e11dcecace | |||
| 84d2f689ed | |||
| 52c060c8be | |||
| 28dc3d1a94 | |||
| ef2ee20495 | |||
| f4f253a218 | |||
| 2f0f3c74f3 | |||
| 2809615f7b | |||
| a617044695 | |||
| 379cd9e98d | |||
| 60d880aac2 | |||
| 89d736c311 | |||
| 96faa74cf0 | |||
| 0f6a8af649 | |||
| 80b3607bc1 | |||
| 9c1c2a21a4 | |||
| ab13ead2a8 | |||
| dea3f4f4fd | |||
| 4bf7d41ff1 | |||
| 54bb1e2064 | |||
| 3e818073e0 | |||
| 9c8d27e687 | |||
| ca138aa8af | |||
| 784df1e08f | |||
| a12846fddc | |||
| 820268a2a1 | |||
| 7e19f9ee0d | |||
| 6558683822 | |||
| 8401688019 | |||
| cfd999b373 | |||
| 70b156b828 | |||
| 6e056afe67 | |||
| caa93f691c | |||
| 34776f0af1 | |||
| 7f30239b2a | |||
| 6d744fab45 | |||
| cf6ed4a265 | |||
| 62e0472698 | |||
| d477340177 | |||
| f9c910f5ac | |||
| 41a225ec83 | |||
| 35c98d1b97 | |||
| 1a477e26bc | |||
| 8166950e74 | |||
| ea0d1cee92 | |||
| 8df0278272 | |||
| 6c471c33f7 | |||
| 5182276d1e | |||
| d18e69ee75 | |||
| f363249e41 | |||
| 342fbc2fcc | |||
| 150617ca7a | |||
| 7196117da7 | |||
| ba1feb92ec | |||
| 7452406a00 | |||
| 2c910092c8 | |||
| c3d9df2cb0 | |||
| b573560024 | |||
| 1633e21d9b | |||
| 406d7ae6e9 | |||
| 2055d2da9a | |||
| ec4fc1864c | |||
| fa0aa29974 | |||
| 8e4d046365 | |||
| aec2c05778 | |||
| 5cd78b81d1 | |||
| d906e2675d | |||
| ac5949e2a0 | |||
| 72111e6c3a | |||
| dad7e92a41 | |||
| 8cf07d7418 | |||
| 3ae887ef0e | |||
| ac34c94aad | |||
| dd54fa49f0 | |||
| 4f1920ac35 | |||
| 7693435eab | |||
| 5451b4cfb4 | |||
| 3677d8f6a1 | |||
| 8f3fd2e2a5 | |||
| d7a1249a3f | |||
| 290cfca8b3 | |||
| 5717331eb6 | |||
| 0bf5355641 | |||
| b4c0b61815 | |||
| 011c084203 | |||
| 10215a086f | |||
| 882c3f0c76 | |||
| c3151cc1f5 | |||
| cb1b2c04c7 | |||
| 8ab6e708f6 | |||
| 06805d8d27 | |||
| 557b1d375e | |||
| b9cf6573bd | |||
| 2cd17956fa | |||
| 435d82cfba | |||
| c1b7e8d56c | |||
| 2956e1599a | |||
| 4545f906ef | |||
| ae7d092e1a | |||
| 7252a96939 | |||
| b24abc3831 | |||
| 22395725a3 | |||
| 9beb7bc157 | |||
| f0d8a6b811 | |||
| 202ac3ca3b | |||
| 1f6075cae7 | |||
| 0ab8844d04 | |||
| 1bb1112db2 | |||
| 61804bcbe7 | |||
| 31ace98f68 | |||
| e9480830d8 | |||
| 7490f1ef84 | |||
| f7e41e3653 |
@@ -1,15 +0,0 @@
|
|||||||
# These are supported funding model platforms
|
|
||||||
|
|
||||||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
|
||||||
patreon: # Replace with a single Patreon username
|
|
||||||
open_collective: # Replace with a single Open Collective username
|
|
||||||
ko_fi: anotherhadi
|
|
||||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
|
||||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
||||||
liberapay: # Replace with a single Liberapay username
|
|
||||||
issuehunt: # Replace with a single IssueHunt username
|
|
||||||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
|
||||||
polar: # Replace with a single Polar username
|
|
||||||
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
|
|
||||||
thanks_dev: # Replace with a single thanks.dev username
|
|
||||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
|
||||||
@@ -1,134 +0,0 @@
|
|||||||
<div align="center">
|
|
||||||
<img alt="nixy logo" src="./.github/assets/logo.png" width="120px" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<br>
|
|
||||||
|
|
||||||
# Nixy
|
|
||||||
|
|
||||||
<br>
|
|
||||||
<div align="center">
|
|
||||||
<a href="https://github.com/anotherhadi/nixy/stargazers">
|
|
||||||
<img src="https://img.shields.io/github/stars/anotherhadi/nixy?color={primarycolor}&labelColor={backgroundcolor}&style=for-the-badge&logo=starship&logoColor={primarycolor}">
|
|
||||||
</a>
|
|
||||||
<a href="https://github.com/anotherhadi/nixy/">
|
|
||||||
<img src="https://img.shields.io/github/repo-size/anotherhadi/nixy?color={primarycolor}&labelColor={backgroundcolor}&style=for-the-badge&logo=github&logoColor={primarycolor}">
|
|
||||||
</a>
|
|
||||||
<a href="https://nixos.org">
|
|
||||||
<img src="https://img.shields.io/badge/NixOS-unstable-blue.svg?style=for-the-badge&labelColor={backgroundcolor}&logo=NixOS&logoColor={primarycolor}&color={primarycolor}">
|
|
||||||
</a>
|
|
||||||
<a href="https://github.com/anotherhadi/nixy/blob/main/LICENSE">
|
|
||||||
<img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=License&message=MIT&colorA={backgroundcolor}&colorB={primarycolor}&logo=unlicense&logoColor={primarycolor}"/>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
**Nixy simplifies and unifies** the Hyprland ecosystem with a modular, easily
|
|
||||||
customizable setup. It provides a structured way to manage your system
|
|
||||||
configuration and dotfiles with minimal effort. It includes _home-manager_,
|
|
||||||
_secrets_, and _custom theming_ all in one place.
|
|
||||||
|
|
||||||
**Features:**
|
|
||||||
|
|
||||||
- 💻 Hyprland & Caelestia: Preconfigured Hyprland ecosystem with Caelestia-shell (Ty to both projects!)
|
|
||||||
- 🎨 Consistent Theming: Base16 & Stylix-powered themes
|
|
||||||
- ⌨️ Vim-like Everywhere: Unified keybindings (Hyprland, nvim, vimium, etc.)
|
|
||||||
|
|
||||||
## Table of Content
|
|
||||||
|
|
||||||
{md_table_of_content}
|
|
||||||
|
|
||||||
## Screenshots
|
|
||||||
|
|
||||||

|
|
||||||

|
|
||||||

|
|
||||||
|
|
||||||
## Architecture
|
|
||||||
|
|
||||||
### 🏠 /home (User-level configuration)
|
|
||||||
|
|
||||||
Contains **dotfiles and settings** that apply to your user environment.
|
|
||||||
|
|
||||||
**Subfolders:**
|
|
||||||
|
|
||||||
- `programs` is a collection of apps configured with home-manager
|
|
||||||
- `system` is some "desktop environment" configuration
|
|
||||||
|
|
||||||
### 🐧 /nixos
|
|
||||||
|
|
||||||
Those are the system-level configurations. (audio, bluetooth, gpu, bootloader,
|
|
||||||
...)
|
|
||||||
|
|
||||||
### 🎨 /themes
|
|
||||||
|
|
||||||
This folder contains all system themes. Mainly
|
|
||||||
[stylix](https://stylix.danth.me/) configurations. Check out the available
|
|
||||||
themes and learn how to create your own in [THEMES.md](docs/THEMES.md)
|
|
||||||
|
|
||||||
### 💻 /hosts
|
|
||||||
|
|
||||||
This directory contains host-specific configurations. Each host includes:
|
|
||||||
|
|
||||||
- `configuration.nix` for system-wide settings
|
|
||||||
- `home.nix` for user-level configuration
|
|
||||||
- `variables.nix` for global variables
|
|
||||||
- `secrets/` for sensitive data
|
|
||||||
|
|
||||||
### 🖥️ /server-modules
|
|
||||||
|
|
||||||
This folder contains server-related nixos modules. (bitwarden, nextcloud, ...)
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
1. [Fork](https://github.com/anotherhadi/nixy/fork) this repo and clone it to
|
|
||||||
your system:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Copy the `hosts/laptop` folder, rename it to match your system’s hostname,
|
|
||||||
and update `variables.nix` with your machine’s settings.
|
|
||||||
3. Copy your `hardware-configuration.nix` into your new host's folder to ensure
|
|
||||||
proper hardware support.
|
|
||||||
4. Register your new host in `flake.nix` by adding it under nixosConfigurations.
|
|
||||||
|
|
||||||
> [!IMPORTANT]
|
|
||||||
> `# CHANGEME` comments are placed throughout the config to
|
|
||||||
> indicate necessary modifications. Use the following command to quickly locate
|
|
||||||
> them:
|
|
||||||
>
|
|
||||||
> ```sh
|
|
||||||
> rg "CHANGEME" ~/.config/nixos
|
|
||||||
> ```
|
|
||||||
|
|
||||||
> [!TIP]
|
|
||||||
> When you add new files, don't forget to run `git add .` to add them to the git
|
|
||||||
> repository
|
|
||||||
|
|
||||||
5. Build the system
|
|
||||||
|
|
||||||
```sh
|
|
||||||
sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname
|
|
||||||
```
|
|
||||||
|
|
||||||
## Documentation
|
|
||||||
|
|
||||||
- [SERVER](docs/SERVER.md): Check out the server documentation
|
|
||||||
- [THEMES](docs/THEMES.md): How themes work and how to create your own
|
|
||||||
- [WALLPAPERS](https://github.com/anotherhadi/awesome-wallpapers): An awesome
|
|
||||||
collection of wallpapers
|
|
||||||
- [NEOVIM](docs/NEOVIM.md): How to use the Neovim config in your own flake
|
|
||||||
- [GROUPS](docs/GROUPS.md): Reusable package groups (dev, cybersecurity)
|
|
||||||
|
|
||||||
- [CONTRIBUTING](docs/CONTRIBUTING.md): How to contribute
|
|
||||||
- [LICENSE](LICENSE): MIT License
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<div align="center">
|
|
||||||
<a href="https://github.com/anotherhadi/nixy">github</a> |
|
|
||||||
<a href="https://gitlab.com/anotherhadi_mirror/nixy">gitlab (mirror)</a> |
|
|
||||||
<a href="https://git.hadi.icu/anotherhadi/nixy">gitea (mirror)</a>
|
|
||||||
</div
|
|
||||||
|
Before Width: | Height: | Size: 412 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 160 KiB |
@@ -1,20 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Create the README.md file from the .github/assets/README_template.md file
|
|
||||||
|
|
||||||
[[ -d "./docs" ]] || (echo "Folder ./docs not found" && exit 1)
|
|
||||||
|
|
||||||
README_FILE="./README.md"
|
|
||||||
|
|
||||||
table_of_content=$(markdown-table-of-contents --start-by 2 ./.github/assets/README_template.md) # https://github.com/anotherhadi/markdown-table-of-contents
|
|
||||||
readme_content=$(cat "./.github/assets/README_template.md")
|
|
||||||
|
|
||||||
# Replace variables
|
|
||||||
readme_content=${readme_content//\{primarycolor\}/A89AD1}
|
|
||||||
readme_content=${readme_content//\{backgroundcolor\}/0b0b0b}
|
|
||||||
readme_content=${readme_content//\{md_table_of_content\}/$table_of_content}
|
|
||||||
|
|
||||||
echo "[//]: # (This file is autogenerated)" >"$README_FILE"
|
|
||||||
echo "$readme_content" >>"$README_FILE"
|
|
||||||
sed 's/\r//' "$README_FILE" >"/tmp/readme.md"
|
|
||||||
mv "/tmp/readme.md" "$README_FILE"
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- '.github/assets/README_template.md'
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
jobs:
|
|
||||||
update-readme:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ./
|
|
||||||
steps:
|
|
||||||
- name: Check out the repository to the runner
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version: '^1.23'
|
|
||||||
- name: Install required dependencies
|
|
||||||
run: |
|
|
||||||
go install github.com/anotherhadi/markdown-table-of-contents@latest
|
|
||||||
- name: Run a script
|
|
||||||
run: |
|
|
||||||
chmod +x ./.github/scripts/create_readme.sh
|
|
||||||
./.github/scripts/create_readme.sh
|
|
||||||
git config user.name github-actions
|
|
||||||
git config user.email github-actions@github.com
|
|
||||||
git add .
|
|
||||||
git commit -m "Update README.md (auto)" && git push
|
|
||||||
exit 0
|
|
||||||
@@ -1,3 +1 @@
|
|||||||
.sops.yaml
|
todolist.md
|
||||||
.claude/
|
|
||||||
old/
|
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2026 Hadi
|
Copyright (c) 2024 Hadi
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
[//]: # (This file is autogenerated)
|
[//]: # (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/19/24)
|
||||||
|
[//]: # (Version: v2.1.0)
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<img alt="nixy logo" src="./.github/assets/logo.png" width="120px" />
|
<img src="https://raw.githubusercontent.com/anotherhadi/nixy/main/docs/src/logo.png" width="100px" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
@@ -9,115 +14,66 @@
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
<div align="center">
|
<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.1.0&colorA=181825&colorB=89b4fa&logo=githubactions&logoColor=89b4fa"/>
|
||||||
|
</a>
|
||||||
<a href="https://github.com/anotherhadi/nixy/stargazers">
|
<a href="https://github.com/anotherhadi/nixy/stargazers">
|
||||||
<img src="https://img.shields.io/github/stars/anotherhadi/nixy?color=A89AD1&labelColor=0b0b0b&style=for-the-badge&logo=starship&logoColor=A89AD1">
|
<img src="https://img.shields.io/github/stars/anotherhadi/nixy?color=89b4fa&labelColor=181825&style=for-the-badge&logo=starship&logoColor=89b4fa">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/anotherhadi/nixy/">
|
<a href="https://github.com/anotherhadi/nixy/">
|
||||||
<img src="https://img.shields.io/github/repo-size/anotherhadi/nixy?color=A89AD1&labelColor=0b0b0b&style=for-the-badge&logo=github&logoColor=A89AD1">
|
<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>
|
||||||
<a href="https://nixos.org">
|
<a href="https://nixos.org">
|
||||||
<img src="https://img.shields.io/badge/NixOS-unstable-blue.svg?style=for-the-badge&labelColor=0b0b0b&logo=NixOS&logoColor=A89AD1&color=A89AD1">
|
<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>
|
||||||
<a href="https://github.com/anotherhadi/nixy/blob/main/LICENSE">
|
<a href="https://github.com/anotherhadi/nixy/blob/main/LICENSE">
|
||||||
<img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=License&message=MIT&colorA=0b0b0b&colorB=A89AD1&logo=unlicense&logoColor=A89AD1"/>
|
<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>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
**Nixy simplifies and unifies** the Hyprland ecosystem with a modular, easily
|
**Nixy** is a **Hyprland** NixOS configuration with **home-manager**, **secrets**, and **custom theming** all in one place.
|
||||||
customizable setup. It provides a structured way to manage your system
|
It's a simple way to manage your system configuration and dotfiles.
|
||||||
configuration and dotfiles with minimal effort. It includes _home-manager_,
|
|
||||||
_secrets_, and _custom theming_ all in one place.
|
|
||||||
|
|
||||||
**Features:**
|
|
||||||
|
|
||||||
- 💻 Hyprland & Caelestia: Preconfigured Hyprland ecosystem with Caelestia-shell (Ty to both projects!)
|
|
||||||
- 🎨 Consistent Theming: Base16 & Stylix-powered themes
|
|
||||||
- ⌨️ Vim-like Everywhere: Unified keybindings (Hyprland, nvim, vimium, etc.)
|
|
||||||
|
|
||||||
## Table of Content
|
## Table of Content
|
||||||
|
|
||||||
- [Table of Content](#table-of-content)
|
- [Table of Content](#table-of-content)
|
||||||
- [Screenshots](#screenshots)
|
- [Gallery](#gallery)
|
||||||
- [Architecture](#architecture)
|
- [Architecture](#architecture)
|
||||||
- [🏠 /home (User-level configuration)](#-home-user-level-configuration)
|
- [Installation](#installation)
|
||||||
- [🐧 /nixos](#-nixos)
|
- [Documentation](#documentation)
|
||||||
- [🎨 /themes](#-themes)
|
|
||||||
- [💻 /hosts](#-hosts)
|
|
||||||
- [🖥️ /server-modules](#-server-modules)
|
|
||||||
- [Installation](#installation)
|
|
||||||
- [Documentation](#documentation)
|
|
||||||
|
|
||||||
## Screenshots
|
## Gallery
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
||||||
### 🏠 /home (User-level configuration)
|
- 🏠 `home` are the dotfiles and configuration files for the users
|
||||||
|
- 'programs' is a collection of apps configured with home-manager
|
||||||
Contains **dotfiles and settings** that apply to your user environment.
|
- 'scripts' is a folder full of bash scripts (see [SCRIPTS.md](docs/SCRIPTS.md))
|
||||||
|
- 'system' is some "desktop environment" configuration
|
||||||
**Subfolders:**
|
- 'wallpapers' are... wallpapers
|
||||||
|
- 💻 `hosts` are the system configuration files
|
||||||
- `programs` is a collection of apps configured with home-manager
|
- 'laptop' is my configuration for my laptop with Nvidia that you can copy
|
||||||
- `system` is some "desktop environment" configuration
|
- 'server' is for my homeserver (w/nextcloud, nginx, vaultwarden, ... look `hosts/server`)
|
||||||
|
- 'themes' contains all the *themes* available *(see [THEMES.md](docs/THEMES.md))*
|
||||||
### 🐧 /nixos
|
- 'modules' are some nix modules that you can import (Nvidia, prime, fonts, ...)
|
||||||
|
|
||||||
Those are the system-level configurations. (audio, bluetooth, gpu, bootloader,
|
|
||||||
...)
|
|
||||||
|
|
||||||
### 🎨 /themes
|
|
||||||
|
|
||||||
This folder contains all system themes. Mainly
|
|
||||||
[stylix](https://stylix.danth.me/) configurations. Check out the available
|
|
||||||
themes and learn how to create your own in [THEMES.md](docs/THEMES.md)
|
|
||||||
|
|
||||||
### 💻 /hosts
|
|
||||||
|
|
||||||
This directory contains host-specific configurations. Each host includes:
|
|
||||||
|
|
||||||
- `configuration.nix` for system-wide settings
|
|
||||||
- `home.nix` for user-level configuration
|
|
||||||
- `variables.nix` for global variables
|
|
||||||
- `secrets/` for sensitive data
|
|
||||||
|
|
||||||
### 🖥️ /server-modules
|
|
||||||
|
|
||||||
This folder contains server-related nixos modules. (bitwarden, nextcloud, ...)
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
1. [Fork](https://github.com/anotherhadi/nixy/fork) this repo and clone it to
|
|
||||||
your system:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Copy the `hosts/laptop` folder, rename it to match your system’s hostname,
|
- Copy the `hosts/laptop` folder, rename it to your system name, and change the variables inside the `variables.nix` file
|
||||||
and update `variables.nix` with your machine’s settings.
|
- Add your `hardware-configuration.nix` to your new host's folder
|
||||||
3. Copy your `hardware-configuration.nix` into your new host's folder to ensure
|
- Add your 'nixosConfigurations' inside `flake.nix` (You can edit your hostname one and change the lines containing '# CHANGEME')
|
||||||
proper hardware support.
|
|
||||||
4. Register your new host in `flake.nix` by adding it under nixosConfigurations.
|
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!NOTE]
|
||||||
> `# CHANGEME` comments are placed throughout the config to
|
> When you add new files, don't forget to run `git add .` to add them to the git repository
|
||||||
> indicate necessary modifications. Use the following command to quickly locate
|
|
||||||
> them:
|
|
||||||
>
|
|
||||||
> ```sh
|
|
||||||
> rg "CHANGEME" ~/.config/nixos
|
|
||||||
> ```
|
|
||||||
|
|
||||||
> [!TIP]
|
|
||||||
> When you add new files, don't forget to run `git add .` to add them to the git
|
|
||||||
> repository
|
|
||||||
|
|
||||||
5. Build the system
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname
|
sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname
|
||||||
@@ -125,20 +81,12 @@ sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname
|
|||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
- [SERVER](docs/SERVER.md): Check out the server documentation
|
- [THEMES.md](docs/THEMES.md): How themes work and how to create your own
|
||||||
- [THEMES](docs/THEMES.md): How themes work and how to create your own
|
- [APPS.md](docs/APPS.md): Which apps are installed
|
||||||
- [WALLPAPERS](https://github.com/anotherhadi/awesome-wallpapers): An awesome
|
- [SCRIPTS.md](docs/SCRIPTS.md): Scripts that are available
|
||||||
collection of wallpapers
|
- [KEYBINDINGS.md](docs/KEYBINDINGS.md): Keybindings available in Hyprland
|
||||||
- [NEOVIM](docs/NEOVIM.md): How to use the Neovim config in your own flake
|
- [WALLPAPERS.md](docs/WALLPAPERS.md): Preview of every wallpapers available
|
||||||
- [GROUPS](docs/GROUPS.md): Reusable package groups (dev, cybersecurity)
|
|
||||||
|
|
||||||
- [CONTRIBUTING](docs/CONTRIBUTING.md): How to contribute
|
- [TODO.md](docs/TODO.md): What's next (feel free to contribute)
|
||||||
|
- [CONTRIBUTING.md](docs/CONTRIBUTING.md): How to contribute
|
||||||
- [LICENSE](LICENSE): MIT License
|
- [LICENSE](LICENSE): MIT License
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<div align="center">
|
|
||||||
<a href="https://github.com/anotherhadi/nixy">github</a> |
|
|
||||||
<a href="https://gitlab.com/anotherhadi_mirror/nixy">gitlab (mirror)</a> |
|
|
||||||
<a href="https://git.hadi.icu/anotherhadi/nixy">gitea (mirror)</a>
|
|
||||||
</div
|
|
||||||
|
|||||||
@@ -0,0 +1,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 |
|
||||||
|
| | hyprcursor |
|
||||||
|
| | 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
|
||||||
|
- Uptime Kuma
|
||||||
|
- "Jackflix"
|
||||||
|
- Jellyfin, Transmission, *arr
|
||||||
|
- See [hosts/server](../hosts/server/)...
|
||||||
@@ -1,16 +1,19 @@
|
|||||||
# Contributing to Nixy
|
# Contributing to Nixy
|
||||||
|
|
||||||
Everybody is invited and welcome to contribute to Nixy. There is a lot to do... Check the issues!
|
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.
|
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)
|
- 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).
|
- Fork Nixy [git repository](https://github.com/anotherhadi/nixy).
|
||||||
- Write your changes (new theme, bug fixes, issues fix, ...).
|
- Write your changes (new theme, bug fixes, task in to-do, ...).
|
||||||
- Create a Pull Request against the main branch of Nixy.
|
- Create a Pull Request against the main branch of Nixy.
|
||||||
|
|
||||||
> [!TIP]
|
> [!TIP]
|
||||||
> To update the README, change the `./.github/assets/README_template.md`
|
> 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]
|
> [!IMPORTANT]
|
||||||
> Don't push your host's folder
|
> Don't push your host's folder
|
||||||
|
|||||||
@@ -1,44 +0,0 @@
|
|||||||
# Groups
|
|
||||||
|
|
||||||
Groups are curated sets of packages exposed as flake outputs. Each group has two forms:
|
|
||||||
|
|
||||||
- **`homeManagerModules.<group>`** — full home-manager module (packages + files + systemd units)
|
|
||||||
- **`packages.<group>`** — standalone environment for `nix shell` (packages only)
|
|
||||||
|
|
||||||
## Available groups
|
|
||||||
|
|
||||||
- dev (go, bun, air, ...)
|
|
||||||
- cybersecurity (nmap, john, dirb, ffuf, ...)
|
|
||||||
|
|
||||||
For the Cybersecurity group, the home-manager module also sets up:
|
|
||||||
|
|
||||||
- `~/Cyber/wordlists/` with SecLists, fuzz4bounty, and hashcat rules
|
|
||||||
- `~/Cyber/tmp/` as a temporary workspace
|
|
||||||
|
|
||||||
## Use in another flake
|
|
||||||
|
|
||||||
Add this repo as an input:
|
|
||||||
|
|
||||||
```nix
|
|
||||||
inputs.nixy.url = "github:anotherhadi/nixy";
|
|
||||||
```
|
|
||||||
|
|
||||||
Import the home-manager module in your home configuration:
|
|
||||||
|
|
||||||
```nix
|
|
||||||
{ inputs, ... }: {
|
|
||||||
imports = [
|
|
||||||
inputs.nixy.homeManagerModules.cybersecurity
|
|
||||||
# inputs.nixy.homeManagerModules.dev
|
|
||||||
];
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Quick shell without installing
|
|
||||||
|
|
||||||
```sh
|
|
||||||
nix shell github:anotherhadi/nixy#cybersecurity
|
|
||||||
nix shell github:anotherhadi/nixy#dev
|
|
||||||
```
|
|
||||||
|
|
||||||
This drops you into a shell with all tools in `PATH`. No home-manager required, no wordlists or systemd units.
|
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# Keybindings
|
||||||
|
|
||||||
|
The list of the keybindings working on Hyprland:
|
||||||
|
|
||||||
|
| Description | Keybinding |
|
||||||
|
|-----------------------------|--------------------------|
|
||||||
|
| Switch Workspace | SUPER + {Number} |
|
||||||
|
| Move app to Workspace | SHIFT + SUPER + {Number} |
|
||||||
|
| Kitty | SUPER + RETURN |
|
||||||
|
| Thunar | SUPER + E |
|
||||||
|
| Qutebrowser | SUPER + B |
|
||||||
|
| Bitwarden | SUPER + K |
|
||||||
|
| Peaclock | SUPER + C |
|
||||||
|
| Lock | SUPER + L |
|
||||||
|
| Powermenu | SUPER + X |
|
||||||
|
| Launcher | SUPER + SPACE |
|
||||||
|
| Close window | SUPER + Q |
|
||||||
|
| Toggle Floating | SUPER + T |
|
||||||
|
| Toggle Fullscreen | SUPER + F |
|
||||||
|
| Move focus left | SUPER + left |
|
||||||
|
| Move focus Right | SUPER + right |
|
||||||
|
| Move focus Up | SUPER + up |
|
||||||
|
| Move focus Down | SUPER + down |
|
||||||
|
| Screenshot window | SUPER + PRINT |
|
||||||
|
| Screenshot monitor | PRINT |
|
||||||
|
| Screenshot region | SHIFT + SUPER + PRINT |
|
||||||
|
| Screenshot region then edit | ALT PRINT |
|
||||||
|
| Turn off night shift | SUPER + F2 |
|
||||||
|
| Turn on night shift | SUPER + F3 |
|
||||||
|
| Choose sound output | SUPER + F5 |
|
||||||
|
| Move Window (mouse) | SUPER + mouse:272 |
|
||||||
|
| Resize Window (mouse) | SUPER + R |
|
||||||
|
| Toggle Mute | XF86AudioMute |
|
||||||
|
| Lock when closing Lid | switch:Lid Switch |
|
||||||
|
| Sound Up | XF86AudioRaiseVolume |
|
||||||
|
| Sound Down | XF86AudioLowerVolume |
|
||||||
|
| Brightness Up | XF86MonBrightnessUp |
|
||||||
|
| Brightness Down | XF86MonBrightnessDown |
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
# Neovim
|
|
||||||
|
|
||||||
The Neovim configuration is built with [nvf](https://github.com/notashelf/nvf) and exposed as a standalone flake output.
|
|
||||||
It can be used in three ways: run it directly, import it into another flake's home-manager setup, or use it as part of this config.
|
|
||||||
|
|
||||||
## Run directly
|
|
||||||
|
|
||||||
No installation needed:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
nix run github:anotherhadi/nixy#nvim
|
|
||||||
```
|
|
||||||
|
|
||||||
## Use in another flake
|
|
||||||
|
|
||||||
Add this repo as an input:
|
|
||||||
|
|
||||||
```nix
|
|
||||||
inputs.nixy.url = "github:anotherhadi/nixy";
|
|
||||||
```
|
|
||||||
|
|
||||||
Then import the home-manager module in your home configuration:
|
|
||||||
|
|
||||||
```nix
|
|
||||||
{ inputs, ... }: {
|
|
||||||
imports = [ inputs.nixy.homeManagerModules.nvim ];
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## What's included
|
|
||||||
|
|
||||||
| File | Description |
|
|
||||||
| --------------- | ---------------------------------------------------------------------- |
|
|
||||||
| `options.nix` | Core settings: theme (catppuccin mocha), clipboard, indentation, folds |
|
|
||||||
| `languages.nix` | LSP, treesitter, formatters, diagnostics, and per-language config |
|
|
||||||
| `keymaps.nix` | All key mappings (leader: `space`) |
|
|
||||||
| `picker.nix` | Snacks picker + oil.nvim |
|
|
||||||
| `snacks.nix` | Snacks extras: image preview, zen mode, git signs, statuscolumn |
|
|
||||||
| `utils.nix` | Bufferline, lualine, copilot, lazygit, toggleterm, autocomplete |
|
|
||||||
| `mini.nix` | Mini.nvim suite: pairs, comment, icons, indentscope, diff, git |
|
|
||||||
@@ -0,0 +1,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` ...
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# SERVER
|
|
||||||
|
|
||||||
## Overview
|
|
||||||
|
|
||||||
This document describes the architecture and setup of the self-hosted **NixOS server**, which is securely accessible via **a Cloudflare Tunnel**.
|
|
||||||
The server is designed for private, secure, and easily manageable self-hosting of various services.
|
|
||||||
|
|
||||||

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

|

|
||||||

|

|
||||||

|

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

|
||||||
|

|
||||||
|

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

|
||||||
|

|
||||||
|

|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
# Todolist
|
||||||
|
|
||||||
|
feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
|
||||||
|
|
||||||
|
- [ ] Nixy
|
||||||
|
- [ ] Themes
|
||||||
|
|
||||||
|
- [ ] Qutebrowser
|
||||||
|
- [ ] !!! Bitwarden integration (I need this.)
|
||||||
|
|
||||||
|
- [ ] Hyprland
|
||||||
|
- [ ] Implement Hyprcursor
|
||||||
|
echo "Compresing png files..."
|
||||||
|
- [ ] wofi: popin
|
||||||
|
- [ ] wlogout: fade in
|
||||||
|
- [ ] Fix screenshots (screenshot region's border shows up in the screenshot, hyprshot jq error?)
|
||||||
|
- [ ] Hyprlock themes
|
||||||
|
- [ ] Hypridle fix: suspend not working?
|
||||||
|
|
||||||
|
- [ ] Nixvim
|
||||||
|
- [ ] Keymaps:
|
||||||
|
- Trouble
|
||||||
|
- Tagbar (actually not working)
|
||||||
|
- [ ] Disable background color for headlines.nvim for titles
|
||||||
|
|
||||||
|
## Server
|
||||||
|
|
||||||
|
- [ ] Server configuration is actually broken, need to update with the new modules
|
||||||
|
- [ ] Jackflix V2
|
||||||
|
- Backup Radarr, Prowlarr, Sonarr config
|
||||||
|
- Take a look into buildarr
|
||||||
|
- [ ] Bitcoin-git: to test
|
||||||
|
- [ ] Ntfy auth file
|
||||||
|
- [ ] Secrets mode 0444: not secure
|
||||||
@@ -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 |  |
|
||||||
|
| sea2.png |  |
|
||||||
|
| sea.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,26 @@
|
|||||||
|
#!/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
|
||||||
|
|
||||||
|
read -rp "Do you want to compress the png files? [y/N]: " COMPRESS_PNG
|
||||||
|
if [[ "$COMPRESS_PNG" == "y" || "$COMPRESS_PNG" == "Y" ]]; then
|
||||||
|
echo "Compresing png files..."
|
||||||
|
bash ./docs/scripts/compress_png.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
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/keybindings_to_markdown.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" 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
|
||||||
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 225 KiB |
|
After Width: | Height: | Size: 617 KiB |
@@ -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>
|
||||||
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1 @@
|
|||||||
|
8c00e379ddd7f89e4bbf9f381a5721d980c8026f
|
||||||
|
After Width: | Height: | Size: 566 KiB |
|
After Width: | Height: | Size: 811 KiB |
@@ -0,0 +1 @@
|
|||||||
|
62b52ad02a886c19a8cfe1ea17e8aaad50f23632
|
||||||
|
After Width: | Height: | Size: 411 KiB |
|
After Width: | Height: | Size: 990 KiB |
@@ -1,83 +1,65 @@
|
|||||||
{
|
{
|
||||||
# https://github.com/anotherhadi/nixy
|
# https://github.com/anotherhadi/nixy
|
||||||
description = ''
|
description = ''
|
||||||
Nixy simplifies and unifies the Hyprland ecosystem with a modular, easily customizable setup.
|
Nixy is a NixOS configuration with home-manager, secrets and custom theming all in one place.
|
||||||
It provides a structured way to manage your system configuration and dotfiles with minimal effort.
|
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";
|
||||||
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.11";
|
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
||||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
|
||||||
stylix.url = "github:danth/stylix";
|
|
||||||
sops-nix.url = "github:Mic92/sops-nix";
|
|
||||||
nvf.url = "github:notashelf/nvf";
|
|
||||||
bun2nix.url = "github:nix-community/bun2nix";
|
|
||||||
usbguard-tui.url = "github:anotherhadi/usbguard-tui";
|
|
||||||
jwt-tui.url = "github:anotherhadi/jwt-tui";
|
|
||||||
|
|
||||||
nix-index-database = {
|
|
||||||
url = "github:nix-community/nix-index-database";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
caelestia-shell = {
|
nixvim = {
|
||||||
url = "github:caelestia-dots/shell";
|
url = "github:nix-community/nixvim";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
caelestia-cli = {
|
|
||||||
url = "github:caelestia-dots/cli";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
apple-fonts.url = "github:Lyndeno/apple-fonts.nix";
|
||||||
spicetify-nix = {
|
spicetify-nix = {
|
||||||
url = "github:Gerg-L/spicetify-nix";
|
url = "github:Gerg-L/spicetify-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
# Server
|
sops-nix = {
|
||||||
# FIXME: Deleted repo for now
|
url = "github:Mic92/sops-nix";
|
||||||
# eleakxir.url = "github:anotherhadi/eleakxir";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
nixarr.url = "github:rasmus-kirk/nixarr";
|
};
|
||||||
default-creds.url = "github:anotherhadi/default-creds";
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
blog.url = "github:anotherhadi/blog";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
awesome-wallpapers.url = "github:anotherhadi/awesome-wallpapers";
|
|
||||||
iknowyou.url = "github:anotherhadi/iknowyou";
|
|
||||||
spilltea.url = "github:anotherhadi/spilltea";
|
|
||||||
helium-browser.url = "github:oxcl/nix-flake-helium-browser";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ {
|
outputs = inputs@{ nixpkgs, ... }: {
|
||||||
nixpkgs,
|
|
||||||
nixpkgs-stable,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
system = "x86_64-linux";
|
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
|
||||||
args = {
|
|
||||||
inherit
|
|
||||||
inputs
|
|
||||||
nixpkgs
|
|
||||||
system
|
|
||||||
pkgs
|
|
||||||
;
|
|
||||||
pkgs-stable = nixpkgs-stable.legacyPackages.${system};
|
|
||||||
};
|
|
||||||
merge = nixpkgs.lib.foldl nixpkgs.lib.recursiveUpdate {};
|
|
||||||
in
|
|
||||||
merge [
|
|
||||||
(import ./home/programs/nvf/flake.nix args)
|
|
||||||
(import ./home/programs/group/flake.nix args)
|
|
||||||
(import ./home/programs/nixy/flake.nix args)
|
|
||||||
{
|
|
||||||
formatter.${system} = pkgs.alejandra;
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
h-laptop = import ./hosts/laptop/flake.nix args;
|
|
||||||
h-work = import ./hosts/work/flake.nix args;
|
nixy = nixpkgs.lib.nixosSystem { # CHANGEME
|
||||||
jack = import ./hosts/server/flake.nix args;
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
{ _module.args = { inherit inputs; }; }
|
||||||
|
inputs.nixos-hardware.nixosModules.omen-16-n0280nd # CHANGEME
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
./hosts/laptop/configuration.nix # CHANGEME
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
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; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -0,0 +1,369 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
let
|
||||||
|
nerdfetch = pkgs.writeShellScriptBin "nerdfetch" ''
|
||||||
|
ostype="$(uname)"
|
||||||
|
|
||||||
|
version=8.1.1
|
||||||
|
font=nerd
|
||||||
|
distrotype=none
|
||||||
|
osi=""
|
||||||
|
ki=""
|
||||||
|
ri=""
|
||||||
|
pi=""
|
||||||
|
ui=""
|
||||||
|
ci=""
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
"-p")
|
||||||
|
font=phosphor
|
||||||
|
osi=""
|
||||||
|
ki=""
|
||||||
|
ri=""
|
||||||
|
pi=""
|
||||||
|
ui=""
|
||||||
|
ci=""
|
||||||
|
;;
|
||||||
|
"-c")
|
||||||
|
font=cozette
|
||||||
|
ki="♥"
|
||||||
|
ri=""
|
||||||
|
pi=""
|
||||||
|
ui=""
|
||||||
|
ci=""
|
||||||
|
;;
|
||||||
|
"-e")
|
||||||
|
font=emoji
|
||||||
|
osi="🐧"
|
||||||
|
ki="💓"
|
||||||
|
ri="🐐"
|
||||||
|
pi="📦"
|
||||||
|
ui="☕"
|
||||||
|
ci="🎨"
|
||||||
|
;;
|
||||||
|
"-v")
|
||||||
|
echo "NerdFetch $version"
|
||||||
|
exit
|
||||||
|
;;
|
||||||
|
"-h")
|
||||||
|
echo "Flags:
|
||||||
|
-c: Cozette font
|
||||||
|
-p: Phosphor font
|
||||||
|
-e: Emoji font
|
||||||
|
-v: Version"
|
||||||
|
exit
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if command -v getprop 1>/dev/null; then
|
||||||
|
distrotype=android
|
||||||
|
fi
|
||||||
|
kernel="$(echo $(uname -r) | cut -d'-' -f1-1)"
|
||||||
|
case $ostype in
|
||||||
|
*"Linux"*)
|
||||||
|
if [ $distrotype = android ]; then
|
||||||
|
host="$(hostname)"
|
||||||
|
USER="$(whoami)"
|
||||||
|
os="Android $(getprop ro.build.version.release)"
|
||||||
|
case $font in
|
||||||
|
phosphor) osi="" ;;
|
||||||
|
emoji) osi="🤖" ;;
|
||||||
|
*) osi="" ;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
host="$(cat /proc/sys/kernel/hostname)"
|
||||||
|
. /etc/os-release
|
||||||
|
if [ -f /bedrock/etc/bedrock-release ]; then
|
||||||
|
os="$(brl version)"
|
||||||
|
else
|
||||||
|
os="''${PRETTY_NAME}"
|
||||||
|
if [ $font = nerd ]; then
|
||||||
|
case $(echo $ID | sed 's/ .*//') in
|
||||||
|
debian) osi="" ;;
|
||||||
|
arch) osi="" ;;
|
||||||
|
endeavouros) osi="" ;;
|
||||||
|
fedora) osi="" ;;
|
||||||
|
gentoo) osi="" ;;
|
||||||
|
rhel) osi="" ;;
|
||||||
|
slackware) osi="" ;;
|
||||||
|
void) osi="" ;;
|
||||||
|
alpine) osi="" ;;
|
||||||
|
nixos) osi="" ;;
|
||||||
|
artix) osi="" ;;
|
||||||
|
exherbo) osi="" ;;
|
||||||
|
mageia) osi="" ;;
|
||||||
|
manjaro) osi="" ;;
|
||||||
|
opensuse) osi="" ;;
|
||||||
|
solus) osi="" ;;
|
||||||
|
ubuntu) osi="" ;;
|
||||||
|
mint) osi="" ;;
|
||||||
|
trisquel) osi="" ;;
|
||||||
|
puppy) osi="" ;;
|
||||||
|
coreos) osi="" ;;
|
||||||
|
mx) osi="" ;;
|
||||||
|
vanilla) osi="" ;;
|
||||||
|
pop_os) osi="" ;;
|
||||||
|
raspbian) osi="" ;;
|
||||||
|
deepin) osi="" ;;
|
||||||
|
almalinux) osi="" ;;
|
||||||
|
garuda) osi="" ;;
|
||||||
|
centos) osi="" ;;
|
||||||
|
rocky) osi="" ;;
|
||||||
|
esac
|
||||||
|
elif [ $font = cozette ]; then
|
||||||
|
case $(echo $ID | sed 's/ .*//') in
|
||||||
|
debian) osi="" ;;
|
||||||
|
arch) osi="" ;;
|
||||||
|
fedora) osi="" ;;
|
||||||
|
gentoo) osi="" ;;
|
||||||
|
slackware) osi="" ;;
|
||||||
|
void) osi="" ;;
|
||||||
|
alpine) osi="" ;;
|
||||||
|
nixos) osi="" ;;
|
||||||
|
mageia) osi="" ;;
|
||||||
|
manjaro) osi="" ;;
|
||||||
|
opensuse) osi="" ;;
|
||||||
|
ubuntu) osi="" ;;
|
||||||
|
mint) osi="" ;;
|
||||||
|
coreos) osi="" ;;
|
||||||
|
centos) osi="" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
shell=$(basename "$SHELL")
|
||||||
|
;;
|
||||||
|
*"Darwin"*)
|
||||||
|
host="$(hostname -f | sed -e 's/^[^.]*\.//')"
|
||||||
|
mac_product="$(/usr/libexec/PlistBuddy -c "Print:ProductName" /System/Library/CoreServices/SystemVersion.plist)"
|
||||||
|
mac_version="$(/usr/libexec/PlistBuddy -c "Print:ProductVersion" /System/Library/CoreServices/SystemVersion.plist)"
|
||||||
|
os="''${mac_product} ''${mac_version}"
|
||||||
|
case $font in
|
||||||
|
nerd) osi="" ;;
|
||||||
|
phosphor) osi="" ;;
|
||||||
|
cozette) osi="" ;;
|
||||||
|
emoji) osi="🍎" ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
*"FreeBSD"*)
|
||||||
|
host="$(hostname)"
|
||||||
|
distrotype=bsd
|
||||||
|
os="FreeBSD $(freebsd-version | sed 's/-.*//')"
|
||||||
|
case $font in
|
||||||
|
nerd) osi="" ;;
|
||||||
|
phosphor) osi="" ;;
|
||||||
|
cozette) osi="" ;;
|
||||||
|
emoji) osi="😈" ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
*"OpenBSD"*)
|
||||||
|
host="$(hostname)"
|
||||||
|
distrotype=bsd
|
||||||
|
os="OpenBSD $(uname -r)"
|
||||||
|
case $font in
|
||||||
|
nerd) osi="" ;;
|
||||||
|
phosphor) osi="" ;;
|
||||||
|
cozette) osi="⌘" ;;
|
||||||
|
emoji) osi="🐡" ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
*"NetBSD"*)
|
||||||
|
host="$(hostname)"
|
||||||
|
distrotype=netbsd
|
||||||
|
os="NetBSD $(uname -r)"
|
||||||
|
case $font in
|
||||||
|
nerd) osi="" ;;
|
||||||
|
phosphor) osi="" ;;
|
||||||
|
cozette) osi="" ;;
|
||||||
|
emoji) osi="🚩" ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
os="Unix-like"
|
||||||
|
host="host"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
## PACKAGE MANAGER AND PACKAGES DETECTION
|
||||||
|
|
||||||
|
MANAGER=$(which nix-env pkg flatpak yum zypper dnf rpm dpkg-query brew port pacman xbps-query emerge cave apk kiss pmm /usr/sbin/slackpkg bulge birb yay paru pacstall cpm pmm eopkg getprop 2>/dev/null)
|
||||||
|
manager=$(basename "$MANAGER")
|
||||||
|
if [ $distrotype = netbsd ]; then
|
||||||
|
manager="pkg_info-netbsd"
|
||||||
|
fi
|
||||||
|
case $manager in
|
||||||
|
cpm) packages="$(cpm C)" ;;
|
||||||
|
flatpak) packages="$(flatpak list --app | wc -l)" ;;
|
||||||
|
brew) packages="$(printf '%s\n' "$(brew --cellar)/"* | wc -l)" ;;
|
||||||
|
port) packages="$(port installed | wc -l)" ;;
|
||||||
|
dpkg-query) packages="$(dpkg-query -f '${
|
||||||
|
"binary:Package"
|
||||||
|
}\n' -W | wc -l)" ;;
|
||||||
|
rpm) packages="$(rpm -qa --last | wc -l)" ;;
|
||||||
|
yum) packages="$(yum list installed | wc -l)" ;;
|
||||||
|
dnf) packages="$(dnf list installed | wc -l)" ;;
|
||||||
|
zypper) packages="$(zypper se | wc -l)" ;;
|
||||||
|
pacman) packages="$(pacman -Q | wc -l)" ;;
|
||||||
|
yay) packages="$(yay -Q | wc -l)" ;;
|
||||||
|
paru) packages="$(paru -Q | wc -l)" ;;
|
||||||
|
pacstall) packages="$(pacstall -L | wc -l)" ;;
|
||||||
|
kiss) packages="$(kiss list | wc -l)" ;;
|
||||||
|
emerge) packages="$(qlist -I | wc -l)" ;;
|
||||||
|
pkg) packages="$(pkg info | wc -l | tr -d ' ')" ;;
|
||||||
|
cave) packages="$(cave show installed-slots | wc -l)" ;;
|
||||||
|
xbps-query) packages="$(xbps-query -l | wc -l)" ;;
|
||||||
|
nix-env) packages="$(nix-store -q --requisites /run/current-system/sw | wc -l)" ;;
|
||||||
|
apk) packages="$(apk list --installed | wc -l)" ;;
|
||||||
|
pmm) packages="$(/bedrock/libexec/pmm pacman pmm -Q 2>/dev/null | wc -l)" ;;
|
||||||
|
eopkg) packages="$(eopkg li | wc -l)" ;;
|
||||||
|
/usr/sbin/slackpkg) packages="$(ls /var/log/packages | wc -l)" ;;
|
||||||
|
bulge) packages="$(bulge list | wc -l)" ;;
|
||||||
|
birb) packages="$(birb --list-installed | wc -l)" ;;
|
||||||
|
pkg_info)
|
||||||
|
packages="$(pkg_info -A | wc -l)"
|
||||||
|
manager="pkg"
|
||||||
|
;;
|
||||||
|
pkg_info-netbsd)
|
||||||
|
packages="$(pkg_info -a | wc -l)"
|
||||||
|
manager="pkg"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if [ $distrotype = android ]; then
|
||||||
|
packages="$(dpkg-query -f '${"binary:Package"}\n' -W | wc -l)"
|
||||||
|
manager="dpkg"
|
||||||
|
else
|
||||||
|
packages="$(ls /usr/bin | wc -l)"
|
||||||
|
manager="bin"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
packages="''${packages#"''${packages%%[![:space:]]*}"}"
|
||||||
|
manager=$(echo $manager | sed "s/-query//; s/\/usr\/.*\///")
|
||||||
|
|
||||||
|
## UPTIME DETECTION
|
||||||
|
|
||||||
|
if [ $distrotype = android ]; then
|
||||||
|
uptime="$(echo $(uptime -p) | cut -c 4-)"
|
||||||
|
elif [ $distrotype = bsd ] || [ $distrotype = netbsd ]; then
|
||||||
|
uptime="$(uptime | sed -e 's/.* up //; s/, [0-9]* user.*//')"
|
||||||
|
else
|
||||||
|
case $ostype in
|
||||||
|
*"Linux"*)
|
||||||
|
IFS=. read -r s _ </proc/uptime
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
s=$(sysctl -n kern.boottime)
|
||||||
|
s=''${s#*=}
|
||||||
|
s=''${s%,*}
|
||||||
|
s=$(($(date +%s) - s))
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
d="$((s / 60 / 60 / 24))"
|
||||||
|
h="$((s / 60 / 60 % 24))"
|
||||||
|
m="$((s / 60 % 60))"
|
||||||
|
# Plurals
|
||||||
|
[ "$d" -gt 1 ] && dp=s
|
||||||
|
[ "$h" -gt 1 ] && hp=s
|
||||||
|
[ "$m" -gt 1 ] && mp=s
|
||||||
|
[ "$s" -gt 1 ] && sp=s
|
||||||
|
# Hide empty fields.
|
||||||
|
[ "$d" = 0 ] && d=
|
||||||
|
[ "$h" = 0 ] && h=
|
||||||
|
[ "$m" = 0 ] && m=
|
||||||
|
[ "$m" != "" ] && s=
|
||||||
|
# Make the output of uptime smaller.
|
||||||
|
[ "$d" ] && uptime="$d day$dp, "
|
||||||
|
[ "$h" ] && uptime="$uptime$h hour$hp, "
|
||||||
|
[ "$m" ] && uptime="$uptime$m min$mp"
|
||||||
|
[ "$s" ] && uptime="$uptime$s sec$sp"
|
||||||
|
uptime=''${uptime%, }
|
||||||
|
fi
|
||||||
|
|
||||||
|
## RAM DETECTION
|
||||||
|
|
||||||
|
case $ostype in
|
||||||
|
*"Linux"*)
|
||||||
|
while IFS=':k ' read -r key val _; do
|
||||||
|
case $key in
|
||||||
|
MemTotal)
|
||||||
|
mem_used=$((mem_used + val))
|
||||||
|
mem_full=$val
|
||||||
|
;;
|
||||||
|
Shmem) mem_used=$((mem_used + val)) ;;
|
||||||
|
MemFree | Buffers | Cached | SReclaimable) mem_used=$((mem_used - val)) ;;
|
||||||
|
esac
|
||||||
|
done </proc/meminfo
|
||||||
|
mem_used=$((mem_used / 1024))
|
||||||
|
mem_full=$((mem_full / 1024))
|
||||||
|
;;
|
||||||
|
*"Darwin"*)
|
||||||
|
mem_full=$(($(sysctl -n hw.memsize) / 1024 / 1024))
|
||||||
|
while IFS=:. read -r key val; do
|
||||||
|
case $key in
|
||||||
|
*' wired'* | *' active'* | *' occupied'*)
|
||||||
|
mem_used=$((mem_used + ${"val:-0"}))
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done <-EOF
|
||||||
|
$(vm_stat)
|
||||||
|
EOF
|
||||||
|
|
||||||
|
mem_used=$((mem_used * 4 / 1024))
|
||||||
|
;;
|
||||||
|
*"BSD"*)
|
||||||
|
mem_full=$(($(sysctl -n hw.physmem) / 1024 / 1024))
|
||||||
|
if [ $distrotype = netbsd ]; then
|
||||||
|
mem_free=$(($(vmstat | awk 'NR==3 {print $4}') / 1024))
|
||||||
|
else
|
||||||
|
mem_free=$(($(sysctl -n vm.stats.vm.v_free_count) * $(sysctl -n vm.stats.vm.v_page_size) / 1024 / 1024))
|
||||||
|
fi
|
||||||
|
mem_used=$((mem_full - mem_free))
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
mem_full=1
|
||||||
|
mem_used=0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
memstat="''${mem_used}/''${mem_full} MiB"
|
||||||
|
if which expr >/dev/null 2>&1; then
|
||||||
|
mempercent="($(expr $(expr ''${mem_used} \* 100 / ''${mem_full}))%)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
## DEFINE COLORS
|
||||||
|
|
||||||
|
bold='[1m'
|
||||||
|
black='[30m'
|
||||||
|
red='[31m'
|
||||||
|
green='[32m'
|
||||||
|
yellow='[33m'
|
||||||
|
blue='[34m'
|
||||||
|
magenta='[35m'
|
||||||
|
cyan='[36m'
|
||||||
|
white='[37m'
|
||||||
|
grey='[90m'
|
||||||
|
reset='[0m'
|
||||||
|
|
||||||
|
## USER VARIABLES -- YOU CAN CHANGE THESE
|
||||||
|
|
||||||
|
lc="$reset$bold''$${config.var.theme.colors.accentName}" # labels
|
||||||
|
nc="$reset$bold''$${config.var.theme.colors.accentName}" # labels
|
||||||
|
hn="$reset$bold''$${config.var.theme.colors.accentName}" # labels
|
||||||
|
ic="$reset$white" # info
|
||||||
|
c0="$reset$grey" # first color
|
||||||
|
c1="$reset$white" # second color
|
||||||
|
c2="$reset$yellow" # third color
|
||||||
|
|
||||||
|
## OUTPUT
|
||||||
|
|
||||||
|
echo """
|
||||||
|
''${c0} ___ ''${nc}''${USER}''${grey}@''${reset}''${hn}''${host}''${reset}
|
||||||
|
''${c0} (''${c1}.. ''${c0}\ ''${lc}''${osi} ''${ic}''${os}''${reset}
|
||||||
|
''${c0} (''${c2}<> ''${c0}| ''${lc}''${ki} ''${ic}''${kernel}''${reset}
|
||||||
|
''${c0} /''${c1}/ \\ ''${c0}\\ ''${lc}''${ri} ''${ic}''${RAM}''${memstat} ''${mempercent}
|
||||||
|
''${c0} ( ''${c1}| | ''${c0}/| ''${lc}''${pi} ''${ic}''${packages} (''${manager})''${reset}
|
||||||
|
''${c2} _''${c0}/\\ ''${c1}__)''${c0}/''${c2}_''${c0}) ''${lc}''${ui} ''${ic}''${uptime}''${reset}
|
||||||
|
''${c2} \/''${c0}-____''${c2}\/''${reset} ''${lc}''${ci} ''${red}███''${green}███''${yellow}███''${blue}███''${magenta}███''${cyan}███''${reset}
|
||||||
|
"""
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = [ nerdfetch ]; }
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
{pkgs, ...}: let
|
|
||||||
cursorShaders = pkgs.fetchFromGitHub {
|
|
||||||
owner = "sahaj-b";
|
|
||||||
repo = "ghostty-cursor-shaders";
|
|
||||||
rev = "06d4e90fb5410e9c4d0b3131584060adddf89406";
|
|
||||||
hash = "sha256-G/UIr1bKnxn1AcHl/4FL/jou6b7M2VeREslYVELxdmw=";
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
home.sessionVariables = {
|
|
||||||
TERMINAL = "ghostty";
|
|
||||||
TERM = "ghostty";
|
|
||||||
XMODIFIERS = "@im=none";
|
|
||||||
GTK_IM_MODULE = "simple";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.ghostty = {
|
|
||||||
enable = true;
|
|
||||||
installVimSyntax = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
settings = {
|
|
||||||
window-padding-x = 10;
|
|
||||||
confirm-close-surface = false;
|
|
||||||
window-padding-y = 10;
|
|
||||||
clipboard-read = "allow";
|
|
||||||
clipboard-write = "allow";
|
|
||||||
copy-on-select = "clipboard";
|
|
||||||
app-notifications = false;
|
|
||||||
custom-shader = "${cursorShaders}/cursor_warp.glsl";
|
|
||||||
custom-shader-animation = "always";
|
|
||||||
keybind = [
|
|
||||||
# "ctrl+j=goto_split:left"
|
|
||||||
# "ctrl+i=goto_split:up"
|
|
||||||
# "ctrl+k=goto_split:down"
|
|
||||||
# "ctrl+l=goto_split:right"
|
|
||||||
# "shift+ctrl+h=new_split:left"
|
|
||||||
# "shift+ctrl+j=new_split:down"
|
|
||||||
# "shift+ctrl+k=new_split:up"
|
|
||||||
# "shift+ctrl+l=new_split:right"
|
|
||||||
"shift+ctrl+tab=new_tab"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
# Git configuration
|
{ config, ... }: {
|
||||||
{config, ...}: let
|
|
||||||
username = config.var.git.username;
|
|
||||||
email = config.var.git.email;
|
|
||||||
in {
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
userName = config.var.git.username;
|
||||||
|
userEmail = config.var.git.email;
|
||||||
ignores = [
|
ignores = [
|
||||||
".cache/"
|
".cache/"
|
||||||
".DS_Store"
|
".DS_Store"
|
||||||
@@ -17,14 +15,11 @@ in {
|
|||||||
"result"
|
"result"
|
||||||
"result-*"
|
"result-*"
|
||||||
];
|
];
|
||||||
settings = {
|
extraConfig = {
|
||||||
user.name = username;
|
|
||||||
user.email = email;
|
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
pull.rebase = "false";
|
|
||||||
push.autoSetupRemote = true;
|
push.autoSetupRemote = true;
|
||||||
color.ui = "1";
|
};
|
||||||
alias = {
|
aliases = {
|
||||||
essa = "push --force";
|
essa = "push --force";
|
||||||
co = "checkout";
|
co = "checkout";
|
||||||
fuck = "commit --amend -m";
|
fuck = "commit --amend -m";
|
||||||
@@ -44,10 +39,12 @@ in {
|
|||||||
st = "status";
|
st = "status";
|
||||||
br = "branch";
|
br = "branch";
|
||||||
df = "!git hist | peco | awk '{print $2}' | xargs -I {} git diff {}^ {}";
|
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'';
|
hist = ''
|
||||||
llog = ''log --graph --name-status --pretty=format:"%C(red)%h %C(reset)(%cd) %C(green)%an %Creset%s %C(yellow)%d%Creset" --date=relative'';
|
log --pretty=format:"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)" --graph --date=relative --decorate --all'';
|
||||||
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; hx `f`";
|
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`";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
# Lazygit is a simple terminal UI for git commands.
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
accent = "#${config.lib.stylix.colors.base0D}";
|
|
||||||
muted = "#${config.lib.stylix.colors.base03}";
|
|
||||||
in {
|
|
||||||
programs.lazygit = {
|
|
||||||
enable = true;
|
|
||||||
settings = lib.mkForce {
|
|
||||||
disableStartupPopups = true;
|
|
||||||
notARepository = "skip";
|
|
||||||
promptToReturnFromSubprocess = false;
|
|
||||||
update.method = "never";
|
|
||||||
git = {
|
|
||||||
commit.signOff = true;
|
|
||||||
overrideGpg = true;
|
|
||||||
parseEmoji = true;
|
|
||||||
};
|
|
||||||
gui = {
|
|
||||||
theme = {
|
|
||||||
activeBorderColor = [
|
|
||||||
accent
|
|
||||||
"bold"
|
|
||||||
];
|
|
||||||
inactiveBorderColor = [muted];
|
|
||||||
};
|
|
||||||
showListFooter = false;
|
|
||||||
showRandomTip = false;
|
|
||||||
showCommandLog = false;
|
|
||||||
showBottomLine = false;
|
|
||||||
nerdFontsVersion = "3";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# This file is used to sign git commits using an SSH key.
|
|
||||||
{
|
|
||||||
# CHANGEME: change this to your own SSH key.
|
|
||||||
home.file.".ssh/allowed_signers".text = "* ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIINhWby7lUUXQNKbRu9/UOrGjWDf3fvoAwGHomWv/+lL";
|
|
||||||
|
|
||||||
programs.git = {
|
|
||||||
signing.format = "openpgp";
|
|
||||||
settings = {
|
|
||||||
commit.gpgsign = true;
|
|
||||||
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
|
|
||||||
gpg.format = "ssh";
|
|
||||||
user.signingkey = "~/.ssh/key.pub";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{pkgs-stable, ...}: {
|
|
||||||
home.packages = with pkgs-stable; [
|
|
||||||
vlc # Video player
|
|
||||||
obsidian # Note taking app
|
|
||||||
textpieces # Manipulate texts
|
|
||||||
resources # Ressource monitor
|
|
||||||
gnome-clocks # Clocks app
|
|
||||||
gnome-text-editor # Basic graphic text editor
|
|
||||||
ticktick # Todo app
|
|
||||||
pinta # Image editor
|
|
||||||
onlyoffice-desktopeditors # Office suite
|
|
||||||
|
|
||||||
signal-desktop # Messaging app
|
|
||||||
librewolf
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
pkgs-stable,
|
|
||||||
inputs,
|
|
||||||
system,
|
|
||||||
}:
|
|
||||||
(with pkgs-stable; [
|
|
||||||
httpie
|
|
||||||
trufflehog
|
|
||||||
sttr
|
|
||||||
wireshark
|
|
||||||
nmap
|
|
||||||
john
|
|
||||||
hashcat
|
|
||||||
metasploit
|
|
||||||
haiti
|
|
||||||
hydra
|
|
||||||
dnsrecon
|
|
||||||
whois
|
|
||||||
dig
|
|
||||||
nosqli
|
|
||||||
jwt-cli
|
|
||||||
nuclei
|
|
||||||
caido
|
|
||||||
gobuster
|
|
||||||
dirb
|
|
||||||
ffuf
|
|
||||||
sqlmap
|
|
||||||
katana
|
|
||||||
inetutils
|
|
||||||
samba
|
|
||||||
openvpn
|
|
||||||
mariadb
|
|
||||||
redis
|
|
||||||
])
|
|
||||||
++ [
|
|
||||||
inputs.spilltea.packages.${system}.default
|
|
||||||
inputs.jwt-tui.packages.${system}.default
|
|
||||||
]
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs-stable,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.packages = import ./cybersecurity-packages.nix {
|
|
||||||
inherit pkgs pkgs-stable inputs;
|
|
||||||
system = pkgs.stdenv.hostPlatform.system;
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.user.tmpfiles.rules = [
|
|
||||||
"d %h/Cyber/tmp 0755 - - -"
|
|
||||||
"d %h/Cyber/wordlists 0755 - - -"
|
|
||||||
"d %h/Cyber/wordlists/rules 0755 - - -"
|
|
||||||
];
|
|
||||||
|
|
||||||
home.file = {
|
|
||||||
"Cyber/wordlists/seclists".source = pkgs.fetchFromGitHub {
|
|
||||||
owner = "danielmiessler";
|
|
||||||
repo = "SecLists";
|
|
||||||
rev = "47aa98053fce8670c6489e4f6fb57dc34881d8bd";
|
|
||||||
hash = "sha256-ojXLB/TXap1Qi0MtV5/WJlJpjNIDYx/sLY2KHm0uFKI=";
|
|
||||||
};
|
|
||||||
|
|
||||||
"Cyber/wordlists/fuzz4bounty".source = pkgs.fetchFromGitHub {
|
|
||||||
owner = "0xPugal";
|
|
||||||
repo = "fuzz4bounty";
|
|
||||||
rev = "a805f6b434033f054312da0ddc2bc3021cc9a3b0";
|
|
||||||
hash = "sha256-wMhx1CcxIyw2E7gJXQxXAFc7m5nYt0FXNkoTZqFMQh4=";
|
|
||||||
};
|
|
||||||
|
|
||||||
# RULES
|
|
||||||
"Cyber/wordlists/rules/oneruletorulethemstill".source = pkgs.fetchFromGitHub {
|
|
||||||
owner = "stealthsploit";
|
|
||||||
repo = "oneruletorulethemstill";
|
|
||||||
rev = "4bfb7322e189305b5f35bb7fcd4e9cc233c3d3c6";
|
|
||||||
hash = "sha256-h7MeymIXS/6wlPRt4lzsIEqOOssP0lDx9nQip65cwZw=";
|
|
||||||
};
|
|
||||||
|
|
||||||
"Cyber/wordlists/rules/best64.rule".source = pkgs.fetchurl {
|
|
||||||
url = "https://raw.githubusercontent.com/CarlosLannister/OwadeReborn/refs/heads/master/owade/fileAnalyze/hashcatLib/best64.rule%7E";
|
|
||||||
hash = "sha256-T0XkMHJZQiy63/j25nGTkaiDFjc+blmgEVGTAFgVylU=";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
pkgs-stable,
|
|
||||||
inputs,
|
|
||||||
system,
|
|
||||||
}:
|
|
||||||
(with pkgs; [
|
|
||||||
go
|
|
||||||
bun
|
|
||||||
nodejs
|
|
||||||
claude-code
|
|
||||||
inputs.bun2nix.packages.${system}.default
|
|
||||||
])
|
|
||||||
++ (with pkgs-stable; [
|
|
||||||
air
|
|
||||||
duckdb
|
|
||||||
docker
|
|
||||||
python3
|
|
||||||
jq
|
|
||||||
just
|
|
||||||
nix-prefetch-github
|
|
||||||
])
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
pkgs-stable,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.packages = import ./dev-packages.nix {
|
|
||||||
inherit pkgs pkgs-stable inputs;
|
|
||||||
system = pkgs.stdenv.hostPlatform.system;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
pkgs-stable,
|
|
||||||
system,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
devPackages = import ./dev-packages.nix {inherit pkgs pkgs-stable inputs system;};
|
|
||||||
cyberPackages = import ./cybersecurity-packages.nix {inherit pkgs pkgs-stable inputs system;};
|
|
||||||
in {
|
|
||||||
packages.${system} = {
|
|
||||||
dev = pkgs.buildEnv {
|
|
||||||
name = "dev-tools";
|
|
||||||
paths = devPackages;
|
|
||||||
};
|
|
||||||
cybersecurity = pkgs.buildEnv {
|
|
||||||
name = "cybersecurity-tools";
|
|
||||||
paths = cyberPackages;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs-stable,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.packages = with pkgs-stable; [
|
|
||||||
peaclock
|
|
||||||
cbonsai
|
|
||||||
pipes
|
|
||||||
cmatrix
|
|
||||||
fastfetch
|
|
||||||
inputs.usbguard-tui.packages.${system}.default
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,459 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
bookmarkList =
|
|
||||||
(import ./general.nix)
|
|
||||||
++ (import ./tools.nix)
|
|
||||||
++ (import ./entertainment.nix)
|
|
||||||
++ (import ./infosec.nix)
|
|
||||||
++ (import ./other.nix)
|
|
||||||
++ (import ./jack.nix);
|
|
||||||
|
|
||||||
c = config.lib.stylix.colors;
|
|
||||||
|
|
||||||
stripProtocol = url: lib.removePrefix "https://" (lib.removePrefix "http://" url);
|
|
||||||
stripDomain = url: builtins.head (lib.splitString "/" (stripProtocol url));
|
|
||||||
|
|
||||||
mkCard = item: let
|
|
||||||
domain = stripDomain item.url;
|
|
||||||
initial = builtins.substring 0 1 item.name;
|
|
||||||
in ''
|
|
||||||
<a href="${item.url}" class="card">
|
|
||||||
<div class="favicon-wrapper">
|
|
||||||
<img class="favicon" src="https://icons.duckduckgo.com/ip3/${domain}.ico" alt="" aria-hidden="true" loading="lazy" onerror="this.style.display='none';this.nextElementSibling.style.display='flex'">
|
|
||||||
<span class="favicon-fallback" style="display:none">${initial}</span>
|
|
||||||
</div>
|
|
||||||
<div class="card-info">
|
|
||||||
<span class="card-name">${item.name}</span>
|
|
||||||
<span class="card-url">${stripProtocol item.url}</span>
|
|
||||||
</div>
|
|
||||||
</a>'';
|
|
||||||
|
|
||||||
mkFolderContent = items: let
|
|
||||||
step = acc: item:
|
|
||||||
if item ? url
|
|
||||||
then acc // {pending = acc.pending ++ [item];}
|
|
||||||
else {
|
|
||||||
chunks =
|
|
||||||
acc.chunks
|
|
||||||
++ lib.optional (acc.pending != []) {
|
|
||||||
isCards = true;
|
|
||||||
items = acc.pending;
|
|
||||||
}
|
|
||||||
++ [
|
|
||||||
{
|
|
||||||
isCards = false;
|
|
||||||
folder = item;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
pending = [];
|
|
||||||
};
|
|
||||||
result =
|
|
||||||
lib.foldl' step {
|
|
||||||
chunks = [];
|
|
||||||
pending = [];
|
|
||||||
}
|
|
||||||
items;
|
|
||||||
chunks =
|
|
||||||
result.chunks
|
|
||||||
++ lib.optional (result.pending != []) {
|
|
||||||
isCards = true;
|
|
||||||
items = result.pending;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
lib.concatMapStrings (
|
|
||||||
chunk:
|
|
||||||
if chunk.isCards
|
|
||||||
then ''
|
|
||||||
<div class="cards">
|
|
||||||
${lib.concatMapStrings mkCard chunk.items}
|
|
||||||
</div>''
|
|
||||||
else mkFolder chunk.folder
|
|
||||||
)
|
|
||||||
chunks;
|
|
||||||
|
|
||||||
mkFolder = folder: let
|
|
||||||
iconHtml =
|
|
||||||
if folder ? icon
|
|
||||||
then ''<span class="material-symbols-outlined folder-icon" aria-hidden="true">${folder.icon}</span>''
|
|
||||||
else "";
|
|
||||||
in ''
|
|
||||||
<details class="folder-section" open>
|
|
||||||
<summary class="folder-title">
|
|
||||||
${iconHtml}<span class="folder-name">${folder.name}</span>
|
|
||||||
<svg class="chevron" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
||||||
</summary>
|
|
||||||
<div class="folder-content">
|
|
||||||
${mkFolderContent folder.bookmarks}
|
|
||||||
</div>
|
|
||||||
</details>'';
|
|
||||||
|
|
||||||
grouped = let
|
|
||||||
step = acc: item:
|
|
||||||
if item ? url
|
|
||||||
then acc // {pending = acc.pending ++ [item];}
|
|
||||||
else {
|
|
||||||
groups =
|
|
||||||
acc.groups
|
|
||||||
++ lib.optional (acc.pending != []) {
|
|
||||||
isRoot = true;
|
|
||||||
items = acc.pending;
|
|
||||||
}
|
|
||||||
++ [
|
|
||||||
{
|
|
||||||
isRoot = false;
|
|
||||||
inherit item;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
pending = [];
|
|
||||||
};
|
|
||||||
result =
|
|
||||||
lib.foldl' step {
|
|
||||||
groups = [];
|
|
||||||
pending = [];
|
|
||||||
}
|
|
||||||
bookmarkList;
|
|
||||||
in
|
|
||||||
result.groups
|
|
||||||
++ lib.optional (result.pending != []) {
|
|
||||||
isRoot = true;
|
|
||||||
items = result.pending;
|
|
||||||
};
|
|
||||||
|
|
||||||
mkSection = group:
|
|
||||||
if group.isRoot
|
|
||||||
then ''
|
|
||||||
<div class="root-section">
|
|
||||||
<div class="cards">
|
|
||||||
${lib.concatMapStrings mkCard group.items}
|
|
||||||
</div>
|
|
||||||
</div>''
|
|
||||||
else mkFolder group.item;
|
|
||||||
in {
|
|
||||||
home.file.".local/share/helium-startpage/index.html".text = ''
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Bookmarks</title>
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20,300,0,0">
|
|
||||||
<style>
|
|
||||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
||||||
|
|
||||||
body {
|
|
||||||
background-color: #${c.base00};
|
|
||||||
color: #${c.base05};
|
|
||||||
font-family: 'Source Sans Pro', sans-serif;
|
|
||||||
font-size: 14px;
|
|
||||||
min-height: 100vh;
|
|
||||||
padding: 2.5rem 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header {
|
|
||||||
max-width: 1100px;
|
|
||||||
margin: 0 auto 2rem;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-title {
|
|
||||||
font-size: 1.3rem;
|
|
||||||
font-weight: 700;
|
|
||||||
color: #${c.base0D};
|
|
||||||
letter-spacing: -0.01em;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-bar {
|
|
||||||
flex: 1;
|
|
||||||
background-color: #${c.base01};
|
|
||||||
border: 1px solid #${c.base02};
|
|
||||||
border-radius: 8px;
|
|
||||||
color: #${c.base05};
|
|
||||||
font-family: 'Source Sans Pro', sans-serif;
|
|
||||||
font-size: 0.9rem;
|
|
||||||
padding: 0.5rem 0.9rem;
|
|
||||||
outline: none;
|
|
||||||
transition: border-color 0.15s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-bar::placeholder { color: #${c.base03}; }
|
|
||||||
.search-bar:focus { border-color: #${c.base0D}; }
|
|
||||||
|
|
||||||
.collapse-btn {
|
|
||||||
flex-shrink: 0;
|
|
||||||
background: none;
|
|
||||||
border: 1px solid #${c.base02};
|
|
||||||
border-radius: 8px;
|
|
||||||
color: #${c.base03};
|
|
||||||
cursor: pointer;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 0.47rem;
|
|
||||||
transition: color 0.15s ease, border-color 0.15s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.collapse-btn:hover {
|
|
||||||
color: #${c.base0D};
|
|
||||||
border-color: #${c.base0D};
|
|
||||||
}
|
|
||||||
|
|
||||||
.collapse-btn svg { width: 16px; height: 16px; }
|
|
||||||
|
|
||||||
.bookmarks-container {
|
|
||||||
max-width: 1100px;
|
|
||||||
margin: 0 auto;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 0.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.root-section { margin-bottom: 1rem; }
|
|
||||||
|
|
||||||
details.folder-section { border-radius: 8px; }
|
|
||||||
|
|
||||||
details.folder-section > summary {
|
|
||||||
list-style: none;
|
|
||||||
cursor: pointer;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 0.5rem;
|
|
||||||
padding: 0.45rem 0.5rem;
|
|
||||||
border-radius: 8px;
|
|
||||||
user-select: none;
|
|
||||||
transition: background-color 0.12s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
details.folder-section > summary::-webkit-details-marker { display: none; }
|
|
||||||
|
|
||||||
details.folder-section > summary:hover {
|
|
||||||
background-color: #${c.base01};
|
|
||||||
color: #${c.base0D};
|
|
||||||
}
|
|
||||||
|
|
||||||
details.folder-section > summary:hover .folder-name { color: #${c.base0D}; }
|
|
||||||
details.folder-section > summary:hover .folder-icon { color: #${c.base0D}; }
|
|
||||||
|
|
||||||
.folder-icon {
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1;
|
|
||||||
flex-shrink: 0;
|
|
||||||
color: #${c.base04};
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.folder-name {
|
|
||||||
font-size: 0.72rem;
|
|
||||||
font-weight: 700;
|
|
||||||
letter-spacing: 0.12em;
|
|
||||||
text-transform: uppercase;
|
|
||||||
color: #${c.base03};
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chevron {
|
|
||||||
width: 13px;
|
|
||||||
height: 13px;
|
|
||||||
color: #${c.base03};
|
|
||||||
transition: transform 0.2s ease;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
details[open] > summary > .chevron { transform: rotate(180deg); }
|
|
||||||
|
|
||||||
.folder-content {
|
|
||||||
padding: 0.4rem 0 0.5rem 0;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 0.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.folder-content > details.folder-section > summary { padding-left: 1.2rem; }
|
|
||||||
.folder-content > details.folder-section > .folder-content { padding-left: 1rem; }
|
|
||||||
|
|
||||||
.cards {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
||||||
gap: 0.4rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 0.7rem;
|
|
||||||
padding: 0.6rem 0.8rem;
|
|
||||||
background-color: #${c.base01};
|
|
||||||
border: 1px solid #${c.base02};
|
|
||||||
border-radius: 10px;
|
|
||||||
text-decoration: none;
|
|
||||||
transition: background-color 0.12s ease, border-color 0.12s ease;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card:hover {
|
|
||||||
background-color: #${c.base02};
|
|
||||||
border-color: #${c.base0D};
|
|
||||||
}
|
|
||||||
|
|
||||||
.favicon-wrapper { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
|
|
||||||
|
|
||||||
.favicon {
|
|
||||||
position: absolute;
|
|
||||||
inset: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: contain;
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.favicon-fallback {
|
|
||||||
position: absolute;
|
|
||||||
inset: 0;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
background-color: #${c.base02};
|
|
||||||
border-radius: 4px;
|
|
||||||
color: #${c.base04};
|
|
||||||
font-size: 10px;
|
|
||||||
font-weight: 700;
|
|
||||||
text-transform: uppercase;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-info {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 0.05rem;
|
|
||||||
overflow: hidden;
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-name {
|
|
||||||
color: #${c.base05};
|
|
||||||
font-size: 0.86rem;
|
|
||||||
font-weight: 500;
|
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
transition: color 0.12s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card:hover .card-name { color: #${c.base0D}; }
|
|
||||||
|
|
||||||
.card-url {
|
|
||||||
color: #${c.base03};
|
|
||||||
font-family: 'Maple Mono NF', monospace;
|
|
||||||
font-size: 0.7rem;
|
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
|
||||||
|
|
||||||
.no-results {
|
|
||||||
color: #${c.base03};
|
|
||||||
font-size: 0.9rem;
|
|
||||||
padding: 0.5rem 0.2rem;
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="header">
|
|
||||||
<h1 class="page-title">Bookmarks</h1>
|
|
||||||
<input id="search" class="search-bar" type="text" placeholder="Search…" autocomplete="off" spellcheck="false">
|
|
||||||
<button id="collapse-btn" class="collapse-btn" title="Collapse all folders" aria-label="Collapse all folders">
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
||||||
<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="10" y1="14" x2="3" y2="21"/><line x1="21" y1="3" x2="14" y2="10"/>
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="bookmarks-container">
|
|
||||||
<p id="no-results" class="no-results">No results</p>
|
|
||||||
${lib.concatMapStrings mkSection grouped}
|
|
||||||
</div>
|
|
||||||
<script>
|
|
||||||
window.addEventListener('DOMContentLoaded', function () {
|
|
||||||
const input = document.getElementById('search');
|
|
||||||
const noResults = document.getElementById('no-results');
|
|
||||||
const collapseBtn = document.getElementById('collapse-btn');
|
|
||||||
|
|
||||||
input.focus();
|
|
||||||
|
|
||||||
collapseBtn.addEventListener('click', function () {
|
|
||||||
document.querySelectorAll('details.folder-section').forEach(function (d) {
|
|
||||||
d.open = false;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
input.addEventListener('input', function () {
|
|
||||||
const query = this.value.toLowerCase().trim();
|
|
||||||
let anyVisible = false;
|
|
||||||
|
|
||||||
if (query) {
|
|
||||||
document.querySelectorAll('details.folder-section').forEach(function (d) {
|
|
||||||
d.open = true;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
document.querySelectorAll('.folder-section, .root-section').forEach(function (section) {
|
|
||||||
let sectionVisible = false;
|
|
||||||
section.querySelectorAll('.card').forEach(function (card) {
|
|
||||||
const name = card.querySelector('.card-name').textContent.toLowerCase();
|
|
||||||
const url = card.querySelector('.card-url').textContent.toLowerCase();
|
|
||||||
const match = !query || name.includes(query) || url.includes(query);
|
|
||||||
card.style.display = match ? ''' : 'none';
|
|
||||||
if (match) { sectionVisible = true; anyVisible = true; }
|
|
||||||
});
|
|
||||||
section.style.display = sectionVisible ? ''' : 'none';
|
|
||||||
});
|
|
||||||
|
|
||||||
noResults.style.display = anyVisible || !query ? 'none' : 'block';
|
|
||||||
});
|
|
||||||
|
|
||||||
input.addEventListener('keydown', function (e) {
|
|
||||||
if (e.key === 'Enter') {
|
|
||||||
const val = this.value.trim();
|
|
||||||
const isUrl = /^https?:\/\//i.test(val) || /^[a-zA-Z0-9-]+(\.[a-zA-Z]{2,})(\/.*)?$/.test(val);
|
|
||||||
if (isUrl) {
|
|
||||||
location.href = /^https?:\/\//i.test(val) ? val : 'https://' + val;
|
|
||||||
} else {
|
|
||||||
const first = document.querySelector('.card:not([style*="none"])');
|
|
||||||
if (first) {
|
|
||||||
location.href = first.href;
|
|
||||||
} else {
|
|
||||||
const q = encodeURIComponent(val);
|
|
||||||
if (q) location.href = 'https://duckduckgo.com/?q=' + q;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (e.key === 'Escape') {
|
|
||||||
this.value = ''';
|
|
||||||
this.dispatchEvent(new Event('input'));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
'';
|
|
||||||
|
|
||||||
systemd.user.services.helium-startpage = {
|
|
||||||
Unit = {
|
|
||||||
Description = "Helium startpage HTTP server";
|
|
||||||
After = ["network.target"];
|
|
||||||
};
|
|
||||||
Service = {
|
|
||||||
Type = "simple";
|
|
||||||
ExecStart = "${pkgs.darkhttpd}/bin/darkhttpd %h/.local/share/helium-startpage --port 8888 --addr 127.0.0.1 --no-listing";
|
|
||||||
Restart = "on-failure";
|
|
||||||
};
|
|
||||||
Install.WantedBy = ["default.target"];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
name = "Entertainment";
|
|
||||||
icon = "movie";
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "Youtube";
|
|
||||||
url = "https://youtube.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Jellyfin";
|
|
||||||
url = "https://media.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Seerr";
|
|
||||||
url = "https://demandemedia.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Social Media";
|
|
||||||
icon = "group";
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "Medium";
|
|
||||||
url = "https://medium.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Bluesky";
|
|
||||||
url = "https://bsky.app";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Reddit";
|
|
||||||
url = "https://reddit.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Instagram";
|
|
||||||
url = "https://instagram.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Discord";
|
|
||||||
url = "https://discord.com/channels/@me/";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Gitlab";
|
|
||||||
url = "https://gitlab.com/";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
name = "Proton Mail";
|
|
||||||
url = "https://mail.proton.me";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Proton Drive";
|
|
||||||
url = "https://drive.proton.me";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Github";
|
|
||||||
url = "https://github.com";
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
name = "Infosec";
|
|
||||||
icon = "terminal";
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "Nix 4 Cyber";
|
|
||||||
url = "https://n4c.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Cyberchef";
|
|
||||||
url = "https://cyberchef.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "TryHackMe";
|
|
||||||
url = "https://tryhackme.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Root-Me";
|
|
||||||
url = "https://root-me.org";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Hack The Box";
|
|
||||||
url = "https://hackthebox.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Iknowyou";
|
|
||||||
url = "https://iknowyou-prod.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Exploit-DB";
|
|
||||||
url = "https://exploit-db.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "GTFOBins";
|
|
||||||
url = "https://gtfobins.org/";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Crack Station";
|
|
||||||
url = "https://crackstation.net";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Osint Tracker";
|
|
||||||
url = "https://app.osintracker.com";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
name = "Jack";
|
|
||||||
icon = "dns";
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "Glance";
|
|
||||||
url = "https://home.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Blog";
|
|
||||||
url = "https://hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Gitea";
|
|
||||||
url = "https://git.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Mealie";
|
|
||||||
url = "https://mealie.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Wallpapers";
|
|
||||||
url = "https://wallpapers.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Default Creds";
|
|
||||||
url = "https://default-creds.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Media";
|
|
||||||
icon = "subscriptions";
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "Radarr";
|
|
||||||
url = "https://radarr.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Sonarr";
|
|
||||||
url = "https://sonarr.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Bazarr";
|
|
||||||
url = "https://bazarr.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Prowlarr";
|
|
||||||
url = "https://prowlarr.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Transmission";
|
|
||||||
url = "https://transmission.hadi.icu";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Infrastructure";
|
|
||||||
icon = "construction";
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "AdGuard";
|
|
||||||
url = "https://adguard.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Umami";
|
|
||||||
url = "https://umami.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Cloudflare";
|
|
||||||
url = "https://dash.cloudflare.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Cloudflare Zero Trust";
|
|
||||||
url = "https://one.dash.cloudflare.com";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
name = "Other";
|
|
||||||
icon = "category";
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "Documentation";
|
|
||||||
icon = "menu_book";
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "Hyprland Wiki";
|
|
||||||
url = "https://wiki.hypr.land";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Stylix Wiki";
|
|
||||||
url = "https://nix-community.github.io/stylix/";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Nixpkgs";
|
|
||||||
url = "https://github.com/NixOS/nixpkgs";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "tldr";
|
|
||||||
url = "https://tldr.inbrowser.app/";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Startpage Config";
|
|
||||||
url = "https://www.startpage.com/do/mypage.pl?prfe=45d331deb05471d659dba933e7400df51d952bb103da6f6125c0e769a6be1d65610456a479f495ceeee7e97311cf227d7c1bb198de0ceeb193d8cddf9c455c19a409cc35c3e3f542ee27bd7cecd3";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Feedly";
|
|
||||||
url = "https://feedly.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "MyNixOS";
|
|
||||||
url = "https://mynixos.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Amazon";
|
|
||||||
url = "https://amazon.fr";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
name = "Tools";
|
|
||||||
icon = "handyman";
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "Maps";
|
|
||||||
url = "https://maps.apple.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Excalidraw";
|
|
||||||
url = "https://excalidraw.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Cobalt (downloader)";
|
|
||||||
url = "https://cobalt.meowing.de";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Mazanoke (image)";
|
|
||||||
url = "https://mazanoke.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Vert";
|
|
||||||
url = "https://vert.sh";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Markdown to PDF";
|
|
||||||
url = "https://md2file.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Image to Vector";
|
|
||||||
url = "https://www.vectorcascade.com/";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "PrivateBin";
|
|
||||||
url = "https://privatebin.net";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Claude";
|
|
||||||
url = "https://claude.ai";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Gemini";
|
|
||||||
url = "https://gemini.google.com";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -1,137 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
c = config.lib.stylix.colors;
|
|
||||||
rgb = base: map lib.strings.toInt [c."${base}-rgb-r" c."${base}-rgb-g" c."${base}-rgb-b"];
|
|
||||||
|
|
||||||
themeId = "abcadngacjlikcpkhleafekcdjmddegk";
|
|
||||||
themeKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6t46VoE3mdV1QNMgybpmQLi5PtYHejnNrSj4DkBZyiTzMzs7Yyvg64f78w3QubZA5cTXSQ7FVhVHvv30I8ym/jNzsSN6reh1t4PtKsFjFRugAty8bfKJGD404HZLOFN2z3G9UPVLBBgzDH3DWbb/kcOq60Mlo/QDCIjsieZg0G3EYMl4efoThzYPWoyv0UEoiliwrE/AChxbgipQetUZ48bFhTCsmnYzCze7clssfTobzWtJJG0qFx76LauHKymRS5OTFfgsovKqHUSFJ202Q53vFdUPP/j8PjSPr1kZeg1NYc7Ba3MoA49EwtJf5ol9oYu05EEnSQ5+1AoYVmdE8QIDAQAB";
|
|
||||||
|
|
||||||
themeManifest = builtins.toJSON {
|
|
||||||
manifest_version = 2;
|
|
||||||
name = "Stylix Theme";
|
|
||||||
version = "1.0";
|
|
||||||
key = themeKey;
|
|
||||||
theme.colors = {
|
|
||||||
frame = rgb "base00";
|
|
||||||
frame_inactive = rgb "base00";
|
|
||||||
frame_incognito = rgb "base00";
|
|
||||||
frame_incognito_inactive = rgb "base00";
|
|
||||||
toolbar = rgb "base00";
|
|
||||||
toolbar_button_icon = rgb "base05";
|
|
||||||
control_background = rgb "base00";
|
|
||||||
tab_text = rgb "base0D";
|
|
||||||
background_tab = rgb "base00";
|
|
||||||
tab_background_text = rgb "base04";
|
|
||||||
tab_background_text_inactive = rgb "base04";
|
|
||||||
ntp_background = rgb "base00";
|
|
||||||
ntp_text = rgb "base05";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
heliumFlags = [
|
|
||||||
"--ozone-platform=wayland"
|
|
||||||
"--enable-features=UseOzonePlatform,VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization"
|
|
||||||
"--disable-features=UseChromeOSDirectVideoDecoder,WaylandWpColorManagerV1"
|
|
||||||
"--enable-accelerated-video-decode"
|
|
||||||
"--enable-gpu-rasterization"
|
|
||||||
"--use-gl=egl"
|
|
||||||
"--no-default-browser-check"
|
|
||||||
"--show-avatar-button=never"
|
|
||||||
];
|
|
||||||
|
|
||||||
originalPkg = (inputs.helium-browser.packages.${pkgs.stdenv.hostPlatform.system}.helium).override {
|
|
||||||
flags = heliumFlags;
|
|
||||||
};
|
|
||||||
|
|
||||||
patchScript = pkgs.writeShellScript "helium-patch-prefs" ''
|
|
||||||
PROFILE="$HOME/.config/net.imput.helium/Default"
|
|
||||||
THEME_DIR="$PROFILE/Extensions/${themeId}/1.0_0"
|
|
||||||
PREFS="$PROFILE/Preferences"
|
|
||||||
|
|
||||||
mkdir -p "$THEME_DIR"
|
|
||||||
rm -f "$THEME_DIR/Cached Theme.pak"
|
|
||||||
printf '%s' '${themeManifest}' > "$THEME_DIR/manifest.json"
|
|
||||||
|
|
||||||
if [ -f "$PREFS" ]; then
|
|
||||||
tmp=$(mktemp)
|
|
||||||
${lib.getExe pkgs.jq} \
|
|
||||||
--arg id "${themeId}" \
|
|
||||||
--slurpfile manifest "$THEME_DIR/manifest.json" \
|
|
||||||
'
|
|
||||||
.helium.browser.layout = 3 |
|
|
||||||
.helium.browser.minimal_location_bar = true |
|
|
||||||
.helium.browser.show_dynamic_new_tab_button = false |
|
|
||||||
.bookmark_bar.show_tab_groups = false |
|
|
||||||
.extensions.settings[$id] = {
|
|
||||||
"active_permissions": {"api": [], "explicit_host": [], "manifest_permissions": [], "scriptable_host": []},
|
|
||||||
"creation_flags": 0,
|
|
||||||
"from_webstore": false,
|
|
||||||
"install_time": "13300000000000000",
|
|
||||||
"location": 1,
|
|
||||||
"manifest": $manifest[0],
|
|
||||||
"path": ($id + "/1.0_0"),
|
|
||||||
"state": 1,
|
|
||||||
"was_installed_by_default": false,
|
|
||||||
"was_installed_by_oem": false
|
|
||||||
} |
|
|
||||||
.extensions.theme = {"id": $id, "use_system": false}
|
|
||||||
' "$PREFS" > "$tmp" && mv "$tmp" "$PREFS"
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
baseWrapped = pkgs.symlinkJoin {
|
|
||||||
name = "helium-wrapped";
|
|
||||||
paths = [originalPkg];
|
|
||||||
nativeBuildInputs = [pkgs.makeWrapper];
|
|
||||||
postBuild = ''
|
|
||||||
wrapProgram $out/bin/helium \
|
|
||||||
--run ${lib.escapeShellArg (toString patchScript)}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
wrappedPkg = baseWrapped // {override = _: baseWrapped;};
|
|
||||||
in {
|
|
||||||
imports = [
|
|
||||||
inputs.helium-browser.homeModules.default
|
|
||||||
./bookmarks
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.helium = {
|
|
||||||
enable = true;
|
|
||||||
package = lib.mkForce wrappedPkg;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.sessionVariables.BROWSER = "${config.programs.helium.package}/bin/helium";
|
|
||||||
|
|
||||||
xdg.desktopEntries.helium = {
|
|
||||||
name = "Helium";
|
|
||||||
genericName = "Navigateur Web";
|
|
||||||
exec = "${config.programs.helium.package}/bin/helium %U";
|
|
||||||
icon = "${config.programs.helium.package}/share/icons/hicolor/256x256/apps/helium.png";
|
|
||||||
terminal = false;
|
|
||||||
categories = ["Network" "WebBrowser"];
|
|
||||||
mimeType = [
|
|
||||||
"text/html"
|
|
||||||
"text/xml"
|
|
||||||
"application/xhtml+xml"
|
|
||||||
"x-scheme-handler/http"
|
|
||||||
"x-scheme-handler/https"
|
|
||||||
"x-scheme-handler/ftp"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.desktopEntries.helium-private = {
|
|
||||||
name = "Helium (Private window)";
|
|
||||||
genericName = "Navigateur Web";
|
|
||||||
exec = "${config.programs.helium.package}/bin/helium --incognito %U";
|
|
||||||
icon = "${config.programs.helium.package}/share/icons/hicolor/256x256/apps/helium.png";
|
|
||||||
terminal = false;
|
|
||||||
categories = ["Network" "WebBrowser"];
|
|
||||||
mimeType = ["text/html" "text/xml" "application/xhtml+xml"];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,70 +0,0 @@
|
|||||||
{...}: let
|
|
||||||
bookmarkList =
|
|
||||||
(import ./bookmarks/general.nix)
|
|
||||||
++ (import ./bookmarks/tools.nix)
|
|
||||||
++ (import ./bookmarks/entertainment.nix)
|
|
||||||
++ (import ./bookmarks/infosec.nix)
|
|
||||||
++ (import ./bookmarks/other.nix)
|
|
||||||
++ (import ./bookmarks/jack.nix);
|
|
||||||
|
|
||||||
toChromium = items:
|
|
||||||
map (item:
|
|
||||||
if item ? url
|
|
||||||
then {inherit (item) name url;}
|
|
||||||
else {
|
|
||||||
name = item.name;
|
|
||||||
children = toChromium item.bookmarks;
|
|
||||||
})
|
|
||||||
items;
|
|
||||||
in {
|
|
||||||
stylix.targets.chromium.enable = false;
|
|
||||||
|
|
||||||
programs.helium = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
policies = {
|
|
||||||
BrowserSignin = 0;
|
|
||||||
SyncDisabled = true;
|
|
||||||
SigninAllowed = false;
|
|
||||||
|
|
||||||
PasswordManagerEnabled = false;
|
|
||||||
AutofillAddressEnabled = false;
|
|
||||||
AutofillCreditCardEnabled = false;
|
|
||||||
SafeBrowsingEnabled = false;
|
|
||||||
MetricsReportingEnabled = false;
|
|
||||||
SpellCheckServiceEnabled = false;
|
|
||||||
DefaultCookiesSetting = 1;
|
|
||||||
DefaultGeolocationSetting = 2;
|
|
||||||
DefaultNotificationsSetting = 2;
|
|
||||||
DefaultPopupsSetting = 2;
|
|
||||||
|
|
||||||
DefaultBrowserSettingEnabled = false;
|
|
||||||
DeveloperToolsAvailability = 1;
|
|
||||||
|
|
||||||
DnsOverHttpsMode = "secure";
|
|
||||||
DnsOverHttpsTemplates = "https://dns.quad9.net/dns-query";
|
|
||||||
|
|
||||||
DefaultSearchProviderEnabled = true;
|
|
||||||
DefaultSearchProviderName = "Startpage";
|
|
||||||
DefaultSearchProviderSearchURL = "https://www.startpage.com/do/search?q={searchTerms}";
|
|
||||||
DefaultSearchProviderSuggestURL = "https://www.startpage.com/do/suggest?q={searchTerms}";
|
|
||||||
|
|
||||||
NewTabPageLocation = "http://127.0.0.1:8888";
|
|
||||||
HomepageIsNewTabPage = false;
|
|
||||||
HomepageLocation = "http://127.0.0.1:8888";
|
|
||||||
ShowHomeButton = false;
|
|
||||||
RestoreOnStartup = 4;
|
|
||||||
|
|
||||||
BookmarkBarEnabled = false;
|
|
||||||
ManagedBookmarks = toChromium bookmarkList;
|
|
||||||
|
|
||||||
ExtensionInstallForcelist = [
|
|
||||||
"dbepggeogbaibhgnhhndojpepiihcmeb" # Vimiu
|
|
||||||
"gcknhkkoolaabfmlnjonogaaifnjlfnp" # FoxyProxy
|
|
||||||
"ghmbeldphafepmbegfdlkpapadhbakde" # Proton Pass
|
|
||||||
"mdjildafknihdffpkfmmpnpoiajfjnjd" # Consent-O-Matic
|
|
||||||
"pkehgijcmpdhfbdbbnkijodmdjhbjlgp" # Privacy Badger
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,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;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{pkgs, ...}: let
|
|
||||||
nightshift-toggle =
|
|
||||||
pkgs.writeShellScriptBin "nightshift-toggle"
|
|
||||||
# bash
|
|
||||||
''
|
|
||||||
if pidof "hyprsunset"; then
|
|
||||||
pkill hyprsunset
|
|
||||||
${pkgs.libnotify}/bin/notify-send "Night Shift Disabled" "Returning to full spectrum light. Filter disabled."
|
|
||||||
else
|
|
||||||
${pkgs.hyprsunset}/bin/hyprsunset -t 4500 &
|
|
||||||
${pkgs.libnotify}/bin/notify-send "Night Shift Activated" "Welcome to the warm side. Blue light filtering is now active."
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
in {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
hyprsunset
|
|
||||||
nightshift-toggle
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{inputs, ...}: {
|
|
||||||
imports = [inputs.nix-index-database.homeModules.default];
|
|
||||||
programs.nix-index.enable = true;
|
|
||||||
programs.nix-index-database.comma.enable = true;
|
|
||||||
}
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
# - ## Nixy
|
|
||||||
#-
|
|
||||||
#- Nixy is a simple script that I use to manage my NixOS system. It's a simple script that provides a menu to rebuild, test, update, collect garbage, clean boot menu, etc.
|
|
||||||
#-
|
|
||||||
#- - `nixy` - UI wizard to manage the system.
|
|
||||||
#- - `nixy rebuild` - Rebuild the system.
|
|
||||||
#- - `nixy ...` - ... see the script for more commands.
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
options.programs.nixy = {
|
|
||||||
enable = lib.mkEnableOption "nixy";
|
|
||||||
configDirectory = lib.mkOption {
|
|
||||||
type = lib.types.str;
|
|
||||||
default = "$HOME/.config/nixos";
|
|
||||||
description = "Path to the NixOS configuration directory";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.programs.nixy.enable {
|
|
||||||
home.packages = [
|
|
||||||
(import ./package.nix {
|
|
||||||
inherit pkgs;
|
|
||||||
inherit (config.programs.nixy) configDirectory;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
system,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
packages.${system}.nixy = import ./package.nix {
|
|
||||||
inherit pkgs;
|
|
||||||
configDirectory = "$HOME/.config/nixos";
|
|
||||||
};
|
|
||||||
|
|
||||||
homeManagerModules.nixy = {
|
|
||||||
imports = [./default.nix];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
configDirectory,
|
|
||||||
}:
|
|
||||||
pkgs.writeShellScriptBin "nixy"
|
|
||||||
# bash
|
|
||||||
''
|
|
||||||
EXTRA_ARGS="''${@:2}"
|
|
||||||
|
|
||||||
function exec() {
|
|
||||||
$@
|
|
||||||
}
|
|
||||||
|
|
||||||
function ui(){
|
|
||||||
DEFAULT_ICON=""
|
|
||||||
|
|
||||||
# "icon;name;command"[]
|
|
||||||
apps=(
|
|
||||||
";Rebuild;nixy rebuild"
|
|
||||||
";Test;nixy test"
|
|
||||||
";Update;nixy update"
|
|
||||||
";Collect Garbage;nixy gc"
|
|
||||||
";Clean Boot Menu;nixy cb"
|
|
||||||
";List generation;nixy listgen"
|
|
||||||
)
|
|
||||||
|
|
||||||
# Apply default icons if empty:
|
|
||||||
for i in "''${!apps[@]}"; do
|
|
||||||
apps[i]=$(echo "''${apps[i]}" | sed 's/^;/'$DEFAULT_ICON';/')
|
|
||||||
done
|
|
||||||
|
|
||||||
fzf_result=$(printf "%s\n" "''${apps[@]}" | awk -F ';' '{print $1" "$2}' | fzf)
|
|
||||||
[[ -z $fzf_result ]] && exit 0
|
|
||||||
fzf_result=''${fzf_result/ /;}
|
|
||||||
line=$(printf "%s\n" "''${apps[@]}" | grep "$fzf_result")
|
|
||||||
command=$(echo "$line" | sed 's/^[^;]*;//;s/^[^;]*;//')
|
|
||||||
|
|
||||||
exec "$command"
|
|
||||||
exit $?
|
|
||||||
}
|
|
||||||
|
|
||||||
[[ $1 == "" ]] && ui
|
|
||||||
|
|
||||||
if [[ $1 == "rebuild" ]];then
|
|
||||||
cd ${configDirectory} && git add . && sudo nixos-rebuild switch --flake . $EXTRA_ARGS
|
|
||||||
elif [[ $1 == "test" ]];then
|
|
||||||
cd ${configDirectory} && git add . && sudo nixos-rebuild test --flake . $EXTRA_ARGS
|
|
||||||
elif [[ $1 == "update" ]];then
|
|
||||||
cd ${configDirectory} && nix flake update $EXTRA_ARGS
|
|
||||||
elif [[ $1 == "gc" ]];then
|
|
||||||
echo "Starting Nix garbage collection..."
|
|
||||||
cd ${configDirectory} && \
|
|
||||||
echo "Cleaning up system garbage..." && \
|
|
||||||
sudo nix-collect-garbage -d && \
|
|
||||||
echo "Cleaning up user garbage..." && \
|
|
||||||
nix-collect-garbage -d && \
|
|
||||||
echo "Collecting garbage from Nix store..." && \
|
|
||||||
nix-store --gc && \
|
|
||||||
echo "Optimizing Nix store..." && \
|
|
||||||
nix-store --optimise
|
|
||||||
echo "Nix garbage collection complete."
|
|
||||||
elif [[ $1 == "cb" ]];then
|
|
||||||
sudo /run/current-system/bin/switch-to-configuration boot
|
|
||||||
elif [[ $1 == "listgen" ]];then
|
|
||||||
sudo nix-env -p /nix/var/nix/profiles/system --list-generations
|
|
||||||
else
|
|
||||||
echo "Unknown argument"
|
|
||||||
fi
|
|
||||||
''
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [inputs.nvf.homeManagerModules.default];
|
|
||||||
programs.nvf = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
imports = [
|
|
||||||
./options.nix
|
|
||||||
./languages.nix
|
|
||||||
./picker.nix
|
|
||||||
./snacks.nix
|
|
||||||
./keymaps.nix
|
|
||||||
./utils.nix
|
|
||||||
./mini.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
system,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
nvimConfig = inputs.nvf.lib.neovimConfiguration {
|
|
||||||
inherit pkgs;
|
|
||||||
modules = [
|
|
||||||
./options.nix
|
|
||||||
./languages.nix
|
|
||||||
./picker.nix
|
|
||||||
./snacks.nix
|
|
||||||
./keymaps.nix
|
|
||||||
./utils.nix
|
|
||||||
./mini.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
packages.${system}.nvim = nvimConfig.neovim;
|
|
||||||
|
|
||||||
apps.${system}.nvim = {
|
|
||||||
type = "app";
|
|
||||||
program = "${nvimConfig.neovim}/bin/nvim";
|
|
||||||
};
|
|
||||||
defaultApp.${system} = {
|
|
||||||
type = "app";
|
|
||||||
program = "${nvimConfig.neovim}/bin/nvim";
|
|
||||||
};
|
|
||||||
|
|
||||||
homeManagerModules.nvim = {
|
|
||||||
imports = [
|
|
||||||
inputs.nvf.homeManagerModules.default
|
|
||||||
./default.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,280 +0,0 @@
|
|||||||
{
|
|
||||||
vim = {
|
|
||||||
globals.mapleader = " ";
|
|
||||||
keymaps = [
|
|
||||||
{
|
|
||||||
key = "s";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua MiniJump2d.start(MiniJump2d.builtin_opts.single_character)<cr>";
|
|
||||||
desc = "Jump2d";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "K";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua vim.lsp.buf.hover()<cr>";
|
|
||||||
desc = "LSP Hover";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<C-tab>";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>bnext<cr>";
|
|
||||||
desc = "Next Buffer";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Format
|
|
||||||
{
|
|
||||||
key = "<leader>lf";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua require('conform').format({ async = true, lsp_format = 'fallback' })<cr>";
|
|
||||||
desc = "Format file";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Terminal
|
|
||||||
{
|
|
||||||
key = "<leader>tt";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.terminal.toggle()<cr>";
|
|
||||||
desc = "Toggle terminal";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>tf";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.terminal.toggle(nil, { style = 'float' })<cr>";
|
|
||||||
desc = "Toggle terminal (float)";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>tg";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.lazygit()<cr>";
|
|
||||||
desc = "Lazygit";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>ts";
|
|
||||||
mode = "v";
|
|
||||||
silent = true;
|
|
||||||
action = ":<C-u>SttrTransform<CR>";
|
|
||||||
desc = "String Transform";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>tj";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = ":JwtTui<CR>";
|
|
||||||
desc = "JWT TUI";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>tj";
|
|
||||||
mode = "v";
|
|
||||||
silent = true;
|
|
||||||
action = ":<C-u>JwtTuiOpen<CR>";
|
|
||||||
desc = "JWT TUI";
|
|
||||||
}
|
|
||||||
|
|
||||||
# UI
|
|
||||||
{
|
|
||||||
key = "<leader>uw";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>set wrap!<cr>";
|
|
||||||
desc = "Toggle word wrapping";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>ul";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>set linebreak!<cr>";
|
|
||||||
desc = "Toggle linebreak";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>us";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>set spell!<cr>";
|
|
||||||
desc = "Toggle spellLazyGitcheck";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>uc";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>set cursorline!<cr>";
|
|
||||||
desc = "Toggle cursorline";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>un";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>set number!<cr>";
|
|
||||||
desc = "Toggle line numbers";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>ur";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>set relativenumber!<cr>";
|
|
||||||
desc = "Toggle relative line numbers";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>ut";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>set showtabline=2<cr>";
|
|
||||||
desc = "Show tabline";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>uT";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>set showtabline=0<cr>";
|
|
||||||
desc = "Hide tabline";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Todos
|
|
||||||
{
|
|
||||||
key = "<leader>xt";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>TodoTrouble<cr>";
|
|
||||||
desc = "Todo (Trouble)";
|
|
||||||
}
|
|
||||||
|
|
||||||
# QOL
|
|
||||||
{
|
|
||||||
key = ">";
|
|
||||||
mode = "v";
|
|
||||||
silent = true;
|
|
||||||
action = ">gv";
|
|
||||||
desc = "Indent and keep selection";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<";
|
|
||||||
mode = "v";
|
|
||||||
silent = true;
|
|
||||||
action = "<gv";
|
|
||||||
desc = "Dedent and keep selection";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Move
|
|
||||||
{
|
|
||||||
key = "<C-h>";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<C-w>h";
|
|
||||||
desc = "Move to left window";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<C-j>";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<C-w>j";
|
|
||||||
desc = "Move to bottom window";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<C-k>";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<C-w>k";
|
|
||||||
desc = "Move to top window";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<C-l>";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<C-w>l";
|
|
||||||
desc = "Move to right window";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Save
|
|
||||||
{
|
|
||||||
key = "<C-s>";
|
|
||||||
mode = [
|
|
||||||
"n"
|
|
||||||
"i"
|
|
||||||
"v"
|
|
||||||
];
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>w<cr>";
|
|
||||||
desc = "Save file";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Deactivate "esc"
|
|
||||||
{
|
|
||||||
key = "<Esc>";
|
|
||||||
mode = [
|
|
||||||
"n"
|
|
||||||
"i"
|
|
||||||
"v"
|
|
||||||
];
|
|
||||||
silent = true;
|
|
||||||
action = "<Nop>";
|
|
||||||
desc = "Disable Escape";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Disable Arrow Keys in Normal Mode and Middle click
|
|
||||||
{
|
|
||||||
key = "<Up>";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<Nop>";
|
|
||||||
desc = "Disable Up Arrow";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<Down>";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<Nop>";
|
|
||||||
desc = "Disable Down Arrow";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<Left>";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<Nop>";
|
|
||||||
desc = "Disable Left Arrow";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<Right>";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<Nop>";
|
|
||||||
desc = "Disable Right Arrow";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<MiddleMouse>";
|
|
||||||
mode = [
|
|
||||||
"n"
|
|
||||||
"i"
|
|
||||||
"v"
|
|
||||||
];
|
|
||||||
action = "<nop>";
|
|
||||||
silent = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<2-MiddleMouse>";
|
|
||||||
mode = [
|
|
||||||
"n"
|
|
||||||
"i"
|
|
||||||
"v"
|
|
||||||
];
|
|
||||||
action = "<nop>";
|
|
||||||
silent = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<3-MiddleMouse>";
|
|
||||||
mode = [
|
|
||||||
"n"
|
|
||||||
"i"
|
|
||||||
"v"
|
|
||||||
];
|
|
||||||
action = "<nop>";
|
|
||||||
silent = true;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,115 +0,0 @@
|
|||||||
{...}: {
|
|
||||||
vim = {
|
|
||||||
diagnostics = {
|
|
||||||
enable = true;
|
|
||||||
config = {
|
|
||||||
signs = {
|
|
||||||
text = {
|
|
||||||
"vim.diagnostic.severity.Error" = " ";
|
|
||||||
"vim.diagnostic.severity.Warn" = " ";
|
|
||||||
"vim.diagnostic.severity.Hint" = " ";
|
|
||||||
"vim.diagnostic.severity.Info" = " ";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
underline = true;
|
|
||||||
update_in_insert = true;
|
|
||||||
virtual_text = true;
|
|
||||||
};
|
|
||||||
nvim-lint = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
treesitter = {
|
|
||||||
enable = true;
|
|
||||||
autotagHtml = true;
|
|
||||||
context.enable = true;
|
|
||||||
highlight.enable = true;
|
|
||||||
};
|
|
||||||
lsp = {
|
|
||||||
enable = true;
|
|
||||||
presets = {
|
|
||||||
tailwindcss-language-server = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
trouble.enable = true;
|
|
||||||
lspSignature.enable = true;
|
|
||||||
lspconfig.enable = true;
|
|
||||||
formatOnSave = false;
|
|
||||||
mappings.format = null;
|
|
||||||
inlayHints.enable = true;
|
|
||||||
servers.nil.settings.nix.autoArchive = true;
|
|
||||||
otter-nvim = {
|
|
||||||
enable = true;
|
|
||||||
setupOpts = {
|
|
||||||
buffers.set_filetype = true;
|
|
||||||
lsp = {
|
|
||||||
diagnostic_update_event = [
|
|
||||||
"BufWritePost"
|
|
||||||
"InsertLeave"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
lspkind.enable = true;
|
|
||||||
lspsaga = {
|
|
||||||
enable = true;
|
|
||||||
setupOpts = {
|
|
||||||
ui = {
|
|
||||||
code_action = "";
|
|
||||||
};
|
|
||||||
lightbulb = {
|
|
||||||
sign = false;
|
|
||||||
virtual_text = true;
|
|
||||||
};
|
|
||||||
symbol_in_winbar.enable = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
languages = {
|
|
||||||
enableExtraDiagnostics = true;
|
|
||||||
enableFormat = true;
|
|
||||||
enableTreesitter = true;
|
|
||||||
|
|
||||||
python = {
|
|
||||||
enable = true;
|
|
||||||
lsp = {
|
|
||||||
enable = true;
|
|
||||||
servers = ["pyright"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
astro.enable = true;
|
|
||||||
go.enable = true;
|
|
||||||
markdown = {
|
|
||||||
enable = true;
|
|
||||||
format.type = ["prettierd"];
|
|
||||||
extensions = {
|
|
||||||
markview-nvim = {
|
|
||||||
enable = true;
|
|
||||||
setupOpts = {
|
|
||||||
preview = {
|
|
||||||
hybrid_modes = ["n"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
extraDiagnostics.enable = true;
|
|
||||||
};
|
|
||||||
typescript.enable = true;
|
|
||||||
css.enable = true;
|
|
||||||
svelte.enable = true;
|
|
||||||
html.enable = true;
|
|
||||||
bash.enable = true;
|
|
||||||
nix.enable = true;
|
|
||||||
lua.enable = true;
|
|
||||||
};
|
|
||||||
formatter = {
|
|
||||||
conform-nvim = {
|
|
||||||
enable = true;
|
|
||||||
setupOpts.format_on_save = {
|
|
||||||
lsp_format = "fallback";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
vim.luaConfigRC.mini-clue = ''
|
|
||||||
local miniclue = require('mini.clue')
|
|
||||||
miniclue.setup({
|
|
||||||
triggers = {
|
|
||||||
{ mode = 'n', keys = '<Leader>' },
|
|
||||||
{ mode = 'x', keys = '<Leader>' },
|
|
||||||
{ mode = 'n', keys = 'g' },
|
|
||||||
{ mode = 'x', keys = 'g' },
|
|
||||||
{ mode = 'n', keys = "'" },
|
|
||||||
{ mode = 'n', keys = '`' },
|
|
||||||
{ mode = 'n', keys = '"' },
|
|
||||||
{ mode = 'i', keys = '<C-r>' },
|
|
||||||
{ mode = 'c', keys = '<C-r>' },
|
|
||||||
{ mode = 'n', keys = '<C-w>' },
|
|
||||||
{ mode = 'n', keys = 'z' },
|
|
||||||
},
|
|
||||||
clues = {
|
|
||||||
miniclue.gen_clues.g(),
|
|
||||||
miniclue.gen_clues.marks(),
|
|
||||||
miniclue.gen_clues.registers(),
|
|
||||||
miniclue.gen_clues.windows({ submode_resize = true }),
|
|
||||||
miniclue.gen_clues.z(),
|
|
||||||
{ mode = 'n', keys = '<Leader>f', desc = '+find' },
|
|
||||||
{ mode = 'n', keys = '<Leader>s', desc = '+search' },
|
|
||||||
{ mode = 'n', keys = '<Leader>t', desc = '+terminal' },
|
|
||||||
{ mode = 'n', keys = '<Leader>u', desc = '+ui' },
|
|
||||||
{ mode = 'n', keys = '<Leader>l', desc = '+lsp' },
|
|
||||||
{ mode = 'n', keys = '<Leader>x', desc = '+trouble' },
|
|
||||||
},
|
|
||||||
window = { delay = 300 },
|
|
||||||
})
|
|
||||||
'';
|
|
||||||
|
|
||||||
vim.mini = {
|
|
||||||
ai.enable = true;
|
|
||||||
starter.enable = true;
|
|
||||||
comment.enable = true;
|
|
||||||
icons.enable = true;
|
|
||||||
indentscope.enable = true;
|
|
||||||
pairs.enable = true;
|
|
||||||
diff.enable = true;
|
|
||||||
git.enable = true;
|
|
||||||
jump2d.enable = true;
|
|
||||||
statusline.enable = true;
|
|
||||||
clue.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
{lib, ...}: {
|
|
||||||
vim = {
|
|
||||||
viAlias = false;
|
|
||||||
vimAlias = true;
|
|
||||||
withNodeJs = true;
|
|
||||||
options = {
|
|
||||||
autoindent = true;
|
|
||||||
smartindent = true;
|
|
||||||
shiftwidth = 2;
|
|
||||||
foldlevel = 99;
|
|
||||||
foldcolumn = "auto:1";
|
|
||||||
mousescroll = "ver:1,hor:1";
|
|
||||||
mousemoveevent = true;
|
|
||||||
fillchars = "eob:‿,fold: ,foldopen:▼,foldsep:⸽,foldclose:⏵";
|
|
||||||
signcolumn = "yes";
|
|
||||||
tabstop = 2;
|
|
||||||
softtabstop = 2;
|
|
||||||
wrap = false;
|
|
||||||
};
|
|
||||||
globals.navic_silence = true;
|
|
||||||
clipboard = {
|
|
||||||
enable = true;
|
|
||||||
registers = "unnamedplus";
|
|
||||||
};
|
|
||||||
luaConfigRC.osc52-clipboard = ''
|
|
||||||
vim.g.clipboard = {
|
|
||||||
name = 'OSC 52',
|
|
||||||
copy = {
|
|
||||||
['+'] = require('vim.ui.clipboard.osc52').copy '+',
|
|
||||||
['*'] = require('vim.ui.clipboard.osc52').copy '*',
|
|
||||||
},
|
|
||||||
paste = {
|
|
||||||
['+'] = require('vim.ui.clipboard.osc52').paste '+',
|
|
||||||
['*'] = require('vim.ui.clipboard.osc52').paste '*',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
theme = {
|
|
||||||
enable = true;
|
|
||||||
name = lib.mkForce "catppuccin";
|
|
||||||
style = lib.mkForce "mocha";
|
|
||||||
transparent = lib.mkForce true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,162 +0,0 @@
|
|||||||
{
|
|
||||||
vim = {
|
|
||||||
utility = {
|
|
||||||
snacks-nvim = {
|
|
||||||
setupOpts = {
|
|
||||||
picker.enabled = true;
|
|
||||||
explorer.enabled = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
keymaps = [
|
|
||||||
# Top Pickers & Explorer
|
|
||||||
{
|
|
||||||
key = "<leader> ";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.smart()<cr>";
|
|
||||||
desc = "Smart Find Files";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>e";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.explorer()<cr>";
|
|
||||||
desc = "File Explorer";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>/";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.lines()<cr>";
|
|
||||||
desc = "Buffer Lines";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Find
|
|
||||||
{
|
|
||||||
key = "<leader>fb";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.buffers()<cr>";
|
|
||||||
desc = "Buffers";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>ff";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.files()<cr>";
|
|
||||||
desc = "Find Files";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>fp";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.projects()<cr>";
|
|
||||||
desc = "Projects";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>fr";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.recent()<cr>";
|
|
||||||
desc = "Recent";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>f:";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.command_history()<cr>";
|
|
||||||
desc = "Command History";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>fn";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.notifications()<cr>";
|
|
||||||
desc = "Notification History";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Grep
|
|
||||||
{
|
|
||||||
key = "<leader>sg";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.grep()<cr>";
|
|
||||||
desc = "Grep";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>st";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.todo_comments()<cr>";
|
|
||||||
desc = "Todos";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>sw";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.grep_word()<cr>";
|
|
||||||
desc = "Visual selection or word";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>sr";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>nohlsearch<cr>";
|
|
||||||
desc = "Reset search";
|
|
||||||
}
|
|
||||||
|
|
||||||
# LSP
|
|
||||||
{
|
|
||||||
key = "gd";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.lsp_definitions()<cr>";
|
|
||||||
desc = "Goto Definition";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "gD";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.lsp_declarations()<cr>";
|
|
||||||
desc = "Goto Declaration";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "gr";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.lsp_references()<cr>";
|
|
||||||
desc = "References";
|
|
||||||
nowait = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "gI";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.lsp_implementations()<cr>";
|
|
||||||
desc = "Goto Implementation";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "gy";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.lsp_type_definitions()<cr>";
|
|
||||||
desc = "Goto Type Definition";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>ss";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.lsp_symbols()<cr>";
|
|
||||||
desc = "LSP Symbols";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>sS";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>lua Snacks.picker.lsp_workspace_symbols()<cr>";
|
|
||||||
desc = "LSP Workspace Symbols";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
vim.utility.snacks-nvim = {
|
|
||||||
enable = true;
|
|
||||||
setupOpts = {
|
|
||||||
quickfile.enabled = true;
|
|
||||||
statuscolumn.enabled = true;
|
|
||||||
zen.enabled = true;
|
|
||||||
bufdelete.enabled = true;
|
|
||||||
gitsigns.enabled = true;
|
|
||||||
animate.enabled = true;
|
|
||||||
lazygit = {
|
|
||||||
enabled = true;
|
|
||||||
configure = false;
|
|
||||||
};
|
|
||||||
terminal.enabled = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
vim = {
|
|
||||||
luaConfigRC.remove-todo-keymaps = ''
|
|
||||||
vim.keymap.del("n", "<leader>tdq")
|
|
||||||
vim.keymap.del("n", "<leader>tdt")
|
|
||||||
'';
|
|
||||||
undoFile.enable = true;
|
|
||||||
notes.todo-comments.enable = true;
|
|
||||||
assistant.copilot = {
|
|
||||||
enable = true;
|
|
||||||
cmp.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
autocomplete = {
|
|
||||||
nvim-cmp = {
|
|
||||||
enable = true;
|
|
||||||
sources = {
|
|
||||||
buffer = "[Buffer]";
|
|
||||||
path = "[Path]";
|
|
||||||
};
|
|
||||||
sourcePlugins = [
|
|
||||||
pkgs.vimPlugins.cmp-cmdline
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
snippets.luasnip.enable = true;
|
|
||||||
ui = {
|
|
||||||
noice.enable = true;
|
|
||||||
colorizer.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
visuals = {
|
|
||||||
rainbow-delimiters.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
extraPlugins = {
|
|
||||||
sttr-nvim = {
|
|
||||||
package = pkgs.vimUtils.buildVimPlugin {
|
|
||||||
name = "sttr-nvim";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "anotherhadi";
|
|
||||||
repo = "sttr.nvim";
|
|
||||||
rev = "b41f2f51372222e23efbe5df9d72391cd933d4d1";
|
|
||||||
hash = "sha256-JPv0NNNUUNPNJM5LHYjcmTvilbOKB3OxI2Q6wxVbTks=";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
setup = ''
|
|
||||||
require("sttr").setup()
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
jwt-tui-nvim = {
|
|
||||||
package = pkgs.vimUtils.buildVimPlugin {
|
|
||||||
name = "jwt-tui-nvim";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "anotherhadi";
|
|
||||||
repo = "jwt-tui.nvim";
|
|
||||||
rev = "c5100cb2cdfaf333014076a1a5c4c6a778bf3983";
|
|
||||||
hash = "sha256-qnQYZuQwyWkezhuyOorM67KBtatUboubofuT9A6McJI=";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
setup = ''
|
|
||||||
require("jwt-tui").setup()
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,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";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
|
||||||
|
programs.nixvim.globals.mapleader = " ";
|
||||||
|
programs.nixvim.opts = {
|
||||||
|
updatetime = 50; # Faster completion
|
||||||
|
|
||||||
|
number = true;
|
||||||
|
relativenumber = true;
|
||||||
|
|
||||||
|
autoindent = true;
|
||||||
|
clipboard = "unnamed,unnamedplus";
|
||||||
|
|
||||||
|
expandtab = true;
|
||||||
|
tabstop = 2;
|
||||||
|
softtabstop = 2;
|
||||||
|
shiftwidth = 2;
|
||||||
|
smartindent = true;
|
||||||
|
breakindent = true;
|
||||||
|
|
||||||
|
ignorecase = true;
|
||||||
|
incsearch = true;
|
||||||
|
hlsearch = true;
|
||||||
|
smartcase = true;
|
||||||
|
wildmode = "list:longest";
|
||||||
|
completeopt = [ "menuone" "noselect" ];
|
||||||
|
signcolumn = "yes";
|
||||||
|
cursorline = false;
|
||||||
|
scrolloff = 8;
|
||||||
|
mouse = "a";
|
||||||
|
|
||||||
|
wrap = false;
|
||||||
|
|
||||||
|
swapfile = false;
|
||||||
|
undofile = true;
|
||||||
|
conceallevel = 3;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,113 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins = {
|
||||||
|
luasnip.enable = true;
|
||||||
|
cmp-buffer = { enable = true; };
|
||||||
|
cmp-emoji = { enable = true; };
|
||||||
|
cmp-nvim-lsp = { enable = true; };
|
||||||
|
cmp-path = { enable = true; };
|
||||||
|
cmp_luasnip = { enable = true; };
|
||||||
|
|
||||||
|
cmp = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
snippet.expand =
|
||||||
|
"function(args) require('luasnip').lsp_expand(args.body) end";
|
||||||
|
sources = [
|
||||||
|
{ name = "nvim_lsp"; }
|
||||||
|
{ name = "luasnip"; }
|
||||||
|
{ name = "buffer"; }
|
||||||
|
{ name = "nvim_lua"; }
|
||||||
|
{ name = "path"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
formatting = {
|
||||||
|
fields = [ "abbr" "kind" "menu" ];
|
||||||
|
format =
|
||||||
|
# lua
|
||||||
|
''
|
||||||
|
function(_, item)
|
||||||
|
local icons = {
|
||||||
|
Namespace = "",
|
||||||
|
Text = "",
|
||||||
|
Method = "",
|
||||||
|
Function = "",
|
||||||
|
Constructor = "",
|
||||||
|
Field = "",
|
||||||
|
Variable = "",
|
||||||
|
Class = "",
|
||||||
|
Interface = "",
|
||||||
|
Module = "",
|
||||||
|
Property = "",
|
||||||
|
Unit = "",
|
||||||
|
Value = "",
|
||||||
|
Enum = "",
|
||||||
|
Keyword = "",
|
||||||
|
Snippet = "",
|
||||||
|
Color = "",
|
||||||
|
File = "",
|
||||||
|
Reference = "",
|
||||||
|
Folder = "",
|
||||||
|
EnumMember = "",
|
||||||
|
Constant = "",
|
||||||
|
Struct = "",
|
||||||
|
Event = "",
|
||||||
|
Operator = "",
|
||||||
|
TypeParameter = "",
|
||||||
|
Table = "",
|
||||||
|
Object = "",
|
||||||
|
Tag = "",
|
||||||
|
Array = "[]",
|
||||||
|
Boolean = "",
|
||||||
|
Number = "",
|
||||||
|
Null = "",
|
||||||
|
String = "",
|
||||||
|
Calendar = "",
|
||||||
|
Watch = "",
|
||||||
|
Package = "",
|
||||||
|
Copilot = "",
|
||||||
|
Codeium = "",
|
||||||
|
TabNine = "",
|
||||||
|
}
|
||||||
|
|
||||||
|
local icon = icons[item.kind] or ""
|
||||||
|
item.kind = string.format("%s %s", icon, item.kind or "")
|
||||||
|
return item
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
window = {
|
||||||
|
completion = {
|
||||||
|
winhighlight =
|
||||||
|
"FloatBorder:CmpBorder,Normal:CmpPmenu,Search:PmenuSel";
|
||||||
|
scrollbar = true;
|
||||||
|
sidePadding = 0;
|
||||||
|
border = [ "╭" "─" "╮" "│" "╯" "─" "╰" "│" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
documentation = {
|
||||||
|
border = [ "╭" "─" "╮" "│" "╯" "─" "╰" "│" ];
|
||||||
|
winhighlight =
|
||||||
|
"FloatBorder:CmpBorder,Normal:CmpPmenu,Search:PmenuSel";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
mapping = {
|
||||||
|
"<C-n>" = "cmp.mapping.select_next_item()";
|
||||||
|
"<C-p>" = "cmp.mapping.select_prev_item()";
|
||||||
|
"<Down>" = "cmp.mapping.select_next_item()";
|
||||||
|
"<Up>" = "cmp.mapping.select_prev_item()";
|
||||||
|
"<C-j>" = "cmp.mapping.select_next_item()";
|
||||||
|
"<C-k>" = "cmp.mapping.select_prev_item()";
|
||||||
|
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
|
||||||
|
"<C-f>" = "cmp.mapping.scroll_docs(4)";
|
||||||
|
"<C-Space>" = "cmp.mapping.complete()";
|
||||||
|
"<C-e>" = "cmp.mapping.close()";
|
||||||
|
"<CR>" =
|
||||||
|
"cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = true })";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
wayland.windowManager.hyprland.settings.exec-once = [
|
|
||||||
"protonvpn-app --start-minimized &"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
proton-vpn
|
|
||||||
proton-pass
|
|
||||||
proton-authenticator
|
|
||||||
];
|
|
||||||
|
|
||||||
# Fix Proton Authenticator desktop entry
|
|
||||||
xdg.desktopEntries = {
|
|
||||||
"Proton Authenticator" = {
|
|
||||||
name = "Proton Authenticator";
|
|
||||||
exec = "env WEBKIT_DISABLE_COMPOSITING_MODE=1 ${pkgs.proton-authenticator}/bin/proton-authenticator";
|
|
||||||
icon = "proton-authenticator";
|
|
||||||
type = "Application";
|
|
||||||
categories = ["Utility"];
|
|
||||||
terminal = false;
|
|
||||||
};
|
|
||||||
"Proton Calendar" = {
|
|
||||||
name = "Proton Calendar";
|
|
||||||
exec = ''${config.programs.helium.package}/bin/helium "https://calendar.proton.me"'';
|
|
||||||
icon = "proton-calendar";
|
|
||||||
type = "Application";
|
|
||||||
categories = ["Utility"];
|
|
||||||
terminal = false;
|
|
||||||
};
|
|
||||||
"Proton Mail" = {
|
|
||||||
name = "Proton Mail";
|
|
||||||
exec = ''${config.programs.helium.package}/bin/helium "https://mail.proton.me/"'';
|
|
||||||
icon = "proton-mail";
|
|
||||||
type = "Application";
|
|
||||||
categories = ["Utility"];
|
|
||||||
terminal = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||