Compare commits
164 Commits
v5.0.1
..
a3ec52058e
| Author | SHA1 | Date | |
|---|---|---|---|
| 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,7 @@
|
|||||||
|
keys:
|
||||||
|
- &primary age12yvtj49pfh3fqzqflscm0ek4yzrjhr6cqhn7x89gdxnlykq0xudq5c7334
|
||||||
|
creation_rules:
|
||||||
|
- path_regex: secrets/laptop.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,144 +1,87 @@
|
|||||||
[//]: # (This file is autogenerated)
|
[//]: # (Title: Nixy)
|
||||||
<div align="center">
|
[//]: # (Description: Nixy is a NixOS configuration with home-manager, secrets and custom theming all in one place. It's a simple way to manage your system configuration and dotfiles.)
|
||||||
<img alt="nixy logo" src="./.github/assets/logo.png" width="120px" />
|
[//]: # (Author: Hadi)
|
||||||
</div>
|
[//]: # (Date: 06/17/24)
|
||||||
|
|
||||||
<br>
|
<div align="center">
|
||||||
|
<img src="https://image.nostr.build/70ebe2b5183879d8c0ffa682cd0089e030ad01909678b242ed86449517eac3a5.png" width="100px" />
|
||||||
# Nixy
|
</div>
|
||||||
|
|
||||||
<br>
|
<br><br>
|
||||||
<div align="center">
|
|
||||||
<a href="https://github.com/anotherhadi/nixy/stargazers">
|
<div align="center">
|
||||||
<img src="https://img.shields.io/github/stars/anotherhadi/nixy?color=A89AD1&labelColor=0b0b0b&style=for-the-badge&logo=starship&logoColor=A89AD1">
|
<a href="https://github.com/anotherhadi/nixy">
|
||||||
</a>
|
<img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=Version&message=2.0.0&colorA=040409&colorB=a158ff&logo=githubactions&logoColor=a158ff&"/>
|
||||||
<a href="https://github.com/anotherhadi/nixy/">
|
</a>
|
||||||
<img src="https://img.shields.io/github/repo-size/anotherhadi/nixy?color=A89AD1&labelColor=0b0b0b&style=for-the-badge&logo=github&logoColor=A89AD1">
|
<a href="https://github.com/anotherhadi/nixy/stargazers">
|
||||||
</a>
|
<img src="https://img.shields.io/github/stars/anotherhadi/nixy?color=a158ff&labelColor=040409&style=for-the-badge&logo=starship&logoColor=a158ff">
|
||||||
<a href="https://nixos.org">
|
</a>
|
||||||
<img src="https://img.shields.io/badge/NixOS-unstable-blue.svg?style=for-the-badge&labelColor=0b0b0b&logo=NixOS&logoColor=A89AD1&color=A89AD1">
|
<a href="https://github.com/anotherhadi/nixy/">
|
||||||
</a>
|
<img src="https://img.shields.io/github/repo-size/anotherhadi/nixy?color=a158ff&labelColor=040409&style=for-the-badge&logo=github&logoColor=a158ff">
|
||||||
<a href="https://github.com/anotherhadi/nixy/blob/main/LICENSE">
|
</a>
|
||||||
<img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=License&message=MIT&colorA=0b0b0b&colorB=A89AD1&logo=unlicense&logoColor=A89AD1"/>
|
<a href="https://nixos.org">
|
||||||
</a>
|
<img src="https://img.shields.io/badge/NixOS-unstable-blue.svg?style=for-the-badge&labelColor=040409&logo=NixOS&logoColor=a158ff&color=a158ff">
|
||||||
</div>
|
</a>
|
||||||
<br>
|
<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=040409&colorB=a158ff&logo=unlicense&logoColor=a158ff&"/>
|
||||||
**Nixy simplifies and unifies** the Hyprland ecosystem with a modular, easily
|
</a>
|
||||||
customizable setup. It provides a structured way to manage your system
|
</div>
|
||||||
configuration and dotfiles with minimal effort. It includes _home-manager_,
|
|
||||||
_secrets_, and _custom theming_ all in one place.
|
<br><br>
|
||||||
|
|
||||||
**Features:**
|
<div align="center">
|
||||||
|
<img src="https://image.nostr.build/aaf8cf0f3b9784c817f8cf328f19222db2e1886dfb89ae97de83ffa101d437b4.png" width="600px" />
|
||||||
- 💻 Hyprland & Caelestia: Preconfigured Hyprland ecosystem with Caelestia-shell (Ty to both projects!)
|
</div>
|
||||||
- 🎨 Consistent Theming: Base16 & Stylix-powered themes
|
|
||||||
- ⌨️ Vim-like Everywhere: Unified keybindings (Hyprland, nvim, vimium, etc.)
|
# Nixy
|
||||||
|
|
||||||
## Table of Content
|
**Nixy** is a NixOS configuration with home-manager, secrets and custom theming all in one place.
|
||||||
|
It's a simple way to manage your system configuration and dotfiles.
|
||||||
- [Table of Content](#table-of-content)
|
|
||||||
- [Screenshots](#screenshots)
|
## Table of Content
|
||||||
- [Architecture](#architecture)
|
|
||||||
- [🏠 /home (User-level configuration)](#-home-user-level-configuration)
|
- [Nixy](#nixy)
|
||||||
- [🐧 /nixos](#-nixos)
|
- [Table of Content](#table-of-content)
|
||||||
- [🎨 /themes](#-themes)
|
- [Gallery](#gallery)
|
||||||
- [💻 /hosts](#-hosts)
|
- [Architecture](#architecture)
|
||||||
- [🖥️ /server-modules](#-server-modules)
|
- [Installation](#installation)
|
||||||
- [Installation](#installation)
|
- [Documentation](#documentation)
|
||||||
- [Documentation](#documentation)
|
|
||||||
|
## Gallery
|
||||||
## Screenshots
|
|
||||||
|

|
||||||

|

|
||||||

|

|
||||||

|
|
||||||
|
## Architecture
|
||||||
## Architecture
|
|
||||||
|
- 🏠 `home` are the dotfiles and configuration files for the user
|
||||||
### 🏠 /home (User-level configuration)
|
- 💻 `hosts` are the system configuration files
|
||||||
|
- `laptop` is mine
|
||||||
Contains **dotfiles and settings** that apply to your user environment.
|
- `guest` is a template that you can copy and modify for your own system
|
||||||
|
- `themes` contains all the themes available (see [THEMES.md](docs/THEMES.md))
|
||||||
**Subfolders:**
|
- `shared` are some nix files that you can import (nvidia, prime, fonts, ...)
|
||||||
|
- 🤫 `secrets` are the secrets files encrypted with sops
|
||||||
- `programs` is a collection of apps configured with home-manager
|
|
||||||
- `system` is some "desktop environment" configuration
|
## Installation
|
||||||
|
|
||||||
### 🐧 /nixos
|
```sh
|
||||||
|
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
||||||
Those are the system-level configurations. (audio, bluetooth, gpu, bootloader,
|
```
|
||||||
...)
|
|
||||||
|
- Change the username in the flake.nix file
|
||||||
### 🎨 /themes
|
- import the guest configuration instead of the `hosts/laptop` one
|
||||||
|
- import your hardware-configuration.nix into the `hosts/guest` folder
|
||||||
This folder contains all system themes. Mainly
|
|
||||||
[stylix](https://stylix.danth.me/) configurations. Check out the available
|
```sh
|
||||||
themes and learn how to create your own in [THEMES.md](docs/THEMES.md)
|
sudo nixos-rebuild switch --flake ~/.config/nixos#nixy
|
||||||
|
```
|
||||||
### 💻 /hosts
|
|
||||||
|
## Documentation
|
||||||
This directory contains host-specific configurations. Each host includes:
|
|
||||||
|
- [THEMES.md](docs/THEMES.md): How themes work and how to create your own
|
||||||
- `configuration.nix` for system-wide settings
|
- [APPS.md](docs/APPS.md): Which apps are installed
|
||||||
- `home.nix` for user-level configuration
|
- [SCRIPTS.md](docs/SCRIPTS.md): Scripts that are available
|
||||||
- `variables.nix` for global variables
|
- [TODO.md](docs/TODO.md): What's next (feel free to contribute)
|
||||||
- `secrets/` for sensitive data
|
- [CONTRIBUTING.md](docs/CONTRIBUTING.md): How to contribute
|
||||||
|
- [LICENSE](LICENSE): MIT License
|
||||||
### 🖥️ /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
|
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# APPS
|
||||||
|
|
||||||
|
*non-exhaustive list*
|
||||||
|
|
||||||
|
| Category | Software |
|
||||||
|
|----------------|---------------|
|
||||||
|
| WM | Hyprland |
|
||||||
|
| | hyprlock |
|
||||||
|
| | hyprpaper |
|
||||||
|
| | hypridle |
|
||||||
|
| | wlogout |
|
||||||
|
| Bar | waybar |
|
||||||
|
| Terminal | kitty |
|
||||||
|
| Shell | zsh |
|
||||||
|
| | tmux |
|
||||||
|
| | starship |
|
||||||
|
| | bat |
|
||||||
|
| | eza |
|
||||||
|
| | zoxide |
|
||||||
|
| | fzf |
|
||||||
|
| Editor | neovim(nixvim)|
|
||||||
|
| File manager | lf |
|
||||||
|
| | thunar |
|
||||||
|
| Browser | qutebrowser |
|
||||||
|
| Music | spicetify |
|
||||||
|
| Notifications | dunst |
|
||||||
|
| Launcher | wofi |
|
||||||
|
| DM | tuigreet |
|
||||||
|
| Secrets | sops-nix |
|
||||||
|
| Misc | lazygit |
|
||||||
|
| | neofetch |
|
||||||
|
| | cava |
|
||||||
|
| | ... |
|
||||||
@@ -1,16 +1,10 @@
|
|||||||
# 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 `docs/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, ...).
|
||||||
- Create a Pull Request against the main branch of Nixy.
|
- Create a Pull Request against the main branch of Nixy.
|
||||||
|
|
||||||
> [!TIP]
|
|
||||||
> To update the README, change the `./.github/assets/README_template.md`
|
|
||||||
|
|
||||||
> [!IMPORTANT]
|
|
||||||
> Don't push your host's folder
|
|
||||||
|
|||||||
@@ -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.
|
|
||||||
@@ -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,51 @@
|
|||||||
|
# Scripts
|
||||||
|
|
||||||
|
## Nix/NixOs shortcuts
|
||||||
|
|
||||||
|
- `nixy-edit`
|
||||||
|
- `nixy-rebuild`
|
||||||
|
- `nixy-update`
|
||||||
|
- `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-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 shortcut 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,31 @@
|
|||||||
# 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 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 at the top of your host's variables file.
|
||||||
|
|
||||||
## Create your theme
|
*To apply the theme to duckduckgo, follow the instructions in `$HOME/.duckduckgo-colorscheme.js`.*
|
||||||
|
|
||||||
Create a copy of one of the existing themes and change the variables.
|
## Create your own theme
|
||||||
Wallpapers are loaded from the [hadi's awesome-wallpapers](https://github.com/anotherhadi/awesome-wallpapers) repo.
|
|
||||||
|
Create a copy of one of the existing theme and change the variables.
|
||||||
|
Wallpapers are loaded from the `home/wallpapers` folder.
|
||||||
|
|
||||||
## Gallery
|
## Gallery
|
||||||
|
|
||||||
### Rose-pine
|
### Nixy
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

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

|
||||||
|

|
||||||
|

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

|
||||||
|

|
||||||
|

|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# Todolist
|
||||||
|
|
||||||
|
- [ ] Installation script
|
||||||
|
- [ ] Themes
|
||||||
|
- [ ] MacOS theme
|
||||||
|
- [ ] Make hyprcursor work
|
||||||
|
- [ ] Nixvim
|
||||||
|
- [ ] Telescope shortcut for file content
|
||||||
|
- [ ] Markdown snippets
|
||||||
|
- [ ] Make whichkey better
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Compress png files in ./docs/src
|
||||||
|
|
||||||
|
[[ -d "./docs" ]] || (echo "Folder ./docs not found" && exit 1)
|
||||||
|
|
||||||
|
for file in ./docs/src/*/*.png; do
|
||||||
|
optipng "$file"
|
||||||
|
done
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# This script is used to copy my own configuration to the `./hosts/guest` one, and changing some settings
|
||||||
|
|
||||||
|
[[ -d "./hosts" ]] || (
|
||||||
|
echo "Folder ./hosts not found"
|
||||||
|
exit 1
|
||||||
|
)
|
||||||
|
|
||||||
|
LAPTOP_CONFIG="./hosts/laptop"
|
||||||
|
GUEST_CONFIG="./hosts/guest"
|
||||||
|
|
||||||
|
cp "$LAPTOP_CONFIG/configuration.nix" "$GUEST_CONFIG/configuration.nix"
|
||||||
|
cp "$LAPTOP_CONFIG/variables.nix" "$GUEST_CONFIG/variables.nix"
|
||||||
|
|
||||||
|
# Remove the NVIDIA driver import
|
||||||
|
config=$(cat "$LAPTOP_CONFIG/configuration.nix")
|
||||||
|
config=$(echo "$config" | sed 's/..\/shared\/nvidia/# ..\/shared\/nvidia/')
|
||||||
|
config=$(echo "$config" | sed 's/..\/shared\/prime/# ..\/shared\/prime/')
|
||||||
|
echo "$config" >"$GUEST_CONFIG/configuration.nix"
|
||||||
|
|
||||||
|
variables=$(cat "$LAPTOP_CONFIG/variables.nix")
|
||||||
|
variables=$(echo "$variables" | sed 's/112569860+anotherhadi@users.noreply.github.com/your_email/')
|
||||||
|
variables=$(echo "$variables" | sed 's/hadi/your_username/')
|
||||||
|
variables=$(echo "$variables" | sed 's/Hadi/your_username/')
|
||||||
|
variables=$(echo "$variables" | sed 's/sops = true/sops = false/')
|
||||||
|
variables=$(echo "$variables" | sed 's/nextcloud = true/nextcloud = false/')
|
||||||
|
variables=$(echo "$variables" | sed 's/obsidian = true/obsidian = false/')
|
||||||
|
echo "$variables" >"$GUEST_CONFIG/variables.nix"
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
#!/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=$(~/go/bin/md-table-of-contents ./docs/src/README_template.md)
|
||||||
|
readme_content=$(cat "./docs/src/README_template.md")
|
||||||
|
|
||||||
|
echo "${header//\{date\}/$(date '+%D')}" >"$README_FILE"
|
||||||
|
echo "${readme_content//\{md_table_of_content\}/$table_of_content}" >>"$README_FILE"
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# installation script...
|
||||||
|
|
||||||
|
# check if on nixos
|
||||||
|
# check if ./hosts exist
|
||||||
|
# check if gum is installed (dependencie)
|
||||||
|
# save path
|
||||||
|
# remove .git
|
||||||
|
# git init and initial commit
|
||||||
|
# create custom configuration
|
||||||
|
# save it to ./hosts
|
||||||
@@ -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,48 @@
|
|||||||
|
|
||||||
|
# Nixy
|
||||||
|
|
||||||
|
**Nixy** is a NixOS configuration with home-manager, secrets and custom theming all in one place.
|
||||||
|
It's a simple way to manage your system configuration and dotfiles.
|
||||||
|
|
||||||
|
## Table of Content
|
||||||
|
|
||||||
|
{md_table_of_content}
|
||||||
|
|
||||||
|
## Gallery
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
- 🏠 `home` are the dotfiles and configuration files for the user
|
||||||
|
- 💻 `hosts` are the system configuration files
|
||||||
|
- `laptop` is mine
|
||||||
|
- `guest` is a template that you can copy and modify for your own system
|
||||||
|
- `themes` contains all the themes available (see [THEMES.md](docs/THEMES.md))
|
||||||
|
- `shared` are some nix files that you can import (nvidia, prime, fonts, ...)
|
||||||
|
- 🤫 `secrets` are the secrets files encrypted with sops
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
||||||
|
```
|
||||||
|
|
||||||
|
- Change the username in the flake.nix file
|
||||||
|
- import the guest configuration instead of the `hosts/laptop` one
|
||||||
|
- import your hardware-configuration.nix into the `hosts/guest` folder
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo nixos-rebuild switch --flake ~/.config/nixos#nixy
|
||||||
|
```
|
||||||
|
|
||||||
|
## 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
|
||||||
|
- [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,34 @@
|
|||||||
|
[//]: # (Title: Nixy)
|
||||||
|
[//]: # (Description: Nixy is a NixOS configuration with home-manager, secrets and custom theming all in one place. It's a simple way to manage your system configuration and dotfiles.)
|
||||||
|
[//]: # (Author: Hadi)
|
||||||
|
[//]: # (Date: {date})
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<img src="https://image.nostr.build/70ebe2b5183879d8c0ffa682cd0089e030ad01909678b242ed86449517eac3a5.png" width="100px" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br><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=2.0.0&colorA=040409&colorB=a158ff&logo=githubactions&logoColor=a158ff&"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/stargazers">
|
||||||
|
<img src="https://img.shields.io/github/stars/anotherhadi/nixy?color=a158ff&labelColor=040409&style=for-the-badge&logo=starship&logoColor=a158ff">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/">
|
||||||
|
<img src="https://img.shields.io/github/repo-size/anotherhadi/nixy?color=a158ff&labelColor=040409&style=for-the-badge&logo=github&logoColor=a158ff">
|
||||||
|
</a>
|
||||||
|
<a href="https://nixos.org">
|
||||||
|
<img src="https://img.shields.io/badge/NixOS-unstable-blue.svg?style=for-the-badge&labelColor=040409&logo=NixOS&logoColor=a158ff&color=a158ff">
|
||||||
|
</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=040409&colorB=a158ff&logo=unlicense&logoColor=a158ff&"/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br><br>
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<img src="https://image.nostr.build/aaf8cf0f3b9784c817f8cf328f19222db2e1886dfb89ae97de83ffa101d437b4.png" width="600px" />
|
||||||
|
</div>
|
||||||
@@ -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,53 @@
|
|||||||
{
|
{
|
||||||
# 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";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
caelestia-cli = {
|
apple-fonts.url = "github:Lyndeno/apple-fonts.nix";
|
||||||
url = "github:caelestia-dots/cli";
|
spicetify-nix.url = "github:the-argus/spicetify-nix";
|
||||||
|
sops-nix = {
|
||||||
|
url = "github:Mic92/sops-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
spicetify-nix = {
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
url = "github:Gerg-L/spicetify-nix";
|
nurpkgs.url = "github:nix-community/NUR";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
};
|
|
||||||
# Server
|
|
||||||
# FIXME: Deleted repo for now
|
|
||||||
# eleakxir.url = "github:anotherhadi/eleakxir";
|
|
||||||
nixarr.url = "github:rasmus-kirk/nixarr";
|
|
||||||
default-creds.url = "github:anotherhadi/default-creds";
|
|
||||||
blog.url = "github:anotherhadi/blog";
|
|
||||||
awesome-wallpapers.url = "github:anotherhadi/awesome-wallpapers";
|
|
||||||
iknowyou.url = "github:anotherhadi/iknowyou";
|
|
||||||
spilltea.url = "github:anotherhadi/spilltea";
|
|
||||||
helium-browser.url = "github:oxcl/nix-flake-helium-browser";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ {
|
outputs = inputs@{ nixpkgs, nur, ... }: {
|
||||||
nixpkgs,
|
nixosConfigurations = {
|
||||||
nixpkgs-stable,
|
|
||||||
...
|
nixy = nixpkgs.lib.nixosSystem {
|
||||||
}: let
|
system = "x86_64-linux";
|
||||||
system = "x86_64-linux";
|
modules = [
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
./hosts/laptop/configuration.nix
|
||||||
args = {
|
inputs.nixos-hardware.nixosModules.omen-16-n0005ne
|
||||||
inherit
|
inputs.home-manager.nixosModules.home-manager
|
||||||
inputs
|
{
|
||||||
nixpkgs
|
nixpkgs.overlays = [ nur.overlay ];
|
||||||
system
|
_module.args = { inherit inputs; };
|
||||||
pkgs
|
home-manager = {
|
||||||
;
|
useGlobalPkgs = true;
|
||||||
pkgs-stable = nixpkgs-stable.legacyPackages.${system};
|
useUserPackages = true;
|
||||||
|
users."hadi" = import ./home/laptop.nix; # CHANGE ME
|
||||||
|
extraSpecialArgs = { inherit inputs; };
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
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 = {
|
|
||||||
h-laptop = import ./hosts/laptop/flake.nix args;
|
|
||||||
h-work = import ./hosts/work/flake.nix args;
|
|
||||||
jack = import ./hosts/server/flake.nix args;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,90 @@
|
|||||||
|
{ pkgs, config, ... }: {
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
../hosts/laptop/variables.nix
|
||||||
|
|
||||||
|
# Programs
|
||||||
|
./programs/btop
|
||||||
|
./programs/cava
|
||||||
|
./programs/kitty
|
||||||
|
./programs/nvim
|
||||||
|
./programs/qutebrowser
|
||||||
|
./programs/spicetify
|
||||||
|
|
||||||
|
# Scripts
|
||||||
|
./scripts # All scripts
|
||||||
|
|
||||||
|
# System
|
||||||
|
./system/dunst
|
||||||
|
./system/git
|
||||||
|
./system/gtk
|
||||||
|
./system/hyprland
|
||||||
|
./system/shell
|
||||||
|
./system/sops/laptop.nix
|
||||||
|
./system/waybar
|
||||||
|
./system/wlogout
|
||||||
|
./system/wofi
|
||||||
|
];
|
||||||
|
|
||||||
|
home = {
|
||||||
|
inherit (config.var) username;
|
||||||
|
inherit (config.var) homeDirectory;
|
||||||
|
|
||||||
|
packages = with pkgs; [
|
||||||
|
swappy
|
||||||
|
imv
|
||||||
|
discord
|
||||||
|
obsidian
|
||||||
|
xfce.thunar
|
||||||
|
bitwarden
|
||||||
|
vlc
|
||||||
|
|
||||||
|
# Dev
|
||||||
|
go
|
||||||
|
cargo
|
||||||
|
nodejs
|
||||||
|
python3
|
||||||
|
jq
|
||||||
|
|
||||||
|
# Utils
|
||||||
|
fd
|
||||||
|
bc
|
||||||
|
gcc
|
||||||
|
blueman
|
||||||
|
zip
|
||||||
|
unzip
|
||||||
|
xdg_utils
|
||||||
|
wget
|
||||||
|
curl
|
||||||
|
wf-recorder
|
||||||
|
glow
|
||||||
|
nwg-displays
|
||||||
|
wireguard-tools
|
||||||
|
bitwarden-cli
|
||||||
|
optipng
|
||||||
|
|
||||||
|
# Just cool
|
||||||
|
peaclock
|
||||||
|
cbonsai
|
||||||
|
pipes
|
||||||
|
cmatrix
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
vscode
|
||||||
|
tor-browser
|
||||||
|
firefox
|
||||||
|
neovide
|
||||||
|
];
|
||||||
|
|
||||||
|
# Import wallpapers into $HOME/wallpapers
|
||||||
|
file."wallpapers" = {
|
||||||
|
recursive = true;
|
||||||
|
source = ./wallpapers;
|
||||||
|
};
|
||||||
|
|
||||||
|
stateVersion = "24.05";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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}'";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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,53 +0,0 @@
|
|||||||
# Git configuration
|
|
||||||
{config, ...}: let
|
|
||||||
username = config.var.git.username;
|
|
||||||
email = config.var.git.email;
|
|
||||||
in {
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
ignores = [
|
|
||||||
".cache/"
|
|
||||||
".DS_Store"
|
|
||||||
".idea/"
|
|
||||||
"*.swp"
|
|
||||||
"*.elc"
|
|
||||||
"auto-save-list"
|
|
||||||
".direnv/"
|
|
||||||
"node_modules"
|
|
||||||
"result"
|
|
||||||
"result-*"
|
|
||||||
];
|
|
||||||
settings = {
|
|
||||||
user.name = username;
|
|
||||||
user.email = email;
|
|
||||||
init.defaultBranch = "main";
|
|
||||||
pull.rebase = "false";
|
|
||||||
push.autoSetupRemote = true;
|
|
||||||
color.ui = "1";
|
|
||||||
alias = {
|
|
||||||
essa = "push --force";
|
|
||||||
co = "checkout";
|
|
||||||
fuck = "commit --amend -m";
|
|
||||||
c = "commit -m";
|
|
||||||
ca = "commit -am";
|
|
||||||
forgor = "commit --amend --no-edit";
|
|
||||||
graph = "log --all --decorate --graph --oneline";
|
|
||||||
oops = "checkout --";
|
|
||||||
l = "log";
|
|
||||||
r = "rebase";
|
|
||||||
s = "status --short";
|
|
||||||
ss = "status";
|
|
||||||
d = "diff";
|
|
||||||
ps = "!git push origin $(git rev-parse --abbrev-ref HEAD)";
|
|
||||||
pl = "!git pull origin $(git rev-parse --abbrev-ref HEAD)";
|
|
||||||
af = "!git add $(git ls-files -m -o --exclude-standard | sk -m)";
|
|
||||||
st = "status";
|
|
||||||
br = "branch";
|
|
||||||
df = "!git hist | peco | awk '{print $2}' | xargs -I {} git diff {}^ {}";
|
|
||||||
hist = ''log --pretty=format:"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)" --graph --date=relative --decorate --all'';
|
|
||||||
llog = ''log --graph --name-status --pretty=format:"%C(red)%h %C(reset)(%cd) %C(green)%an %Creset%s %C(yellow)%d%Creset" --date=relative'';
|
|
||||||
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; hx `f`";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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,9 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim = {
|
||||||
|
enable = true;
|
||||||
|
colorschemes.catppuccin = {
|
||||||
|
enable = true;
|
||||||
|
settings = { transparent_background = true; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
imports = [
|
||||||
|
inputs.nixvim.homeManagerModules.nixvim
|
||||||
|
./plugins/auto-pairs.nix
|
||||||
|
./plugins/bufferline.nix
|
||||||
|
./plugins/lazygit.nix
|
||||||
|
./plugins/telescope.nix
|
||||||
|
./plugins/nvim-tree.nix
|
||||||
|
./plugins/lightline.nix
|
||||||
|
./plugins/git.nix
|
||||||
|
./plugins/cmp.nix
|
||||||
|
./plugins/none-ls.nix
|
||||||
|
./plugins/wilder.nix
|
||||||
|
./plugins/lsp.nix
|
||||||
|
./plugins/treesitter.nix
|
||||||
|
./plugins/toggleterm.nix
|
||||||
|
./plugins/copilot.nix
|
||||||
|
./plugins/whichkey.nix
|
||||||
|
./plugins/alpha.nix
|
||||||
|
./plugins/keymaps.nix
|
||||||
|
./plugins/comment.nix
|
||||||
|
./plugins/oil.nix
|
||||||
|
./plugins/trouble.nix
|
||||||
|
./plugins/tmux-navigator.nix
|
||||||
|
./plugins/noice.nix
|
||||||
|
./plugins/obsidian.nix
|
||||||
|
./options.nix
|
||||||
|
./colorscheme.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -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 = true;
|
||||||
|
scrolloff = 8;
|
||||||
|
mouse = "a";
|
||||||
|
|
||||||
|
wrap = false;
|
||||||
|
|
||||||
|
swapfile = false;
|
||||||
|
undofile = true;
|
||||||
|
conceallevel = 2;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,133 @@
|
|||||||
|
{ 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[[e ${config.var.configDirectory}]] 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 @@
|
|||||||
|
{ programs.nixvim.plugins.nvim-autopairs = { enable = true; }; }
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{ programs.nixvim.plugins.bufferline = { enable = true; }; }
|
||||||
@@ -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 @@
|
|||||||
|
{ programs.nixvim.plugins.comment = { enable = true; }; }
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.copilot-vim = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.gitsigns = {
|
||||||
|
enable = true;
|
||||||
|
settings = { current_line_blame = false; };
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.keymaps = [
|
||||||
|
{
|
||||||
|
key = "<leader>e";
|
||||||
|
action = "<CMD>Neotree toggle<CR>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<space>fm";
|
||||||
|
action = "<CMD>lua vim.lsp.buf.format()<CR>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
key = "<leader>ot";
|
||||||
|
action = "<cmd>lua require('obsidian').util.toggle_checkbox()<cr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
key = "<leader>oo";
|
||||||
|
action = "<cmd>ObsidianQuickSwitch<cr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
key = "<leader>on";
|
||||||
|
action = "<cmd>ObsidianNew<cr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
key = "<leader>of";
|
||||||
|
action = "<cmd>ObsidianSearch<cr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
key = "<leader>oi";
|
||||||
|
action = "<cmd>ObsidianPasteImg<cr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
key = "<leader>E";
|
||||||
|
action = "<cmd>Oil<cr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
key = "<leader>t";
|
||||||
|
action = "<cmd>TroubleToggle<cr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
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>";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Terminal Mappings
|
||||||
|
{
|
||||||
|
mode = "t";
|
||||||
|
key = "<esc>";
|
||||||
|
action = "<C-\\><C-n>";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{ programs.nixvim.plugins.lazygit = { enable = true; }; }
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{ programs.nixvim.plugins.lualine = { enable = true; }; }
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
keymaps.lspBuf = {
|
||||||
|
"gd" = "definition";
|
||||||
|
"gD" = "references";
|
||||||
|
"gt" = "type_definition";
|
||||||
|
"gi" = "implementation";
|
||||||
|
"K" = "hover";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{ programs.nixvim.plugins.noice = { enable = true; }; }
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.none-ls = {
|
||||||
|
enable = true;
|
||||||
|
sources = {
|
||||||
|
diagnostics = {
|
||||||
|
golangci_lint.enable = true;
|
||||||
|
statix.enable = true;
|
||||||
|
};
|
||||||
|
formatting = {
|
||||||
|
gofmt.enable = true;
|
||||||
|
goimports.enable = true;
|
||||||
|
nixfmt.enable = true;
|
||||||
|
markdownlint.enable = true;
|
||||||
|
tidy.enable = true;
|
||||||
|
shellharden.enable = true;
|
||||||
|
shfmt.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.neo-tree = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
programs.nixvim.plugins.obsidian = {
|
||||||
|
enable = config.var.obsidian;
|
||||||
|
settings = {
|
||||||
|
dir = "~/nextcloud/Notes";
|
||||||
|
disable_frontmatter = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.oil = {
|
||||||
|
enable = true;
|
||||||
|
settings = { default_file_explorer = false; };
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.telescope = {
|
||||||
|
enable = true;
|
||||||
|
keymaps = {
|
||||||
|
"<leader>fg" = "live_grep";
|
||||||
|
#"<C-p>" = {
|
||||||
|
# action = "git_files";
|
||||||
|
# desc = "Telescope Git Files";
|
||||||
|
#};
|
||||||
|
};
|
||||||
|
extensions.fzf-native = { enable = true; };
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{ programs.nixvim.plugins.tmux-navigator = { enable = true; }; }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.toggleterm = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
open_mapping = "[[<c-t>]]";
|
||||||
|
direction = "horizontal";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins = {
|
||||||
|
treesitter = {
|
||||||
|
enable = true;
|
||||||
|
nixGrammars = true;
|
||||||
|
indent = true;
|
||||||
|
};
|
||||||
|
treesitter-context.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{ programs.nixvim.plugins.trouble = { enable = true; }; }
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.which-key.enable=true;
|
||||||
|
}
|
||||||