Compare commits
164 Commits
main
..
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']
|
|
||||||
|
Before Width: | Height: | Size: 412 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 1.9 MiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 160 KiB |
@@ -1,36 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
import re
|
|
||||||
import subprocess
|
|
||||||
import sys
|
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
PATTERN = re.compile(r"<!-- exec: (.+?) -->.*?<!-- endexec -->", re.DOTALL)
|
|
||||||
|
|
||||||
|
|
||||||
def replace(match):
|
|
||||||
cmd = match.group(1).strip()
|
|
||||||
result = subprocess.run(cmd, shell=True, capture_output=True, text=True)
|
|
||||||
output = result.stdout
|
|
||||||
if result.returncode != 0:
|
|
||||||
print(
|
|
||||||
f"[inject-exec] command failed ({result.returncode}): {cmd}",
|
|
||||||
file=sys.stderr,
|
|
||||||
)
|
|
||||||
print(result.stderr, file=sys.stderr)
|
|
||||||
sys.exit(1)
|
|
||||||
output = re.sub(r"<!-- exec: .+? -->\n?|<!-- endexec -->\n?", "", output)
|
|
||||||
if output and not output.endswith("\n"):
|
|
||||||
output += "\n"
|
|
||||||
return f"<!-- exec: {cmd} -->\n{output}<!-- endexec -->"
|
|
||||||
|
|
||||||
|
|
||||||
def process(path):
|
|
||||||
content = Path(path).read_text()
|
|
||||||
new_content = PATTERN.sub(replace, content)
|
|
||||||
if new_content != content:
|
|
||||||
Path(path).write_text(new_content)
|
|
||||||
print(f"[inject-exec] updated {path}")
|
|
||||||
|
|
||||||
|
|
||||||
for p in sys.argv[1:]:
|
|
||||||
process(p)
|
|
||||||
@@ -1,7 +1 @@
|
|||||||
.claude/
|
todolist.md
|
||||||
old/
|
|
||||||
docs/superpowers/
|
|
||||||
.superpowers/
|
|
||||||
result/
|
|
||||||
.pre-commit-config.yaml
|
|
||||||
.direnv/
|
|
||||||
|
|||||||
@@ -1,17 +1,7 @@
|
|||||||
keys:
|
keys:
|
||||||
- &primary age12yvtj49pfh3fqzqflscm0ek4yzrjhr6cqhn7x89gdxnlykq0xudq5c7334
|
- &primary age12yvtj49pfh3fqzqflscm0ek4yzrjhr6cqhn7x89gdxnlykq0xudq5c7334
|
||||||
- &work age1c8pawdsxptfslgrz2c56s39mrtnjzc5mm3hfzgr2wdwu2v6vfsdsupjsq6
|
|
||||||
creation_rules:
|
creation_rules:
|
||||||
- path_regex: hosts/laptop/secrets/secrets.yaml$
|
- path_regex: secrets/laptop.yaml$
|
||||||
key_groups:
|
key_groups:
|
||||||
- age:
|
- age:
|
||||||
- *primary
|
- *primary
|
||||||
- path_regex: hosts/server/secrets/secrets.yaml$
|
|
||||||
key_groups:
|
|
||||||
- age:
|
|
||||||
- *primary
|
|
||||||
- path_regex: hosts/work/secrets/secrets.yaml$
|
|
||||||
key_groups:
|
|
||||||
- age:
|
|
||||||
- *work
|
|
||||||
- *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,147 +1,87 @@
|
|||||||
<div align="center">
|
[//]: # (Title: Nixy)
|
||||||
<img alt="nixy logo" src="./.github/assets/logo.png" width="120px" />
|
[//]: # (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.)
|
||||||
</div>
|
[//]: # (Author: Hadi)
|
||||||
|
[//]: # (Date: 06/17/24)
|
||||||
<br>
|
|
||||||
|
<div align="center">
|
||||||
# Nixy
|
<img src="https://image.nostr.build/70ebe2b5183879d8c0ffa682cd0089e030ad01909678b242ed86449517eac3a5.png" width="100px" />
|
||||||
|
</div>
|
||||||
<br>
|
|
||||||
<div align="center">
|
<br><br>
|
||||||
<a href="https://github.com/anotherhadi/nixy/stargazers">
|
|
||||||
<img src="https://img.shields.io/github/stars/anotherhadi/nixy?color=A89AD1&labelColor=0b0b0b&style=for-the-badge&logo=starship&logoColor=A89AD1">
|
<div align="center">
|
||||||
</a>
|
<a href="https://github.com/anotherhadi/nixy">
|
||||||
<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&"/>
|
||||||
<img src="https://img.shields.io/github/repo-size/anotherhadi/nixy?color=A89AD1&labelColor=0b0b0b&style=for-the-badge&logo=github&logoColor=A89AD1">
|
</a>
|
||||||
</a>
|
<a href="https://github.com/anotherhadi/nixy/stargazers">
|
||||||
<a href="https://nixos.org">
|
<img src="https://img.shields.io/github/stars/anotherhadi/nixy?color=a158ff&labelColor=040409&style=for-the-badge&logo=starship&logoColor=a158ff">
|
||||||
<img src="https://img.shields.io/badge/NixOS-unstable-blue.svg?style=for-the-badge&labelColor=0b0b0b&logo=NixOS&logoColor=A89AD1&color=A89AD1">
|
</a>
|
||||||
</a>
|
<a href="https://github.com/anotherhadi/nixy/">
|
||||||
<a href="https://github.com/anotherhadi/nixy/blob/main/LICENSE">
|
<img src="https://img.shields.io/github/repo-size/anotherhadi/nixy?color=a158ff&labelColor=040409&style=for-the-badge&logo=github&logoColor=a158ff">
|
||||||
<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>
|
||||||
</a>
|
<a href="https://nixos.org">
|
||||||
</div>
|
<img src="https://img.shields.io/badge/NixOS-unstable-blue.svg?style=for-the-badge&labelColor=040409&logo=NixOS&logoColor=a158ff&color=a158ff">
|
||||||
<br>
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/blob/main/LICENSE">
|
||||||
**Nixy simplifies and unifies** the Hyprland ecosystem with a modular, minimalist & easily
|
<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&"/>
|
||||||
customizable setup. It provides a structured way to manage your system
|
</a>
|
||||||
configuration and dotfiles with minimal effort. It includes _home-manager_,
|
</div>
|
||||||
_secrets_, and _custom theming_ all in one place.
|
|
||||||
|
<br><br>
|
||||||
**Features:**
|
|
||||||
|
<div align="center">
|
||||||
- 💻 Hyprland & TUIs: Preconfigured Hyprland ecosystem with a lot of cool TUIs
|
<img src="https://image.nostr.build/aaf8cf0f3b9784c817f8cf328f19222db2e1886dfb89ae97de83ffa101d437b4.png" width="600px" />
|
||||||
- 🎨 Consistent Theming: Base16 & Stylix-powered themes
|
</div>
|
||||||
- ⌨️ Vim-like Everywhere: Unified keybindings (Hyprland, nvim, vimium, etc.)
|
|
||||||
- 🔒 Hardened by Default: LUKS encryption, sops-nix secrets, impermanence and more
|
# 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.
|
||||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
||||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
## Table of Content
|
||||||
|
|
||||||
- [Screenshots](#screenshots)
|
- [Nixy](#nixy)
|
||||||
- [Architecture](#architecture)
|
- [Table of Content](#table-of-content)
|
||||||
- [🏠 /home (User-level configuration)](#-home-user-level-configuration)
|
- [Gallery](#gallery)
|
||||||
- [🐧 /nixos](#-nixos)
|
- [Architecture](#architecture)
|
||||||
- [🎨 /themes](#-themes)
|
- [Installation](#installation)
|
||||||
- [💻 /hosts](#-hosts)
|
- [Documentation](#documentation)
|
||||||
- [🖥️ /server-modules](#-server-modules)
|
|
||||||
- [Installation](#installation)
|
## Gallery
|
||||||
- [Documentation](#documentation)
|
|
||||||
|

|
||||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|

|
||||||
|

|
||||||
## Screenshots
|
|
||||||
|
## Architecture
|
||||||

|
|
||||||

|
- 🏠 `home` are the dotfiles and configuration files for the user
|
||||||

|
- 💻 `hosts` are the system configuration files
|
||||||
|
- `laptop` is mine
|
||||||
## Architecture
|
- `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))
|
||||||
### 🏠 /home (User-level configuration)
|
- `shared` are some nix files that you can import (nvidia, prime, fonts, ...)
|
||||||
|
- 🤫 `secrets` are the secrets files encrypted with sops
|
||||||
Contains **dotfiles and settings** that apply to your user environment.
|
|
||||||
|
## Installation
|
||||||
**Subfolders:**
|
|
||||||
|
```sh
|
||||||
- `programs` is a collection of apps configured with home-manager
|
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
||||||
- `system` is some "desktop environment" configuration
|
```
|
||||||
|
|
||||||
### 🐧 /nixos
|
- Change the username in the flake.nix file
|
||||||
|
- import the guest configuration instead of the `hosts/laptop` one
|
||||||
Those are the system-level configurations. (audio, bluetooth, gpu, bootloader,
|
- import your hardware-configuration.nix into the `hosts/guest` folder
|
||||||
...)
|
|
||||||
|
```sh
|
||||||
### 🎨 /themes
|
sudo nixos-rebuild switch --flake ~/.config/nixos#nixy
|
||||||
|
```
|
||||||
This folder contains all system themes. Mainly
|
|
||||||
[stylix](https://stylix.danth.me/) configurations. Check out the available
|
## Documentation
|
||||||
themes and learn how to create your own in [THEMES.md](docs/THEMES.md)
|
|
||||||
|
- [THEMES.md](docs/THEMES.md): How themes work and how to create your own
|
||||||
### 💻 /hosts
|
- [APPS.md](docs/APPS.md): Which apps are installed
|
||||||
|
- [SCRIPTS.md](docs/SCRIPTS.md): Scripts that are available
|
||||||
This directory contains host-specific configurations. Each host includes:
|
- [TODO.md](docs/TODO.md): What's next (feel free to contribute)
|
||||||
|
- [CONTRIBUTING.md](docs/CONTRIBUTING.md): How to contribute
|
||||||
- `configuration.nix` for system-wide settings
|
- [LICENSE](LICENSE): MIT License
|
||||||
- `home.nix` for user-level configuration
|
|
||||||
- `variables.nix` for global variables
|
|
||||||
- `secrets/` for sensitive data
|
|
||||||
|
|
||||||
### 🖥️ /server-modules
|
|
||||||
|
|
||||||
This folder contains server-related nixos modules. (gitea, cloudflared, self-hosted apps, ...)
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
1. [Fork](https://github.com/anotherhadi/nixy/fork) this repo and clone it to
|
|
||||||
your system:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Copy the `hosts/laptop` folder, rename it to match your system’s hostname,
|
|
||||||
and update `variables.nix` with your machine’s settings.
|
|
||||||
3. Copy your `hardware-configuration.nix` into your new host's folder to ensure
|
|
||||||
proper hardware support.
|
|
||||||
4. Register your new host in `flake.nix` by adding it under nixosConfigurations.
|
|
||||||
|
|
||||||
> [!IMPORTANT]
|
|
||||||
> `# CHANGEME` comments are placed throughout the config to
|
|
||||||
> indicate necessary modifications. Use the following command to quickly locate
|
|
||||||
> them:
|
|
||||||
>
|
|
||||||
> ```sh
|
|
||||||
> rg "CHANGEME" ~/.config/nixos
|
|
||||||
> ```
|
|
||||||
|
|
||||||
> [!TIP]
|
|
||||||
> When you add new files, don't forget to run `git add .` to add them to the git
|
|
||||||
> repository
|
|
||||||
|
|
||||||
5. Build the system
|
|
||||||
|
|
||||||
```sh
|
|
||||||
sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname
|
|
||||||
```
|
|
||||||
|
|
||||||
## Documentation
|
|
||||||
|
|
||||||
- [SERVER](docs/SERVER.md): Check out the server documentation
|
|
||||||
- [THEMES](docs/THEMES.md): How themes work and how to create your own
|
|
||||||
- [WALLPAPERS](https://github.com/anotherhadi/awesome-wallpapers): An awesome
|
|
||||||
collection of wallpapers
|
|
||||||
- [NEOVIM](docs/NEOVIM.md): How to use the Neovim config in your own flake
|
|
||||||
|
|
||||||
- [CONTRIBUTING](docs/CONTRIBUTING.md): How to contribute
|
|
||||||
- [LICENSE](LICENSE): MIT License
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<div align="center">
|
|
||||||
<a href="https://github.com/anotherhadi/nixy">github</a> |
|
|
||||||
<a href="https://gitlab.com/anotherhadi_mirror/nixy">gitlab (mirror)</a> |
|
|
||||||
<a href="https://git.hadi.icu/anotherhadi/nixy">gitea (mirror)</a>
|
|
||||||
</div
|
|
||||||
|
|||||||
@@ -0,0 +1,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,13 +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.
|
||||||
|
|
||||||
> [!IMPORTANT]
|
|
||||||
> Don't push your host's folder
|
|
||||||
|
|||||||
@@ -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: ai, clue, comment, diff, git, icons, indentscope, jump2d, pairs, starter, statusline, surround |
|
|
||||||
@@ -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,33 +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:
|
|
||||||
|
|
||||||
- **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. (legally 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.
|
|
||||||
- **Umami**: Privacy-focused web analytics.
|
|
||||||
- **Gitea**: Self-hosted git forge.
|
|
||||||
- **Blog**: Personal website/blog.
|
|
||||||
- **iknowyou**: Personal project hosted in two containers (prod + demo).
|
|
||||||
- **Awesome Wallpapers**: Wallpaper browser served via NGINX inside a container.
|
|
||||||
- **SSH**: Secure remote access configuration for server management. (via browser too)
|
|
||||||
- **Security related stuff**: Cloudflared, Fail2Ban, Firewall, Kernel Hardening
|
|
||||||
@@ -1,9 +1,31 @@
|
|||||||
# Themes
|
# Themes
|
||||||
|
|
||||||
Themes are defined in `themes/`. They define the colors, fonts, icons, wallpaper, and other visual settings used by Hyprland and all apps/programs.
|
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 in 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 `themes/nixy.nix` and change the variables.
|
## Create your own theme
|
||||||
Wallpapers are loaded from my [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
|
||||||
|
|
||||||
|
### 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,105 +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-26.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
|
||||||
nvf.url = "github:notashelf/nvf";
|
|
||||||
nvf-config = {
|
|
||||||
url = "path:./home/programs/tui/nvf";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
inputs.nvf.follows = "nvf";
|
|
||||||
};
|
|
||||||
nur = {
|
|
||||||
url = "github:nix-community/nur";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
nix-index-database = {
|
|
||||||
url = "github:nix-community/nix-index-database";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-26.05";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
stylix = {
|
nixvim = {
|
||||||
url = "github:nix-community/stylix/release-26.05";
|
url = "github:nix-community/nixvim";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
apple-fonts.url = "github:Lyndeno/apple-fonts.nix";
|
||||||
|
spicetify-nix.url = "github:the-argus/spicetify-nix";
|
||||||
sops-nix = {
|
sops-nix = {
|
||||||
url = "github:Mic92/sops-nix";
|
url = "github:Mic92/sops-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
impermanence.url = "github:nix-community/impermanence";
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
disko = {
|
nurpkgs.url = "github:nix-community/NUR";
|
||||||
url = "github:nix-community/disko";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
helium-browser = {
|
|
||||||
url = "github:oxcl/nix-flake-helium-browser";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
||||||
};
|
|
||||||
git-hooks = {
|
|
||||||
url = "github:cachix/git-hooks.nix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Server
|
|
||||||
nixarr.url = "github:nix-media-server/nixarr";
|
|
||||||
default-creds.url = "github:anotherhadi/default-creds";
|
|
||||||
blog.url = "github:anotherhadi/blog";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ {
|
outputs = inputs@{ nixpkgs, nur, ... }: {
|
||||||
nixpkgs,
|
nixosConfigurations = {
|
||||||
nixpkgs-unstable,
|
|
||||||
git-hooks,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
system = "x86_64-linux";
|
|
||||||
pkgs-unstable = import nixpkgs-unstable {
|
|
||||||
inherit system;
|
|
||||||
config.allowUnfree = true;
|
|
||||||
};
|
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
|
||||||
args = {
|
|
||||||
inherit
|
|
||||||
inputs
|
|
||||||
nixpkgs
|
|
||||||
system
|
|
||||||
pkgs-unstable
|
|
||||||
pkgs
|
|
||||||
;
|
|
||||||
};
|
|
||||||
merge = nixpkgs.lib.foldl nixpkgs.lib.recursiveUpdate {};
|
|
||||||
supportedSystems = ["x86_64-linux" "aarch64-linux"];
|
|
||||||
|
|
||||||
forAllSystems = f:
|
nixy = nixpkgs.lib.nixosSystem {
|
||||||
nixpkgs.lib.genAttrs supportedSystems
|
system = "x86_64-linux";
|
||||||
(system: f system (import nixpkgs {inherit system;}));
|
modules = [
|
||||||
in
|
./hosts/laptop/configuration.nix
|
||||||
merge [
|
inputs.nixos-hardware.nixosModules.omen-16-n0005ne
|
||||||
(import ./home/programs/tui/nixy/flake.nix args)
|
inputs.home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
formatter.${system} = pkgs.alejandra;
|
nixpkgs.overlays = [ nur.overlay ];
|
||||||
packages.${system}.nvim = inputs.nvf-config.packages.${system}.nvim;
|
_module.args = { inherit inputs; };
|
||||||
apps.${system}.nvim = inputs.nvf-config.apps.${system}.nvim;
|
home-manager = {
|
||||||
nixosConfigurations = {
|
useGlobalPkgs = true;
|
||||||
h-laptop = import ./hosts/laptop/flake.nix args;
|
useUserPackages = true;
|
||||||
h-work = import ./hosts/work/flake.nix args;
|
users."hadi" = import ./home/laptop.nix; # CHANGE ME
|
||||||
jack = import ./hosts/server/flake.nix args;
|
extraSpecialArgs = { inherit inputs; };
|
||||||
};
|
};
|
||||||
devShells = forAllSystems (system: pkgs: {
|
}
|
||||||
default = import ./shell.nix {
|
];
|
||||||
inherit pkgs;
|
};
|
||||||
gitHooksLib = git-hooks.lib.${system};
|
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,40 +0,0 @@
|
|||||||
{pkgs}: (with pkgs; [
|
|
||||||
# Web
|
|
||||||
dirb
|
|
||||||
ffuf
|
|
||||||
katana
|
|
||||||
whatweb
|
|
||||||
sqlmap
|
|
||||||
nosqli
|
|
||||||
|
|
||||||
# Hashes
|
|
||||||
hashcat
|
|
||||||
haiti
|
|
||||||
john
|
|
||||||
|
|
||||||
# Databases
|
|
||||||
mariadb
|
|
||||||
redis
|
|
||||||
|
|
||||||
# Network
|
|
||||||
inetutils
|
|
||||||
termshark # wireshark in TUI
|
|
||||||
whois
|
|
||||||
dig
|
|
||||||
nmap
|
|
||||||
samba
|
|
||||||
hydra
|
|
||||||
|
|
||||||
# Misc
|
|
||||||
metasploit
|
|
||||||
nuclei
|
|
||||||
openvpn
|
|
||||||
|
|
||||||
# Secrets
|
|
||||||
trufflehog
|
|
||||||
|
|
||||||
# Forensics
|
|
||||||
binwalk
|
|
||||||
pkgs.nur.repos.anotherhadi.spilltea
|
|
||||||
pkgs.nur.repos.anotherhadi.jwt-tui
|
|
||||||
])
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.packages = import ./cybersecurity-packages.nix {
|
|
||||||
inherit pkgs;
|
|
||||||
};
|
|
||||||
|
|
||||||
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=";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.persistence."/persist" = lib.mkIf (config.var.impermanenceEnabled or false) {
|
|
||||||
directories = [
|
|
||||||
"Cyber"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
pkgs-unstable,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home = {
|
|
||||||
packages = with pkgs-unstable;
|
|
||||||
[
|
|
||||||
go
|
|
||||||
claude-code
|
|
||||||
]
|
|
||||||
++ (with pkgs; [
|
|
||||||
nodejs
|
|
||||||
air
|
|
||||||
duckdb
|
|
||||||
python3
|
|
||||||
jq
|
|
||||||
nix-prefetch-github
|
|
||||||
rsync
|
|
||||||
]);
|
|
||||||
|
|
||||||
persistence."/persist" = lib.mkIf (config.var.impermanenceEnabled or false) {
|
|
||||||
directories = [
|
|
||||||
".claude"
|
|
||||||
];
|
|
||||||
files = [".claude.json"];
|
|
||||||
};
|
|
||||||
|
|
||||||
sessionPath = ["$HOME/.local/share/go/bin"];
|
|
||||||
sessionVariables.GOPATH = "$HOME/.local/share/go";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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,56 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
name = "Infosec";
|
|
||||||
icon = "terminal";
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "Nix 4 Cyber";
|
|
||||||
url = "https://n4c.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Infosec Notes - Anotherhadi";
|
|
||||||
url = "https://hadi.icu/notes";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Cyberchef";
|
|
||||||
url = "https://cyberchef.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "TryHackMe";
|
|
||||||
url = "https://tryhackme.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Root-Me";
|
|
||||||
url = "https://root-me.org";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Hack The Box";
|
|
||||||
url = "https://hackthebox.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Iknowyou";
|
|
||||||
url = "https://iknowyou-prod.hadi.icu";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Exploit-DB";
|
|
||||||
url = "https://exploit-db.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Reverse Shell Generator";
|
|
||||||
url = "https://revshells.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "GTFOBins";
|
|
||||||
url = "https://gtfobins.org/";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Crack Station";
|
|
||||||
url = "https://crackstation.net";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Osint Tracker";
|
|
||||||
url = "https://app.osintracker.com";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -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,58 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
name = "Other";
|
|
||||||
icon = "category";
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "Documentation";
|
|
||||||
icon = "menu_book";
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "Hyprland Wiki";
|
|
||||||
url = "https://wiki.hypr.land";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Nerdfont Cheatsheet";
|
|
||||||
url = "https://www.nerdfonts.com/cheat-sheet";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Helium Bangs";
|
|
||||||
url = "https://helium.computer/bangs";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "NVF Options";
|
|
||||||
url = "https://nvf.notashelf.dev/";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Stylix Wiki";
|
|
||||||
url = "https://nix-community.github.io/stylix/";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Nixpkgs";
|
|
||||||
url = "https://github.com/NixOS/nixpkgs";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "tldr";
|
|
||||||
url = "https://tldr.inbrowser.app/";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Startpage Config";
|
|
||||||
url = "https://www.startpage.com/do/mypage.pl?prfe=45d331deb05471d659dba933e7400df51d952bb103da6f6125c0e769a6be1d65610456a479f495ceeee7e97311cf227d7c1bb198de0ceeb193d8cddf9c455c19a409cc35c3e3f542ee27bd7cecd3";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Feedly";
|
|
||||||
url = "https://feedly.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "MyNixOS";
|
|
||||||
url = "https://mynixos.com";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Amazon";
|
|
||||||
url = "https://amazon.fr";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -1,52 +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";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Lumo";
|
|
||||||
url = "https://lumo.proton.me";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -1,145 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
config,
|
|
||||||
pkgs-unstable,
|
|
||||||
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-unstable.stdenv.hostPlatform.system}.helium).override {
|
|
||||||
flags = heliumFlags;
|
|
||||||
};
|
|
||||||
|
|
||||||
patchScript = pkgs-unstable.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-unstable.jq} \
|
|
||||||
--arg id "${themeId}" \
|
|
||||||
--slurpfile manifest "$THEME_DIR/manifest.json" \
|
|
||||||
'
|
|
||||||
.helium.browser.layout = 3 |
|
|
||||||
.helium.browser.minimal_location_bar = true |
|
|
||||||
.helium.browser.show_dynamic_new_tab_button = false |
|
|
||||||
.helium.browser.rounded_frame = false |
|
|
||||||
.bookmark_bar.show_tab_groups = false |
|
|
||||||
.extensions.settings[$id] = {
|
|
||||||
"active_permissions": {"api": [], "explicit_host": [], "manifest_permissions": [], "scriptable_host": []},
|
|
||||||
"creation_flags": 0,
|
|
||||||
"from_webstore": false,
|
|
||||||
"install_time": "13300000000000000",
|
|
||||||
"location": 1,
|
|
||||||
"manifest": $manifest[0],
|
|
||||||
"path": ($id + "/1.0_0"),
|
|
||||||
"state": 1,
|
|
||||||
"was_installed_by_default": false,
|
|
||||||
"was_installed_by_oem": false
|
|
||||||
} |
|
|
||||||
.extensions.theme = {"id": $id, "use_system": false}
|
|
||||||
' "$PREFS" > "$tmp" && mv "$tmp" "$PREFS"
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
baseWrapped = pkgs-unstable.symlinkJoin {
|
|
||||||
name = "helium-wrapped";
|
|
||||||
paths = [originalPkg];
|
|
||||||
nativeBuildInputs = [pkgs-unstable.makeWrapper];
|
|
||||||
postBuild = ''
|
|
||||||
wrapProgram $out/bin/helium \
|
|
||||||
--set-default GTK_USE_PORTAL 1 \
|
|
||||||
--run ${lib.escapeShellArg (toString patchScript)}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
wrappedPkg = baseWrapped // {override = _: baseWrapped;};
|
|
||||||
in {
|
|
||||||
imports = [
|
|
||||||
inputs.helium-browser.homeModules.default
|
|
||||||
./bookmarks
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.helium = {
|
|
||||||
enable = true;
|
|
||||||
package = lib.mkForce wrappedPkg;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.sessionVariables.BROWSER = "${config.programs.helium.package}/bin/helium";
|
|
||||||
|
|
||||||
xdg.desktopEntries.helium = {
|
|
||||||
name = "Helium";
|
|
||||||
genericName = "Web Browser";
|
|
||||||
exec = "${config.programs.helium.package}/bin/helium %U";
|
|
||||||
icon = "${config.programs.helium.package}/share/icons/hicolor/256x256/apps/helium.png";
|
|
||||||
terminal = false;
|
|
||||||
categories = ["Network" "WebBrowser"];
|
|
||||||
mimeType = [
|
|
||||||
"text/html"
|
|
||||||
"text/xml"
|
|
||||||
"application/xhtml+xml"
|
|
||||||
"x-scheme-handler/http"
|
|
||||||
"x-scheme-handler/https"
|
|
||||||
"x-scheme-handler/ftp"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.desktopEntries.helium-private = {
|
|
||||||
name = "Helium (Private window)";
|
|
||||||
genericName = "Web Browser";
|
|
||||||
exec = "${config.programs.helium.package}/bin/helium --incognito %U";
|
|
||||||
icon = "${config.programs.helium.package}/share/icons/hicolor/256x256/apps/helium.png";
|
|
||||||
terminal = false;
|
|
||||||
categories = ["Network" "WebBrowser"];
|
|
||||||
mimeType = ["text/html" "text/xml" "application/xhtml+xml"];
|
|
||||||
};
|
|
||||||
|
|
||||||
home.persistence."/persist" = lib.mkIf (config.var.impermanenceEnabled or false) {
|
|
||||||
directories = [
|
|
||||||
".config/net.imput.helium"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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 = "automatic";
|
|
||||||
DnsOverHttpsTemplates = "https://dns.quad9.net/dns-query";
|
|
||||||
|
|
||||||
DefaultSearchProviderEnabled = true;
|
|
||||||
DefaultSearchProviderName = "Startpage";
|
|
||||||
DefaultSearchProviderSearchURL = "https://www.startpage.com/do/search?q={searchTerms}";
|
|
||||||
DefaultSearchProviderSuggestURL = "https://www.startpage.com/do/suggest?q={searchTerms}";
|
|
||||||
|
|
||||||
NewTabPageLocation = "http://127.0.0.1:8888";
|
|
||||||
HomepageIsNewTabPage = false;
|
|
||||||
HomepageLocation = "http://127.0.0.1:8888";
|
|
||||||
ShowHomeButton = false;
|
|
||||||
RestoreOnStartup = 4;
|
|
||||||
|
|
||||||
BookmarkBarEnabled = false;
|
|
||||||
ManagedBookmarks = toChromium bookmarkList;
|
|
||||||
|
|
||||||
ExtensionInstallForcelist = [
|
|
||||||
"dbepggeogbaibhgnhhndojpepiihcmeb" # Vimiu
|
|
||||||
"gcknhkkoolaabfmlnjonogaaifnjlfnp" # FoxyProxy
|
|
||||||
"ghmbeldphafepmbegfdlkpapadhbakde" # Proton Pass
|
|
||||||
"mdjildafknihdffpkfmmpnpoiajfjnjd" # Consent-O-Matic
|
|
||||||
"pkehgijcmpdhfbdbbnkijodmdjhbjlgp" # Privacy Badger
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
vlc # Video player
|
|
||||||
obsidian # Note taking app
|
|
||||||
pinta # Image editor
|
|
||||||
onlyoffice-desktopeditors # Office suite
|
|
||||||
blanket # Listen to different sounds
|
|
||||||
signal-desktop # Messaging app
|
|
||||||
ticktick # Todo app
|
|
||||||
|
|
||||||
# Backup
|
|
||||||
thunar
|
|
||||||
gnome-text-editor
|
|
||||||
];
|
|
||||||
|
|
||||||
home.persistence."/persist" = lib.mkIf (config.var.impermanenceEnabled or false) {
|
|
||||||
directories = [
|
|
||||||
".config/ticktick"
|
|
||||||
".config/Signal"
|
|
||||||
".config/obsidian"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
proton-vpn
|
|
||||||
proton-pass
|
|
||||||
];
|
|
||||||
|
|
||||||
# Fix Proton Authenticator desktop entry
|
|
||||||
xdg.desktopEntries = {
|
|
||||||
"Proton Calendar" = {
|
|
||||||
name = "Proton Calendar";
|
|
||||||
exec = ''${config.programs.helium.package}/bin/helium "https://calendar.proton.me"'';
|
|
||||||
icon = "proton-calendar";
|
|
||||||
type = "Application";
|
|
||||||
categories = ["Utility"];
|
|
||||||
terminal = false;
|
|
||||||
};
|
|
||||||
"Proton Mail" = {
|
|
||||||
name = "Proton Mail";
|
|
||||||
exec = ''${config.programs.helium.package}/bin/helium "https://mail.proton.me/"'';
|
|
||||||
icon = "proton-mail";
|
|
||||||
type = "Application";
|
|
||||||
categories = ["Utility"];
|
|
||||||
terminal = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.persistence."/persist" = lib.mkIf (config.var.impermanenceEnabled or false) {
|
|
||||||
directories = [
|
|
||||||
".config/protonvpn"
|
|
||||||
".config/Proton Pass"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
{ config, pkgs, ... }: {
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
scrollback_lines = 10000;
|
||||||
|
initial_window_width = 1200;
|
||||||
|
initial_window_height = 600;
|
||||||
|
update_check_interval = 0;
|
||||||
|
enable_audio_bell = false;
|
||||||
|
confirm_os_window_close = "0";
|
||||||
|
remember_window_size = "no";
|
||||||
|
disable_ligatures = "never";
|
||||||
|
shell = "${pkgs.tmux}/bin/tmux";
|
||||||
|
url_style = "curly";
|
||||||
|
cursor_shape = "Underline";
|
||||||
|
cursor_underline_thickness = config.var.theme.border-size;
|
||||||
|
window_padding_width = config.var.theme.gaps-in;
|
||||||
|
|
||||||
|
# Font
|
||||||
|
font_family = config.var.theme.font-mono;
|
||||||
|
font_size = config.var.theme.font-size;
|
||||||
|
|
||||||
|
# Colors
|
||||||
|
background = "#" + config.var.theme.colors.bg;
|
||||||
|
url_color = "#" + config.var.theme.colors.accent;
|
||||||
|
color0 = "#" + config.var.theme.colors.c0;
|
||||||
|
color8 = "#" + config.var.theme.colors.c8;
|
||||||
|
color1 = "#" + config.var.theme.colors.c1;
|
||||||
|
color9 = "#" + config.var.theme.colors.c9;
|
||||||
|
color2 = "#" + config.var.theme.colors.c2;
|
||||||
|
color10 = "#" + config.var.theme.colors.c10;
|
||||||
|
color3 = "#" + config.var.theme.colors.c3;
|
||||||
|
color11 = "#" + config.var.theme.colors.c11;
|
||||||
|
color4 = "#" + config.var.theme.colors.c4;
|
||||||
|
color12 = "#" + config.var.theme.colors.c12;
|
||||||
|
color5 = "#" + config.var.theme.colors.c5;
|
||||||
|
color13 = "#" + config.var.theme.colors.c13;
|
||||||
|
color6 = "#" + config.var.theme.colors.c6;
|
||||||
|
color14 = "#" + config.var.theme.colors.c14;
|
||||||
|
color7 = "#" + config.var.theme.colors.c7;
|
||||||
|
color15 = "#" + config.var.theme.colors.c15;
|
||||||
|
cursor = "#" + config.var.theme.colors.fg;
|
||||||
|
cursor_text_color = "#" + config.var.theme.colors.bg;
|
||||||
|
selection_foreground = "#" + config.var.theme.colors.accentFg;
|
||||||
|
selection_background = "#" + config.var.theme.colors.accent;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,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;
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.wilder = {
|
||||||
|
enable = true;
|
||||||
|
modes = [ ":" "/" "?" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,263 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
|
||||||
|
imports = [ ./duckduckgo-colorscheme.nix ./homepage ];
|
||||||
|
|
||||||
|
programs.qutebrowser = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
searchEngines = {
|
||||||
|
"DEFAULT" = "https://duckduckgo.com/?q={}&ia=web";
|
||||||
|
"d" = "https://duckduckgo.com/?q={}&ia=web";
|
||||||
|
"g" = "https://google.com/search?q={}";
|
||||||
|
"y" = "https://youtube.com/results?search_query={}";
|
||||||
|
"ya" = "https://yandex.com/search/?text={}";
|
||||||
|
"n" = "https://mynixos.com/search?q={}";
|
||||||
|
"nixo" = "https://search.nixos.org/options?channel=unstable&query={}";
|
||||||
|
"nixp" = "https://search.nixos.org/packages?channel=unstable&query={}";
|
||||||
|
"gt" = "https://github.com/search?q={}&type=repositories";
|
||||||
|
};
|
||||||
|
|
||||||
|
quickmarks = {
|
||||||
|
home = "${config.var.homeDirectory}/.config/startpage/index.html";
|
||||||
|
server = "${config.var.homeDirectory}/.config/serverpage/index.html";
|
||||||
|
mynixos = "https://mynixos.com";
|
||||||
|
github = "https://github.com";
|
||||||
|
outlook = "https://outlook.office.com/mail/";
|
||||||
|
office = "https://www.office.com/?auth=2";
|
||||||
|
teams = "https://teams.microsoft.com/_";
|
||||||
|
casa = "http://192.168.2.16:8081/#/";
|
||||||
|
proton = "https://mail.proton.me/u/0/inbox";
|
||||||
|
cloudflare-one = "https://one.dash.cloudflare.com/";
|
||||||
|
chatgpt = "https://chat.openai.com/";
|
||||||
|
nixvim = "https://nix-community.github.io/nixvim/";
|
||||||
|
hyprland = "https://wiki.hyprland.org/";
|
||||||
|
nerdfont = "https://www.nerdfonts.com/cheat-sheet";
|
||||||
|
youtube = "https://youtube.com/";
|
||||||
|
cloudflare = "https://dash.cloudflare.com/";
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
url = {
|
||||||
|
default_page =
|
||||||
|
"${config.var.homeDirectory}/.config/startpage/index.html";
|
||||||
|
start_pages =
|
||||||
|
[ "${config.var.homeDirectory}/.config/startpage/index.html" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
colors = {
|
||||||
|
tabs = {
|
||||||
|
odd.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
odd.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
even.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
even.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
selected = {
|
||||||
|
odd = {
|
||||||
|
bg = "#${config.var.theme.colors.accent}";
|
||||||
|
fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
};
|
||||||
|
even = {
|
||||||
|
bg = "#${config.var.theme.colors.accent}";
|
||||||
|
fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
indicator = {
|
||||||
|
error = "#${config.var.theme.colors.c1}";
|
||||||
|
start = "#${config.var.theme.colors.bgalt}";
|
||||||
|
stop = "#${config.var.theme.colors.bgalt}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
hints = {
|
||||||
|
bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
match.fg = "#${config.var.theme.colors.bg}";
|
||||||
|
};
|
||||||
|
|
||||||
|
completion = {
|
||||||
|
category = {
|
||||||
|
bg = "#${config.var.theme.colors.bg}";
|
||||||
|
fg = "#${config.var.theme.colors.fg}";
|
||||||
|
border = {
|
||||||
|
top = "#${config.var.theme.colors.bg}";
|
||||||
|
bottom = "#${config.var.theme.colors.bg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
odd.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
even.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
|
||||||
|
fg = [ "#FFFFFF" "#FFFFFF" "#FFFFFF" ];
|
||||||
|
|
||||||
|
match.fg = "#${config.var.theme.colors.accent}";
|
||||||
|
|
||||||
|
item.selected = {
|
||||||
|
bg = "#${config.var.theme.colors.accent}";
|
||||||
|
border.top = "#${config.var.theme.colors.accent}";
|
||||||
|
border.bottom = "#${config.var.theme.colors.accent}";
|
||||||
|
fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
match.fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
statusbar = {
|
||||||
|
normal.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
normal.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
private.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
private.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
insert.bg = "#${config.var.theme.colors.accent}";
|
||||||
|
insert.fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
command = {
|
||||||
|
bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
private.bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
private.fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
messages = {
|
||||||
|
info = {
|
||||||
|
bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
border = "#${config.var.theme.colors.bgalt}";
|
||||||
|
};
|
||||||
|
|
||||||
|
error = {
|
||||||
|
bg = "#${config.var.theme.colors.c1}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
border = "#${config.var.theme.colors.c1}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#webpage.darkmode.enabled = true; # Enable dark mode for all websites (Weird on images)
|
||||||
|
webpage.preferred_color_scheme =
|
||||||
|
"dark"; # Enable dark mode for websites that support it
|
||||||
|
};
|
||||||
|
|
||||||
|
fonts = { default_family = "${config.var.theme.font}"; };
|
||||||
|
|
||||||
|
completion = {
|
||||||
|
height = "30%";
|
||||||
|
open_categories = [ "history" ];
|
||||||
|
scrollbar = {
|
||||||
|
padding = 0;
|
||||||
|
width = 0;
|
||||||
|
};
|
||||||
|
show = "always";
|
||||||
|
shrink = true;
|
||||||
|
timestamp_format = "";
|
||||||
|
web_history.max_items = 7;
|
||||||
|
};
|
||||||
|
|
||||||
|
content = {
|
||||||
|
autoplay = false;
|
||||||
|
javascript.clipboard = "access";
|
||||||
|
javascript.enabled = true;
|
||||||
|
pdfjs = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
downloads = {
|
||||||
|
position = "bottom";
|
||||||
|
remove_finished = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
hints = {
|
||||||
|
border = "none";
|
||||||
|
radius = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
scrolling = {
|
||||||
|
bar = "never";
|
||||||
|
smooth = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
tabs = {
|
||||||
|
show = "multiple";
|
||||||
|
last_close = "close";
|
||||||
|
mode_on_change = "restore";
|
||||||
|
close_mouse_button = "right";
|
||||||
|
};
|
||||||
|
|
||||||
|
zoom.default = "100%";
|
||||||
|
|
||||||
|
qt.force_software_rendering = "chromium";
|
||||||
|
};
|
||||||
|
|
||||||
|
keyBindings = {
|
||||||
|
normal = {
|
||||||
|
"gh" = "open ${config.var.homeDirectory}/.config/startpage/index.html";
|
||||||
|
"gs" = "open ${config.var.homeDirectory}/.config/serverpage/index.html";
|
||||||
|
|
||||||
|
" p" = "tab-move -";
|
||||||
|
" n" = "tab-move +";
|
||||||
|
" w" = "tab-close";
|
||||||
|
|
||||||
|
" 1" = "tab-focus 1";
|
||||||
|
" 2" = "tab-focus 2";
|
||||||
|
" 3" = "tab-focus 3";
|
||||||
|
" 4" = "tab-focus 4";
|
||||||
|
" 5" = "tab-focus 5";
|
||||||
|
" 6" = "tab-focus 6";
|
||||||
|
" 7" = "tab-focus 7";
|
||||||
|
" 8" = "tab-focus 8";
|
||||||
|
" 9" = "tab-focus 9";
|
||||||
|
" 0" = "tab-focus 10";
|
||||||
|
|
||||||
|
"<Ctrl-w>" = "tab-close";
|
||||||
|
"<Ctrl-n>" = "open -w";
|
||||||
|
|
||||||
|
"<Ctrl-1>" = "tab-focus 1";
|
||||||
|
"<Ctrl-2>" = "tab-focus 2";
|
||||||
|
"<Ctrl-3>" = "tab-focus 3";
|
||||||
|
"<Ctrl-4>" = "tab-focus 4";
|
||||||
|
"<Ctrl-5>" = "tab-focus 5";
|
||||||
|
"<Ctrl-6>" = "tab-focus 6";
|
||||||
|
"<Ctrl-7>" = "tab-focus 7";
|
||||||
|
"<Ctrl-8>" = "tab-focus 8";
|
||||||
|
"<Ctrl-9>" = "tab-focus 9";
|
||||||
|
"<Ctrl-0>" = "tab-focus 10";
|
||||||
|
};
|
||||||
|
|
||||||
|
command = {
|
||||||
|
"<Ctrl-w>" = "tab-close";
|
||||||
|
"<Ctrl-n>" = "open -w";
|
||||||
|
"<Ctrl-1>" = "tab-focus 1";
|
||||||
|
"<Ctrl-2>" = "tab-focus 2";
|
||||||
|
"<Ctrl-3>" = "tab-focus 3";
|
||||||
|
"<Ctrl-4>" = "tab-focus 4";
|
||||||
|
"<Ctrl-5>" = "tab-focus 5";
|
||||||
|
"<Ctrl-6>" = "tab-focus 6";
|
||||||
|
"<Ctrl-7>" = "tab-focus 7";
|
||||||
|
"<Ctrl-8>" = "tab-focus 8";
|
||||||
|
"<Ctrl-9>" = "tab-focus 9";
|
||||||
|
"<Ctrl-0>" = "tab-focus 10";
|
||||||
|
};
|
||||||
|
|
||||||
|
insert = {
|
||||||
|
"<Ctrl-w>" = "tab-close";
|
||||||
|
"<Ctrl-n>" = "open -w";
|
||||||
|
"<Ctrl-1>" = "tab-focus 1";
|
||||||
|
"<Ctrl-2>" = "tab-focus 2";
|
||||||
|
"<Ctrl-3>" = "tab-focus 3";
|
||||||
|
"<Ctrl-4>" = "tab-focus 4";
|
||||||
|
"<Ctrl-5>" = "tab-focus 5";
|
||||||
|
"<Ctrl-6>" = "tab-focus 6";
|
||||||
|
"<Ctrl-7>" = "tab-focus 7";
|
||||||
|
"<Ctrl-8>" = "tab-focus 8";
|
||||||
|
"<Ctrl-9>" = "tab-focus 9";
|
||||||
|
"<Ctrl-0>" = "tab-focus 10";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
config.unbind("gm")
|
||||||
|
config.unbind("gd")
|
||||||
|
config.unbind("gb")
|
||||||
|
config.unbind("tl")
|
||||||
|
config.unbind("gt")
|
||||||
|
|
||||||
|
c.tabs.padding = {"bottom": 6, "left": 7, "right": 7, "top": 6}
|
||||||
|
|
||||||
|
config.load_autoconfig(True)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
home.file.".duckduckgo-colorscheme.js".text = ''
|
||||||
|
// Go to DuckDuckGo settings page, open the console, paste the code and hit enter.
|
||||||
|
// based on https://ddg.codingcodax.dev/
|
||||||
|
// Cookies string for your theme
|
||||||
|
const cookie = '7=${config.var.theme.colors.bg}; j=${config.var.theme.colors.bg}; 9=${config.var.theme.colors.fg}; aa=${config.var.theme.colors.fgalt}; 8=${config.var.theme.colors.c7}; x=${config.var.theme.colors.accent}; 21=${config.var.theme.colors.bgalt};';
|
||||||
|
|
||||||
|
// Converts cookie string into formatted JSON
|
||||||
|
const cookieToJSON = (cookieRaw) => {
|
||||||
|
const cookieJson = {};
|
||||||
|
const items = cookieRaw.split(/[ ,]+/);
|
||||||
|
|
||||||
|
items.forEach((item) => {
|
||||||
|
const parts = item.split('=');
|
||||||
|
cookieJson[parts[0]] = parts[1];
|
||||||
|
});
|
||||||
|
|
||||||
|
return cookieJson;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Iterates over JSON, and adds to browser cookie store
|
||||||
|
const setCookies = (cookieJson) => {
|
||||||
|
Object.keys(cookieJson).forEach((key) => {
|
||||||
|
document.cookie = `''${key}=''${cookieJson [ key ]}`;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
alert('The Nixy theme will be applied.');
|
||||||
|
|
||||||
|
// Call set cookies, passing in formated cookie data
|
||||||
|
setCookies(cookieToJSON(cookie));
|
||||||
|
|
||||||
|
// All done, reload page for changes to take effect :)
|
||||||
|
location.reload();
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -0,0 +1,297 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
let
|
||||||
|
bookmarks = ''
|
||||||
|
Bookmarks: [
|
||||||
|
{text: "MyNixOs", url: "https://mynixos.com", icon: ""},
|
||||||
|
{text: "Github", url: "https://github.com", icon: ""},
|
||||||
|
{text: "Proton", url: "https://mail.proton.me/u/0/inbox", icon: ""},
|
||||||
|
{text: "Cloudflare One", url: "https://one.dash.cloudflare.com/", icon: ""},
|
||||||
|
{text: "Chat GPT", url: "https://chat.openai.com/", icon: ""},
|
||||||
|
{text: "Nixvim", url: "https://nix-community.github.io/nixvim/", icon: ""},
|
||||||
|
{text: "Hyprland Wiki", url: "https://wiki.hyprland.org/", icon: ""},
|
||||||
|
{text: "Nerdfont", url: "https://www.nerdfonts.com/cheat-sheet", icon: ""},
|
||||||
|
{text: "Youtube", url: "https://youtube.com", icon: ""},
|
||||||
|
],
|
||||||
|
Home: [
|
||||||
|
{text: "Casa", url: "http://192.168.2.16:8081/#/", icon: ""},
|
||||||
|
{text: "Plex", url: "http://192.168.2.16:32400", icon: ""},
|
||||||
|
{text: "Nextcloud", url: "http://192.168.2.16:10081", icon: ""},
|
||||||
|
],
|
||||||
|
Work: [
|
||||||
|
{text: "Outlook", url: "https://outlook.office.com/mail/", icon: ""},
|
||||||
|
{text: "Office", url: "https://www.office.com/?auth=2", icon: ""},
|
||||||
|
{text: "Teams", url: "https://teams.microsoft.com/_", icon: ""},
|
||||||
|
],
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
|
||||||
|
xdg.configFile."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>Homepage</title>
|
||||||
|
<style>
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
p {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-family: '${config.var.theme.font}', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.w-screen {
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overflow-hidden {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.max-w-7xl {
|
||||||
|
max-width: 80rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx-auto {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.justify-between {
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.items-center {
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.py-12 {
|
||||||
|
padding-top: 3rem;
|
||||||
|
padding-bottom: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.px-2 {
|
||||||
|
padding-left: 0.5rem;
|
||||||
|
padding-right: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-5xl {
|
||||||
|
font-size: 3rem;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.font-bold {
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mb-4 {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-wrap {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-col {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-grow {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gap-5 {
|
||||||
|
gap: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gap-05 {
|
||||||
|
gap: 0.125rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.justify-start {
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.items-start {
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hover\:opacity-60:hover {
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pb-10 {
|
||||||
|
padding-bottom: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.p-10 {
|
||||||
|
padding: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-xl {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
line-height: 1.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-lg {
|
||||||
|
font-size: 1.125rem;
|
||||||
|
line-height: 1.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-sm {
|
||||||
|
font-size: 0.875rem;
|
||||||
|
line-height: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-4xl {
|
||||||
|
font-size: 2.25rem;
|
||||||
|
line-height: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.px-5 {
|
||||||
|
padding-left: 1.25rem;
|
||||||
|
padding-right: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.py-2 {
|
||||||
|
padding-top: 0.5rem;
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a, a:visited, a:hover, a:active {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="w-screen" style="background-color: #${config.var.theme.colors.bg}; color: #${config.var.theme.colors.fg};">
|
||||||
|
<div class="max-w-7xl mx-auto p-10">
|
||||||
|
<div class="w-full flex justify-between" id="date-time">
|
||||||
|
<p class="text-xl"></p>
|
||||||
|
<p class="text-xl"></p>
|
||||||
|
</div>
|
||||||
|
<div class="w-full py-12 px-2" id="greeting">
|
||||||
|
<h1 class="text-5xl font-bold mb-4" style="color: #${config.var.theme.colors.accent};"></h1>
|
||||||
|
</div>
|
||||||
|
<div id="link-list" class="flex gap-5 flex-col justify-start items-start"></div>
|
||||||
|
</div>
|
||||||
|
<script defer>
|
||||||
|
const linkLists = {
|
||||||
|
${bookmarks}
|
||||||
|
};
|
||||||
|
|
||||||
|
function getDomainFromUrl(url) {
|
||||||
|
let domain = url.replace(/(^\w+:|^)\/\//, "");
|
||||||
|
domain = domain.split('/')[0];
|
||||||
|
return domain;
|
||||||
|
}
|
||||||
|
|
||||||
|
const linkListContainer = document.getElementById('link-list');
|
||||||
|
|
||||||
|
for (const key in linkLists) {
|
||||||
|
if (Object.hasOwnProperty.call(linkLists, key)) {
|
||||||
|
const linkList = linkLists[key];
|
||||||
|
const title = document.createElement('h2');
|
||||||
|
title.textContent = key.charAt(0).toUpperCase() + key.slice(1);
|
||||||
|
title.className = "text-3xl font-bold"
|
||||||
|
linkListContainer.appendChild(title);
|
||||||
|
|
||||||
|
const list = document.createElement('div');
|
||||||
|
list.className = 'flex flex-wrap gap-5 justify-start';
|
||||||
|
linkList.forEach(link => {
|
||||||
|
const anchor = document.createElement('a');
|
||||||
|
anchor.href = link.url;
|
||||||
|
anchor.className = "px-5 py-2 hover:opacity-60 flex-grow"
|
||||||
|
|
||||||
|
const div = document.createElement('div');
|
||||||
|
div.className = 'flex flex-row gap-5 items-center';
|
||||||
|
|
||||||
|
let icon = document.createElement('p');
|
||||||
|
icon.textContent = link.icon || "";
|
||||||
|
icon.className = "text-4xl";
|
||||||
|
div.appendChild(icon);
|
||||||
|
|
||||||
|
const divNameUrl = document.createElement('div');
|
||||||
|
divNameUrl.className = 'flex flex-col gap-05';
|
||||||
|
|
||||||
|
const name = document.createElement('p');
|
||||||
|
name.textContent = link.text;
|
||||||
|
name.className = 'text-lg font-medium';
|
||||||
|
|
||||||
|
const url = document.createElement('p');
|
||||||
|
url.textContent = link.url;
|
||||||
|
url.className = 'text-sm';
|
||||||
|
url.style = "color: #${config.var.theme.colors.fgalt};"
|
||||||
|
|
||||||
|
divNameUrl.appendChild(name);
|
||||||
|
divNameUrl.appendChild(url);
|
||||||
|
div.appendChild(divNameUrl);
|
||||||
|
anchor.appendChild(div);
|
||||||
|
list.appendChild(anchor);
|
||||||
|
});
|
||||||
|
|
||||||
|
linkListContainer.appendChild(list);
|
||||||
|
const spacer = document.createElement('div');
|
||||||
|
spacer.className = "pb-10"
|
||||||
|
linkListContainer.appendChild(spacer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateDateTime() {
|
||||||
|
const dateTimeContainer = document.getElementById('date-time');
|
||||||
|
const currentDate = new Date();
|
||||||
|
const dateOptions = {weekday: 'long', year: 'numeric', month: 'long', day: 'numeric'};
|
||||||
|
const timeOptions = {hour: '2-digit', minute: '2-digit'};
|
||||||
|
const formattedDate = currentDate.toLocaleDateString('en-US', dateOptions);
|
||||||
|
const formattedTime = currentDate.toLocaleTimeString('en-US', timeOptions);
|
||||||
|
const dateParagraph = dateTimeContainer.querySelector('p:nth-child(1)');
|
||||||
|
const timeParagraph = dateTimeContainer.querySelector('p:nth-child(2)');
|
||||||
|
dateParagraph.textContent = formattedDate;
|
||||||
|
timeParagraph.textContent = formattedTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
updateDateTime();
|
||||||
|
setInterval(updateDateTime, 60000);
|
||||||
|
|
||||||
|
function updateGreeting() {
|
||||||
|
const greetingContainer = document.getElementById('greeting');
|
||||||
|
const currentDate = new Date();
|
||||||
|
const currentHour = currentDate.getHours();
|
||||||
|
let greetingText;
|
||||||
|
|
||||||
|
if (currentHour < 2) {
|
||||||
|
greetingText = "Good night! ";
|
||||||
|
} else if (currentHour < 5) {
|
||||||
|
greetingText = "Hello, night owl! ";
|
||||||
|
} else if (currentHour < 12) {
|
||||||
|
greetingText = "Good morning! ";
|
||||||
|
} else if (currentHour < 17) {
|
||||||
|
greetingText = "Good afternoon! ️";
|
||||||
|
} else if (currentHour < 20) {
|
||||||
|
greetingText = "Good evening! ";
|
||||||
|
} else {
|
||||||
|
greetingText = "Good night! ";
|
||||||
|
}
|
||||||
|
|
||||||
|
const greetingHeader = greetingContainer.querySelector('h1');
|
||||||
|
greetingHeader.textContent = greetingText;
|
||||||
|
}
|
||||||
|
|
||||||
|
updateGreeting();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
{ pkgs, config, lib, inputs, ... }:
|
||||||
|
let spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
|
||||||
|
in {
|
||||||
|
|
||||||
|
imports = [ inputs.spicetify-nix.homeManagerModules.default ];
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [ "spotify" ];
|
||||||
|
programs.spicetify = {
|
||||||
|
enable = true;
|
||||||
|
theme = spicePkgs.themes.text;
|
||||||
|
colorScheme = "custom";
|
||||||
|
|
||||||
|
customColorScheme = {
|
||||||
|
text = "${config.var.theme.colors.fg}";
|
||||||
|
subtext = "${config.var.theme.colors.fgalt}";
|
||||||
|
sidebar-text = "${config.var.theme.colors.fgalt}";
|
||||||
|
main = "${config.var.theme.colors.bg}";
|
||||||
|
sidebar = "${config.var.theme.colors.bg}";
|
||||||
|
background = "${config.var.theme.colors.bg}";
|
||||||
|
player = "${config.var.theme.colors.bg}";
|
||||||
|
card = "${config.var.theme.colors.bg}";
|
||||||
|
shadow = "000000";
|
||||||
|
selected-row = "${config.var.theme.colors.bgalt}";
|
||||||
|
button = "${config.var.theme.colors.accent}";
|
||||||
|
button-active = "${config.var.theme.colors.accent}";
|
||||||
|
button-disabled = "${config.var.theme.colors.bgalt}";
|
||||||
|
tab-active = "${config.var.theme.colors.accent}";
|
||||||
|
misc = "${config.var.theme.colors.fgalt}";
|
||||||
|
};
|
||||||
|
|
||||||
|
enabledExtensions = with spicePkgs.extensions; [
|
||||||
|
playlistIcons
|
||||||
|
lastfm
|
||||||
|
historyShortcut
|
||||||
|
hidePodcasts
|
||||||
|
fullAppDisplay
|
||||||
|
shuffle
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,134 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
c = config.lib.stylix.colors;
|
|
||||||
# TODO: Waiting for a version in nixpkgs
|
|
||||||
version = "1.11.2";
|
|
||||||
sources = {
|
|
||||||
"x86_64-linux" = {
|
|
||||||
url = "https://github.com/elio-fm/elio/releases/download/v${version}/elio-${version}-x86_64-unknown-linux-gnu.tar.gz";
|
|
||||||
hash = "sha256-9cW/xUA9p0LEYI3/j4MGPVZvcyJpV1JYKYBuHur4sTM=";
|
|
||||||
};
|
|
||||||
"aarch64-linux" = {
|
|
||||||
url = "https://github.com/elio-fm/elio/releases/download/v${version}/elio-${version}-aarch64-unknown-linux-gnu.tar.gz";
|
|
||||||
hash = "sha256-zg141Dp+jHwAqzoaCNvOoC7ZFeAX+cO8HZF5W7wz1Qs=";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
source =
|
|
||||||
sources.${pkgs.stdenv.hostPlatform.system}
|
|
||||||
or (throw "elio: unsupported platform ${pkgs.stdenv.hostPlatform.system}");
|
|
||||||
|
|
||||||
elio = pkgs.stdenv.mkDerivation {
|
|
||||||
pname = "elio";
|
|
||||||
inherit version;
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {inherit (source) url hash;};
|
|
||||||
|
|
||||||
nativeBuildInputs = [pkgs.autoPatchelfHook];
|
|
||||||
|
|
||||||
buildInputs = [pkgs.stdenv.cc.cc.lib];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
install -Dm755 elio -t $out/bin
|
|
||||||
|
|
||||||
for size in 48 128 256 512; do
|
|
||||||
install -Dm644 \
|
|
||||||
"packaging/linux/icons/hicolor/''${size}x''${size}/apps/elio.png" \
|
|
||||||
"$out/share/icons/hicolor/''${size}x''${size}/apps/elio.png"
|
|
||||||
done
|
|
||||||
install -Dm644 packaging/linux/elio.desktop -t $out/share/applications
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Terminal file manager";
|
|
||||||
homepage = "https://github.com/elio-fm/elio";
|
|
||||||
license = pkgs.lib.licenses.mit;
|
|
||||||
mainProgram = "elio";
|
|
||||||
platforms = builtins.attrNames sources;
|
|
||||||
sourceProvenance = [pkgs.lib.sourceTypes.binaryNativeCode];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
home.packages = [elio];
|
|
||||||
|
|
||||||
xdg.desktopEntries.elio = {
|
|
||||||
name = "elio";
|
|
||||||
exec = "${pkgs.ghostty}/bin/ghostty +new-window -e ${elio}/bin/elio %f";
|
|
||||||
terminal = false;
|
|
||||||
icon = "elio";
|
|
||||||
mimeType = ["inode/directory"];
|
|
||||||
categories = ["System" "FileManager" "FileTools" "ConsoleOnly"];
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.configFile."elio/config.toml".text = ''
|
|
||||||
[places]
|
|
||||||
entries = [
|
|
||||||
"home",
|
|
||||||
"documents",
|
|
||||||
"downloads",
|
|
||||||
"pictures",
|
|
||||||
{ title = "Notes", path = "~/Notes" },
|
|
||||||
{ title = "Cyber", path = "~/Cyber" },
|
|
||||||
{ title = "Projects", path = "~/Projects" },
|
|
||||||
{ title = "NixOS Config", path = "~/.config/nixos" },
|
|
||||||
"trash",
|
|
||||||
]
|
|
||||||
'';
|
|
||||||
|
|
||||||
xdg.configFile."elio/theme.toml".text = ''
|
|
||||||
[palette]
|
|
||||||
bg = "#${c.base00}"
|
|
||||||
chrome = "#${c.base01}"
|
|
||||||
chrome_alt = "#${c.base01}"
|
|
||||||
chip_text = "#${c.base00}"
|
|
||||||
panel = "#${c.base00}"
|
|
||||||
panel_alt = "#${c.base00}"
|
|
||||||
surface = "#${c.base02}"
|
|
||||||
elevated = "#${c.base02}"
|
|
||||||
border = "#${c.base03}"
|
|
||||||
text = "#${c.base05}"
|
|
||||||
muted = "#${c.base04}"
|
|
||||||
accent = "#${c.base0D}"
|
|
||||||
accent_soft = "#${c.base02}"
|
|
||||||
accent_text = "#${c.base06}"
|
|
||||||
selected_bg = "#${c.base02}"
|
|
||||||
selected_border = "#${c.base0D}"
|
|
||||||
selection_bar = "#${c.base09}"
|
|
||||||
yank_bar = "#${c.base0B}"
|
|
||||||
cut_bar = "#${c.base08}"
|
|
||||||
progress_bar = "#${c.base0D}"
|
|
||||||
grid_selection_band = "#${c.base02}"
|
|
||||||
grid_yank_band = "#${c.base01}"
|
|
||||||
grid_cut_band = "#${c.base01}"
|
|
||||||
sidebar_active = "#${c.base02}"
|
|
||||||
button_bg = "#${c.base01}"
|
|
||||||
button_disabled_bg = "#${c.base01}"
|
|
||||||
path_bg = "#${c.base00}"
|
|
||||||
|
|
||||||
[preview.code]
|
|
||||||
fg = "#${c.base05}"
|
|
||||||
bg = "#${c.base01}"
|
|
||||||
selection_bg = "#${c.base02}"
|
|
||||||
selection_fg = "#${c.base06}"
|
|
||||||
caret = "#${c.base0C}"
|
|
||||||
line_highlight = "#${c.base01}"
|
|
||||||
line_number = "#${c.base03}"
|
|
||||||
comment = "#${c.base03}"
|
|
||||||
string = "#${c.base0B}"
|
|
||||||
constant = "#${c.base09}"
|
|
||||||
keyword = "#${c.base0E}"
|
|
||||||
function = "#${c.base0D}"
|
|
||||||
type = "#${c.base0A}"
|
|
||||||
parameter = "#${c.base08}"
|
|
||||||
tag = "#${c.base0C}"
|
|
||||||
operator = "#${c.base0C}"
|
|
||||||
macro = "#${c.base0F}"
|
|
||||||
invalid = "#${c.base08}"
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
# Ghostty is a terminal emulator
|
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
cursorShaders = pkgs.fetchFromGitHub {
|
|
||||||
owner = "sahaj-b";
|
|
||||||
repo = "ghostty-cursor-shaders";
|
|
||||||
rev = "06d4e90fb5410e9c4d0b3131584060adddf89406";
|
|
||||||
hash = "sha256-G/UIr1bKnxn1AcHl/4FL/jou6b7M2VeREslYVELxdmw=";
|
|
||||||
};
|
|
||||||
c = config.lib.stylix.colors;
|
|
||||||
in {
|
|
||||||
home.sessionVariables = {
|
|
||||||
TERMINAL = "ghostty";
|
|
||||||
TERM = "ghostty";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.ghostty = {
|
|
||||||
enable = true;
|
|
||||||
installVimSyntax = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
settings = {
|
|
||||||
window-padding-x = 10;
|
|
||||||
confirm-close-surface = false;
|
|
||||||
window-padding-y = 10;
|
|
||||||
gtk-single-instance = true;
|
|
||||||
clipboard-read = "allow";
|
|
||||||
clipboard-write = "allow";
|
|
||||||
copy-on-select = "clipboard";
|
|
||||||
app-notifications = false;
|
|
||||||
custom-shader = "${cursorShaders}/cursor_warp.glsl";
|
|
||||||
custom-shader-animation = "always";
|
|
||||||
keybind = [
|
|
||||||
"shift+ctrl+tab=new_tab"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,52 +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-*"
|
|
||||||
".superpowers/"
|
|
||||||
".claude/"
|
|
||||||
"docs/superpowers/"
|
|
||||||
];
|
|
||||||
settings = {
|
|
||||||
user.name = username;
|
|
||||||
user.email = email;
|
|
||||||
init.defaultBranch = "main";
|
|
||||||
pull.rebase = "true";
|
|
||||||
push.autoSetupRemote = true;
|
|
||||||
color.ui = "1";
|
|
||||||
alias = {
|
|
||||||
co = "checkout";
|
|
||||||
fuck = "commit --amend -m";
|
|
||||||
c = "commit -m";
|
|
||||||
ca = "commit -am";
|
|
||||||
forgor = "commit --amend --no-edit";
|
|
||||||
graph = "log --all --decorate --graph --oneline";
|
|
||||||
oops = "checkout --";
|
|
||||||
l = "log";
|
|
||||||
r = "rebase";
|
|
||||||
s = "status --short";
|
|
||||||
ss = "status";
|
|
||||||
d = "diff";
|
|
||||||
ps = "!git push origin $(git rev-parse --abbrev-ref HEAD)";
|
|
||||||
pl = "!git pull origin $(git rev-parse --abbrev-ref HEAD)";
|
|
||||||
st = "status";
|
|
||||||
br = "branch";
|
|
||||||
hist = ''log --pretty=format:"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)" --graph --date=relative --decorate --all'';
|
|
||||||
llog = ''log --graph --name-status --pretty=format:"%C(red)%h %C(reset)(%cd) %C(green)%an %Creset%s %C(yellow)%d%Creset" --date=relative'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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,26 +0,0 @@
|
|||||||
{config, ...}: let
|
|
||||||
c = config.lib.stylix.colors;
|
|
||||||
in {
|
|
||||||
home.file.".config/ilovetui/config.yaml".text = ''
|
|
||||||
nerd_fonts: true
|
|
||||||
border: rounded
|
|
||||||
layout_border: full
|
|
||||||
colors:
|
|
||||||
base00: "#${c.base00}" # Background
|
|
||||||
base01: "#${c.base01}" # Lighter Background / Status Bars
|
|
||||||
base02: "#${c.base02}" # Selection Background
|
|
||||||
base03: "#${c.base03}" # Comments / Invisibles
|
|
||||||
base04: "#${c.base04}" # Dark Foreground / Status Bars
|
|
||||||
base05: "#${c.base05}" # Default Foreground
|
|
||||||
base06: "#${c.base06}" # Light Foreground
|
|
||||||
base07: "#${c.base07}" # Light Background
|
|
||||||
base08: "#${c.base08}" # Variables / Errors / Diff Deleted
|
|
||||||
base09: "#${c.base09}" # Integers / Constants / Booleans
|
|
||||||
base0a: "#${c.base0A}" # Classes / Warnings / Search Background
|
|
||||||
base0b: "#${c.base0B}" # Strings / Success / Diff Inserted
|
|
||||||
base0c: "#${c.base0C}" # Support / Regex / Escape Characters
|
|
||||||
base0d: "#${c.base0D}" # Functions / Methods / Headings / Accent
|
|
||||||
base0e: "#${c.base0E}" # Keywords / Storage / Diff Changed
|
|
||||||
base0f: "#${c.base0F}" # Embedded / Misc
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
programs.navi = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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,38 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.sessionVariables = {
|
|
||||||
EDITOR = "nvim";
|
|
||||||
VISUAL = "nvim";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.nvf = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
vim.luaConfigRC = lib.mkIf (config ? stylix && config.stylix.enable) {
|
|
||||||
hl-overrides = let
|
|
||||||
c = config.lib.stylix.colors;
|
|
||||||
in ''
|
|
||||||
local function apply_hl()
|
|
||||||
vim.api.nvim_set_hl(0, "MiniStarterHeader", { fg = "#${c.base0D}", bold = true })
|
|
||||||
vim.api.nvim_set_hl(0, "SnacksPickerBorder", { fg = "#${c.base0D}" })
|
|
||||||
vim.api.nvim_set_hl(0, "SnacksPickerTitle", { fg = "#${c.base0D}", bold = true })
|
|
||||||
end
|
|
||||||
apply_hl()
|
|
||||||
vim.api.nvim_create_autocmd("ColorScheme", { pattern = "*", callback = apply_hl })
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
imports = [
|
|
||||||
./options.nix
|
|
||||||
./languages.nix
|
|
||||||
./picker.nix
|
|
||||||
./snacks.nix
|
|
||||||
./keymaps.nix
|
|
||||||
./utils.nix
|
|
||||||
./mini.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,133 +0,0 @@
|
|||||||
{
|
|
||||||
"nodes": {
|
|
||||||
"flake-compat": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1777699697,
|
|
||||||
"narHash": "sha256-Eg9b/rq/ECYwNwEXs5i9wHyhxNI0JrYx2srdI2uZMaQ=",
|
|
||||||
"ref": "refs/heads/main",
|
|
||||||
"rev": "382052b74656a369c5408822af3f2501e9b1af81",
|
|
||||||
"revCount": 94,
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.lix.systems/lix-project/flake-compat.git"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.lix.systems/lix-project/flake-compat.git"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-parts": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs-lib": [
|
|
||||||
"nvf",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1778716662,
|
|
||||||
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mnw": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1780772958,
|
|
||||||
"narHash": "sha256-VKKe8r4pwCGWZ3Yr9CPN129R4S3CKLSrlYqdYz3vKpM=",
|
|
||||||
"owner": "Gerg-L",
|
|
||||||
"repo": "mnw",
|
|
||||||
"rev": "0871dbf63a53610c95db04439ed8ea4d6ec9c160",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "Gerg-L",
|
|
||||||
"repo": "mnw",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1785133411,
|
|
||||||
"narHash": "sha256-Yjv0WEg39KRYS0rBdTbu6Fc/or/ihAKk13W9sQ6VWd0=",
|
|
||||||
"owner": "nixos",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "2f5a153c270b70cb0f8c11f46d96d6d3bc39f4e3",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nixos",
|
|
||||||
"ref": "nixos-26.05",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1781216227,
|
|
||||||
"narHash": "sha256-9mUW6gNwoN2SWc/l0fW4svPNOulXLl8ijqKyeSOGgJE=",
|
|
||||||
"owner": "nixos",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "a0374025a863d007d98e3297f6aa46cc3141c2f0",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nixos",
|
|
||||||
"ref": "nixos-26.05",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nvf": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat",
|
|
||||||
"flake-parts": "flake-parts",
|
|
||||||
"mnw": "mnw",
|
|
||||||
"nixpkgs": "nixpkgs_2",
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1781997110,
|
|
||||||
"narHash": "sha256-6D6xtYN5t1kZGNd69eMZsRBkgX5Df1roErn/kFR1C+A=",
|
|
||||||
"owner": "notashelf",
|
|
||||||
"repo": "nvf",
|
|
||||||
"rev": "320f60b97075a58d38b90fc5e39f478421dbd38a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "notashelf",
|
|
||||||
"repo": "nvf",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": "nixpkgs",
|
|
||||||
"nvf": "nvf"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "root",
|
|
||||||
"version": 7
|
|
||||||
}
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
{
|
|
||||||
description = "Hadi's NVF Neovim configuration";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
|
||||||
nvf.url = "github:notashelf/nvf";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = {
|
|
||||||
self,
|
|
||||||
nixpkgs,
|
|
||||||
nvf,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
|
|
||||||
forAllSystems = f: nixpkgs.lib.genAttrs systems f;
|
|
||||||
modules = [
|
|
||||||
./options.nix
|
|
||||||
./languages.nix
|
|
||||||
./picker.nix
|
|
||||||
./snacks.nix
|
|
||||||
./keymaps.nix
|
|
||||||
./utils.nix
|
|
||||||
./mini.nix
|
|
||||||
];
|
|
||||||
in {
|
|
||||||
packages = forAllSystems (system: let
|
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
|
||||||
nvim = (nvf.lib.neovimConfiguration {inherit pkgs modules;}).neovim;
|
|
||||||
in {
|
|
||||||
inherit nvim;
|
|
||||||
default = nvim;
|
|
||||||
});
|
|
||||||
|
|
||||||
apps = forAllSystems (system: let
|
|
||||||
nvim = {
|
|
||||||
type = "app";
|
|
||||||
program = "${self.packages.${system}.nvim}/bin/nvim";
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
inherit nvim;
|
|
||||||
default = nvim;
|
|
||||||
});
|
|
||||||
|
|
||||||
homeManagerModules = rec {
|
|
||||||
nvim = {
|
|
||||||
imports = [
|
|
||||||
nvf.homeManagerModules.default
|
|
||||||
./default.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
default = nvim;
|
|
||||||
};
|
|
||||||
|
|
||||||
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
|
||||||
};
|
|
||||||
}
|
|
||||||