Compare commits
293 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b31f3be8d | ||
|
|
24d0f22f8e | ||
|
|
13cf7cd494 | ||
|
|
65c430318f | ||
|
|
b4e6f9d48c | ||
|
|
a024023c43 | ||
|
|
6edf2cd0b9 | ||
|
|
d2b3e6b430 | ||
|
|
b5476da7ef | ||
|
|
9c1afd279c | ||
|
|
f998316b9e | ||
|
|
fea1eade7f | ||
|
|
2517219f4c | ||
|
|
c5d95b14ea | ||
|
|
0a7befb23b | ||
|
|
41116fb2b5 | ||
|
|
cf2f5f2f9b | ||
|
|
35ba84724f | ||
|
|
2151fc6f90 | ||
|
|
45ed8258ca | ||
|
|
ffc95dcd1b | ||
|
|
2c68166067 | ||
|
|
ae83c7497a | ||
|
|
03c675cf62 | ||
|
|
a4d8670563 | ||
|
|
0114b629e6 | ||
|
|
7f4280af72 | ||
|
|
e7b4080c2a | ||
|
|
c541832066 | ||
|
|
8b57bffcd6 | ||
|
|
7a4e3ad1a3 | ||
|
|
7a2c2c6201 | ||
|
|
a8c0fdb670 | ||
|
|
5ce310fe6d | ||
|
|
89818e9ee2 | ||
|
|
d943b85cc9 | ||
|
|
8eaa78bf4b | ||
|
|
82d6c29f21 | ||
|
|
72a8aa16bb | ||
|
|
5c9b799afe | ||
|
|
eb584dac56 | ||
|
|
2fd610a09c | ||
|
|
8eb88f474a | ||
|
|
f73291c269 | ||
|
|
e93e5807f9 | ||
|
|
6d0a2e186b | ||
|
|
c2a700ef3a | ||
|
|
7b0deaf9c1 | ||
|
|
98d1ccb2c0 | ||
|
|
e6f46e1788 | ||
|
|
e6c2becccb | ||
|
|
cfc9f99c83 | ||
|
|
3c43b277b7 | ||
|
|
64f789e52a | ||
|
|
9ab4dae87b | ||
|
|
f2b742e470 | ||
|
|
a3f44fa53c | ||
|
|
91d06ef6a4 | ||
|
|
b9df9861fc | ||
|
|
049e2a9214 | ||
|
|
78bb7ff465 | ||
|
|
8e04a559b9 | ||
|
|
aa3f3e2269 | ||
|
|
bcc505f5dd | ||
|
|
f0617924b0 | ||
|
|
14c33a8191 | ||
|
|
fcd92d0155 | ||
|
|
9d73c644a7 | ||
|
|
c5c0fdc7cc | ||
|
|
42d7b8b820 | ||
|
|
2983dd6270 | ||
|
|
7d684153a9 | ||
|
|
bc26eb05a7 | ||
|
|
ec38767570 | ||
|
|
5340cfeb84 | ||
|
|
734e310f28 | ||
|
|
e388cc7556 | ||
|
|
0263e08415 | ||
|
|
65f8fcc926 | ||
|
|
59a3c1d4de | ||
|
|
206d4d7433 | ||
|
|
8c8833b26e | ||
|
|
392a3e4998 | ||
|
|
76a423a964 | ||
|
|
63c19a0c61 | ||
|
|
f3f4689cc8 | ||
|
|
2050efbfbf | ||
|
|
8d5734b739 | ||
|
|
f23897d7d8 | ||
|
|
22b00bf301 | ||
|
|
76355d3ca1 | ||
|
|
14b29a6588 | ||
|
|
5eafcf5b76 | ||
|
|
9c43d22eb1 | ||
|
|
06428958dd | ||
|
|
0d84783032 | ||
|
|
25af8d6213 | ||
|
|
e3549ce9e5 | ||
|
|
1d859e5c13 | ||
|
|
4ef84d1f8d | ||
|
|
ed791eb748 | ||
|
|
5c6acc2028 | ||
|
|
a9dc177a34 | ||
|
|
ef32063715 | ||
|
|
bdaa52dedc | ||
|
|
c5d7ba76c7 | ||
|
|
358e8c9158 | ||
|
|
d1dd841da8 | ||
|
|
8137ebfd99 | ||
|
|
cc45eda3ef | ||
|
|
8415d92264 | ||
|
|
17d95716b6 | ||
|
|
6db2fc373d | ||
|
|
ebbf404c68 | ||
|
|
9fc328f675 | ||
|
|
ba489aaea3 | ||
|
|
67ec1dd41f | ||
|
|
ae50fc36d6 | ||
|
|
f401067dd9 | ||
|
|
a02bee95de | ||
|
|
ec7b2a2fe9 | ||
|
|
2a40427cd6 | ||
|
|
eb42d3e4d1 | ||
|
|
03f4715693 | ||
|
|
c35dfb8017 | ||
|
|
7bdacd9ed5 | ||
|
|
c8ca22f308 | ||
|
|
13b147932e | ||
|
|
29b6dc17c0 | ||
|
|
8ff1df4333 | ||
|
|
af0241f1eb | ||
|
|
3719cc90be | ||
|
|
396297d6f7 | ||
|
|
cb4b5741d7 | ||
|
|
da000e60bd | ||
|
|
c4a38e7691 | ||
|
|
8972cd081b | ||
|
|
b930a7e9f7 | ||
|
|
85a7fc8ca7 | ||
|
|
869a442843 | ||
|
|
49b6d81216 | ||
|
|
21d84fd39d | ||
|
|
2a12db0133 | ||
|
|
9c5118264c | ||
|
|
3a8df54936 | ||
|
|
a3c8ad5efb | ||
|
|
b38a1ccef8 | ||
|
|
321bb0bd16 | ||
|
|
6c96796584 | ||
|
|
c6bc2ba192 | ||
|
|
c5f8e0f7a2 | ||
|
|
9ff0e4cbe4 | ||
|
|
4c0a61ccad | ||
|
|
8ddabcee34 | ||
|
|
ccef91e0ed | ||
|
|
f9057b2983 | ||
|
|
5e276e88f8 | ||
|
|
6c4428b4ef | ||
|
|
fd32e06cd2 | ||
|
|
1a4615a781 | ||
|
|
3823561a0a | ||
|
|
b667a65f31 | ||
|
|
88df4c8d42 | ||
|
|
8082c06548 | ||
|
|
21bf90efc0 | ||
|
|
6d22f2d409 | ||
|
|
ffa788dd4e | ||
|
|
79a045e3bb | ||
|
|
2fb8a97b71 | ||
|
|
26065f3699 | ||
|
|
4f2ba52404 | ||
|
|
be23ff67aa | ||
|
|
ff79cbf502 | ||
|
|
8b8f3fa54b | ||
|
|
1f2bb4c33a | ||
|
|
9d458b7e04 | ||
|
|
dedf840131 | ||
|
|
7dc2c69292 | ||
|
|
def86d31a4 | ||
|
|
3038f62405 | ||
|
|
fe01b971cf | ||
|
|
918c865202 | ||
|
|
6e30f6cd4e | ||
|
|
ff73c05ba6 | ||
|
|
dbf520b556 | ||
|
|
fc046db74b | ||
|
|
96bae83dd1 | ||
|
|
aae802193c | ||
|
|
8dc316d6a4 | ||
|
|
ad86356f9a | ||
|
|
007ef7304b | ||
|
|
019a6deaf4 | ||
|
|
7da96ad2c7 | ||
|
|
7ebc1ba322 | ||
|
|
c5e9cb9c32 | ||
|
|
a3ec52058e | ||
|
|
d78f213006 | ||
|
|
73b2015d02 | ||
|
|
cedad9a7a6 | ||
|
|
65d6c2f28f | ||
|
|
18c7618ebf | ||
|
|
e29a5c2517 | ||
|
|
6f3c922010 | ||
|
|
2b902ef731 | ||
|
|
7cb070b6b1 | ||
|
|
e788f5954e | ||
|
|
bfb370d8fe | ||
|
|
0332b6c56b | ||
|
|
e5bdab5a24 | ||
|
|
a42ef3ff84 | ||
|
|
da33cf1fd3 | ||
|
|
4290a5e814 | ||
|
|
8e425d5d87 | ||
|
|
8aeff4bb9a | ||
|
|
6d23ca208e | ||
|
|
41ccb74258 | ||
|
|
5f1b047221 | ||
|
|
a5b26b92de | ||
|
|
5e71ef48dd | ||
|
|
2fc51aa02e | ||
|
|
7dc90af1c8 | ||
|
|
7a564110a5 | ||
|
|
bb08cd494a | ||
|
|
3b5885e2c9 | ||
|
|
d9810c3c1f | ||
|
|
13f060d100 | ||
|
|
40164e8cbd | ||
|
|
f9187d3252 | ||
|
|
b86fe8b3c7 | ||
|
|
9cdddb99c5 | ||
|
|
35bb470eb1 | ||
|
|
1a1597ba49 | ||
|
|
8c55eb48af | ||
|
|
cd3dfb985c | ||
|
|
19bf7838c4 | ||
|
|
05da8fd990 | ||
|
|
d28ad77974 | ||
|
|
379424e228 | ||
|
|
355336c9ff | ||
|
|
46b213bbfa | ||
|
|
4fda4eda9e | ||
|
|
3bffc0142c | ||
|
|
21f5d55569 | ||
|
|
12d7254c83 | ||
|
|
35dd9bb964 | ||
|
|
e104aec12d | ||
|
|
e11dcecace | ||
|
|
84d2f689ed | ||
|
|
52c060c8be | ||
|
|
28dc3d1a94 | ||
|
|
ef2ee20495 | ||
|
|
f4f253a218 | ||
|
|
2f0f3c74f3 | ||
|
|
2809615f7b | ||
|
|
a617044695 | ||
|
|
379cd9e98d | ||
|
|
60d880aac2 | ||
|
|
89d736c311 | ||
|
|
96faa74cf0 | ||
|
|
0f6a8af649 | ||
|
|
80b3607bc1 | ||
|
|
9c1c2a21a4 | ||
|
|
ab13ead2a8 | ||
|
|
dea3f4f4fd | ||
|
|
4bf7d41ff1 | ||
|
|
54bb1e2064 | ||
|
|
3e818073e0 | ||
|
|
9c8d27e687 | ||
|
|
ca138aa8af | ||
|
|
784df1e08f | ||
|
|
a12846fddc | ||
|
|
820268a2a1 | ||
|
|
7e19f9ee0d | ||
|
|
6558683822 | ||
|
|
8401688019 | ||
|
|
cfd999b373 | ||
|
|
70b156b828 | ||
|
|
6e056afe67 | ||
|
|
caa93f691c | ||
|
|
34776f0af1 | ||
|
|
7f30239b2a | ||
|
|
6d744fab45 | ||
|
|
cf6ed4a265 | ||
|
|
62e0472698 | ||
|
|
d477340177 | ||
|
|
f9c910f5ac | ||
|
|
41a225ec83 | ||
|
|
35c98d1b97 | ||
|
|
1a477e26bc | ||
|
|
8166950e74 | ||
|
|
ea0d1cee92 | ||
|
|
8df0278272 | ||
|
|
6c471c33f7 |
1
.gitignore
vendored
@@ -1,2 +1 @@
|
|||||||
.sops.yaml
|
|
||||||
todolist.md
|
todolist.md
|
||||||
|
|||||||
11
.sops.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
keys:
|
||||||
|
- &primary age12yvtj49pfh3fqzqflscm0ek4yzrjhr6cqhn7x89gdxnlykq0xudq5c7334
|
||||||
|
creation_rules:
|
||||||
|
- path_regex: secrets/laptop.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *primary
|
||||||
|
- path_regex: secrets/server.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *primary
|
||||||
222
README.md
@@ -1,157 +1,64 @@
|
|||||||
<h1 align="center">
|
[//]: # (Title: Nixy)
|
||||||
<img src="https://image.nostr.build/70ebe2b5183879d8c0ffa682cd0089e030ad01909678b242ed86449517eac3a5.png" width="100px" />
|
[//]: # (Description: Nixy is a Hyprland NixOS configuration with home-manager, secrets and custom theming all in one place. It's a simple way to manage your system configuration and dotfiles.)
|
||||||
<br>
|
[//]: # (Author: Hadi)
|
||||||
Nixy
|
[//]: # (Date: 06/25/24)
|
||||||
<br>
|
[//]: # (Version: v2.0.0)
|
||||||
<img src="https://image.nostr.build/aaf8cf0f3b9784c817f8cf328f19222db2e1886dfb89ae97de83ffa101d437b4.png" width="600px" /> <br>
|
|
||||||
<div align="center">
|
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<p></p>
|
<img src="https://raw.githubusercontent.com/anotherhadi/nixy/main/docs/src/logo.png" width="100px" />
|
||||||
<div align="center">
|
</div>
|
||||||
<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>
|
|
||||||
</div>
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
Hello there! This is my **NixOs (w/home-manager) dotfiles** repo. It's still a *work in progress*, and I'm still learning how to use nix.
|
<br>
|
||||||
|
|
||||||
|
# Nixy
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<div align="center">
|
||||||
|
<a href="https://github.com/anotherhadi/nixy">
|
||||||
|
<img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=Version&message=v2.0.0&colorA=181825&colorB=89b4fa&logo=githubactions&logoColor=89b4fa"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/stargazers">
|
||||||
|
<img src="https://img.shields.io/github/stars/anotherhadi/nixy?color=89b4fa&labelColor=181825&style=for-the-badge&logo=starship&logoColor=89b4fa">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/">
|
||||||
|
<img src="https://img.shields.io/github/repo-size/anotherhadi/nixy?color=89b4fa&labelColor=181825&style=for-the-badge&logo=github&logoColor=89b4fa">
|
||||||
|
</a>
|
||||||
|
<a href="https://nixos.org">
|
||||||
|
<img src="https://img.shields.io/badge/NixOS-unstable-blue.svg?style=for-the-badge&labelColor=181825&logo=NixOS&logoColor=89b4fa&color=89b4fa">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/blob/main/LICENSE">
|
||||||
|
<img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=License&message=MIT&colorA=181825&colorB=89b4fa&logo=unlicense&logoColor=89b4fa"/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
**Nixy** is a **Hyprland** NixOS configuration with **home-manager**, **secrets**, and **custom theming** all in one place.
|
||||||
|
It's a simple way to manage your system configuration and dotfiles.
|
||||||
|
|
||||||
|
## Table of Content
|
||||||
|
|
||||||
|
- [Table of Content](#table-of-content)
|
||||||
|
- [Gallery](#gallery)
|
||||||
|
- [Architecture](#architecture)
|
||||||
|
- [Installation](#installation)
|
||||||
|
- [Documentation](#documentation)
|
||||||
|
|
||||||
## Gallery
|
## Gallery
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|
|
||||||
|
|
||||||
## Apps
|
## Architecture
|
||||||
|
|
||||||
<details>
|
- 🏠 `home` are the dotfiles and configuration files for the user
|
||||||
<summary>Click to expand</summary>
|
- 💻 `hosts` are the system configuration files
|
||||||
|
- 'laptop' is my configuration for my laptop with Nvidia
|
||||||
| Category | Software |
|
- 'server' is for my Nixos server (w/nextcloud, nginx, vaultwarden, ... look `hosts/server`)
|
||||||
|----------------|---------------|
|
- 'guest' is a *template* that you can copy and modify for *your own system*
|
||||||
| WM | Hyprland |
|
- 'themes' contains all the *themes* available *(see [THEMES.md](docs/THEMES.md))*
|
||||||
| | hyprlock |
|
- 'modules' are some nix modules that you can import (Nvidia, prime, fonts, ...)
|
||||||
| | hyprpaper |
|
- 🤫 `secrets` are the secrets files encrypted with sops-nix
|
||||||
| | hypridle |
|
|
||||||
| | wlogout |
|
|
||||||
| Bar | waybar |
|
|
||||||
| Terminal | kitty |
|
|
||||||
| Shell | zsh |
|
|
||||||
| | tmux |
|
|
||||||
| | starship |
|
|
||||||
| | bat |
|
|
||||||
| | eza |
|
|
||||||
| | zoxide |
|
|
||||||
| | fzf |
|
|
||||||
| Editor | nixvim |
|
|
||||||
| File manager | lf |
|
|
||||||
| | thunar |
|
|
||||||
| Browser | qutebrowser |
|
|
||||||
| Music | spicetify |
|
|
||||||
| Notifications | dunst |
|
|
||||||
| Launcher | wofi |
|
|
||||||
| DM | tuigreet |
|
|
||||||
| Secrets | sops-nix |
|
|
||||||
| Misc | lazygit |
|
|
||||||
| | neofetch |
|
|
||||||
| | cava |
|
|
||||||
| | ... |
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
## Themes & Colors
|
|
||||||
|
|
||||||
Themes and colors are managed by the `home/themes` folder. You can copy the default `nixy.nix` theme and make your own.
|
|
||||||
|
|
||||||
To apply the theme to duckduckgo, follow the instructions in `$HOME/.config/duckduckgo-colorscheme.js`.
|
|
||||||
|
|
||||||
## Scripts
|
|
||||||
|
|
||||||
### Nix/NixOs shortcuts
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Click to expand</summary>
|
|
||||||
|
|
||||||
- `nixy-edit`
|
|
||||||
- `nixy-rebuild`
|
|
||||||
- `nixy-update`
|
|
||||||
- `nixy-gc` # garbage collection
|
|
||||||
- `nixy-cb` # clean boot menu
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
### Brightness control
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Click to expand</summary>
|
|
||||||
|
|
||||||
- `brightness-up`
|
|
||||||
- `brightness-down`
|
|
||||||
- `brightness-change <up/down> <increment>`
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
### Sound control
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Click to expand</summary>
|
|
||||||
|
|
||||||
- `sound-up`
|
|
||||||
- `sound-down`
|
|
||||||
- `sound-toggle`
|
|
||||||
- `sound-output`
|
|
||||||
- `sound-change <up/down/mute> <increment>`
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
### Caffeine
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Click to expand</summary>
|
|
||||||
|
|
||||||
Caffeine is a simple script that toggles hypridle (disable suspend & screenlock).
|
|
||||||
|
|
||||||
- `caffeine` # Toggle caffeine
|
|
||||||
- `caffeine-status` # Return active/inactive
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
### Night-Shift
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Click to expand</summary>
|
|
||||||
|
|
||||||
Blue light filter, using wlsunset
|
|
||||||
|
|
||||||
- `night-shift-on`
|
|
||||||
- `night-shift-off`
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
### Nerdfont FZF
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Click to expand</summary>
|
|
||||||
|
|
||||||
Nerdfont fzf is a quick way to search for nerdfont icons locally.
|
|
||||||
It will copy the selected icon to the clipboard.
|
|
||||||
|
|
||||||
- `nerdfont-fzf`
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -159,11 +66,22 @@ It will copy the selected icon to the clipboard.
|
|||||||
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
||||||
```
|
```
|
||||||
|
|
||||||
- Change the `variables.nix` file to match your configuration
|
- Copy the `hosts/guest` folder, rename it to your system name, and change the variables inside the `variables.nix` file
|
||||||
- Remove the hardware module in flake.nix line 30
|
- Add your `hardware-configuration.nix` to your new host's folder
|
||||||
- Change the `nixos/configuration.nix` file to match your system
|
- Add your 'nixosConfigurations' inside `flake.nix` (You can edit the "yourhostname" one and change the lines containing '# CHANGEME')
|
||||||
- Copy your `hardware-configuration.nix` file to the `nixos` folder
|
|
||||||
|
> [!NOTE]
|
||||||
|
> When you add new files, don't forget to run `git add .` to add them to the git repository
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo nixos-rebuild switch --flake ~/.config/nixos#nixy
|
sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
- [THEMES.md](docs/THEMES.md): How themes work and how to create your own
|
||||||
|
- [APPS.md](docs/APPS.md): Which apps are installed
|
||||||
|
- [SCRIPTS.md](docs/SCRIPTS.md): Scripts that are available
|
||||||
|
- [TODO.md](docs/TODO.md): What's next (feel free to contribute)
|
||||||
|
- [CONTRIBUTING.md](docs/CONTRIBUTING.md): How to contribute
|
||||||
|
- [LICENSE](LICENSE): MIT Licensey
|
||||||
|
|||||||
57
docs/APPS.md
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
# Apps and services
|
||||||
|
|
||||||
|
*non-exhaustive lists*
|
||||||
|
|
||||||
|
## Laptop
|
||||||
|
|
||||||
|
The laptop configuration is used by a Omen 16 laptop w/ nvidia and an amd gpu running NixOS.
|
||||||
|
The configurations files can be found in the `hosts/laptop` directory.
|
||||||
|
|
||||||
|
|
||||||
|
| Category | Name |
|
||||||
|
|----------------|---------------|
|
||||||
|
| WM | Hyprland |
|
||||||
|
| | hyprlock |
|
||||||
|
| | hyprpaper |
|
||||||
|
| | hypridle |
|
||||||
|
| | wlogout |
|
||||||
|
| Bar | waybar |
|
||||||
|
| Terminal | kitty |
|
||||||
|
| Shell | zsh |
|
||||||
|
| | tmux |
|
||||||
|
| | starship |
|
||||||
|
| | bat |
|
||||||
|
| | eza |
|
||||||
|
| | zoxide |
|
||||||
|
| | fzf |
|
||||||
|
| Editor | neovim(nixvim)|
|
||||||
|
| File manager | lf |
|
||||||
|
| | thunar |
|
||||||
|
| Browser | qutebrowser |
|
||||||
|
| Music | spicetify |
|
||||||
|
| Notifications | dunst |
|
||||||
|
| Launcher | wofi |
|
||||||
|
| DM | tuigreet |
|
||||||
|
| Secrets | sops-nix |
|
||||||
|
| Misc | lazygit |
|
||||||
|
| | neofetch |
|
||||||
|
| | cava |
|
||||||
|
| See [hosts/laptop](../hosts/laptop/)... | |
|
||||||
|
|
||||||
|
## Server
|
||||||
|
|
||||||
|
The server configuration is used by a home server running NixOS.
|
||||||
|
The configurations files can be found in the `hosts/server` directory.
|
||||||
|
I mainly use it for self hosting websites and services such as Nextcloud, Vaultwarden, ...
|
||||||
|
I exposed some services to the internet using a reverse proxy (Nginx) and cloudflare-dyndns, others are accessed through a tailscale network
|
||||||
|
|
||||||
|
### Apps
|
||||||
|
|
||||||
|
- Nextcloud
|
||||||
|
- Vaultwarden
|
||||||
|
- Adguard Home
|
||||||
|
- Unifi Controler
|
||||||
|
- Uptime Kuma
|
||||||
|
- "Jackflix"
|
||||||
|
- Jellyfin, Transmission, *arr
|
||||||
|
- See [hosts/server](../hosts/server/)...
|
||||||
13
docs/CONTRIBUTING.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Contributing to Nixy
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
- Read [How to get faster PR reviews](https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#best-practices-for-faster-reviews) by Kubernetes (but skip step 0 and 1)
|
||||||
|
- Fork Nixy [git repository](https://github.com/anotherhadi/nixy).
|
||||||
|
- Write your changes (new theme, bug fixes, task in todo, ...).
|
||||||
|
- Create a Pull Request against the main branch of Nixy.
|
||||||
|
|
||||||
|
> [!WARNING]
|
||||||
|
> Don't push your host's files, secrets, or home configuration
|
||||||
57
docs/SCRIPTS.md
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
# Scripts
|
||||||
|
|
||||||
|
Scripts are located in the `home/scripts` folder. Home-manager add those in the path.
|
||||||
|
|
||||||
|
## Nix/NixOs shortcuts
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> The `hostname` variable in `hosts/yourhost/variables.nix` should be also the name of the `nixosConfiguration` in `flake.nix` file.
|
||||||
|
|
||||||
|
- `nixy` # UI
|
||||||
|
- `nixy rebuild`
|
||||||
|
- `nixy update`
|
||||||
|
- `nixy upgrade`
|
||||||
|
- `nixy gc` # garbage collection
|
||||||
|
- `nixy cb` # clean boot menu
|
||||||
|
|
||||||
|
## Brightness control
|
||||||
|
|
||||||
|
- `brightness-up`
|
||||||
|
- `brightness-down`
|
||||||
|
- `brightness-change <up/down> <increment>`
|
||||||
|
|
||||||
|
## Sound control
|
||||||
|
|
||||||
|
- `sound-up`
|
||||||
|
- `sound-down`
|
||||||
|
- `sound-toggle`
|
||||||
|
- `sound-output`
|
||||||
|
- `sound-change [up/down/mute] <increment>`
|
||||||
|
|
||||||
|
## Caffeine
|
||||||
|
|
||||||
|
Caffeine is a simple script that toggles hypridle (disable suspend & screenlock).
|
||||||
|
|
||||||
|
- `caffeine` # Toggle caffeine
|
||||||
|
- `caffeine-status` # Return active/inactive
|
||||||
|
|
||||||
|
## Night-Shift
|
||||||
|
|
||||||
|
Blue light filter, using wlsunset
|
||||||
|
|
||||||
|
- `night-shift-on`
|
||||||
|
- `night-shift-off`
|
||||||
|
|
||||||
|
## Nerdfont FZF
|
||||||
|
|
||||||
|
Nerdfont fzf is a quick way to search for nerdfont icons locally.
|
||||||
|
It will copy the selected icon to the clipboard.
|
||||||
|
|
||||||
|
- `nerdfont-fzf`
|
||||||
|
|
||||||
|
## Compress/Extract
|
||||||
|
|
||||||
|
Some shortcuts to compress and extract files.
|
||||||
|
|
||||||
|
- `compress` ...
|
||||||
|
- `extract` ...
|
||||||
32
docs/THEMES.md
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# Themes
|
||||||
|
|
||||||
|
Themes are defined in `hosts/themes`. Those themes define the colors, fonts, icons, etc, used by Hyprland and the apps/programs installed.
|
||||||
|
You can change the selected theme by changing the import statement of your host's variables.nix file.
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> To apply the theme to Duckduckgo, follow the instructions in `$HOME/.duckduckgo-colorscheme.js`
|
||||||
|
|
||||||
|
## Create your theme
|
||||||
|
|
||||||
|
Create a copy of one of the existing themes and change the variables.
|
||||||
|
Wallpapers are loaded from the `home/wallpapers` folder.
|
||||||
|
|
||||||
|
## Gallery
|
||||||
|
|
||||||
|
### Nixy
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

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

|
||||||
|

|
||||||
|

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

|
||||||
|

|
||||||
|

|
||||||
42
docs/TODO.md
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
# Todolist
|
||||||
|
|
||||||
|
feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
|
||||||
|
|
||||||
|
- [ ] Nixy
|
||||||
|
- [ ] Installation script ([install.sh](./scripts/install.sh) to test on a fresh install)
|
||||||
|
- [ ] Variables-template with defaults
|
||||||
|
- [ ] Themes
|
||||||
|
- [ ] Upload new wallpapers
|
||||||
|
- [ ] MacOS theme
|
||||||
|
- [ ] GithubFetch: Neofetch like, github calendar in the terminal
|
||||||
|
- [ ] Write a hyprland shortcuts markdown file (Parse the hyprland settings conf)
|
||||||
|
- [ ] Tofi (Wofi but terminal based)
|
||||||
|
|
||||||
|
- [ ] Waybar
|
||||||
|
- [ ] Caffeine status
|
||||||
|
- [ ] Night-shift status
|
||||||
|
|
||||||
|
- [ ] Hyprland
|
||||||
|
- [ ] Make hyprcursor work
|
||||||
|
- [ ] Animations based on app name
|
||||||
|
- [ ] Wofi: popin
|
||||||
|
- [ ] Wlogout: fade in
|
||||||
|
- [ ] Fix screenshots
|
||||||
|
|
||||||
|
- [ ] Nixvim
|
||||||
|
- [ ] Telescope: find with file content
|
||||||
|
- [ ] Markdown snippets
|
||||||
|
- [ ] Whichkey: Description for keybindings
|
||||||
|
- [ ] Spelling
|
||||||
|
|
||||||
|
- [ ] Backup system for some folders ($home/dev, $home/pictures, ...)
|
||||||
|
- [ ] Exclude file pattern (nodes modules, ...)
|
||||||
|
- [ ] Auto backup when a specific usb key is plugged
|
||||||
|
|
||||||
|
- [ ] Usb security for laptop & server, variable in variables.nix, disable for guest
|
||||||
|
|
||||||
|
- [ ] Server
|
||||||
|
- [ ] Bitcoin-git
|
||||||
|
- [ ] ServerFetch: Neofetch like, but for server: CPU, RAM, Disk, Network, Uptime, status (check with uptime kuma API)
|
||||||
|
- [ ] Ntfy auth file
|
||||||
|
- [ ] Launch transmission-openvpn on boot (see hosts/server/modules/jackflix/transmission.nix)
|
||||||
19
docs/scripts/compress_png.sh
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Compress png files in ./docs/src
|
||||||
|
|
||||||
|
[[ -d "./docs" ]] || (echo "Folder ./docs not found" && exit 1)
|
||||||
|
|
||||||
|
# Main images
|
||||||
|
for file in ./docs/src/*.png; do
|
||||||
|
optipng "$file"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Theme's images
|
||||||
|
for file in ./docs/src/*/*.png; do
|
||||||
|
optipng "$file"
|
||||||
|
done
|
||||||
|
|
||||||
|
for file in ./home/wallpapers/*.png; do
|
||||||
|
optipng "$file"
|
||||||
|
done
|
||||||
29
docs/scripts/create_guest_config.sh
Normal file
@@ -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/obsidian = true/obsidian = false/')
|
||||||
|
variables=$(echo "$variables" | sed 's/tailscale = true/tailscale = false/')
|
||||||
|
echo "$variables" >"$GUEST_CONFIG/variables.nix"
|
||||||
23
docs/scripts/create_readme.sh
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
#!/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)
|
||||||
|
version=$(git describe --tags --abbrev=0)
|
||||||
|
readme_content=$(cat "./docs/src/README_template.md")
|
||||||
|
|
||||||
|
header=${header//\{date\}/$(date '+%D')}
|
||||||
|
header=${header//\{primarycolor\}/89b4fa}
|
||||||
|
header=${header//\{backgroundcolor\}/181825}
|
||||||
|
header=${header//\{version\}/$version}
|
||||||
|
readme_content=${readme_content//\{md_table_of_content\}/$table_of_content}
|
||||||
|
|
||||||
|
echo "$header" >"$README_FILE"
|
||||||
|
echo "$readme_content" >>"$README_FILE"
|
||||||
|
sed 's/\r//' "$README_FILE" >"/tmp/readme.md"
|
||||||
|
mv "/tmp/readme.md" "$README_FILE"
|
||||||
21
docs/scripts/get_keybindings.sh
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
[[ -f "./home/system/hyprland/default.nix" ]] || (echo "File ./home/system/hyprland/default.nix not found" && exit 1)
|
||||||
|
|
||||||
|
config=$( cat "./home/system/hyprland/default.nix")
|
||||||
|
|
||||||
|
# get text between
|
||||||
|
# bind = [
|
||||||
|
# and next ]
|
||||||
|
|
||||||
|
# Example:
|
||||||
|
# "$mod, E, exec, ${pkgs.xfce.thunar}/bin/thunar" # Description
|
||||||
|
# Steps:
|
||||||
|
# We should remove the ""
|
||||||
|
# $mod replace by Super key
|
||||||
|
# $shiftMod replace by "Super Shift"
|
||||||
|
# Concat with key
|
||||||
|
# Remove , exec,
|
||||||
|
# Remove variables and /bin/ if present
|
||||||
|
|
||||||
|
# Create a markdown table with everything
|
||||||
78
docs/scripts/install.sh
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# https://github.com/anotherhadi/nixy
|
||||||
|
# Installation script: Should be run on fresh nixos install.
|
||||||
|
|
||||||
|
printf "\n\e[0;92m- \e[0m\e[1;77mNixy's Installation Script\e[0;96m [anotherhadi/nixy]\e[0m"
|
||||||
|
|
||||||
|
# Check if we're on the good directory
|
||||||
|
[[ -f "./docs/scripts/install.sh" ]] || (
|
||||||
|
printf "\n\e[0;91mx \e[0m\e[1;77mNot in the project root directory\e[0m"
|
||||||
|
exit 1
|
||||||
|
)
|
||||||
|
DIR=$PWD
|
||||||
|
|
||||||
|
# Create a new configuration
|
||||||
|
read -rp $'\n\e[0;92m+\e[0m\e[1;77m Username: \e[0;96m' username
|
||||||
|
read -rp $'\n\e[0;92m+\e[0m\e[1;77m Hostname: \e[0;96m' hostname
|
||||||
|
|
||||||
|
HOST_DIR="./hosts/$hostname"
|
||||||
|
mkdir "$HOST_DIR"
|
||||||
|
|
||||||
|
nixos-generate-config --show-hardware-config >"$HOST_DIR/hardware-configuration.nix"
|
||||||
|
|
||||||
|
printf "\n\e[0;92m? \e[0m\e[1;77mInstall Nvidia drivers?\e[0;96m [y/N]\e[0m"
|
||||||
|
read -r yn
|
||||||
|
yn=$(echo "$yn" | tr '[:upper:]' '[:lower:]')
|
||||||
|
if [[ $yn == "y" || $yn == "yes" ]]; then
|
||||||
|
nvidia=true
|
||||||
|
else
|
||||||
|
nvidia=false
|
||||||
|
fi
|
||||||
|
|
||||||
|
printf "\n\e[0;92m? \e[0m\e[1;77mInstall prime?\e[0;96m [y/N]\e[0m"
|
||||||
|
read -r yn
|
||||||
|
yn=$(echo "$yn" | tr '[:upper:]' '[:lower:]')
|
||||||
|
if [[ $yn == "y" || $yn == "yes" ]]; then
|
||||||
|
prime=true
|
||||||
|
else
|
||||||
|
prime=false
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp "$LAPTOP_CONFIG/configuration.nix" "$HOST_DIR/configuration.nix"
|
||||||
|
cp "$LAPTOP_CONFIG/variables.nix" "$HOST_DIR/variables.nix"
|
||||||
|
|
||||||
|
config=$(cat "$LAPTOP_CONFIG/configuration.nix")
|
||||||
|
if [[ $nvidia == false ]]; then
|
||||||
|
config=$(echo "$config" | sed 's/..\/shared\/nvidia/# ..\/shared\/nvidia/')
|
||||||
|
fi
|
||||||
|
if [[ $prime == false ]]; then
|
||||||
|
config=$(echo "$config" | sed 's/..\/shared\/prime/# ..\/shared\/prime/')
|
||||||
|
fi
|
||||||
|
echo "$config" >"$HOST_DIR/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/$username/")
|
||||||
|
variables=$(echo "$variables" | sed "s/nixy/$hostname/") # FIXME: Host name can be mixed with themes
|
||||||
|
variables=$(echo "$variables" | sed "s/Hadi/$username/")
|
||||||
|
variables=$(echo "$variables" | sed 's/sops = true/sops = false/')
|
||||||
|
variables=$(echo "$variables" | sed 's/obsidian = true/obsidian = false/')
|
||||||
|
variables=$(echo "$variables" | sed 's/tailscale = true/tailscale = false/')
|
||||||
|
echo "$variables" >"$HOST_DIR/variables.nix"
|
||||||
|
|
||||||
|
# Add it to the git index
|
||||||
|
git add .
|
||||||
|
|
||||||
|
printf "\n\e[0;92m+ \e[0m\e[1;77mHost added!\e[0m"
|
||||||
|
|
||||||
|
# REBUILD
|
||||||
|
|
||||||
|
printf "\n\e[0;92m? \e[0m\e[1;77mDo you want to rebuild?\e[0;96m [y/N]\e[0m"
|
||||||
|
read -r yn
|
||||||
|
yn=$(echo "$yn" | tr '[:upper:]' '[:lower:]')
|
||||||
|
if [[ $yn == "y" || $yn == "yes" ]]; then
|
||||||
|
sudo nixos-rebuild switch --flake "$DIR"#"$hostname"
|
||||||
|
fi
|
||||||
|
|
||||||
|
printf "\n\e[0;92m✓ \e[0m\e[1;77mDone!\e[0m"
|
||||||
42
docs/scripts/take_rice_screenshot.sh
Normal file
@@ -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
|
||||||
50
docs/src/README_template.md
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
|
||||||
|
**Nixy** is a **Hyprland** NixOS configuration with **home-manager**, **secrets**, and **custom theming** all in one place.
|
||||||
|
It's a simple way to manage your system configuration and dotfiles.
|
||||||
|
|
||||||
|
## Table of Content
|
||||||
|
|
||||||
|
{md_table_of_content}
|
||||||
|
|
||||||
|
## Gallery
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
- 🏠 `home` are the dotfiles and configuration files for the user
|
||||||
|
- 💻 `hosts` are the system configuration files
|
||||||
|
- 'laptop' is my configuration for my laptop with Nvidia
|
||||||
|
- 'server' is for my homeserver (w/nextcloud, nginx, vaultwarden, ... look `hosts/server`)
|
||||||
|
- '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))*
|
||||||
|
- 'modules' are some nix modules that you can import (Nvidia, prime, fonts, ...)
|
||||||
|
- 🤫 `secrets` are the secrets files encrypted with sops-nix
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
||||||
|
```
|
||||||
|
|
||||||
|
- Copy the `hosts/guest` folder, rename it to your system name, and change the variables inside the `variables.nix` file
|
||||||
|
- Add your `hardware-configuration.nix` to your new host's folder
|
||||||
|
- Add your 'nixosConfigurations' inside `flake.nix` (You can edit the "yourhostname" one and change the lines containing '# CHANGEME')
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> When you add new files, don't forget to run `git add .` to add them to the git repository
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
- [THEMES.md](docs/THEMES.md): How themes work and how to create your own
|
||||||
|
- [APPS.md](docs/APPS.md): Which apps are installed
|
||||||
|
- [SCRIPTS.md](docs/SCRIPTS.md): Scripts that are available
|
||||||
|
- [TODO.md](docs/TODO.md): What's next (feel free to contribute)
|
||||||
|
- [CONTRIBUTING.md](docs/CONTRIBUTING.md): How to contribute
|
||||||
|
- [LICENSE](LICENSE): MIT Licensey
|
||||||
BIN
docs/src/catppuccin/1.png
Normal file
|
After Width: | Height: | Size: 103 KiB |
BIN
docs/src/catppuccin/2.png
Normal file
|
After Width: | Height: | Size: 225 KiB |
BIN
docs/src/catppuccin/3.png
Normal file
|
After Width: | Height: | Size: 617 KiB |
33
docs/src/header.md
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
[//]: # (Title: Nixy)
|
||||||
|
[//]: # (Description: Nixy is a Hyprland NixOS configuration with home-manager, secrets and custom theming all in one place. It's a simple way to manage your system configuration and dotfiles.)
|
||||||
|
[//]: # (Author: Hadi)
|
||||||
|
[//]: # (Date: {date})
|
||||||
|
[//]: # (Version: {version})
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<img src="https://raw.githubusercontent.com/anotherhadi/nixy/main/docs/src/logo.png" width="100px" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
# Nixy
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<div align="center">
|
||||||
|
<a href="https://github.com/anotherhadi/nixy">
|
||||||
|
<img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=Version&message={version}&colorA={backgroundcolor}&colorB={primarycolor}&logo=githubactions&logoColor={primarycolor}"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/stargazers">
|
||||||
|
<img src="https://img.shields.io/github/stars/anotherhadi/nixy?color={primarycolor}&labelColor={backgroundcolor}&style=for-the-badge&logo=starship&logoColor={primarycolor}">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/">
|
||||||
|
<img src="https://img.shields.io/github/repo-size/anotherhadi/nixy?color={primarycolor}&labelColor={backgroundcolor}&style=for-the-badge&logo=github&logoColor={primarycolor}">
|
||||||
|
</a>
|
||||||
|
<a href="https://nixos.org">
|
||||||
|
<img src="https://img.shields.io/badge/NixOS-unstable-blue.svg?style=for-the-badge&labelColor={backgroundcolor}&logo=NixOS&logoColor={primarycolor}&color={primarycolor}">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/blob/main/LICENSE">
|
||||||
|
<img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=License&message=MIT&colorA={backgroundcolor}&colorB={primarycolor}&logo=unlicense&logoColor={primarycolor}"/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
BIN
docs/src/large.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
docs/src/logo.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
1
docs/src/nixy/1.png.REMOVED.git-id
Normal file
@@ -0,0 +1 @@
|
|||||||
|
8c00e379ddd7f89e4bbf9f381a5721d980c8026f
|
||||||
BIN
docs/src/nixy/2.png
Normal file
|
After Width: | Height: | Size: 566 KiB |
BIN
docs/src/nixy/3.png
Normal file
|
After Width: | Height: | Size: 811 KiB |
1
docs/src/windows/1.png.REMOVED.git-id
Normal file
@@ -0,0 +1 @@
|
|||||||
|
62b52ad02a886c19a8cfe1ea17e8aaad50f23632
|
||||||
BIN
docs/src/windows/2.png
Normal file
|
After Width: | Height: | Size: 411 KiB |
BIN
docs/src/windows/3.png
Normal file
|
After Width: | Height: | Size: 990 KiB |
384
flake.lock
generated
@@ -11,11 +11,11 @@
|
|||||||
"sf-pro": "sf-pro"
|
"sf-pro": "sf-pro"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705496891,
|
"lastModified": 1718062482,
|
||||||
"narHash": "sha256-lLX87aJ9oUT3u0Iaf60xKIJ2RQNt3v4Ne2cvSWyaS7U=",
|
"narHash": "sha256-bGWs6XRVgzm1Uagx/EAnz9wnMQVImR1ZlVpAy+SDXCw=",
|
||||||
"owner": "Lyndeno",
|
"owner": "Lyndeno",
|
||||||
"repo": "apple-fonts.nix",
|
"repo": "apple-fonts.nix",
|
||||||
"rev": "e6ffbc887752ba0fe035fbcc8b282555804dd3f6",
|
"rev": "eeb3521706bfe21206b1301ff8e0876defa1b6dd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -33,11 +33,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1713532798,
|
"lastModified": 1717408969,
|
||||||
"narHash": "sha256-wtBhsdMJA3Wa32Wtm1eeo84GejtI43pMrFrmwLXrsEc=",
|
"narHash": "sha256-Q0OEFqe35fZbbRPPRdrjTUUChKVhhWXz3T9ZSKmaoVY=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "devshell",
|
"repo": "devshell",
|
||||||
"rev": "12e914740a25ea1891ec619bb53cf5e6ca922e40",
|
"rev": "1ebbe68d57457c8cae98145410b164b5477761f4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -84,11 +84,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1714641030,
|
"lastModified": 1717285511,
|
||||||
"narHash": "sha256-yzcRNDoyVP7+SCNX0wmuDju1NUCt8Dz9+lyUXEI0dbI=",
|
"narHash": "sha256-iKzJcpdXih14qYVcZ9QC9XuZYnPc6T8YImb6dX166kw=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "e5d10a24b66c3ea8f150e47dfdb0416ab7c3390e",
|
"rev": "2a55567fcf15b1b1c7ed712a2c6fadaec7412ea8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -97,31 +97,16 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-root": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1713493429,
|
|
||||||
"narHash": "sha256-ztz8JQkI08tjKnsTpfLqzWoKFQF4JGu2LRz8bkdnYUk=",
|
|
||||||
"owner": "srid",
|
|
||||||
"repo": "flake-root",
|
|
||||||
"rev": "bc748b93b86ee76e2032eecda33440ceb2532fcd",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "srid",
|
|
||||||
"repo": "flake-root",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705309234,
|
"lastModified": 1710146030,
|
||||||
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
|
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
|
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -152,24 +137,6 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_4"
|
"systems": "systems_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
|
||||||
"lastModified": 1710146030,
|
|
||||||
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils_4": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_7"
|
|
||||||
},
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1685518550,
|
"lastModified": 1685518550,
|
||||||
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
|
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
|
||||||
@@ -184,11 +151,38 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"git-hooks": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat_2",
|
||||||
|
"gitignore": "gitignore",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixvim",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nixpkgs-stable": [
|
||||||
|
"nixvim",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1718879355,
|
||||||
|
"narHash": "sha256-RTyqP4fBX2MdhNuMP+fnR3lIwbdtXhyj7w7fwtvgspc=",
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "git-hooks.nix",
|
||||||
|
"rev": "8cd35b9496d21a6c55164d8547d9d5280162b07a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "git-hooks.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"gitignore": {
|
"gitignore": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixvim",
|
"nixvim",
|
||||||
"pre-commit-hooks",
|
"git-hooks",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -213,11 +207,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1715077503,
|
"lastModified": 1719180626,
|
||||||
"narHash": "sha256-AfHQshzLQfUqk/efMtdebHaQHqVntCMjhymQzVFLes0=",
|
"narHash": "sha256-vZAzm5KQpR6RGple1dzmSJw5kPivES2heCFM+ZWkt0I=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "6e277d9566de9976f47228dd8c580b97488734d4",
|
"rev": "6b1f90a8ff92e81638ae6eb48cd62349c3e387bb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -234,11 +228,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1715077503,
|
"lastModified": 1719037157,
|
||||||
"narHash": "sha256-AfHQshzLQfUqk/efMtdebHaQHqVntCMjhymQzVFLes0=",
|
"narHash": "sha256-aOKd8+mhBsLQChCu1mn/W5ww79ta5cXVE59aJFrifM8=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "6e277d9566de9976f47228dd8c580b97488734d4",
|
"rev": "cd886711998fe5d9ff7979fdd4b4cbd17b1f1511",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -263,11 +257,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1713612213,
|
"lastModified": 1718450675,
|
||||||
"narHash": "sha256-zJboXgWNpNhKyNF8H/3UYzWkx7w00TOCGKi3cwi+tsw=",
|
"narHash": "sha256-jpsns6buS4bK+1sF8sL8AaixAiCRjA+nldTKvcwmvUs=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprcursor",
|
"repo": "hyprcursor",
|
||||||
"rev": "cab4746180f210a3c1dd3d53e45c510e309e90e1",
|
"rev": "66d5b46ff94efbfa6fa3d1d1b66735f1779c34a6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -280,17 +274,18 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"hyprcursor": "hyprcursor",
|
"hyprcursor": "hyprcursor",
|
||||||
"hyprlang": "hyprlang",
|
"hyprlang": "hyprlang",
|
||||||
|
"hyprutils": "hyprutils",
|
||||||
"hyprwayland-scanner": "hyprwayland-scanner",
|
"hyprwayland-scanner": "hyprwayland-scanner",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"systems": "systems_2",
|
"systems": "systems_2",
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1715203037,
|
"lastModified": 1719338642,
|
||||||
"narHash": "sha256-yWsrCPhBpin7AXVI66/EAE+YPJTweS8CDCZJQliB10k=",
|
"narHash": "sha256-oy2IpTiMTof5rUqdmUMYzn6Xugc8kTh629soVCyC3L4=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "e4e84064f2d07810e0c150bce1369a0a00503e9a",
|
"rev": "95782de966ec9e182d49b2f032b74a1101f423e8",
|
||||||
"revCount": 4638,
|
"revCount": 4889,
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/hyprwm/Hyprland"
|
"url": "https://github.com/hyprwm/Hyprland"
|
||||||
@@ -330,6 +325,10 @@
|
|||||||
},
|
},
|
||||||
"hyprlang": {
|
"hyprlang": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"hyprutils": [
|
||||||
|
"hyprland",
|
||||||
|
"hyprutils"
|
||||||
|
],
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"hyprland",
|
"hyprland",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
@@ -340,11 +339,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1713121246,
|
"lastModified": 1717881852,
|
||||||
"narHash": "sha256-502X0Q0fhN6tJK7iEUA8CghONKSatW/Mqj4Wappd++0=",
|
"narHash": "sha256-XeeVoKHQgfKuXoP6q90sUqKyl7EYy3ol2dVZGM+Jj94=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprlang",
|
"repo": "hyprlang",
|
||||||
"rev": "78fcaa27ae9e1d782faa3ff06c8ea55ddce63706",
|
"rev": "ec6938c66253429192274d612912649a0cfe4d28",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -353,25 +352,28 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hyprlang_2": {
|
"hyprutils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"rose-pine-hyprcursor",
|
"hyprland",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"systems": "systems_5"
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1709914708,
|
"lastModified": 1719316102,
|
||||||
"narHash": "sha256-bR4o3mynoTa1Wi4ZTjbnsZ6iqVcPGriXp56bZh5UFTk=",
|
"narHash": "sha256-dmRz128j/lJmMuTYeCYPfSBRHHQO3VeH4PbmoyAhHzw=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprlang",
|
"repo": "hyprutils",
|
||||||
"rev": "a685493fdbeec01ca8ccdf1f3655c044a8ce2fe2",
|
"rev": "1f6bbec5954f623ff8d68e567bddcce97cd2f085",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprlang",
|
"repo": "hyprutils",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -387,11 +389,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1715090986,
|
"lastModified": 1719067853,
|
||||||
"narHash": "sha256-FXpQvmS9R7alwZ47XK5UIcAbC9YKSxc0+GOVYqwa0jM=",
|
"narHash": "sha256-mAnZG/eQy72Fp1ImGtqCgUrDumnR1rMZv2E/zgP4U74=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprwayland-scanner",
|
"repo": "hyprwayland-scanner",
|
||||||
"rev": "94e32ec37e7215b16d5c1b41b1773ff6742e704b",
|
"rev": "914f083741e694092ee60a39d31f693d0a6dc734",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -408,11 +410,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1713946171,
|
"lastModified": 1719128254,
|
||||||
"narHash": "sha256-lc75rgRQLdp4Dzogv5cfqOg6qYc5Rp83oedF2t0kDp8=",
|
"narHash": "sha256-I7jMpq0CAOZA/i70+HDQO/ulLttyQu/K70cSESiMX7A=",
|
||||||
"owner": "lnl7",
|
"owner": "lnl7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "230a197063de9287128e2c68a7a4b0cd7d0b50a7",
|
"rev": "50581970f37f06a4719001735828519925ef8310",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -423,11 +425,11 @@
|
|||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1715148395,
|
"lastModified": 1719322773,
|
||||||
"narHash": "sha256-lRxjTxY3103LGMjWdVqntKZHhlmMX12QUjeFrQMmGaE=",
|
"narHash": "sha256-BqPxtFwXrpJQDh65NOIHX99pz2rtIMshG9Mt2xnnc5c=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "a4e2b7909fc1bdf30c30ef21d388fde0b5cdde4a",
|
"rev": "caabc425565bbd5c8640630b0bf6974961a49242",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -439,11 +441,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1696375444,
|
"lastModified": 1717786204,
|
||||||
"narHash": "sha256-Sv0ICt/pXfpnFhTGYTsX6lUr1SljnuXWejYTI2ZqHa4=",
|
"narHash": "sha256-4q0s6m0GUcN7q+Y2DqD27iLvbcd1G50T2lv08kKxkSI=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "81e8f48ebdecf07aab321182011b067aafc78896",
|
"rev": "051f920625ab5aabe37c920346e3e69d7d34400e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -455,11 +457,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1714858427,
|
"lastModified": 1719099622,
|
||||||
"narHash": "sha256-tCxeDP4C1pWe2rYY3IIhdA40Ujz32Ufd4tcrHPSKx2M=",
|
"narHash": "sha256-YzJECAxFt+U5LPYf/pCwW/e1iUd2PF21WITHY9B/BAs=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b980b91038fc4b09067ef97bbe5ad07eecca1e76",
|
"rev": "5e8e3b89adbd0be63192f6e645e0a54080004924",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -471,11 +473,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1714253743,
|
"lastModified": 1719075281,
|
||||||
"narHash": "sha256-mdTQw2XlariysyScCv2tTE45QSU9v/ezLcHJ22f0Nxc=",
|
"narHash": "sha256-CyyxvOwFf12I91PBWz43iGT1kjsf5oi6ax7CrvaMyAo=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "58a1abdbae3217ca6b702f03d3b35125d88a2994",
|
"rev": "a71e967ef3694799d0c418c98332f7ff4cc5f6af",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -487,11 +489,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1715087517,
|
"lastModified": 1719254875,
|
||||||
"narHash": "sha256-CLU5Tsg24Ke4+7sH8azHWXKd0CFd4mhLWfhYgUiDBpQ=",
|
"narHash": "sha256-ECni+IkwXjusHsm9Sexdtq8weAq/yUyt1TWIemXt3Ko=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b211b392b8486ee79df6cdfb1157ad2133427a29",
|
"rev": "2893f56de08021cffd9b6b6dfc70fd9ccd51eb60",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -502,22 +504,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
|
||||||
"lastModified": 1710272261,
|
|
||||||
"narHash": "sha256-g0bDwXFmTE7uGDOs9HcJsfLFhH7fOsASbAuOzDC+fhQ=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "0ad13a6833440b8e238947e47bea7f11071dc2b2",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_5": {
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1686020360,
|
"lastModified": 1686020360,
|
||||||
"narHash": "sha256-Wee7lIlZ6DIZHHLiNxU5KdYZQl0iprENXa/czzI6Cj4=",
|
"narHash": "sha256-Wee7lIlZ6DIZHHLiNxU5KdYZQl0iprENXa/czzI6Cj4=",
|
||||||
@@ -538,21 +524,20 @@
|
|||||||
"devshell": "devshell",
|
"devshell": "devshell",
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"flake-root": "flake-root",
|
"git-hooks": "git-hooks",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"pre-commit-hooks": "pre-commit-hooks",
|
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1715115147,
|
"lastModified": 1719334058,
|
||||||
"narHash": "sha256-oREqXPEtuYbOdBKbsDQzr2V01EzK4kD8MTdwO9ljTnU=",
|
"narHash": "sha256-5uhWaoHhUYEPNC42NVW+srBgldwQKQE6dvW45rg0K3Q=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "f7f255afe22fcca0c07177c3707fd61fa0c85835",
|
"rev": "76a8790764ec983ca0659c952c4b6924c4e9bf1a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -561,10 +546,39 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nur": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1719337524,
|
||||||
|
"narHash": "sha256-bYp4//+XM+J1Y23sW6VjXAiCHUdq3aqgXue/tVeCxLw=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"rev": "37ae43594731d4d801f53dffe465006421c7c292",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nur",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nurpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1719337524,
|
||||||
|
"narHash": "sha256-bYp4//+XM+J1Y23sW6VjXAiCHUdq3aqgXue/tVeCxLw=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"rev": "37ae43594731d4d801f53dffe465006421c7c292",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"ny": {
|
"ny": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-phACDdjI8RX6yD77PSmFcsriagt+2UuySD7+WEzdzGo=",
|
"narHash": "sha256-FkV8Z2fdUTwvcKeltFJVCisvAarcdnmlj/33exdyxnQ=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
|
||||||
},
|
},
|
||||||
@@ -573,34 +587,6 @@
|
|||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pre-commit-hooks": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat_2",
|
|
||||||
"flake-utils": "flake-utils_3",
|
|
||||||
"gitignore": "gitignore",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixvim",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"nixpkgs-stable": [
|
|
||||||
"nixvim",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1714478972,
|
|
||||||
"narHash": "sha256-q//cgb52vv81uOuwz1LaXElp3XAe1TqrABXODAEF6Sk=",
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "pre-commit-hooks.nix",
|
|
||||||
"rev": "2849da033884f54822af194400f8dff435ada242",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "pre-commit-hooks.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"apple-fonts": "apple-fonts",
|
"apple-fonts": "apple-fonts",
|
||||||
@@ -609,35 +595,16 @@
|
|||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
"rose-pine-hyprcursor": "rose-pine-hyprcursor",
|
"nur": "nur",
|
||||||
|
"nurpkgs": "nurpkgs",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"spicetify-nix": "spicetify-nix"
|
"spicetify-nix": "spicetify-nix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rose-pine-hyprcursor": {
|
|
||||||
"inputs": {
|
|
||||||
"hyprlang": "hyprlang_2",
|
|
||||||
"nixpkgs": "nixpkgs_4",
|
|
||||||
"utils": "utils"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1711302328,
|
|
||||||
"narHash": "sha256-wLuFLI6S5DOretqJN05+kvrs8cbnZKfVLXrJ4hvI/Tg=",
|
|
||||||
"owner": "ndom91",
|
|
||||||
"repo": "rose-pine-hyprcursor",
|
|
||||||
"rev": "7e0473876f0e6d2308813a78fe84a6c6430b112b",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "ndom91",
|
|
||||||
"repo": "rose-pine-hyprcursor",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"sf-arabic": {
|
"sf-arabic": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-CPewXMGI78xHsjdRU8ZJIBSYjh5UY6UW21ihE4B+Bkk=",
|
"narHash": "sha256-u+Q2Hd+JCiKhIQtbQqawg1lIEgGhjmdGye2cNdWlBG0=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Arabic.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Arabic.dmg"
|
||||||
},
|
},
|
||||||
@@ -649,7 +616,7 @@
|
|||||||
"sf-compact": {
|
"sf-compact": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-nJkPlddKF2dIwj+6jiVvS60hDcGAMasEOWemUwBS2mQ=",
|
"narHash": "sha256-9kXXWmu2zg0LSE7SihItXmBltLvNwyG1Ba6QehvMh04=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Compact.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Compact.dmg"
|
||||||
},
|
},
|
||||||
@@ -661,7 +628,7 @@
|
|||||||
"sf-mono": {
|
"sf-mono": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-KT1RXz3NcWPetyxVlgMfh/dsoznpI3lMnplz6V7PCUU=",
|
"narHash": "sha256-BVmYmgqq79ezgyqNClyHkj2L4N3/PRisPm8YFBQZQ98=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Mono.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Mono.dmg"
|
||||||
},
|
},
|
||||||
@@ -673,7 +640,7 @@
|
|||||||
"sf-pro": {
|
"sf-pro": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-cn8ae2UddF8Pru6i3fSG2Wki5sf1DmWKD2FmKMsoeAA=",
|
"narHash": "sha256-yQhtaEPTuYOIOaC6eSPdka/Jv5Ydw3Mnd8Prlcgjs90=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
|
||||||
},
|
},
|
||||||
@@ -690,11 +657,11 @@
|
|||||||
"nixpkgs-stable": "nixpkgs-stable"
|
"nixpkgs-stable": "nixpkgs-stable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1715244550,
|
"lastModified": 1719268571,
|
||||||
"narHash": "sha256-ffOZL3eaZz5Y1nQ9muC36wBCWwS1hSRLhUzlA9hV2oI=",
|
"narHash": "sha256-pcUk2Fg5vPXLUEnFI97qaB8hto/IToRfqskFqsjvjb8=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "0dc50257c00ee3c65fef3a255f6564cfbfe6eb7f",
|
"rev": "c2ea1186c0cbfa4d06d406ae50f3e4b085ddc9b3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -705,8 +672,8 @@
|
|||||||
},
|
},
|
||||||
"spicetify-nix": {
|
"spicetify-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_4",
|
"flake-utils": "flake-utils_3",
|
||||||
"nixpkgs": "nixpkgs_5"
|
"nixpkgs": "nixpkgs_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1704167711,
|
"lastModified": 1704167711,
|
||||||
@@ -782,51 +749,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems_5": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1689347949,
|
|
||||||
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default-linux",
|
|
||||||
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default-linux",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems_6": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems_7": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -835,11 +757,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1714058656,
|
"lastModified": 1718522839,
|
||||||
"narHash": "sha256-Qv4RBm4LKuO4fNOfx9wl40W2rBbv5u5m+whxRYUMiaA=",
|
"narHash": "sha256-ULzoKzEaBOiLRtjeY3YoGFJMwWSKRYOic6VNw2UyTls=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"rev": "c6aaf729f34a36c445618580a9f95a48f5e4e03f",
|
"rev": "68eb1dc333ce82d0ab0c0357363ea17c31ea1f81",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -848,24 +770,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_6"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1710146030,
|
|
||||||
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"xdph": {
|
"xdph": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"hyprland-protocols": "hyprland-protocols",
|
"hyprland-protocols": "hyprland-protocols",
|
||||||
@@ -883,11 +787,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1714060055,
|
"lastModified": 1718619174,
|
||||||
"narHash": "sha256-j43TS9wv9luaAlpxcxw0sjxkbcc2mGANVR2RYgo3RCw=",
|
"narHash": "sha256-FWW68AVYmB91ZDQnhLMBNCUUTCjb1ZpO2k2KIytHtkA=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "xdg-desktop-portal-hyprland",
|
"repo": "xdg-desktop-portal-hyprland",
|
||||||
"rev": "0fe840441e43da12cd7865ed9aa8cdc35a8da85a",
|
"rev": "c7894aa54f9a7dbd16df5cd24d420c8af22d5623",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
97
flake.nix
@@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
description = "Nixy - Hadi's NixOS configuration";
|
# https://github.com/anotherhadi/nixy
|
||||||
|
description = ''
|
||||||
|
Nixy is a NixOS configuration with home-manager, secrets and custom theming all in one place.
|
||||||
|
It's a simple way to manage your system configuration and dotfiles.
|
||||||
|
'';
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
@@ -17,38 +21,71 @@
|
|||||||
url = "github:Mic92/sops-nix";
|
url = "github:Mic92/sops-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
||||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
rose-pine-hyprcursor.url = "github:ndom91/rose-pine-hyprcursor";
|
nurpkgs.url = "github:nix-community/NUR";
|
||||||
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, home-manager, sops-nix, hyprland, spicetify-nix
|
outputs = inputs@{ nixpkgs, nur, ... }: {
|
||||||
, nixos-hardware, ... }: {
|
nixosConfigurations = {
|
||||||
nixosConfigurations = {
|
|
||||||
nixy = nixpkgs.lib.nixosSystem {
|
nixy = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
nixos-hardware.nixosModules.omen-16-n0005ne # REMOVE
|
./hosts/laptop/configuration.nix
|
||||||
./nixos/configuration.nix
|
inputs.nixos-hardware.nixosModules.omen-16-n0005ne
|
||||||
./nixos/fonts.nix
|
inputs.home-manager.nixosModules.home-manager
|
||||||
./nixos/tuigreet.nix
|
{
|
||||||
{ _module.args = { inherit inputs; }; }
|
nixpkgs.overlays = [ nur.overlay ];
|
||||||
home-manager.nixosModules.home-manager
|
_module.args = { inherit inputs; };
|
||||||
{
|
home-manager = {
|
||||||
home-manager = {
|
useGlobalPkgs = true;
|
||||||
useGlobalPkgs = true;
|
useUserPackages = true;
|
||||||
useUserPackages = true;
|
users."hadi" = import ./home/laptop.nix;
|
||||||
users."hadi" = import ./home/home.nix;
|
extraSpecialArgs = { inherit inputs; };
|
||||||
extraSpecialArgs = {
|
};
|
||||||
inherit inputs;
|
}
|
||||||
inherit spicetify-nix;
|
];
|
||||||
inherit sops-nix;
|
|
||||||
inherit hyprland;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
jack = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
inputs.sops-nix.nixosModules.sops
|
||||||
|
./hosts/server/configuration.nix
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [ nur.overlay ];
|
||||||
|
_module.args = { inherit inputs; };
|
||||||
|
home-manager = {
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
users."hadi" = import ./home/server.nix;
|
||||||
|
extraSpecialArgs = { inherit inputs; };
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
yourhostname = nixpkgs.lib.nixosSystem { # CHANGEME
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
./hosts/yourhostname/configuration.nix # CHANGEME
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [ nur.overlay ];
|
||||||
|
_module.args = { inherit inputs; };
|
||||||
|
home-manager = {
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
users."yourusername" = import # CHANGEME
|
||||||
|
./home/laptop.nix; # you can also create a new ./home/yourhostname.nix
|
||||||
|
extraSpecialArgs = { inherit inputs; };
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [
|
|
||||||
./kitty
|
|
||||||
./lf
|
|
||||||
./neofetch
|
|
||||||
./nvim
|
|
||||||
./qutebrowser
|
|
||||||
./spicetify
|
|
||||||
./wofi
|
|
||||||
./cava
|
|
||||||
./tmux
|
|
||||||
./lazygit
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
{ config, pkgs, ... }: {
|
|
||||||
|
|
||||||
programs.kitty = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
|
|
||||||
scrollback_lines = 10000;
|
|
||||||
enable_audio_bell = false;
|
|
||||||
update_check_interval = 0;
|
|
||||||
font_family = config.theme.font-mono;
|
|
||||||
font_size = 13;
|
|
||||||
cursor_shape = "Underline";
|
|
||||||
cursor_underline_thickness = 1;
|
|
||||||
window_padding_width = 10;
|
|
||||||
url_style = "curly";
|
|
||||||
confirm_os_window_close = "0";
|
|
||||||
remember_window_size = "no";
|
|
||||||
disable_ligatures = "never";
|
|
||||||
shell = "${pkgs.tmux}/bin/tmux";
|
|
||||||
initial_window_width = 1200;
|
|
||||||
initial_window_height = 600;
|
|
||||||
|
|
||||||
background = "#" + config.theme.colors.bg;
|
|
||||||
url_color = "#" + config.theme.colors.primary-fg;
|
|
||||||
|
|
||||||
color0 = "#" + config.theme.colors.color0;
|
|
||||||
color8 = "#" + config.theme.colors.color8;
|
|
||||||
color1 = "#" + config.theme.colors.color1;
|
|
||||||
color9 = "#" + config.theme.colors.color9;
|
|
||||||
color2 = "#" + config.theme.colors.color2;
|
|
||||||
color10 = "#" + config.theme.colors.color10;
|
|
||||||
color3 = "#" + config.theme.colors.color3;
|
|
||||||
color11 = "#" + config.theme.colors.color11;
|
|
||||||
color4 = "#" + config.theme.colors.color4;
|
|
||||||
color12 = "#" + config.theme.colors.color12;
|
|
||||||
color5 = "#" + config.theme.colors.color5;
|
|
||||||
color13 = "#" + config.theme.colors.color13;
|
|
||||||
color6 = "#" + config.theme.colors.color6;
|
|
||||||
color14 = "#" + config.theme.colors.color14;
|
|
||||||
color7 = "#" + config.theme.colors.color7;
|
|
||||||
color15 = "#" + config.theme.colors.color15;
|
|
||||||
|
|
||||||
cursor = "#" + config.theme.colors.fg;
|
|
||||||
cursor_text_color = "#" + config.theme.colors.bg;
|
|
||||||
|
|
||||||
selection_foreground = "#" + config.theme.colors.primary-fg;
|
|
||||||
selection_background = "#" + config.theme.colors.primary-bg;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
{ inputs, ... }: {
|
|
||||||
imports = [
|
|
||||||
inputs.nixvim.homeManagerModules.nixvim
|
|
||||||
./auto-pairs.nix
|
|
||||||
./options.nix
|
|
||||||
./bufferline.nix
|
|
||||||
./lazygit.nix
|
|
||||||
./telescope.nix
|
|
||||||
./nvim-tree.nix
|
|
||||||
./lightline.nix
|
|
||||||
./git.nix
|
|
||||||
./cmp.nix
|
|
||||||
./none-ls.nix
|
|
||||||
./wilder.nix
|
|
||||||
./lsp.nix
|
|
||||||
./treesitter.nix
|
|
||||||
./toggleterm.nix
|
|
||||||
./copilot.nix
|
|
||||||
./obsidian.nix
|
|
||||||
./whichkey.nix
|
|
||||||
./alpha.nix
|
|
||||||
./keymaps.nix
|
|
||||||
./comment.nix
|
|
||||||
./oil.nix
|
|
||||||
./trouble.nix
|
|
||||||
./tmux-navigator.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.nixvim = {
|
|
||||||
enable = true;
|
|
||||||
colorschemes.catppuccin = {
|
|
||||||
enable = true;
|
|
||||||
settings = { transparent_background = true; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,261 +0,0 @@
|
|||||||
{ config, ... }: {
|
|
||||||
|
|
||||||
imports = [ ./duckduckgo-colorscheme.nix ./homepage/default.nix ];
|
|
||||||
|
|
||||||
programs.qutebrowser = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
searchEngines = {
|
|
||||||
"DEFAULT" = "https://duckduckgo.com/?q={}&ia=web";
|
|
||||||
"d" = "https://duckduckgo.com/?q={}&ia=web";
|
|
||||||
"g" = "https://google.com/search?q={}";
|
|
||||||
"y" = "https://youtube.com/results?search_query={}";
|
|
||||||
"ya" = "https://yandex.com/search/?text={}";
|
|
||||||
"n" = "https://mynixos.com/search?q={}";
|
|
||||||
"nixo" = "https://search.nixos.org/options?channel=unstable&query={}";
|
|
||||||
"nixp" = "https://search.nixos.org/packages?channel=unstable&query={}";
|
|
||||||
"gt" = "https://github.com/search?q={}&type=repositories";
|
|
||||||
};
|
|
||||||
|
|
||||||
quickmarks = {
|
|
||||||
home = "${config.home.homeDirectory}/.config/startpage/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.home.homeDirectory}/.config/startpage/index.html";
|
|
||||||
start_pages =
|
|
||||||
[ "${config.home.homeDirectory}/.config/startpage/index.html" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
colors = {
|
|
||||||
tabs = {
|
|
||||||
odd.bg = "#${config.theme.colors.bg}";
|
|
||||||
odd.fg = "#${config.theme.colors.fg}";
|
|
||||||
even.bg = "#${config.theme.colors.bg}";
|
|
||||||
even.fg = "#${config.theme.colors.fg}";
|
|
||||||
selected = {
|
|
||||||
odd = {
|
|
||||||
bg = "#${config.theme.colors.primary-bg}";
|
|
||||||
fg = "#${config.theme.colors.primary-fg}";
|
|
||||||
};
|
|
||||||
even = {
|
|
||||||
bg = "#${config.theme.colors.primary-bg}";
|
|
||||||
fg = "#${config.theme.colors.primary-fg}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
indicator = {
|
|
||||||
error = "#${config.theme.colors.color1}";
|
|
||||||
start = "#${config.theme.colors.alt-bg}";
|
|
||||||
stop = "#${config.theme.colors.alt-bg}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
hints = {
|
|
||||||
bg = "#${config.theme.colors.alt-bg}";
|
|
||||||
fg = "#${config.theme.colors.alt-fg}";
|
|
||||||
match.fg = "#${config.theme.colors.bg}";
|
|
||||||
};
|
|
||||||
|
|
||||||
completion = {
|
|
||||||
category = {
|
|
||||||
bg = "#${config.theme.colors.bg}";
|
|
||||||
fg = "#${config.theme.colors.fg}";
|
|
||||||
border = {
|
|
||||||
top = "#${config.theme.colors.bg}";
|
|
||||||
bottom = "#${config.theme.colors.bg}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
odd.bg = "#${config.theme.colors.bg}";
|
|
||||||
even.bg = "#${config.theme.colors.bg}";
|
|
||||||
|
|
||||||
fg = [ "#FFFFFF" "#FFFFFF" "#FFFFFF" ];
|
|
||||||
|
|
||||||
match.fg = "#${config.theme.colors.primary-bg}";
|
|
||||||
|
|
||||||
item.selected = {
|
|
||||||
bg = "#${config.theme.colors.primary-bg}";
|
|
||||||
border.top = "#${config.theme.colors.primary-bg}";
|
|
||||||
border.bottom = "#${config.theme.colors.primary-bg}";
|
|
||||||
fg = "#${config.theme.colors.primary-fg}";
|
|
||||||
match.fg = "#${config.theme.colors.primary-fg}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
statusbar = {
|
|
||||||
normal.bg = "#${config.theme.colors.bg}";
|
|
||||||
normal.fg = "#${config.theme.colors.fg}";
|
|
||||||
private.bg = "#${config.theme.colors.bg}";
|
|
||||||
private.fg = "#${config.theme.colors.fg}";
|
|
||||||
insert.bg = "#${config.theme.colors.primary-bg}";
|
|
||||||
insert.fg = "#${config.theme.colors.primary-fg}";
|
|
||||||
command = {
|
|
||||||
bg = "#${config.theme.colors.alt-bg}";
|
|
||||||
fg = "#${config.theme.colors.alt-fg}";
|
|
||||||
private.bg = "#${config.theme.colors.alt-bg}";
|
|
||||||
private.fg = "#${config.theme.colors.alt-fg}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
messages = {
|
|
||||||
info = {
|
|
||||||
bg = "#${config.theme.colors.alt-bg}";
|
|
||||||
fg = "#${config.theme.colors.alt-fg}";
|
|
||||||
border = "#${config.theme.colors.alt-bg}";
|
|
||||||
};
|
|
||||||
|
|
||||||
error = {
|
|
||||||
bg = "#${config.theme.colors.color1}";
|
|
||||||
fg = "#${config.theme.colors.alt-fg}";
|
|
||||||
border = "#${config.theme.colors.color1}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
#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.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.home.homeDirectory}/.config/startpage/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)
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,297 +0,0 @@
|
|||||||
{ 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.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.theme.colors.bg}; color: #${config.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.theme.colors.primary-bg};"></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.theme.colors.alt-fg};"
|
|
||||||
|
|
||||||
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>
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
{ pkgs, config, lib, spicetify-nix, ... }:
|
|
||||||
let spicePkgs = spicetify-nix.packages.${pkgs.system}.default;
|
|
||||||
in {
|
|
||||||
|
|
||||||
imports = [ 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.theme.colors.fg}";
|
|
||||||
subtext = "${config.theme.colors.alt-fg}";
|
|
||||||
sidebar-text = "${config.theme.colors.alt-fg}";
|
|
||||||
main = "${config.theme.colors.bg}";
|
|
||||||
sidebar = "${config.theme.colors.bg}";
|
|
||||||
background = "${config.theme.colors.bg}";
|
|
||||||
player = "${config.theme.colors.bg}";
|
|
||||||
card = "${config.theme.colors.bg}";
|
|
||||||
shadow = "000000";
|
|
||||||
selected-row = "${config.theme.colors.alt-bg}";
|
|
||||||
button = "${config.theme.colors.primary-bg}";
|
|
||||||
button-active = "${config.theme.colors.primary-bg}";
|
|
||||||
button-disabled = "${config.theme.colors.alt-bg}";
|
|
||||||
tab-active = "${config.theme.colors.primary-bg}";
|
|
||||||
misc = "${config.theme.colors.alt-fg}";
|
|
||||||
};
|
|
||||||
|
|
||||||
enabledExtensions = with spicePkgs.extensions; [
|
|
||||||
playlistIcons
|
|
||||||
lastfm
|
|
||||||
historyShortcut
|
|
||||||
hidePodcasts
|
|
||||||
fullAppDisplay
|
|
||||||
shuffle
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
let variable = import ../variables.nix;
|
|
||||||
in {
|
|
||||||
|
|
||||||
imports = [ ./themes ./system ./scripts ./apps ];
|
|
||||||
|
|
||||||
home = {
|
|
||||||
username = variable.username;
|
|
||||||
homeDirectory = variable.homeDirectory;
|
|
||||||
|
|
||||||
packages = with pkgs; [
|
|
||||||
swappy
|
|
||||||
imv
|
|
||||||
discord
|
|
||||||
obsidian
|
|
||||||
btop
|
|
||||||
xfce.thunar
|
|
||||||
bitwarden
|
|
||||||
vlc
|
|
||||||
|
|
||||||
# Dev
|
|
||||||
go
|
|
||||||
cargo
|
|
||||||
nodejs
|
|
||||||
python3
|
|
||||||
jq
|
|
||||||
|
|
||||||
# Utils
|
|
||||||
sops # Secrets
|
|
||||||
age # Secrets
|
|
||||||
fd
|
|
||||||
bc
|
|
||||||
gcc
|
|
||||||
blueman
|
|
||||||
zip
|
|
||||||
unzip
|
|
||||||
xdg_utils
|
|
||||||
tldr
|
|
||||||
wget
|
|
||||||
curl
|
|
||||||
ripgrep
|
|
||||||
neovide
|
|
||||||
wf-recorder
|
|
||||||
tree # temp
|
|
||||||
|
|
||||||
# Just cool
|
|
||||||
peaclock
|
|
||||||
cbonsai
|
|
||||||
pipes
|
|
||||||
cmatrix
|
|
||||||
|
|
||||||
# Backup
|
|
||||||
vscode
|
|
||||||
firefox
|
|
||||||
tor-browser
|
|
||||||
];
|
|
||||||
|
|
||||||
stateVersion = variable.stateVersion;
|
|
||||||
};
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
}
|
|
||||||
103
home/laptop.nix
Normal file
@@ -0,0 +1,103 @@
|
|||||||
|
{ pkgs, config, ... }: {
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
../hosts/laptop/variables.nix # CHANGEME, replace with your host
|
||||||
|
|
||||||
|
# Programs
|
||||||
|
./programs/btop
|
||||||
|
./programs/cava
|
||||||
|
./programs/kitty
|
||||||
|
./programs/nextcloud
|
||||||
|
./programs/nvim
|
||||||
|
./programs/qutebrowser
|
||||||
|
./programs/spicetify
|
||||||
|
./programs/zathura
|
||||||
|
./programs/shell
|
||||||
|
./programs/git
|
||||||
|
|
||||||
|
# Scripts
|
||||||
|
./scripts # All scripts
|
||||||
|
|
||||||
|
# System (Desktop environment like stuff)
|
||||||
|
./system/dunst
|
||||||
|
./system/gtk
|
||||||
|
./system/hyprland
|
||||||
|
./system/waybar
|
||||||
|
./system/wlogout
|
||||||
|
./system/wofi
|
||||||
|
./system/mime
|
||||||
|
./system/udiskie
|
||||||
|
|
||||||
|
./system/sops/laptop.nix # You should probably remove this line
|
||||||
|
];
|
||||||
|
|
||||||
|
home = {
|
||||||
|
inherit (config.var) username;
|
||||||
|
inherit (config.var) homeDirectory;
|
||||||
|
|
||||||
|
packages = with pkgs; [
|
||||||
|
swappy
|
||||||
|
imv
|
||||||
|
discord
|
||||||
|
obsidian
|
||||||
|
xfce.thunar
|
||||||
|
bitwarden
|
||||||
|
vlc
|
||||||
|
nextcloud-client
|
||||||
|
tailscale
|
||||||
|
|
||||||
|
# Dev
|
||||||
|
go
|
||||||
|
cargo
|
||||||
|
nodejs
|
||||||
|
python3
|
||||||
|
jq
|
||||||
|
git-ignore
|
||||||
|
nurl
|
||||||
|
prefetch-npm-deps
|
||||||
|
figlet
|
||||||
|
|
||||||
|
# Utils
|
||||||
|
fd
|
||||||
|
bc
|
||||||
|
gcc
|
||||||
|
blueman
|
||||||
|
zip
|
||||||
|
unzip
|
||||||
|
xdg_utils
|
||||||
|
wget
|
||||||
|
curl
|
||||||
|
wf-recorder
|
||||||
|
glow
|
||||||
|
nwg-displays
|
||||||
|
wireguard-tools
|
||||||
|
bitwarden-cli
|
||||||
|
optipng
|
||||||
|
pfetch
|
||||||
|
usbutils
|
||||||
|
|
||||||
|
# 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;
|
||||||
|
|
||||||
|
}
|
||||||
9
home/programs/btop/default.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
programs.btop = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
color_theme = "Default";
|
||||||
|
theme_background = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -5,8 +5,8 @@
|
|||||||
general.framerate = 60;
|
general.framerate = 60;
|
||||||
smoothing.noise_reduction = 88;
|
smoothing.noise_reduction = 88;
|
||||||
color = {
|
color = {
|
||||||
background = "'#${config.theme.colors.bg}'";
|
background = "'#${config.var.theme.colors.bg}'";
|
||||||
foreground = "'#${config.theme.colors.primary-bg}'";
|
foreground = "'#${config.var.theme.colors.accent}'";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
50
home/programs/git/default.nix
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = config.var.git.username;
|
||||||
|
userEmail = config.var.git.email;
|
||||||
|
ignores = [
|
||||||
|
".cache/"
|
||||||
|
".DS_Store"
|
||||||
|
".idea/"
|
||||||
|
"*.swp"
|
||||||
|
"*.elc"
|
||||||
|
"auto-save-list"
|
||||||
|
".direnv/"
|
||||||
|
"node_modules"
|
||||||
|
"result"
|
||||||
|
"result-*"
|
||||||
|
];
|
||||||
|
extraConfig = {
|
||||||
|
init.defaultBranch = "main";
|
||||||
|
push.autoSetupRemote = true;
|
||||||
|
};
|
||||||
|
aliases = {
|
||||||
|
essa = "push --force";
|
||||||
|
co = "checkout";
|
||||||
|
fuck = "commit --amend -m";
|
||||||
|
c = "commit -m";
|
||||||
|
ca = "commit -am";
|
||||||
|
forgor = "commit --amend --no-edit";
|
||||||
|
graph = "log --all --decorate --graph --oneline";
|
||||||
|
oops = "checkout --";
|
||||||
|
l = "log";
|
||||||
|
r = "rebase";
|
||||||
|
s = "status --short";
|
||||||
|
ss = "status";
|
||||||
|
d = "diff";
|
||||||
|
ps = "!git push origin $(git rev-parse --abbrev-ref HEAD)";
|
||||||
|
pl = "!git pull origin $(git rev-parse --abbrev-ref HEAD)";
|
||||||
|
af = "!git add $(git ls-files -m -o --exclude-standard | sk -m)";
|
||||||
|
st = "status";
|
||||||
|
br = "branch";
|
||||||
|
df = "!git hist | peco | awk '{print $2}' | xargs -I {} git diff {}^ {}";
|
||||||
|
hist = ''
|
||||||
|
log --pretty=format:"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)" --graph --date=relative --decorate --all'';
|
||||||
|
llog = ''
|
||||||
|
log --graph --name-status --pretty=format:"%C(red)%h %C(reset)(%cd) %C(green)%an %Creset%s %C(yellow)%d%Creset" --date=relative'';
|
||||||
|
edit-unmerged =
|
||||||
|
"!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; hx `f`";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
48
home/programs/kitty/default.nix
Normal file
@@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
6
home/programs/nextcloud/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
services.nextcloud-client = {
|
||||||
|
enable = true;
|
||||||
|
startInBackground = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
9
home/programs/nvim/colorscheme.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim = {
|
||||||
|
enable = true;
|
||||||
|
colorschemes.catppuccin = {
|
||||||
|
enable = true;
|
||||||
|
settings = { transparent_background = true; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
31
home/programs/nvim/default.nix
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{ 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
|
||||||
|
./plugins/image.nix
|
||||||
|
./options.nix
|
||||||
|
./colorscheme.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
|
|
||||||
programs.nixvim.highlight = {
|
programs.nixvim.highlight = {
|
||||||
AlphaHeaderColor.fg = "#${config.theme.colors.primary-bg}";
|
AlphaHeaderColor.fg = "#${config.var.theme.colors.accent}";
|
||||||
AlphaTextColor.fg = "#${config.theme.colors.fg}";
|
AlphaTextColor.fg = "#${config.var.theme.colors.fg}";
|
||||||
AlphaShortcutColor.fg = "#${config.theme.colors.alt-fg}";
|
AlphaShortcutColor.fg = "#${config.var.theme.colors.fgalt}";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.nixvim.plugins.alpha = {
|
programs.nixvim.plugins.alpha = {
|
||||||
@@ -70,7 +70,8 @@
|
|||||||
{
|
{
|
||||||
type = "button";
|
type = "button";
|
||||||
val = " NixOs Config";
|
val = " NixOs Config";
|
||||||
on_press.__raw = "function() vim.cmd[[e ~/.config/nixos]] end";
|
on_press.__raw =
|
||||||
|
"function() vim.cmd[[e ${config.var.configDirectory}]] end";
|
||||||
opts = {
|
opts = {
|
||||||
shortcut = "nc";
|
shortcut = "nc";
|
||||||
position = "center";
|
position = "center";
|
||||||
1
home/programs/nvim/plugins/image.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{ programs.nixvim.plugins.image = { enable = true; }; }
|
||||||
1
home/programs/nvim/plugins/noice.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{ programs.nixvim.plugins.noice = { enable = true; }; }
|
||||||
@@ -12,6 +12,8 @@
|
|||||||
nixfmt.enable = true;
|
nixfmt.enable = true;
|
||||||
markdownlint.enable = true;
|
markdownlint.enable = true;
|
||||||
tidy.enable = true;
|
tidy.enable = true;
|
||||||
|
shellharden.enable = true;
|
||||||
|
shfmt.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{ config, ... }: {
|
||||||
programs.nixvim.plugins.obsidian = {
|
programs.nixvim.plugins.obsidian = {
|
||||||
enable = true;
|
enable = config.var.obsidian;
|
||||||
settings = {
|
settings = {
|
||||||
dir = "~/Nextcloud/obsidian";
|
dir = "~/nextcloud/Notes";
|
||||||
disable_frontmatter = true;
|
disable_frontmatter = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
335
home/programs/qutebrowser/default.nix
Normal file
@@ -0,0 +1,335 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
let
|
||||||
|
settings = ''
|
||||||
|
{
|
||||||
|
"config": {
|
||||||
|
"title" : "Welcome Home",
|
||||||
|
"openLinksInNewTab": false,
|
||||||
|
"locale": "fr-FR",
|
||||||
|
"colors": {
|
||||||
|
"primary": "#${config.var.theme.colors.accent}",
|
||||||
|
"background": "#${config.var.theme.colors.bg}",
|
||||||
|
"foreground": "#${config.var.theme.colors.fg}",
|
||||||
|
"muted": "#${config.var.theme.colors.c8}"
|
||||||
|
},
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"name": "Bookmarks",
|
||||||
|
"links": [
|
||||||
|
{"title": "MyNixOs", "url": "https://mynixos.com", "icon": ""},
|
||||||
|
{"title": "Github", "url": "https://github.com", "icon": ""},
|
||||||
|
{"title": "Proton", "url": "https://mail.proton.me/u/0/inbox", "icon": ""},
|
||||||
|
{"title": "Cloudflare One", "url": "https://one.dash.cloudflare.com/", "icon": ""},
|
||||||
|
{"title": "Chat GPT", "url": "https://chat.openai.com/", "icon": ""},
|
||||||
|
{"title": "Nixvim", "url": "https://nix-community.github.io/nixvim/", "icon": ""},
|
||||||
|
{"title": "Hyprland Wiki", "url": "https://wiki.hyprland.org/", "icon": ""},
|
||||||
|
{"title": "Nerdfont", "url": "https://www.nerdfonts.com/cheat-sheet", "icon": ""},
|
||||||
|
{"title": "Youtube", "url": "https://youtube.com", "icon": ""},
|
||||||
|
{"title": "Server", "url": "https://home.anotherhadi.com", "icon": ""}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Work",
|
||||||
|
"links": [
|
||||||
|
{"title": "Outlook", "url": "https://outlook.office.com/mail/", "icon": ""},
|
||||||
|
{"title": "Office", "url": "https://www.office.com/?auth=2", "icon": ""},
|
||||||
|
{"title": "Teams", "url": "https://teams.microsoft.com/_", "icon": ""}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
|
homepage = pkgs.buildNpmPackage {
|
||||||
|
pname = "homepage";
|
||||||
|
version = "0.0.0";
|
||||||
|
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "anotherhadi";
|
||||||
|
repo = "homepage";
|
||||||
|
rev = "40286c5e03bcfb9993cce354b4f12c00a1b4966d";
|
||||||
|
hash = "sha256-zlJ/bzFWE64HpUCxiRT5E9wrjVVwSTSgIOrifWKxphU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
# npmDepsHash = lib.fakeHash;
|
||||||
|
npmDepsHash = "sha256-bG+CHTq2Rst3JMxsjAC81KhK+G7WwsTVD1eyP87g0z4=";
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
npm install
|
||||||
|
cp ${
|
||||||
|
pkgs.writeText "src/routes/config.json" settings
|
||||||
|
} src/routes/config.json
|
||||||
|
npm run build
|
||||||
|
mkdir $out
|
||||||
|
mv build $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "homepage";
|
||||||
|
homepage = "https://github.com/anotherhadi/homepage";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
in {
|
||||||
|
|
||||||
|
imports = [ ./duckduckgo-colorscheme.nix ];
|
||||||
|
|
||||||
|
programs.qutebrowser = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
searchEngines = {
|
||||||
|
"DEFAULT" = "https://duckduckgo.com/?q={}&ia=web";
|
||||||
|
"d" = "https://duckduckgo.com/?q={}&ia=web";
|
||||||
|
"g" = "https://google.com/search?q={}";
|
||||||
|
"y" = "https://youtube.com/results?search_query={}";
|
||||||
|
"ya" = "https://yandex.com/search/?text={}";
|
||||||
|
"n" = "https://mynixos.com/search?q={}";
|
||||||
|
"nixo" = "https://search.nixos.org/options?channel=unstable&query={}";
|
||||||
|
"nixp" = "https://search.nixos.org/packages?channel=unstable&query={}";
|
||||||
|
"gt" = "https://github.com/search?q={}&type=repositories";
|
||||||
|
};
|
||||||
|
|
||||||
|
quickmarks = {
|
||||||
|
home = "${homepage}/build/index.html";
|
||||||
|
server = "https://home.anotherhadi.com";
|
||||||
|
jack = "https://home.anotherhadi.com";
|
||||||
|
mynixos = "https://mynixos.com";
|
||||||
|
github = "https://github.com";
|
||||||
|
outlook = "https://outlook.office.com/mail/";
|
||||||
|
office = "https://www.office.com/?auth=2";
|
||||||
|
teams = "https://teams.microsoft.com/_";
|
||||||
|
casa = "http://192.168.2.16:8081/#/";
|
||||||
|
proton = "https://mail.proton.me/u/0/inbox";
|
||||||
|
cloudflare-one = "https://one.dash.cloudflare.com/";
|
||||||
|
chatgpt = "https://chat.openai.com/";
|
||||||
|
nixvim = "https://nix-community.github.io/nixvim/";
|
||||||
|
hyprland = "https://wiki.hyprland.org/";
|
||||||
|
nerdfont = "https://www.nerdfonts.com/cheat-sheet";
|
||||||
|
youtube = "https://youtube.com/";
|
||||||
|
cloudflare = "https://dash.cloudflare.com/";
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
url = {
|
||||||
|
default_page = "${homepage}/build/index.html";
|
||||||
|
start_pages = [ "${homepage}/build/index.html" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
colors = {
|
||||||
|
tabs = {
|
||||||
|
odd.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
odd.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
even.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
even.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
selected = {
|
||||||
|
odd = {
|
||||||
|
bg = "#${config.var.theme.colors.accent}";
|
||||||
|
fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
};
|
||||||
|
even = {
|
||||||
|
bg = "#${config.var.theme.colors.accent}";
|
||||||
|
fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
indicator = {
|
||||||
|
error = "#${config.var.theme.colors.c1}";
|
||||||
|
start = "#${config.var.theme.colors.bgalt}";
|
||||||
|
stop = "#${config.var.theme.colors.bgalt}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
hints = {
|
||||||
|
bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
match.fg = "#${config.var.theme.colors.bg}";
|
||||||
|
};
|
||||||
|
|
||||||
|
completion = {
|
||||||
|
category = {
|
||||||
|
bg = "#${config.var.theme.colors.bg}";
|
||||||
|
fg = "#${config.var.theme.colors.fg}";
|
||||||
|
border = {
|
||||||
|
top = "#${config.var.theme.colors.bg}";
|
||||||
|
bottom = "#${config.var.theme.colors.bg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
odd.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
even.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
|
||||||
|
fg = [ "#FFFFFF" "#FFFFFF" "#FFFFFF" ];
|
||||||
|
|
||||||
|
match.fg = "#${config.var.theme.colors.accent}";
|
||||||
|
|
||||||
|
item.selected = {
|
||||||
|
bg = "#${config.var.theme.colors.accent}";
|
||||||
|
border.top = "#${config.var.theme.colors.accent}";
|
||||||
|
border.bottom = "#${config.var.theme.colors.accent}";
|
||||||
|
fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
match.fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
statusbar = {
|
||||||
|
normal.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
normal.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
private.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
private.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
insert.bg = "#${config.var.theme.colors.accent}";
|
||||||
|
insert.fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
command = {
|
||||||
|
bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
private.bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
private.fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
messages = {
|
||||||
|
info = {
|
||||||
|
bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
border = "#${config.var.theme.colors.bgalt}";
|
||||||
|
};
|
||||||
|
|
||||||
|
error = {
|
||||||
|
bg = "#${config.var.theme.colors.c1}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
border = "#${config.var.theme.colors.c1}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#webpage.darkmode.enabled = true; # Enable dark mode for all websites (Weird on images)
|
||||||
|
webpage.preferred_color_scheme =
|
||||||
|
"dark"; # Enable dark mode for websites that support it
|
||||||
|
};
|
||||||
|
|
||||||
|
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 ${homepage}/build/index.html";
|
||||||
|
"gs" = "open https://home.anotherhadi.com";
|
||||||
|
|
||||||
|
" p" = "tab-move -";
|
||||||
|
" n" = "tab-move +";
|
||||||
|
" w" = "tab-close";
|
||||||
|
|
||||||
|
" 1" = "tab-focus 1";
|
||||||
|
" 2" = "tab-focus 2";
|
||||||
|
" 3" = "tab-focus 3";
|
||||||
|
" 4" = "tab-focus 4";
|
||||||
|
" 5" = "tab-focus 5";
|
||||||
|
" 6" = "tab-focus 6";
|
||||||
|
" 7" = "tab-focus 7";
|
||||||
|
" 8" = "tab-focus 8";
|
||||||
|
" 9" = "tab-focus 9";
|
||||||
|
" 0" = "tab-focus 10";
|
||||||
|
|
||||||
|
"<Ctrl-w>" = "tab-close";
|
||||||
|
"<Ctrl-n>" = "open -w";
|
||||||
|
|
||||||
|
"<Ctrl-1>" = "tab-focus 1";
|
||||||
|
"<Ctrl-2>" = "tab-focus 2";
|
||||||
|
"<Ctrl-3>" = "tab-focus 3";
|
||||||
|
"<Ctrl-4>" = "tab-focus 4";
|
||||||
|
"<Ctrl-5>" = "tab-focus 5";
|
||||||
|
"<Ctrl-6>" = "tab-focus 6";
|
||||||
|
"<Ctrl-7>" = "tab-focus 7";
|
||||||
|
"<Ctrl-8>" = "tab-focus 8";
|
||||||
|
"<Ctrl-9>" = "tab-focus 9";
|
||||||
|
"<Ctrl-0>" = "tab-focus 10";
|
||||||
|
};
|
||||||
|
|
||||||
|
command = {
|
||||||
|
"<Ctrl-w>" = "tab-close";
|
||||||
|
"<Ctrl-n>" = "open -w";
|
||||||
|
"<Ctrl-1>" = "tab-focus 1";
|
||||||
|
"<Ctrl-2>" = "tab-focus 2";
|
||||||
|
"<Ctrl-3>" = "tab-focus 3";
|
||||||
|
"<Ctrl-4>" = "tab-focus 4";
|
||||||
|
"<Ctrl-5>" = "tab-focus 5";
|
||||||
|
"<Ctrl-6>" = "tab-focus 6";
|
||||||
|
"<Ctrl-7>" = "tab-focus 7";
|
||||||
|
"<Ctrl-8>" = "tab-focus 8";
|
||||||
|
"<Ctrl-9>" = "tab-focus 9";
|
||||||
|
"<Ctrl-0>" = "tab-focus 10";
|
||||||
|
};
|
||||||
|
|
||||||
|
insert = {
|
||||||
|
"<Ctrl-w>" = "tab-close";
|
||||||
|
"<Ctrl-n>" = "open -w";
|
||||||
|
"<Ctrl-1>" = "tab-focus 1";
|
||||||
|
"<Ctrl-2>" = "tab-focus 2";
|
||||||
|
"<Ctrl-3>" = "tab-focus 3";
|
||||||
|
"<Ctrl-4>" = "tab-focus 4";
|
||||||
|
"<Ctrl-5>" = "tab-focus 5";
|
||||||
|
"<Ctrl-6>" = "tab-focus 6";
|
||||||
|
"<Ctrl-7>" = "tab-focus 7";
|
||||||
|
"<Ctrl-8>" = "tab-focus 8";
|
||||||
|
"<Ctrl-9>" = "tab-focus 9";
|
||||||
|
"<Ctrl-0>" = "tab-focus 10";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
config.unbind("gm")
|
||||||
|
config.unbind("gd")
|
||||||
|
config.unbind("gb")
|
||||||
|
config.unbind("tl")
|
||||||
|
config.unbind("gt")
|
||||||
|
|
||||||
|
c.tabs.padding = {"bottom": 6, "left": 7, "right": 7, "top": 6}
|
||||||
|
|
||||||
|
config.load_autoconfig(True)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,10 +1,9 @@
|
|||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
|
home.file.".duckduckgo-colorscheme.js".text = ''
|
||||||
xdg.configFile."duckduckgo-colorscheme.js".text = ''
|
|
||||||
// Go to DuckDuckGo settings page, open the console, paste the code and hit enter.
|
// Go to DuckDuckGo settings page, open the console, paste the code and hit enter.
|
||||||
// based on https://ddg.codingcodax.dev/
|
// based on https://ddg.codingcodax.dev/
|
||||||
// Cookies string for your theme
|
// Cookies string for your theme
|
||||||
const cookie = '7=${config.theme.colors.bg}; j=${config.theme.colors.bg}; 9=${config.theme.colors.fg}; aa=${config.theme.colors.alt-fg}; 8=${config.theme.colors.color7}; x=${config.theme.colors.primary-bg}; 21=${config.theme.colors.alt-bg};';
|
const cookie = '7=${config.var.theme.colors.bg}; j=${config.var.theme.colors.bg}; 9=${config.var.theme.colors.fg}; aa=${config.var.theme.colors.fgalt}; 8=${config.var.theme.colors.c7}; x=${config.var.theme.colors.accent}; 21=${config.var.theme.colors.bgalt};';
|
||||||
|
|
||||||
// Converts cookie string into formatted JSON
|
// Converts cookie string into formatted JSON
|
||||||
const cookieToJSON = (cookieRaw) => {
|
const cookieToJSON = (cookieRaw) => {
|
||||||
@@ -4,5 +4,10 @@
|
|||||||
./zsh.nix
|
./zsh.nix
|
||||||
./starship.nix
|
./starship.nix
|
||||||
./zoxide.nix
|
./zoxide.nix
|
||||||
|
./tmux.nix
|
||||||
|
./lazygit.nix
|
||||||
|
./eza.nix
|
||||||
|
./fetch
|
||||||
|
./lf
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
13
home/programs/shell/eza.nix
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
programs.eza = {
|
||||||
|
enable = true;
|
||||||
|
icons = true;
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--group-directories-first"
|
||||||
|
"--no-quotes"
|
||||||
|
"--git-ignore"
|
||||||
|
"--icons=always"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
1
home/programs/shell/fetch/default.nix
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{ imports = [ ./neofetch ./nerdfetch ]; }
|
||||||
@@ -109,9 +109,9 @@
|
|||||||
song_format="%artist% - %album% - %title%"
|
song_format="%artist% - %album% - %title%"
|
||||||
song_shorthand="off"
|
song_shorthand="off"
|
||||||
mpc_args=()
|
mpc_args=()
|
||||||
colors=(${toString config.theme.colors.primary-ansi-16-number} 1 ${
|
colors=(${toString config.var.theme.colors.accentNumber} 1 ${
|
||||||
toString config.theme.colors.primary-ansi-16-number
|
toString config.var.theme.colors.accentNumber
|
||||||
} ${toString config.theme.colors.primary-ansi-16-number} 7)
|
} ${toString config.var.theme.colors.accentNumber} 7)
|
||||||
bold="on"
|
bold="on"
|
||||||
underline_enabled="on"
|
underline_enabled="on"
|
||||||
underline_char="-"
|
underline_char="-"
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
# Nerdfetch: https://github.com/ThatOneCalculator/NerdFetch
|
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
let
|
let
|
||||||
nerdfetch = pkgs.writeShellScriptBin "nerdfetch" ''
|
nerdfetch = pkgs.writeShellScriptBin "nerdfetch" ''
|
||||||
@@ -346,9 +345,9 @@ let
|
|||||||
|
|
||||||
## USER VARIABLES -- YOU CAN CHANGE THESE
|
## USER VARIABLES -- YOU CAN CHANGE THESE
|
||||||
|
|
||||||
lc="$reset$bold''$${config.theme.colors.primary-ansi-16}" # labels
|
lc="$reset$bold''$${config.var.theme.colors.accentName}" # labels
|
||||||
nc="$reset$bold''$${config.theme.colors.primary-ansi-16}" # labels
|
nc="$reset$bold''$${config.var.theme.colors.accentName}" # labels
|
||||||
hn="$reset$bold''$${config.theme.colors.primary-ansi-16}" # labels
|
hn="$reset$bold''$${config.var.theme.colors.accentName}" # labels
|
||||||
ic="$reset$white" # info
|
ic="$reset$white" # info
|
||||||
c0="$reset$grey" # first color
|
c0="$reset$grey" # first color
|
||||||
c1="$reset$white" # second color
|
c1="$reset$white" # second color
|
||||||
@@ -367,4 +366,4 @@ let
|
|||||||
"""
|
"""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in { home.packages = with pkgs; [ nerdfetch ]; }
|
in { home.packages = [ nerdfetch ]; }
|
||||||
@@ -3,12 +3,12 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
colors = {
|
colors = {
|
||||||
"fg+" = config.theme.colors.primary-ansi-16;
|
"fg+" = config.var.theme.colors.accentName;
|
||||||
"bg+" = "-1";
|
"bg+" = "-1";
|
||||||
"fg" = "white";
|
"fg" = "white";
|
||||||
"bg" = "-1";
|
"bg" = "-1";
|
||||||
"prompt" = "grey";
|
"prompt" = "grey";
|
||||||
"pointer" = config.theme.colors.primary-ansi-16;
|
"pointer" = config.var.theme.colors.accentName;
|
||||||
};
|
};
|
||||||
defaultOptions = [
|
defaultOptions = [
|
||||||
"--margin=1"
|
"--margin=1"
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
settings = {
|
settings = {
|
||||||
gui.theme = {
|
gui.theme = {
|
||||||
ligthTheme = false;
|
ligthTheme = false;
|
||||||
activeBorderColor = [ "${config.theme.colors.primary-ansi-16}" "bold" ];
|
activeBorderColor = [ "${config.var.theme.colors.accentName}" "bold" ];
|
||||||
inactiveBorderColor = [ "black" ];
|
inactiveBorderColor = [ "black" ];
|
||||||
selectedLineBgColor = [ "default" ];
|
selectedLineBgColor = [ "default" ];
|
||||||
};
|
};
|
||||||
@@ -10,10 +10,10 @@
|
|||||||
"$git_status"
|
"$git_status"
|
||||||
"$character"
|
"$character"
|
||||||
];
|
];
|
||||||
directory = { style = "#${config.theme.colors.primary-bg}"; };
|
directory = { style = "#${config.var.theme.colors.accent}"; };
|
||||||
|
|
||||||
character = {
|
character = {
|
||||||
success_symbol = "[❯](#${config.theme.colors.primary-bg})";
|
success_symbol = "[❯](#${config.var.theme.colors.accent})";
|
||||||
error_symbol = "[❯](red)";
|
error_symbol = "[❯](red)";
|
||||||
vimcmd_symbol = "[❮](cyan)";
|
vimcmd_symbol = "[❮](cyan)";
|
||||||
};
|
};
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
bind-key j select-pane -D
|
bind-key j select-pane -D
|
||||||
bind-key k select-pane -U
|
bind-key k select-pane -U
|
||||||
bind-key l select-pane -R
|
bind-key l select-pane -R
|
||||||
|
set -gq allow-passthrough on
|
||||||
'';
|
'';
|
||||||
|
|
||||||
plugins = with pkgs; [
|
plugins = with pkgs; [
|
||||||
@@ -31,7 +32,7 @@
|
|||||||
set -g @catppuccin_window_current_fill "number"
|
set -g @catppuccin_window_current_fill "number"
|
||||||
set -g @catppuccin_window_current_text "#W"
|
set -g @catppuccin_window_current_text "#W"
|
||||||
|
|
||||||
set -g @catppuccin_status_modules_right "directory session"
|
set -g @catppuccin_status_modules_right ""
|
||||||
set -g @catppuccin_status_left_separator " "
|
set -g @catppuccin_status_left_separator " "
|
||||||
set -g @catppuccin_status_right_separator ""
|
set -g @catppuccin_status_right_separator ""
|
||||||
set -g @catppuccin_status_fill "icon"
|
set -g @catppuccin_status_fill "icon"
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{ pkgs, lib, config, ... }: {
|
{ pkgs, lib, config, ... }: {
|
||||||
|
|
||||||
home.packages = with pkgs; [ eza bat ripgrep tldr ];
|
home.packages = with pkgs; [ bat ripgrep tldr ];
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -11,10 +11,12 @@
|
|||||||
|
|
||||||
initExtraFirst = ''
|
initExtraFirst = ''
|
||||||
bindkey -e
|
bindkey -e
|
||||||
${if config.theme.neofetch == "neofetch" then
|
${if config.var.theme.fetch == "neofetch" then
|
||||||
pkgs.neofetch + "/bin/neofetch"
|
pkgs.neofetch + "/bin/neofetch"
|
||||||
else if config.theme.neofetch == "nerdfetch" then
|
else if config.var.theme.fetch == "nerdfetch" then
|
||||||
"nerdfetch"
|
"nerdfetch"
|
||||||
|
else if config.var.theme.fetch == "pfetch" then
|
||||||
|
"echo; ${pkgs.pfetch}/bin/pfetch"
|
||||||
else
|
else
|
||||||
""}
|
""}
|
||||||
'';
|
'';
|
||||||
@@ -33,18 +35,35 @@
|
|||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
vim = "nvim";
|
vim = "nvim";
|
||||||
|
vi = "nvim";
|
||||||
v = "nvim";
|
v = "nvim";
|
||||||
c = "clear";
|
c = "clear";
|
||||||
clera = "clear";
|
clera = "clear";
|
||||||
celar = "clear";
|
celar = "clear";
|
||||||
e = "exit";
|
e = "exit";
|
||||||
cd = "z";
|
cd = "z";
|
||||||
ls = "${pkgs.eza}/bin/eza --icons=always";
|
ls = "eza --icons=always --no-quotes";
|
||||||
|
tree = "eza --icons=always --tree --no-quotes";
|
||||||
sl = "ls";
|
sl = "ls";
|
||||||
open = "${pkgs.xdg_utils}/bin/xdg-open";
|
open = "${pkgs.xdg_utils}/bin/xdg-open";
|
||||||
icat = "${pkgs.kitty}/bin/kitty +kitten icat";
|
icat = "${pkgs.kitty}/bin/kitty +kitten icat";
|
||||||
note = "vim ~/Nextcloud/obsidian";
|
note = "vim ~/Nextcloud/obsidian";
|
||||||
obs = "vim ~/Nextcloud/obsidian";
|
obs = "vim ~/Nextcloud/obsidian";
|
||||||
|
wireguard-import = "nmcli connection import type wireguard file";
|
||||||
|
vault = "nvim $HOME/nextcloud/Notes/";
|
||||||
|
|
||||||
|
# git
|
||||||
|
ga = "git add";
|
||||||
|
gc = "git commit";
|
||||||
|
gcm = "git commit -m";
|
||||||
|
gcu = "git commit -am 'Update'";
|
||||||
|
gp = "git push";
|
||||||
|
gpl = "git pull";
|
||||||
|
gs = "git status";
|
||||||
|
gd = "git diff";
|
||||||
|
gco = "git checkout";
|
||||||
|
gcb = "git checkout -b";
|
||||||
|
gbr = "git branch";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
40
home/programs/spicetify/default.nix
Normal file
@@ -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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
17
home/programs/zathura/default.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# PDF viewer
|
||||||
|
{
|
||||||
|
programs.zathura = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
options = {
|
||||||
|
guioptions = "v";
|
||||||
|
adjust-open = "width";
|
||||||
|
statusbar-basename = true;
|
||||||
|
render-loading = false;
|
||||||
|
scroll-step = 120;
|
||||||
|
|
||||||
|
# highlight-color = ");
|
||||||
|
# highlight-active-color = mkForce (rgba "base0D");
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
36
home/scripts/battery/default.nix
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
battery-watch = pkgs.writeShellScriptBin "battery-watch" ''
|
||||||
|
while true;do
|
||||||
|
battery-plugged &
|
||||||
|
battery-level &
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
battery-plugged = pkgs.writeShellScriptBin "battery-plugged" ''
|
||||||
|
BATTERY_STATUS=$(cat /sys/class/power_supply/BAT*/status | head -n1)
|
||||||
|
OLD_BATTERY_STATUS=$(cat /tmp/old_battery_status 2>/dev/null || echo "Unknown")
|
||||||
|
if [[ $BATTERY_STATUS != $OLD_BATTERY_STATUS && $OLD_BATTERY_STATUS != "Unknown" ]]; then
|
||||||
|
if [[ $BATTERY_STATUS == "Discharging" ]]; then
|
||||||
|
notif "battery" " Battery is unplugged"
|
||||||
|
else
|
||||||
|
notif "battery" " Battery is plugged in"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
echo $BATTERY_STATUS > /tmp/old_battery_status
|
||||||
|
'';
|
||||||
|
|
||||||
|
battery-level = pkgs.writeShellScriptBin "battery-level" ''
|
||||||
|
BATTERY_LEVEL=$(cat /sys/class/power_supply/BAT*/capacity | head -n1)
|
||||||
|
BATTERY_STATUS=$(cat /sys/class/power_supply/BAT*/status | head -n1)
|
||||||
|
if [[ $BATTERY_LEVEL -le 20 ]] && [[ $BATTERY_STATUS == "Discharging" ]]; then
|
||||||
|
notif "battery" " Low battery" "Battery level is $BATTERY_LEVEL%"
|
||||||
|
elif [[ $BATTERY_LEVEL -le 10 ]] && [[ $BATTERY_STATUS == "Discharging" ]]; then
|
||||||
|
notif "battery" " Very low battery" "Battery level is $BATTERY_LEVEL%"
|
||||||
|
# elif [[ $BATTERY_LEVEL -eq 100 ]] && [[ $BATTERY_STATUS -ne "Discharging" ]]; then
|
||||||
|
# notif "battery" " Fully charged"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = [ battery-watch battery-plugged battery-level ]; }
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, config, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
increments = "5";
|
increments = "5";
|
||||||
@@ -13,9 +13,7 @@ let
|
|||||||
|
|
||||||
message=" Brightness: $brightness_level%"
|
message=" Brightness: $brightness_level%"
|
||||||
|
|
||||||
${pkgs.libnotify}/bin/notify-send "$message" \
|
notif "brightness" "$message" "extraargs=-h int:value:$brightness_level"
|
||||||
-h int:value:"$brightness_level" \
|
|
||||||
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
brightness-up = pkgs.writeShellScriptBin "brightness-up" ''
|
brightness-up = pkgs.writeShellScriptBin "brightness-up" ''
|
||||||
@@ -26,10 +24,4 @@ let
|
|||||||
brightness-change down ${increments}
|
brightness-change down ${increments}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in {
|
in { home.packages = [ brightness-change brightness-up brightness-down ]; }
|
||||||
home.packages = with pkgs; [
|
|
||||||
brightness-change
|
|
||||||
brightness-up
|
|
||||||
brightness-down
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{ pkgs, config, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
homedir = config.home.homeDirectory;
|
|
||||||
|
|
||||||
caffeine-status = pkgs.writeShellScriptBin "caffeine-status" ''
|
caffeine-status = pkgs.writeShellScriptBin "caffeine-status" ''
|
||||||
[[ -f /tmp/caffeine ]] && echo "active" || echo "inactive"
|
[[ -f /tmp/caffeine ]] && echo "active" || echo "inactive"
|
||||||
'';
|
'';
|
||||||
@@ -16,8 +14,7 @@ let
|
|||||||
pkill hypridle
|
pkill hypridle
|
||||||
message=" Caffeine Activated"
|
message=" Caffeine Activated"
|
||||||
fi
|
fi
|
||||||
${pkgs.libnotify}/bin/notify-send "$message" \
|
notif "caffeine" "$message"
|
||||||
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in { home.packages = with pkgs; [ caffeine-status caffeine ]; }
|
in { home.packages = [ caffeine-status caffeine ]; }
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ let
|
|||||||
echo "Wrong number of arguments..."
|
echo "Wrong number of arguments..."
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
extract = pkgs.writeShellScriptBin "extract" ''
|
extract = pkgs.writeShellScriptBin "extract" ''
|
||||||
for i in "$@" ; do
|
for i in "$@" ; do
|
||||||
tar -xvzf $i
|
tar -xvzf $i
|
||||||
@@ -18,4 +19,4 @@ let
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in { home.packages = with pkgs; [ compress extract ]; }
|
in { home.packages = [ compress extract ]; }
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./nixy
|
./nixy
|
||||||
./nerdfetch
|
|
||||||
./sounds
|
./sounds
|
||||||
./brightness
|
./brightness
|
||||||
./caffeine
|
./caffeine
|
||||||
@@ -9,9 +8,10 @@
|
|||||||
./screenshot
|
./screenshot
|
||||||
./startup
|
./startup
|
||||||
./nerdfont_fzf
|
./nerdfont_fzf
|
||||||
./system
|
./notification
|
||||||
./zip
|
./battery
|
||||||
|
./compress
|
||||||
./misc.nix
|
./misc
|
||||||
|
./tofi
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
{ pkgs, config, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
homedir = config.home.homeDirectory;
|
|
||||||
|
|
||||||
menu = pkgs.writeShellScriptBin "menu" ''
|
|
||||||
if pgrep wofi; then
|
|
||||||
pkill wofi
|
|
||||||
else
|
|
||||||
wofi --show drun
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
powermenu = pkgs.writeShellScriptBin "powermenu" ''
|
|
||||||
if pgrep wlogout; then
|
|
||||||
pkill wlogout
|
|
||||||
else
|
|
||||||
${pkgs.wlogout}/bin/wlogout
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
wireguard-import = pkgs.writeShellScriptBin "wireguard-import" ''
|
|
||||||
nmcli connection import type wireguard file "$1"
|
|
||||||
'';
|
|
||||||
|
|
||||||
vault = pkgs.writeShellScriptBin "vault" ''
|
|
||||||
nvim $HOME/Nextcloud/obsidian
|
|
||||||
'';
|
|
||||||
|
|
||||||
in { home.packages = with pkgs; [ menu wireguard-import powermenu vault ]; }
|
|
||||||
24
home/scripts/misc/default.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
menu = pkgs.writeShellScriptBin "menu" ''
|
||||||
|
if pgrep wofi; then
|
||||||
|
pkill wofi
|
||||||
|
else
|
||||||
|
wofi --show drun
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
powermenu = pkgs.writeShellScriptBin "powermenu" ''
|
||||||
|
if pgrep wlogout; then
|
||||||
|
pkill wlogout
|
||||||
|
else
|
||||||
|
${pkgs.wlogout}/bin/wlogout
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
lock = pkgs.writeShellScriptBin "lock" ''
|
||||||
|
${pkgs.hyprlock}/bin/hyprlock
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = [ menu powermenu lock ]; }
|
||||||
@@ -26,10 +26,9 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
in {
|
in {
|
||||||
home.packages = with pkgs; [ nerdfont-fzf nerdfont-fzf-fetch nerdfont-popup ];
|
home.packages = [ nerdfont-fzf nerdfont-fzf-fetch nerdfont-popup ];
|
||||||
|
|
||||||
xdg.configFile."nerdfont_glyphnames.json" = {
|
xdg.configFile."nerdfont_glyphnames.json" = {
|
||||||
source = ./nerdfont_glyphnames.json;
|
source = ./nerdfont_glyphnames.json;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +1,34 @@
|
|||||||
{ pkgs, config, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
homedir = config.home.homeDirectory;
|
|
||||||
default = "4000";
|
default = "4000";
|
||||||
|
|
||||||
night-shift-on = pkgs.writeShellScriptBin "night-shift-on" ''
|
night-shift-on = pkgs.writeShellScriptBin "night-shift-on" ''
|
||||||
${pkgs.hyprland}/bin/hyprctl dispatch exec "${pkgs.wlsunset}/bin/wlsunset -t ${default}"
|
${pkgs.hyprland}/bin/hyprctl dispatch exec "${pkgs.wlsunset}/bin/wlsunset -t ${default}"
|
||||||
message=" Night-Shift Activated"
|
message=" Night-Shift Activated"
|
||||||
${pkgs.libnotify}/bin/notify-send "$message" \
|
notif "night-shift" "$message"
|
||||||
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
night-shift-off = pkgs.writeShellScriptBin "night-shift-off" ''
|
night-shift-off = pkgs.writeShellScriptBin "night-shift-off" ''
|
||||||
pkill wlsunset
|
pkill wlsunset
|
||||||
message=" Night-Shift Deactivated"
|
message=" Night-Shift Deactivated"
|
||||||
${pkgs.libnotify}/bin/notify-send "$message" \
|
notif "night-shift" "$message"
|
||||||
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in { home.packages = with pkgs; [ night-shift-on night-shift-off ]; }
|
night-shift-toggle = pkgs.writeShellScriptBin "night-shift-toggle" ''
|
||||||
|
if pgrep wlsunset; then
|
||||||
|
night-shift-off
|
||||||
|
else
|
||||||
|
night-shift-on
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
night-shift-status = pkgs.writeShellScriptBin "night-shift-status" ''
|
||||||
|
if pgrep wlsunset; then
|
||||||
|
echo "1"
|
||||||
|
else
|
||||||
|
echo "0"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = [ night-shift-on night-shift-off night-shift-toggle night-shift-status ]; }
|
||||||
|
|||||||
@@ -1,39 +1,60 @@
|
|||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
homedir = config.home.homeDirectory;
|
|
||||||
|
|
||||||
nixy-rebuild = pkgs.writeShellScriptBin "nixy-rebuild" ''
|
nixy = pkgs.writeShellScriptBin "nixy" ''
|
||||||
sudo nixos-rebuild switch --flake ${homedir}/.config/nixos#nixy
|
function exec() {
|
||||||
'';
|
$@
|
||||||
|
}
|
||||||
|
|
||||||
nixy-edit = pkgs.writeShellScriptBin "nixy-edit" ''
|
function ui(){
|
||||||
$EDITOR ${homedir}/.config/nixos/
|
DEFAULT_ICON=""
|
||||||
'';
|
|
||||||
|
|
||||||
nixy-upgrade = pkgs.writeShellScriptBin "nixy-upgrade" ''
|
# "icon;name;command"[]
|
||||||
sudo nixos-rebuild switch --upgrade --flake ${homedir}/.config/nixos#nixy
|
apps=(
|
||||||
'';
|
";Rebuild;nixy-rebuild"
|
||||||
|
";Upgrade;nixy-upgrade"
|
||||||
|
";Update;nixy-update"
|
||||||
|
";Collect Garbage;nixy-gc"
|
||||||
|
";Clean Boot Menu;nixy-cb"
|
||||||
|
)
|
||||||
|
|
||||||
nixy-update = pkgs.writeShellScriptBin "nixy-update" ''
|
# Apply default icons if empty:
|
||||||
cd ${homedir}/.config/nixos && sudo nix flake update
|
for i in "''${!apps[@]}"; do
|
||||||
'';
|
apps[i]=$(echo "''${apps[i]}" | sed 's/^;/'$DEFAULT_ICON';/')
|
||||||
|
done
|
||||||
|
|
||||||
nixy-gc = pkgs.writeShellScriptBin "nixy-gc" ''
|
fzf_result=$(printf "%s\n" "''${apps[@]}" | awk -F ';' '{print $1" "$2}' | fzf)
|
||||||
cd ${homedir}/.config/nixos && sudo nix-collect-garbage -d
|
[[ -z $fzf_result ]] && exit 0
|
||||||
'';
|
fzf_result=''${fzf_result/ /;}
|
||||||
|
line=$(printf "%s\n" "''${apps[@]}" | grep "$fzf_result")
|
||||||
|
command=$(echo "$line" | sed 's/^[^;]*;//;s/^[^;]*;//')
|
||||||
|
|
||||||
nixy-cb = pkgs.writeShellScriptBin "nixy-cb" ''
|
exec "$command"
|
||||||
sudo /run/current-system/bin/switch-to-configuration boot
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
[[ $1 == "" ]] && ui
|
||||||
|
|
||||||
|
if [[ $1 == "rebuild" ]];then
|
||||||
|
sudo nixos-rebuild switch --flake ${config.var.configDirectory}#${config.var.hostname}
|
||||||
|
elif [[ $1 == "upgrade" ]];then
|
||||||
|
sudo nixos-rebuild switch --upgrade --flake ${config.var.configDirectory}#${config.var.hostname}
|
||||||
|
elif [[ $1 == "update" ]];then
|
||||||
|
cd ${config.var.configDirectory} && sudo nix flake update
|
||||||
|
elif [[ $1 == "gc" ]];then
|
||||||
|
cd ${config.var.configDirectory} && sudo nix-collect-garbage -d
|
||||||
|
elif [[ $1 == "cb" ]];then
|
||||||
|
sudo /run/current-system/bin/switch-to-configuration boot
|
||||||
|
elif [[ $1 == "remote" ]];then
|
||||||
|
cd ~/.config/nixos && git add . && git commit -m "update" && git push
|
||||||
|
ssh jack -S -C "cd /home/hadi/.config/nixos && git pull && sudo -S nixos-rebuild switch --flake ~/.config/nixos#jack"
|
||||||
|
else
|
||||||
|
echo "Unknown argument"
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in {
|
in {
|
||||||
home.packages = with pkgs; [
|
home.packages =
|
||||||
nixy-rebuild
|
[ nixy ];
|
||||||
nixy-edit
|
|
||||||
nixy-upgrade
|
|
||||||
nixy-update
|
|
||||||
nixy-gc
|
|
||||||
nixy-cb
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||
27
home/scripts/notification/default.nix
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
notif = pkgs.writeShellScriptBin "notif" ''
|
||||||
|
# Shell script to send custom notifications
|
||||||
|
NOTIF_FOLDER="/tmp/notif"
|
||||||
|
sender_id=$1 # To overwrite existing notifications
|
||||||
|
message=$2
|
||||||
|
extraargs=""
|
||||||
|
description=""
|
||||||
|
if [[ $3 == "extraargs="* ]]; then
|
||||||
|
extraargs=$(echo "$3" | sed 's/extraargs=//g')
|
||||||
|
else
|
||||||
|
description="$3"
|
||||||
|
extraargs="$4"
|
||||||
|
fi
|
||||||
|
|
||||||
|
[[ -d "$NOTIF_FOLDER" ]] || mkdir $NOTIF_FOLDER
|
||||||
|
[[ -f "$NOTIF_FOLDER/$sender_id" ]] || echo "0" > "$NOTIF_FOLDER/$sender_id"
|
||||||
|
|
||||||
|
old_notification_id=$(cat "$NOTIF_FOLDER/$sender_id")
|
||||||
|
|
||||||
|
${pkgs.libnotify}/bin/notify-send "$message" \
|
||||||
|
$extraargs \
|
||||||
|
--replace-id="$old_notification_id" --print-id > "$NOTIF_FOLDER/$sender_id"
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = [ notif ]; }
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
{ pkgs, config, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
homedir = config.home.homeDirectory;
|
# TODO: Broken - hypshot not working (jq error)
|
||||||
|
|
||||||
screenshot = pkgs.writeShellScriptBin "screenshot" ''
|
screenshot = pkgs.writeShellScriptBin "screenshot" ''
|
||||||
if [[ $2 == "swappy" ]];then
|
if [[ $2 == "swappy" ]];then
|
||||||
folder="/tmp"
|
folder="/tmp"
|
||||||
@@ -31,4 +30,4 @@ let
|
|||||||
--icon="$folder/$filename" \
|
--icon="$folder/$filename" \
|
||||||
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
|
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
|
||||||
'';
|
'';
|
||||||
in { home.packages = with pkgs; [ hyprshot screenshot ]; }
|
in { home.packages = [ pkgs.hyprshot screenshot ]; }
|
||||||
|
|||||||
@@ -26,9 +26,7 @@ let
|
|||||||
message=" Volume: $volume%"
|
message=" Volume: $volume%"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${pkgs.libnotify}/bin/notify-send "$message" \
|
notif "sound" "$message" "extraargs=-h int:value:$volume"
|
||||||
-h int:value:"$volume" \
|
|
||||||
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
sound-up = pkgs.writeShellScriptBin "sound-up" ''
|
sound-up = pkgs.writeShellScriptBin "sound-up" ''
|
||||||
@@ -83,11 +81,6 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
in {
|
in {
|
||||||
home.packages = with pkgs; [
|
home.packages =
|
||||||
sound-output
|
[ sound-output sound-change sound-up sound-down sound-toggle ];
|
||||||
sound-change
|
|
||||||
sound-up
|
|
||||||
sound-down
|
|
||||||
sound-toggle
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||