mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-05-20 13:22:34 +02:00
Compare commits
183 Commits
v4.0.0
...
d71c9d8169
| Author | SHA1 | Date | |
|---|---|---|---|
| d71c9d8169 | |||
| e805c868a7 | |||
| 0fd0a73e92 | |||
| cd2896eb5d | |||
| 35b79af191 | |||
| 325cacc86f | |||
| 7862c970fd | |||
| 498ed902a2 | |||
| 3478a9a0a5 | |||
| f6d056deb3 | |||
| 795621ada6 | |||
| 31964cca35 | |||
| abcadd4eaf | |||
| 5945a72b01 | |||
| df6381db85 | |||
| 6ed60d7a13 | |||
| bcd4fa9839 | |||
| 143c5d2a34 | |||
| 4ed04ebf55 | |||
| 1a57874e68 | |||
| 2127ffbe31 | |||
| a76f81fa13 | |||
| f9d5c6ab00 | |||
| b51a78ac1c | |||
| 96b5d5e671 | |||
| a222958eea | |||
| c3f86c9831 | |||
| dc5c7dc915 | |||
| 3cbe2a1ab2 | |||
| a1ed4ebc4c | |||
| 80aa828ee5 | |||
| 28cdcb6dad | |||
| e620c5296f | |||
| 80ca377585 | |||
| 3a8ac99f43 | |||
| 6724573f16 | |||
| 13ae753f3d | |||
| 805f43618c | |||
| 4489c9e0ae | |||
| 3a86013330 | |||
| 922a412cda | |||
| cedf87698c | |||
| 52561cf335 | |||
| 9429c9f93b | |||
| 5e0dd70cfa | |||
| 9e24c44c53 | |||
| 241db5ce7a | |||
| 00faa213bf | |||
| 0aac097e77 | |||
| 5aaeba1512 | |||
| 1bdf7a3af5 | |||
| 4f3cf99b99 | |||
| f7a2aa6256 | |||
| ac3c0886b7 | |||
| 17f976d4e7 | |||
| daaf0d2b27 | |||
| 5f0d3bff5f | |||
| 36ad6aeb57 | |||
| 2326857f65 | |||
| 28b7923e47 | |||
| 29bdd6468a | |||
| 08db0a42c4 | |||
| 66cc2a3958 | |||
| 80afef207a | |||
| d18d67d86e | |||
| 2e10d6feff | |||
| dea17ebf3c | |||
| ae024e308d | |||
| 302f0ceec9 | |||
| 1cddeef739 | |||
| d7b72277f7 | |||
| 5d9ab362a3 | |||
| a6b2f66ac8 | |||
| e2a60b15dc | |||
| d029d6f205 | |||
| d9b4102bed | |||
| a744d85f48 | |||
| 5d50819d49 | |||
| 087f71d2d5 | |||
| 3f36665767 | |||
| 6cb4d1eb96 | |||
| 983c83b981 | |||
| c482e6e075 | |||
| 0a01e8f3e8 | |||
| 641411ad51 | |||
| 86fd60fd3d | |||
| 9a41aff92d | |||
| e4a2a7abd0 | |||
| b4d8e87abe | |||
| 5de0ce50d6 | |||
| aba6dafffa | |||
| 290471fcc2 | |||
| ac90e05258 | |||
| 562f2507c0 | |||
| a393b97680 | |||
| 59901b0081 | |||
| 6ecf475301 | |||
| 75483ea97a | |||
| 4cd0eccde5 | |||
| d32c4a317f | |||
| 5ecc516a2f | |||
| de489d7d9c | |||
| 19bfd1201b | |||
| 20f7bca099 | |||
| 72ed018351 | |||
| b904fd4fde | |||
| b1cf5fb3a1 | |||
| fee44db81c | |||
| 214095c02a | |||
| 29fc893847 | |||
| 3689215480 | |||
| 14168a65ea | |||
| 43ae447b34 | |||
| 07fa66f1b6 | |||
| 168423cf16 | |||
| bde39be205 | |||
| 18137f444a | |||
| e835f2466b | |||
| d2a9fff0d1 | |||
| 081e05c702 | |||
| 4a4b997ef3 | |||
| 37abf49364 | |||
| 36f5ef3792 | |||
| 3d4099c97b | |||
| 89413d06a8 | |||
| 76e3368f3e | |||
| 0f40fccb5e | |||
| cefebdbd0a | |||
| 05cfe684c2 | |||
| f11bd21e00 | |||
| 40477c6562 | |||
| d1fec1128d | |||
| 677a279eda | |||
| 1489261fa9 | |||
| 29d19d5502 | |||
| 2f69c6e1d4 | |||
| 9ad71c5775 | |||
| b5c64e96c4 | |||
| af787952ad | |||
| 4ebf579743 | |||
| 78aa49547d | |||
| d21fc81a19 | |||
| b0684b2e56 | |||
| 49a9f3f169 | |||
| 8caa02139c | |||
| 0c0a487488 | |||
| 6f463fc7f9 | |||
| 3e82b1cd60 | |||
| f9d171cef3 | |||
| 89c61650bc | |||
| c94559d29f | |||
| e91047a3e1 | |||
| 1d75175be8 | |||
| ea18558cb3 | |||
| 72c13294e6 | |||
| a771f685b2 | |||
| 27ad0783bc | |||
| d61e378405 | |||
| baa1ce858d | |||
| f32ea27565 | |||
| b657e5a891 | |||
| 48f3f3170b | |||
| 87778bd3fa | |||
| 5736c8ccf2 | |||
| 31031447ce | |||
| 4fb4058dca | |||
| 33b3ef66f2 | |||
| 52ee08e13b | |||
| 8c4b9340b6 | |||
| a1d57253f0 | |||
| 6e21914113 | |||
| 7acddfafa1 | |||
| 9fb4072893 | |||
| fd644671af | |||
| bfb7c2f4e0 | |||
| 22b5aa9797 | |||
| 4ac3945174 | |||
| d3cdc25481 | |||
| 6a0b3418a7 | |||
| f2c2540cd4 | |||
| 223f785c3a | |||
| 81ab17fed7 | |||
| 8f16767240 |
@@ -1,5 +1,5 @@
|
|||||||
<div align="center">
|
<div align="center">
|
||||||
<img alt="nixy logo" src="https://raw.githubusercontent.com/anotherhadi/nixy/main/.github/assets/logo.png" width="120px" />
|
<img alt="nixy logo" src="./.github/assets/logo.png" width="120px" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
@@ -119,6 +119,16 @@ sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname
|
|||||||
- [THEMES](docs/THEMES.md): How themes work and how to create your own
|
- [THEMES](docs/THEMES.md): How themes work and how to create your own
|
||||||
- [WALLPAPERS](https://github.com/anotherhadi/awesome-wallpapers): An awesome
|
- [WALLPAPERS](https://github.com/anotherhadi/awesome-wallpapers): An awesome
|
||||||
collection of wallpapers
|
collection of wallpapers
|
||||||
|
- [NEOVIM](docs/NEOVIM.md): How to use the Neovim config in your own flake
|
||||||
|
- [GROUPS](docs/GROUPS.md): Reusable package groups (dev, cybersecurity)
|
||||||
|
|
||||||
- [CONTRIBUTING](docs/CONTRIBUTING.md): How to contribute
|
- [CONTRIBUTING](docs/CONTRIBUTING.md): How to contribute
|
||||||
- [LICENSE](LICENSE): MIT License
|
- [LICENSE](LICENSE): MIT License
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<a href="https://github.com/anotherhadi/nixy">github</a> |
|
||||||
|
<a href="https://gitlab.com/anotherhadi_mirror/nixy">gitlab (mirror)</a> |
|
||||||
|
<a href="https://git.hadi.icu/anotherhadi/nixy">gitea (mirror)</a>
|
||||||
|
</div
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 412 KiB After Width: | Height: | Size: 412 KiB |
@@ -1,2 +1,3 @@
|
|||||||
.sops.yaml
|
.sops.yaml
|
||||||
|
.claude/
|
||||||
old/
|
old/
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[//]: # (This file is autogenerated)
|
[//]: # (This file is autogenerated)
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<img alt="nixy logo" src="https://raw.githubusercontent.com/anotherhadi/nixy/main/.github/assets/logo.png" width="120px" />
|
<img alt="nixy logo" src="./.github/assets/logo.png" width="120px" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
@@ -129,6 +129,16 @@ sudo nixos-rebuild switch --flake ~/.config/nixos#yourhostname
|
|||||||
- [THEMES](docs/THEMES.md): How themes work and how to create your own
|
- [THEMES](docs/THEMES.md): How themes work and how to create your own
|
||||||
- [WALLPAPERS](https://github.com/anotherhadi/awesome-wallpapers): An awesome
|
- [WALLPAPERS](https://github.com/anotherhadi/awesome-wallpapers): An awesome
|
||||||
collection of wallpapers
|
collection of wallpapers
|
||||||
|
- [NEOVIM](docs/NEOVIM.md): How to use the Neovim config in your own flake
|
||||||
|
- [GROUPS](docs/GROUPS.md): Reusable package groups (dev, cybersecurity)
|
||||||
|
|
||||||
- [CONTRIBUTING](docs/CONTRIBUTING.md): How to contribute
|
- [CONTRIBUTING](docs/CONTRIBUTING.md): How to contribute
|
||||||
- [LICENSE](LICENSE): MIT License
|
- [LICENSE](LICENSE): MIT License
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<a href="https://github.com/anotherhadi/nixy">github</a> |
|
||||||
|
<a href="https://gitlab.com/anotherhadi_mirror/nixy">gitlab (mirror)</a> |
|
||||||
|
<a href="https://git.hadi.icu/anotherhadi/nixy">gitea (mirror)</a>
|
||||||
|
</div
|
||||||
|
|||||||
@@ -0,0 +1,44 @@
|
|||||||
|
# Groups
|
||||||
|
|
||||||
|
Groups are curated sets of packages exposed as flake outputs. Each group has two forms:
|
||||||
|
|
||||||
|
- **`homeManagerModules.<group>`** — full home-manager module (packages + files + systemd units)
|
||||||
|
- **`packages.<group>`** — standalone environment for `nix shell` (packages only)
|
||||||
|
|
||||||
|
## Available groups
|
||||||
|
|
||||||
|
- dev (go, bun, air, ...)
|
||||||
|
- cybersecurity (nmap, john, dirb, ffuf, ...)
|
||||||
|
|
||||||
|
For the Cybersecurity group, the home-manager module also sets up:
|
||||||
|
|
||||||
|
- `~/Cyber/wordlists/` with SecLists, fuzz4bounty, and hashcat rules
|
||||||
|
- `~/Cyber/tmp/` as a temporary workspace
|
||||||
|
|
||||||
|
## Use in another flake
|
||||||
|
|
||||||
|
Add this repo as an input:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
inputs.nixy.url = "github:anotherhadi/nixy";
|
||||||
|
```
|
||||||
|
|
||||||
|
Import the home-manager module in your home configuration:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
{ inputs, ... }: {
|
||||||
|
imports = [
|
||||||
|
inputs.nixy.homeManagerModules.cybersecurity
|
||||||
|
# inputs.nixy.homeManagerModules.dev
|
||||||
|
];
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Quick shell without installing
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nix shell github:anotherhadi/nixy#cybersecurity
|
||||||
|
nix shell github:anotherhadi/nixy#dev
|
||||||
|
```
|
||||||
|
|
||||||
|
This drops you into a shell with all tools in `PATH`. No home-manager required, no wordlists or systemd units.
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
# Neovim
|
||||||
|
|
||||||
|
The Neovim configuration is built with [nvf](https://github.com/notashelf/nvf) and exposed as a standalone flake output.
|
||||||
|
It can be used in three ways: run it directly, import it into another flake's home-manager setup, or use it as part of this config.
|
||||||
|
|
||||||
|
## Run directly
|
||||||
|
|
||||||
|
No installation needed:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nix run github:anotherhadi/nixy#nvim
|
||||||
|
```
|
||||||
|
|
||||||
|
## Use in another flake
|
||||||
|
|
||||||
|
Add this repo as an input:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
inputs.nixy.url = "github:anotherhadi/nixy";
|
||||||
|
```
|
||||||
|
|
||||||
|
Then import the home-manager module in your home configuration:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
{ inputs, ... }: {
|
||||||
|
imports = [ inputs.nixy.homeManagerModules.nvim ];
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## What's included
|
||||||
|
|
||||||
|
| File | Description |
|
||||||
|
| --------------- | ---------------------------------------------------------------------- |
|
||||||
|
| `options.nix` | Core settings: theme (catppuccin mocha), clipboard, indentation, folds |
|
||||||
|
| `languages.nix` | LSP, treesitter, formatters, diagnostics, and per-language config |
|
||||||
|
| `keymaps.nix` | All key mappings (leader: `space`) |
|
||||||
|
| `picker.nix` | Snacks picker + oil.nvim |
|
||||||
|
| `snacks.nix` | Snacks extras: image preview, zen mode, git signs, statuscolumn |
|
||||||
|
| `utils.nix` | Bufferline, lualine, copilot, lazygit, toggleterm, autocomplete |
|
||||||
|
| `mini.nix` | Mini.nvim suite: pairs, comment, icons, indentscope, diff, git |
|
||||||
+12
-36
@@ -1,53 +1,29 @@
|
|||||||
# SERVER
|
# SERVER
|
||||||
|
|
||||||
> Update in comming. Early 2026
|
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
This document describes the architecture and setup of the self-hosted **NixOS server**, which is securely accessible via **Tailscale**. The server is designed for private, secure, and easily manageable self-hosting of various services.
|
This document describes the architecture and setup of the self-hosted **NixOS server**, which is securely accessible via **a Cloudflare Tunnel**.
|
||||||
|
The server is designed for private, secure, and easily manageable self-hosting of various services.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## **Why This Setup?**
|
## **Why This Setup?**
|
||||||
|
|
||||||
- **Private & Secure**: Services are only accessible through Tailscale, preventing exposure to the public internet.
|
- **Private & Secure**: Services are only accessible through Cloudflare's access control, preventing exposure to the "public internet".
|
||||||
- **Domain-based Access**: A custom domain (`example.org`) maps to the server's Tailscale IP, making service access simple and consistent.
|
- **Domain-based Access**: A custom domain maps to the server's tunnel, making service access simple and consistent.
|
||||||
- **Automatic SSL Certificates**: Using DNS-01 challenges, valid SSL certificates are generated even though the services are not publicly exposed.
|
- **Modular & Declarative**: Everything is managed through NixOS modules (except for access control), ensuring reproducibility and easy configuration.
|
||||||
- **Modular & Declarative**: Everything is managed through NixOS modules, ensuring reproducibility and easy configuration.
|
|
||||||
|
|
||||||
## **Self-Hosted Services**
|
## **Self-Hosted Services**
|
||||||
|
|
||||||
The server hosts several key applications:
|
The server hosts several key applications:
|
||||||
|
|
||||||
### **Core Infrastructure**
|
- **NGINX**: Reverse proxy for routing traffic to services via my domain name.
|
||||||
|
|
||||||
- **NGINX**: Reverse proxy for routing traffic to services via `example.org`.
|
|
||||||
|
|
||||||
### **Networking & Security**
|
|
||||||
|
|
||||||
- **AdGuard Home**: A self-hosted DNS ad blocker for network-wide ad and tracker filtering.
|
- **AdGuard Home**: A self-hosted DNS ad blocker for network-wide ad and tracker filtering.
|
||||||
|
|
||||||
### **Monitoring & Storage**
|
|
||||||
|
|
||||||
- **Glance**: An awesome dashboard! (See the screenshot above)
|
- **Glance**: An awesome dashboard! (See the screenshot above)
|
||||||
|
|
||||||
### **Media & Content Management**
|
|
||||||
|
|
||||||
- **Arr Stack (Radarr, Sonarr, etc.)**: Automated media management tools for handling movies and TV shows. (legaly ofc)
|
- **Arr Stack (Radarr, Sonarr, etc.)**: Automated media management tools for handling movies and TV shows. (legaly ofc)
|
||||||
|
- **Mealie**: A self-hosted recipe manager and meal planner with a clean user interface.
|
||||||
## **How It Works**
|
- **Stirling-PDF**: A powerful, locally hosted web application for editing, merging, and converting PDF files.
|
||||||
|
- **CyberChef**: The "Cyber Swiss Army Knife" for data analysis, decoding, and encryption tasks.
|
||||||
1. **Domain Configuration**
|
- **Mazanoke**: A utility service for image processing, specialized in format conversion and downgrading/optimization.
|
||||||
- `example.org` is pointed to the Tailscale IP of the server. (cloudflare A record, not proxied)
|
- **SSH**: Secure remote access configuration for server management. (via browser too)
|
||||||
- This allows for easy access without exposing services to the internet.
|
- **Security related stuff**: Cloudflared, Fail2Ban, Firewall
|
||||||
|
|
||||||
2. **SSL Certificate Generation**
|
|
||||||
- Certificates are obtained using a **DNS-01 challenge**, verifying domain ownership without requiring public access.
|
|
||||||
|
|
||||||
3. **NGINX Reverse Proxy**
|
|
||||||
- Routes incoming requests from `*.example.org` to the correct internal service.
|
|
||||||
- Ensures SSL termination and secure connections.
|
|
||||||
|
|
||||||
4. **Access Control**
|
|
||||||
- Only devices within the Tailscale network can reach the services.
|
|
||||||
- Firewall rules restrict access further based on necessity.
|
|
||||||
|
|||||||
+3
-3
@@ -12,6 +12,6 @@ Wallpapers are loaded from the [hadi's awesome-wallpapers](https://github.com/an
|
|||||||
|
|
||||||
### Rose-pine
|
### Rose-pine
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|||||||
Generated
+863
-300
File diff suppressed because it is too large
Load Diff
@@ -7,13 +7,18 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.05";
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.11";
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
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";
|
||||||
stylix.url = "github:danth/stylix";
|
stylix.url = "github:danth/stylix";
|
||||||
nixcord.url = "github:kaylorben/nixcord";
|
|
||||||
sops-nix.url = "github:Mic92/sops-nix";
|
sops-nix.url = "github:Mic92/sops-nix";
|
||||||
nvf.url = "github:notashelf/nvf";
|
nvf.url = "github:notashelf/nvf";
|
||||||
|
bun2nix.url = "github:nix-community/bun2nix";
|
||||||
|
|
||||||
|
nix-index-database = {
|
||||||
|
url = "github:nix-community/nix-index-database";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -31,40 +36,74 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
# Server
|
# Server
|
||||||
eleakxir.url = "github:anotherhadi/eleakxir";
|
# FIXME: Deleted repo for now
|
||||||
|
# eleakxir.url = "github:anotherhadi/eleakxir";
|
||||||
nixarr.url = "github:rasmus-kirk/nixarr";
|
nixarr.url = "github:rasmus-kirk/nixarr";
|
||||||
|
default-creds.url = "github:anotherhadi/default-creds";
|
||||||
|
blog.url = "github:anotherhadi/blog";
|
||||||
|
awesome-wallpapers.url = "github:anotherhadi/awesome-wallpapers";
|
||||||
|
iknowyou.url = "github:anotherhadi/iknowyou";
|
||||||
|
|
||||||
|
# Qutebrowser userscripts (greasemonkey)
|
||||||
|
qs-return-youtube-dislike = {
|
||||||
|
url = "https://update.greasyfork.org/scripts/436115/Return%20YouTube%20Dislike.user.js";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
qs-sponsorblock-lite = {
|
||||||
|
url = "https://update.greasyfork.org/scripts/560869/SponsorBlock%20Lite.user.js";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
qs-dont-track-me-google = {
|
||||||
|
url = "https://update.greasyfork.org/scripts/428243/Don%27t%20track%20me%20Google.user.js";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
qs-i-dont-care-about-cookies = {
|
||||||
|
url = "https://update.greasyfork.org/scripts/522645/I%20don%27t%20care%20about%20cookies.user.js";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
qs-tracking-token-stripper = {
|
||||||
|
url = "https://github.com/doggy8088/TrackingTokenStripper/raw/refs/heads/master/TrackingTokenStripper.user.js";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
qs-bypass-paywalls-clean = {
|
||||||
|
url = "https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters/blob/raw?file=userscript/bpc.en.user.js";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
qs-anti-adblock-fuckoff = {
|
||||||
|
url = "https://update.greasyfork.org/scripts/397070/Anti-AdBlocker%20Fuckoff.user.js";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ {nixpkgs, ...}: {
|
outputs = inputs @ {
|
||||||
nixosConfigurations = {
|
nixpkgs,
|
||||||
nixy =
|
nixpkgs-stable,
|
||||||
# CHANGEME: This should match the 'hostname' in your variables.nix file
|
...
|
||||||
nixpkgs.lib.nixosSystem {
|
}: let
|
||||||
modules = [
|
system = "x86_64-linux";
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
args = {
|
||||||
|
inherit
|
||||||
|
inputs
|
||||||
|
nixpkgs
|
||||||
|
system
|
||||||
|
pkgs
|
||||||
|
;
|
||||||
|
pkgs-stable = nixpkgs-stable.legacyPackages.${system};
|
||||||
|
};
|
||||||
|
merge = nixpkgs.lib.foldl nixpkgs.lib.recursiveUpdate {};
|
||||||
|
in
|
||||||
|
merge [
|
||||||
|
(import ./home/programs/nvf/flake.nix args)
|
||||||
|
(import ./home/programs/group/flake.nix args)
|
||||||
|
(import ./home/programs/nixy/flake.nix args)
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = [];
|
formatter.${system} = pkgs.alejandra;
|
||||||
_module.args = {
|
nixosConfigurations = {
|
||||||
inherit inputs;
|
h-laptop = import ./hosts/laptop/flake.nix args;
|
||||||
|
h-work = import ./hosts/work/flake.nix args;
|
||||||
|
jack = import ./hosts/server/flake.nix args;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
inputs.nixos-hardware.nixosModules.omen-16-n0005ne # CHANGEME: check https://github.com/NixOS/nixos-hardware
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
inputs.stylix.nixosModules.stylix
|
|
||||||
./hosts/laptop/configuration.nix # CHANGEME: change the path to match your host folder
|
|
||||||
];
|
];
|
||||||
};
|
|
||||||
# Jack is my server
|
|
||||||
jack = nixpkgs.lib.nixosSystem {
|
|
||||||
modules = [
|
|
||||||
{_module.args = {inherit inputs;};}
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
inputs.stylix.nixosModules.stylix
|
|
||||||
inputs.sops-nix.nixosModules.sops
|
|
||||||
inputs.nixarr.nixosModules.default
|
|
||||||
inputs.eleakxir.nixosModules.eleakxir
|
|
||||||
./hosts/server/configuration.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,87 @@
|
|||||||
|
{
|
||||||
|
programs.brave = {
|
||||||
|
enable = true;
|
||||||
|
commandLineArgs = [
|
||||||
|
# Wayland Native
|
||||||
|
"--enable-features=UseOzonePlatform"
|
||||||
|
"--ozone-platform=wayland"
|
||||||
|
|
||||||
|
# Hardware Acceleration (NVIDIA optimized)
|
||||||
|
"--enable-accelerated-video-decode"
|
||||||
|
"--enable-gpu-rasterization"
|
||||||
|
"--enable-zero-copy"
|
||||||
|
"--ignore-gpu-blocklist"
|
||||||
|
|
||||||
|
# Performance
|
||||||
|
"--enable-features=VaapiVideoDecoder"
|
||||||
|
"--enable-features=VaapiVideoEncoder"
|
||||||
|
"--enable-features=CanvasOopRasterization"
|
||||||
|
"--disable-features=UseChromeOSDirectVideoDecoder"
|
||||||
|
|
||||||
|
# Privacy & Security
|
||||||
|
"--disable-features=MediaRouter" # Disable Chromecast
|
||||||
|
"--disable-features=OptimizationHints" # No Google suggestions
|
||||||
|
"--disable-features=AutofillSavePaymentMethods"
|
||||||
|
"--disable-background-networking" # No telemetry
|
||||||
|
"--disable-sync" # Manual sync control
|
||||||
|
|
||||||
|
# Wayland-specific fixes
|
||||||
|
"--disable-features=WaylandWpColorManagerV1" # Color management fix
|
||||||
|
|
||||||
|
# UI/UX
|
||||||
|
"--force-dark-mode" # Match Stylix theme
|
||||||
|
"--enable-features=WebUIDarkMode"
|
||||||
|
"--no-default-browser-check"
|
||||||
|
];
|
||||||
|
extensions = let
|
||||||
|
ids = [
|
||||||
|
];
|
||||||
|
in
|
||||||
|
map (id: {inherit id;}) ids;
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."BraveSoftware/Brave-Browser/Policies/managed/policy.json".text = builtins.toJSON {
|
||||||
|
BraveShieldsAdControl = 2;
|
||||||
|
BraveShieldsTrackersBlocked = 1;
|
||||||
|
BraveShieldsHttpsEverywhere = 1;
|
||||||
|
BraveRewardsDisabled = 1;
|
||||||
|
BraveWalletDisabled = 1;
|
||||||
|
BraveVPNDisabled = 1;
|
||||||
|
BraveAIChatEnabled = 0;
|
||||||
|
PasswordManagerEnabled = 0;
|
||||||
|
BravePlaylistEnabled = 0;
|
||||||
|
BraveWebDiscoveryEnabled = 0;
|
||||||
|
BraveStatsPingEnabled = 0;
|
||||||
|
DnsOverHttpsMode = "automatic";
|
||||||
|
BraveDarkMode = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.desktopEntries = {
|
||||||
|
brave-incognito = {
|
||||||
|
name = "Brave (Private window)";
|
||||||
|
genericName = "Navigateur Web";
|
||||||
|
exec = "brave --incognito";
|
||||||
|
icon = "brave-browser";
|
||||||
|
terminal = false;
|
||||||
|
categories = [
|
||||||
|
"Network"
|
||||||
|
"WebBrowser"
|
||||||
|
];
|
||||||
|
mimeType = [
|
||||||
|
"text/html"
|
||||||
|
"text/xml"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
brave-tor = {
|
||||||
|
name = "Brave (Private window w/Tor)";
|
||||||
|
genericName = "Navigateur Web";
|
||||||
|
exec = "brave --tor";
|
||||||
|
icon = "brave-browser";
|
||||||
|
terminal = false;
|
||||||
|
categories = [
|
||||||
|
"Network"
|
||||||
|
"WebBrowser"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# Discord is a popular chat application.
|
|
||||||
{inputs, ...}: {
|
|
||||||
imports = [inputs.nixcord.homeModules.nixcord];
|
|
||||||
|
|
||||||
programs.nixcord = {
|
|
||||||
enable = true;
|
|
||||||
config = {frameless = true;};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
# Import all fetch scripts
|
|
||||||
{imports = [./neofetch ./nerdfetch];}
|
|
||||||
@@ -1,148 +0,0 @@
|
|||||||
# Legacy
|
|
||||||
{pkgs, ...}: {
|
|
||||||
home.packages = with pkgs; [neofetch];
|
|
||||||
|
|
||||||
xdg.configFile."neofetch/ascii.txt".text = ''
|
|
||||||
''${c6}
|
|
||||||
⡏⠉⠉⠉⠉⠉⠉⠋⠉⠉⠉⠉⠉⠉⠋⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠙⠉⠉⠉⢹
|
|
||||||
⡇⢸⣿⡟⠛⢿⣷⠀⢸⣿⡟⠛⢿⣷⡄⢸⣿⡇⠀⢸⣿⡇⢸⣿⡇⠀⢸⣿⡇⢸
|
|
||||||
⡇⢸⣿⣧⣤⣾⠿⠀⢸⣿⣇⣀⣸⡿⠃⢸⣿⡇⠀⢸⣿⡇⢸⣿⣇⣀⣸⣿⡇⢸
|
|
||||||
⡇⢸⣿⡏⠉⢹⣿⡆⢸⣿⡟⠛⢻⣷⡄⢸⣿⡇⠀⢸⣿⡇⢸⣿⡏⠉⢹⣿⡇⢸
|
|
||||||
⡇⢸⣿⣧⣤⣼⡿⠃⢸⣿⡇⠀⢸⣿⡇⠸⣿⣧⣤⣼⡿⠁⢸⣿⡇⠀⢸⣿⡇⢸
|
|
||||||
⣇⣀⣀⣀⣀⣀⣀⣄⣀⣀⣀⣀⣀⣀⣀⣠⣀⡈⠉⣁⣀⣄⣀⣀⣀⣠⣀⣀⣀⣸
|
|
||||||
⣇⣿⠘⣿⣿⣿⡿⡿⣟⣟⢟⢟⢝⠵⡝⣿⡿⢂⣼⣿⣷⣌⠩⡫⡻⣝⠹⢿⣿⣷
|
|
||||||
⡆⣿⣆⠱⣝⡵⣝⢅⠙⣿⢕⢕⢕⢕⢝⣥⢒⠅⣿⣿⣿⡿⣳⣌⠪⡪⣡⢑⢝⣇
|
|
||||||
⡆⣿⣿⣦⠹⣳⣳⣕⢅⠈⢗⢕⢕⢕⢕⢕⢈⢆⠟⠋⠉⠁⠉⠉⠁⠈⠼⢐⢕⢽
|
|
||||||
⡗⢰⣶⣶⣦⣝⢝⢕⢕⠅⡆⢕⢕⢕⢕⢕⣴⠏⣠⡶⠛⡉⡉⡛⢶⣦⡀⠐⣕⢕
|
|
||||||
⡝⡄⢻⢟⣿⣿⣷⣕⣕⣅⣿⣔⣕⣵⣵⣿⣿⢠⣿⢠⣮⡈⣌⠨⠅⠹⣷⡀⢱⢕
|
|
||||||
⡝⡵⠟⠈⢀⣀⣀⡀⠉⢿⣿⣿⣿⣿⣿⣿⣿⣼⣿⢈⡋⠴⢿⡟⣡⡇⣿⡇⡀⢕
|
|
||||||
⡝⠁⣠⣾⠟⡉⡉⡉⠻⣦⣻⣿⣿⣿⣿⣿⣿⣿⣿⣧⠸⣿⣦⣥⣿⡇⡿⣰⢗⢄
|
|
||||||
⠁⢰⣿⡏⣴⣌⠈⣌⠡⠈⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣬⣉⣉⣁⣄⢖⢕⢕⢕
|
|
||||||
⡀⢻⣿⡇⢙⠁⠴⢿⡟⣡⡆⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣵⣵⣿
|
|
||||||
⡻⣄⣻⣿⣌⠘⢿⣷⣥⣿⠇⣿⣿⣿⣿⣿⣿⠛⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
|
|
||||||
⣷⢄⠻⣿⣟⠿⠦⠍⠉⣡⣾⣿⣿⣿⣿⣿⣿⢸⣿⣦⠙⣿⣿⣿⣿⣿⣿⣿⣿⠟
|
|
||||||
⡕⡑⣑⣈⣻⢗⢟⢞⢝⣻⣿⣿⣿⣿⣿⣿⣿⠸⣿⠿⠃⣿⣿⣿⣿⣿⣿⡿⠁⣠
|
|
||||||
⡝⡵⡈⢟⢕⢕⢕⢕⣵⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣿⣿⣿⣿⣿⠿⠋⣀⣈⠙
|
|
||||||
⡝⡵⡕⡀⠑⠳⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⢉⡠⡲⡫⡪⡪⡣
|
|
||||||
'';
|
|
||||||
|
|
||||||
xdg.configFile."neofetch/config.conf".text = ''
|
|
||||||
# From: https://github.com/Chick2D/neofetch-themes/
|
|
||||||
# Made by https://github.com/Dan1jel
|
|
||||||
|
|
||||||
print_info() {
|
|
||||||
prin "\n"
|
|
||||||
info "\n \n OS" distro
|
|
||||||
info "\n \n Host" model
|
|
||||||
info "\n \n Kernel" kernel
|
|
||||||
info "\n \n Uptime" uptime
|
|
||||||
info "\n \n Packages" packages
|
|
||||||
info "\n \n Shell" shell
|
|
||||||
info "\n \n Resolution" resolution
|
|
||||||
info "\n \n DE" de
|
|
||||||
info "\n \n WM" wm
|
|
||||||
info "\n \n WM Theme" wm_theme
|
|
||||||
info "\n \n Theme" theme
|
|
||||||
info "\n \n Icons" icons
|
|
||||||
info "\n \n Terminal" term
|
|
||||||
info "\n \n Terminal Font" term_font
|
|
||||||
info "\n \n CPU" cpu
|
|
||||||
info "\n \n GPU" gpu
|
|
||||||
info "\n \n Memory" memory
|
|
||||||
info "\n \n Disk" disk
|
|
||||||
info "\n \n Battery" battery
|
|
||||||
info "\n \n Font" font
|
|
||||||
info "\n \n Song" song
|
|
||||||
[[ "$player" ]] && prin "\n \n Music Player" "$player"
|
|
||||||
info "\n \n Local IP" local_ip
|
|
||||||
prin "\n"
|
|
||||||
|
|
||||||
# prin "\n \n ''${cl0}──''${cl1}────''${cl2}────''${cl3}────''${cl4}────''${cl5}────''${cl6}────''${cl7}──"
|
|
||||||
prin "\n \n \n \n \n \n ''${cl0}⬤ \n \n ''${cl1}⬤ \n \n ''${cl2}⬤ \n \n ''${cl3}⬤ \n \n ''${cl4}⬤ \n \n ''${cl5}⬤ \n \n ''${cl6}⬤ \n \n ''${cl7}⬤"
|
|
||||||
}
|
|
||||||
|
|
||||||
reset="\033[0m"
|
|
||||||
gray="\033[1;90m"
|
|
||||||
red="\033[1;31m"
|
|
||||||
green="\033[1;32m"
|
|
||||||
yellow="\033[1;33m"
|
|
||||||
blue="\033[1;34m"
|
|
||||||
magenta="\033[1;35m"
|
|
||||||
cyan="\033[1;36m"
|
|
||||||
white="\033[1;37m"
|
|
||||||
|
|
||||||
cl0="''${gray}"
|
|
||||||
cl1="''${red}"
|
|
||||||
cl2="''${green}"
|
|
||||||
cl3="''${yellow}"
|
|
||||||
cl4="''${blue}"
|
|
||||||
cl5="''${magenta}"
|
|
||||||
cl6="''${cyan}"
|
|
||||||
cl7="''${white}"
|
|
||||||
|
|
||||||
title_fqdn="off"
|
|
||||||
kernel_shorthand="on"
|
|
||||||
distro_shorthand="off"
|
|
||||||
os_arch="off"
|
|
||||||
uptime_shorthand="on"
|
|
||||||
memory_percent="off"
|
|
||||||
memory_unit="mib"
|
|
||||||
package_managers="on"
|
|
||||||
shell_path="off"
|
|
||||||
shell_version="on"
|
|
||||||
speed_type="bios_limit"
|
|
||||||
speed_shorthand="off"
|
|
||||||
cpu_brand="on"
|
|
||||||
cpu_speed="on"
|
|
||||||
cpu_cores="logical"
|
|
||||||
cpu_temp="off"
|
|
||||||
gpu_brand="on"
|
|
||||||
gpu_type="all"
|
|
||||||
refresh_rate="off"
|
|
||||||
gtk_shorthand="off"
|
|
||||||
gtk2="on"
|
|
||||||
gtk3="on"
|
|
||||||
de_version="on"
|
|
||||||
disk_show=('/storage/emulated' '/' '/server')
|
|
||||||
disk_subtitle="none"
|
|
||||||
disk_percent="on"
|
|
||||||
music_player="auto"
|
|
||||||
song_format="%artist% - %album% - %title%"
|
|
||||||
song_shorthand="off"
|
|
||||||
mpc_args=()
|
|
||||||
bold="on"
|
|
||||||
underline_enabled="on"
|
|
||||||
underline_char="-"
|
|
||||||
separator=":"
|
|
||||||
block_range=(0 15)
|
|
||||||
color_blocks="on"
|
|
||||||
block_width=3
|
|
||||||
block_height=1
|
|
||||||
col_offset="auto"
|
|
||||||
bar_char_elapsed="-"
|
|
||||||
bar_char_total="="
|
|
||||||
bar_border="on"
|
|
||||||
bar_length=15
|
|
||||||
bar_color_elapsed="distro"
|
|
||||||
bar_color_total="distro"
|
|
||||||
cpu_display="off"
|
|
||||||
memory_display="off"
|
|
||||||
battery_display="off"
|
|
||||||
disk_display="off"
|
|
||||||
image_backend="ascii"
|
|
||||||
image_source="$HOME/.config/neofetch/ascii.txt"
|
|
||||||
ascii_distro="auto"
|
|
||||||
ascii_colors=(distro)
|
|
||||||
ascii_bold="on"
|
|
||||||
image_loop="off"
|
|
||||||
thumbnail_dir="''${XDG_CACHE_HOME:-''${HOME}/.cache}/thumbnails/neofetch"
|
|
||||||
crop_mode="normal"
|
|
||||||
crop_offset="center"
|
|
||||||
image_size="auto"
|
|
||||||
gap=2
|
|
||||||
yoffset=0
|
|
||||||
xoffset=0
|
|
||||||
background_color=
|
|
||||||
stdout="off"
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,367 +0,0 @@
|
|||||||
# Nerdfetch, a simple system info script written in bash
|
|
||||||
# Source: https://github.com/ThatOneCalculator/NerdFetch
|
|
||||||
{pkgs, ...}: let
|
|
||||||
nerdfetch = pkgs.writeShellScriptBin "nerdfetch" ''
|
|
||||||
ostype="$(uname)"
|
|
||||||
|
|
||||||
version=8.1.1
|
|
||||||
font=nerd
|
|
||||||
distrotype=none
|
|
||||||
osi=""
|
|
||||||
ki=""
|
|
||||||
ri=""
|
|
||||||
pi=""
|
|
||||||
ui=""
|
|
||||||
ci=""
|
|
||||||
|
|
||||||
case $1 in
|
|
||||||
"-p")
|
|
||||||
font=phosphor
|
|
||||||
osi=""
|
|
||||||
ki=""
|
|
||||||
ri=""
|
|
||||||
pi=""
|
|
||||||
ui=""
|
|
||||||
ci=""
|
|
||||||
;;
|
|
||||||
"-c")
|
|
||||||
font=cozette
|
|
||||||
ki="♥"
|
|
||||||
ri=""
|
|
||||||
pi=""
|
|
||||||
ui=""
|
|
||||||
ci=""
|
|
||||||
;;
|
|
||||||
"-e")
|
|
||||||
font=emoji
|
|
||||||
osi="🐧"
|
|
||||||
ki="💓"
|
|
||||||
ri="🐐"
|
|
||||||
pi="📦"
|
|
||||||
ui="☕"
|
|
||||||
ci="🎨"
|
|
||||||
;;
|
|
||||||
"-v")
|
|
||||||
echo "NerdFetch $version"
|
|
||||||
exit
|
|
||||||
;;
|
|
||||||
"-h")
|
|
||||||
echo "Flags:
|
|
||||||
-c: Cozette font
|
|
||||||
-p: Phosphor font
|
|
||||||
-e: Emoji font
|
|
||||||
-v: Version"
|
|
||||||
exit
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if command -v getprop 1>/dev/null; then
|
|
||||||
distrotype=android
|
|
||||||
fi
|
|
||||||
kernel="$(echo $(uname -r) | cut -d'-' -f1-1)"
|
|
||||||
case $ostype in
|
|
||||||
*"Linux"*)
|
|
||||||
if [ $distrotype = android ]; then
|
|
||||||
host="$(hostname)"
|
|
||||||
USER="$(whoami)"
|
|
||||||
os="Android $(getprop ro.build.version.release)"
|
|
||||||
case $font in
|
|
||||||
phosphor) osi="" ;;
|
|
||||||
emoji) osi="🤖" ;;
|
|
||||||
*) osi="" ;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
host="$(cat /proc/sys/kernel/hostname)"
|
|
||||||
. /etc/os-release
|
|
||||||
if [ -f /bedrock/etc/bedrock-release ]; then
|
|
||||||
os="$(brl version)"
|
|
||||||
else
|
|
||||||
os="''${PRETTY_NAME}"
|
|
||||||
if [ $font = nerd ]; then
|
|
||||||
case $(echo $ID | sed 's/ .*//') in
|
|
||||||
debian) osi="" ;;
|
|
||||||
arch) osi="" ;;
|
|
||||||
endeavouros) osi="" ;;
|
|
||||||
fedora) osi="" ;;
|
|
||||||
gentoo) osi="" ;;
|
|
||||||
rhel) osi="" ;;
|
|
||||||
slackware) osi="" ;;
|
|
||||||
void) osi="" ;;
|
|
||||||
alpine) osi="" ;;
|
|
||||||
nixos) osi="" ;;
|
|
||||||
artix) osi="" ;;
|
|
||||||
exherbo) osi="" ;;
|
|
||||||
mageia) osi="" ;;
|
|
||||||
manjaro) osi="" ;;
|
|
||||||
opensuse) osi="" ;;
|
|
||||||
solus) osi="" ;;
|
|
||||||
ubuntu) osi="" ;;
|
|
||||||
mint) osi="" ;;
|
|
||||||
trisquel) osi="" ;;
|
|
||||||
puppy) osi="" ;;
|
|
||||||
coreos) osi="" ;;
|
|
||||||
mx) osi="" ;;
|
|
||||||
vanilla) osi="" ;;
|
|
||||||
pop_os) osi="" ;;
|
|
||||||
raspbian) osi="" ;;
|
|
||||||
deepin) osi="" ;;
|
|
||||||
almalinux) osi="" ;;
|
|
||||||
garuda) osi="" ;;
|
|
||||||
centos) osi="" ;;
|
|
||||||
rocky) osi="" ;;
|
|
||||||
esac
|
|
||||||
elif [ $font = cozette ]; then
|
|
||||||
case $(echo $ID | sed 's/ .*//') in
|
|
||||||
debian) osi="" ;;
|
|
||||||
arch) osi="" ;;
|
|
||||||
fedora) osi="" ;;
|
|
||||||
gentoo) osi="" ;;
|
|
||||||
slackware) osi="" ;;
|
|
||||||
void) osi="" ;;
|
|
||||||
alpine) osi="" ;;
|
|
||||||
nixos) osi="" ;;
|
|
||||||
mageia) osi="" ;;
|
|
||||||
manjaro) osi="" ;;
|
|
||||||
opensuse) osi="" ;;
|
|
||||||
ubuntu) osi="" ;;
|
|
||||||
mint) osi="" ;;
|
|
||||||
coreos) osi="" ;;
|
|
||||||
centos) osi="" ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
shell=$(basename "$SHELL")
|
|
||||||
;;
|
|
||||||
*"Darwin"*)
|
|
||||||
host="$(hostname -f | sed -e 's/^[^.]*\.//')"
|
|
||||||
mac_product="$(/usr/libexec/PlistBuddy -c "Print:ProductName" /System/Library/CoreServices/SystemVersion.plist)"
|
|
||||||
mac_version="$(/usr/libexec/PlistBuddy -c "Print:ProductVersion" /System/Library/CoreServices/SystemVersion.plist)"
|
|
||||||
os="''${mac_product} ''${mac_version}"
|
|
||||||
case $font in
|
|
||||||
nerd) osi="" ;;
|
|
||||||
phosphor) osi="" ;;
|
|
||||||
cozette) osi="" ;;
|
|
||||||
emoji) osi="🍎" ;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
*"FreeBSD"*)
|
|
||||||
host="$(hostname)"
|
|
||||||
distrotype=bsd
|
|
||||||
os="FreeBSD $(freebsd-version | sed 's/-.*//')"
|
|
||||||
case $font in
|
|
||||||
nerd) osi="" ;;
|
|
||||||
phosphor) osi="" ;;
|
|
||||||
cozette) osi="" ;;
|
|
||||||
emoji) osi="😈" ;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
*"OpenBSD"*)
|
|
||||||
host="$(hostname)"
|
|
||||||
distrotype=bsd
|
|
||||||
os="OpenBSD $(uname -r)"
|
|
||||||
case $font in
|
|
||||||
nerd) osi="" ;;
|
|
||||||
phosphor) osi="" ;;
|
|
||||||
cozette) osi="⌘" ;;
|
|
||||||
emoji) osi="🐡" ;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
*"NetBSD"*)
|
|
||||||
host="$(hostname)"
|
|
||||||
distrotype=netbsd
|
|
||||||
os="NetBSD $(uname -r)"
|
|
||||||
case $font in
|
|
||||||
nerd) osi="" ;;
|
|
||||||
phosphor) osi="" ;;
|
|
||||||
cozette) osi="" ;;
|
|
||||||
emoji) osi="🚩" ;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
os="Unix-like"
|
|
||||||
host="host"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
## PACKAGE MANAGER AND PACKAGES DETECTION
|
|
||||||
|
|
||||||
MANAGER=$(which nix-env pkg flatpak yum zypper dnf rpm dpkg-query brew port pacman xbps-query emerge cave apk kiss pmm /usr/sbin/slackpkg bulge birb yay paru pacstall cpm pmm eopkg getprop 2>/dev/null)
|
|
||||||
manager=$(basename "$MANAGER")
|
|
||||||
if [ $distrotype = netbsd ]; then
|
|
||||||
manager="pkg_info-netbsd"
|
|
||||||
fi
|
|
||||||
case $manager in
|
|
||||||
cpm) packages="$(cpm C)" ;;
|
|
||||||
flatpak) packages="$(flatpak list --app | wc -l)" ;;
|
|
||||||
brew) packages="$(printf '%s\n' "$(brew --cellar)/"* | wc -l)" ;;
|
|
||||||
port) packages="$(port installed | wc -l)" ;;
|
|
||||||
dpkg-query) packages="$(dpkg-query -f '${"binary:Package"}\n' -W | wc -l)" ;;
|
|
||||||
rpm) packages="$(rpm -qa --last | wc -l)" ;;
|
|
||||||
yum) packages="$(yum list installed | wc -l)" ;;
|
|
||||||
dnf) packages="$(dnf list installed | wc -l)" ;;
|
|
||||||
zypper) packages="$(zypper se | wc -l)" ;;
|
|
||||||
pacman) packages="$(pacman -Q | wc -l)" ;;
|
|
||||||
yay) packages="$(yay -Q | wc -l)" ;;
|
|
||||||
paru) packages="$(paru -Q | wc -l)" ;;
|
|
||||||
pacstall) packages="$(pacstall -L | wc -l)" ;;
|
|
||||||
kiss) packages="$(kiss list | wc -l)" ;;
|
|
||||||
emerge) packages="$(qlist -I | wc -l)" ;;
|
|
||||||
pkg) packages="$(pkg info | wc -l | tr -d ' ')" ;;
|
|
||||||
cave) packages="$(cave show installed-slots | wc -l)" ;;
|
|
||||||
xbps-query) packages="$(xbps-query -l | wc -l)" ;;
|
|
||||||
nix-env) packages="$(nix-store -q --requisites /run/current-system/sw | wc -l)" ;;
|
|
||||||
apk) packages="$(apk list --installed | wc -l)" ;;
|
|
||||||
pmm) packages="$(/bedrock/libexec/pmm pacman pmm -Q 2>/dev/null | wc -l)" ;;
|
|
||||||
eopkg) packages="$(eopkg li | wc -l)" ;;
|
|
||||||
/usr/sbin/slackpkg) packages="$(ls /var/log/packages | wc -l)" ;;
|
|
||||||
bulge) packages="$(bulge list | wc -l)" ;;
|
|
||||||
birb) packages="$(birb --list-installed | wc -l)" ;;
|
|
||||||
pkg_info)
|
|
||||||
packages="$(pkg_info -A | wc -l)"
|
|
||||||
manager="pkg"
|
|
||||||
;;
|
|
||||||
pkg_info-netbsd)
|
|
||||||
packages="$(pkg_info -a | wc -l)"
|
|
||||||
manager="pkg"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
if [ $distrotype = android ]; then
|
|
||||||
packages="$(dpkg-query -f '${"binary:Package"}\n' -W | wc -l)"
|
|
||||||
manager="dpkg"
|
|
||||||
else
|
|
||||||
packages="$(ls /usr/bin | wc -l)"
|
|
||||||
manager="bin"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
packages="''${packages#"''${packages%%[![:space:]]*}"}"
|
|
||||||
manager=$(echo $manager | sed "s/-query//; s/\/usr\/.*\///")
|
|
||||||
|
|
||||||
## UPTIME DETECTION
|
|
||||||
|
|
||||||
if [ $distrotype = android ]; then
|
|
||||||
uptime="$(echo $(uptime -p) | cut -c 4-)"
|
|
||||||
elif [ $distrotype = bsd ] || [ $distrotype = netbsd ]; then
|
|
||||||
uptime="$(uptime | sed -e 's/.* up //; s/, [0-9]* user.*//')"
|
|
||||||
else
|
|
||||||
case $ostype in
|
|
||||||
*"Linux"*)
|
|
||||||
IFS=. read -r s _ </proc/uptime
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
s=$(sysctl -n kern.boottime)
|
|
||||||
s=''${s#*=}
|
|
||||||
s=''${s%,*}
|
|
||||||
s=$(($(date +%s) - s))
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
d="$((s / 60 / 60 / 24))"
|
|
||||||
h="$((s / 60 / 60 % 24))"
|
|
||||||
m="$((s / 60 % 60))"
|
|
||||||
# Plurals
|
|
||||||
[ "$d" -gt 1 ] && dp=s
|
|
||||||
[ "$h" -gt 1 ] && hp=s
|
|
||||||
[ "$m" -gt 1 ] && mp=s
|
|
||||||
[ "$s" -gt 1 ] && sp=s
|
|
||||||
# Hide empty fields.
|
|
||||||
[ "$d" = 0 ] && d=
|
|
||||||
[ "$h" = 0 ] && h=
|
|
||||||
[ "$m" = 0 ] && m=
|
|
||||||
[ "$m" != "" ] && s=
|
|
||||||
# Make the output of uptime smaller.
|
|
||||||
[ "$d" ] && uptime="$d day$dp, "
|
|
||||||
[ "$h" ] && uptime="$uptime$h hour$hp, "
|
|
||||||
[ "$m" ] && uptime="$uptime$m min$mp"
|
|
||||||
[ "$s" ] && uptime="$uptime$s sec$sp"
|
|
||||||
uptime=''${uptime%, }
|
|
||||||
fi
|
|
||||||
|
|
||||||
## RAM DETECTION
|
|
||||||
|
|
||||||
case $ostype in
|
|
||||||
*"Linux"*)
|
|
||||||
while IFS=':k ' read -r key val _; do
|
|
||||||
case $key in
|
|
||||||
MemTotal)
|
|
||||||
mem_used=$((mem_used + val))
|
|
||||||
mem_full=$val
|
|
||||||
;;
|
|
||||||
Shmem) mem_used=$((mem_used + val)) ;;
|
|
||||||
MemFree | Buffers | Cached | SReclaimable) mem_used=$((mem_used - val)) ;;
|
|
||||||
esac
|
|
||||||
done </proc/meminfo
|
|
||||||
mem_used=$((mem_used / 1024))
|
|
||||||
mem_full=$((mem_full / 1024))
|
|
||||||
;;
|
|
||||||
*"Darwin"*)
|
|
||||||
mem_full=$(($(sysctl -n hw.memsize) / 1024 / 1024))
|
|
||||||
while IFS=:. read -r key val; do
|
|
||||||
case $key in
|
|
||||||
*' wired'* | *' active'* | *' occupied'*)
|
|
||||||
mem_used=$((mem_used + ${"val:-0"}))
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done <-EOF
|
|
||||||
$(vm_stat)
|
|
||||||
EOF
|
|
||||||
|
|
||||||
mem_used=$((mem_used * 4 / 1024))
|
|
||||||
;;
|
|
||||||
*"BSD"*)
|
|
||||||
mem_full=$(($(sysctl -n hw.physmem) / 1024 / 1024))
|
|
||||||
if [ $distrotype = netbsd ]; then
|
|
||||||
mem_free=$(($(vmstat | awk 'NR==3 {print $4}') / 1024))
|
|
||||||
else
|
|
||||||
mem_free=$(($(sysctl -n vm.stats.vm.v_free_count) * $(sysctl -n vm.stats.vm.v_page_size) / 1024 / 1024))
|
|
||||||
fi
|
|
||||||
mem_used=$((mem_full - mem_free))
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
mem_full=1
|
|
||||||
mem_used=0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
memstat="''${mem_used}/''${mem_full} MiB"
|
|
||||||
if which expr >/dev/null 2>&1; then
|
|
||||||
mempercent="($(expr $(expr ''${mem_used} \* 100 / ''${mem_full}))%)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
## DEFINE COLORS
|
|
||||||
|
|
||||||
bold='[1m'
|
|
||||||
black='[30m'
|
|
||||||
red='[31m'
|
|
||||||
green='[32m'
|
|
||||||
yellow='[33m'
|
|
||||||
blue='[34m'
|
|
||||||
magenta='[35m'
|
|
||||||
cyan='[36m'
|
|
||||||
white='[37m'
|
|
||||||
grey='[90m'
|
|
||||||
reset='[0m'
|
|
||||||
|
|
||||||
## USER VARIABLES -- YOU CAN CHANGE THESE
|
|
||||||
|
|
||||||
lc="$reset$bold$magenta" # labels
|
|
||||||
nc="$reset$bold$magenta" # labels
|
|
||||||
hn="$reset$bold$magenta" # labels
|
|
||||||
ic="$reset$white" # info
|
|
||||||
c0="$reset$grey" # first color
|
|
||||||
c1="$reset$white" # second color
|
|
||||||
c2="$reset$yellow" # third color
|
|
||||||
|
|
||||||
## OUTPUT
|
|
||||||
|
|
||||||
echo """
|
|
||||||
''${c0} ___ ''${nc}''${USER}''${grey}@''${reset}''${hn}''${host}''${reset}
|
|
||||||
''${c0} (''${c1}.. ''${c0}\ ''${lc}''${osi} ''${ic}''${os}''${reset}
|
|
||||||
''${c0} (''${c2}<> ''${c0}| ''${lc}''${ki} ''${ic}''${kernel}''${reset}
|
|
||||||
''${c0} /''${c1}/ \\ ''${c0}\\ ''${lc}''${ri} ''${ic}''${RAM}''${memstat} ''${mempercent}
|
|
||||||
''${c0} ( ''${c1}| | ''${c0}/| ''${lc}''${pi} ''${ic}''${packages} (''${manager})''${reset}
|
|
||||||
''${c2} _''${c0}/\\ ''${c1}__)''${c0}/''${c2}_''${c0}) ''${lc}''${ui} ''${ic}''${uptime}''${reset}
|
|
||||||
''${c2} \/''${c0}-____''${c2}\/''${reset} ''${lc}''${ci} ''${red}███''${green}███''${yellow}███''${blue}███''${magenta}███''${cyan}███''${reset}
|
|
||||||
"""
|
|
||||||
'';
|
|
||||||
in {home.packages = [nerdfetch];}
|
|
||||||
@@ -1,19 +1,29 @@
|
|||||||
{
|
{
|
||||||
|
home.sessionVariables = {
|
||||||
|
TERMINAL = "ghostty";
|
||||||
|
TERM = "ghostty";
|
||||||
|
};
|
||||||
|
|
||||||
programs.ghostty = {
|
programs.ghostty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
installVimSyntax = true;
|
installVimSyntax = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
settings = {
|
settings = {
|
||||||
window-padding-x = 10;
|
window-padding-x = 10;
|
||||||
|
confirm-close-surface = false;
|
||||||
window-padding-y = 10;
|
window-padding-y = 10;
|
||||||
|
clipboard-read = "allow";
|
||||||
|
clipboard-write = "allow";
|
||||||
|
copy-on-select = "clipboard";
|
||||||
|
app-notifications = false;
|
||||||
keybind = [
|
keybind = [
|
||||||
"ctrl+j=goto_split:left"
|
"ctrl+j=goto_split:left"
|
||||||
"ctrl+i=goto_split:up"
|
"ctrl+i=goto_split:up"
|
||||||
"ctrl+k=goto_split:down"
|
"ctrl+k=goto_split:down"
|
||||||
"ctrl+l=goto_split:right"
|
"ctrl+l=goto_split:right"
|
||||||
"shift+ctrl+j=new_split:left"
|
"shift+ctrl+h=new_split:left"
|
||||||
"shift+ctrl+i=new_split:up"
|
"shift+ctrl+j=new_split:down"
|
||||||
"shift+ctrl+k=new_split:down"
|
"shift+ctrl+k=new_split:up"
|
||||||
"shift+ctrl+l=new_split:right"
|
"shift+ctrl+l=new_split:right"
|
||||||
"shift+ctrl+tab=new_tab"
|
"shift+ctrl+tab=new_tab"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -44,10 +44,8 @@ in {
|
|||||||
st = "status";
|
st = "status";
|
||||||
br = "branch";
|
br = "branch";
|
||||||
df = "!git hist | peco | awk '{print $2}' | xargs -I {} git diff {}^ {}";
|
df = "!git hist | peco | awk '{print $2}' | xargs -I {} git diff {}^ {}";
|
||||||
hist = ''
|
hist = ''log --pretty=format:"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)" --graph --date=relative --decorate --all'';
|
||||||
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'';
|
||||||
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`";
|
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; hx `f`";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -21,7 +21,10 @@ in {
|
|||||||
};
|
};
|
||||||
gui = {
|
gui = {
|
||||||
theme = {
|
theme = {
|
||||||
activeBorderColor = [accent "bold"];
|
activeBorderColor = [
|
||||||
|
accent
|
||||||
|
"bold"
|
||||||
|
];
|
||||||
inactiveBorderColor = [muted];
|
inactiveBorderColor = [muted];
|
||||||
};
|
};
|
||||||
showListFooter = false;
|
showListFooter = false;
|
||||||
|
|||||||
@@ -3,10 +3,13 @@
|
|||||||
# CHANGEME: change this to your own SSH key.
|
# CHANGEME: change this to your own SSH key.
|
||||||
home.file.".ssh/allowed_signers".text = "* ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIINhWby7lUUXQNKbRu9/UOrGjWDf3fvoAwGHomWv/+lL";
|
home.file.".ssh/allowed_signers".text = "* ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIINhWby7lUUXQNKbRu9/UOrGjWDf3fvoAwGHomWv/+lL";
|
||||||
|
|
||||||
programs.git.settings = {
|
programs.git = {
|
||||||
|
signing.format = "openpgp";
|
||||||
|
settings = {
|
||||||
commit.gpgsign = true;
|
commit.gpgsign = true;
|
||||||
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
|
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
|
||||||
gpg.format = "ssh";
|
gpg.format = "ssh";
|
||||||
user.signingkey = "~/.ssh/key.pub";
|
user.signingkey = "~/.ssh/key.pub";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
pkgs-stable,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs-stable; [
|
||||||
|
vlc # Video player
|
||||||
|
blanket # White-noise app
|
||||||
|
obsidian # Note taking app
|
||||||
|
textpieces # Manipulate texts
|
||||||
|
resources # Ressource monitor
|
||||||
|
gnome-clocks # Clocks app
|
||||||
|
gnome-text-editor # Basic graphic text editor
|
||||||
|
ticktick # Todo app
|
||||||
|
pinta # Image editor
|
||||||
|
onlyoffice-desktopeditors # Office suite
|
||||||
|
|
||||||
|
signal-desktop # Messaging app
|
||||||
|
element-desktop # Messaging app
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,15 +1,77 @@
|
|||||||
{
|
{
|
||||||
|
pkgs-stable,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs-stable; [
|
||||||
wireshark
|
wireshark
|
||||||
nmap
|
nmap
|
||||||
john
|
john
|
||||||
hashcat
|
hashcat
|
||||||
inputs.eleakxir.packages.${stdenv.hostPlatform.system}.leak-utils
|
metasploit
|
||||||
|
haiti
|
||||||
|
hydra
|
||||||
|
dnsrecon
|
||||||
|
whois
|
||||||
|
dig
|
||||||
|
nosqli
|
||||||
|
jwt-cli
|
||||||
|
nuclei
|
||||||
|
|
||||||
|
# Web
|
||||||
caido
|
caido
|
||||||
nuclei
|
nuclei
|
||||||
|
gobuster
|
||||||
|
dirb
|
||||||
|
ffuf
|
||||||
|
sqlmap
|
||||||
|
|
||||||
|
# Utils
|
||||||
|
inetutils
|
||||||
|
samba
|
||||||
|
openvpn
|
||||||
|
mariadb
|
||||||
|
redis
|
||||||
];
|
];
|
||||||
|
|
||||||
|
systemd.user.tmpfiles.rules = [
|
||||||
|
"d %h/Cyber/tmp 0755 - - -"
|
||||||
|
"d %h/Cyber/wordlists 0755 - - -"
|
||||||
|
"d %h/Cyber/wordlists/rules 0755 - - -"
|
||||||
|
];
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
"Cyber/wordlists/seclists" = {
|
||||||
|
source = pkgs.fetchFromGitHub {
|
||||||
|
owner = "danielmiessler";
|
||||||
|
repo = "SecLists";
|
||||||
|
rev = "47aa98053fce8670c6489e4f6fb57dc34881d8bd";
|
||||||
|
hash = "sha256-ojXLB/TXap1Qi0MtV5/WJlJpjNIDYx/sLY2KHm0uFKI=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"Cyber/wordlists/fuzz4bounty" = {
|
||||||
|
source = pkgs.fetchFromGitHub {
|
||||||
|
owner = "0xPugal";
|
||||||
|
repo = "fuzz4bounty";
|
||||||
|
rev = "a805f6b434033f054312da0ddc2bc3021cc9a3b0";
|
||||||
|
hash = "sha256-wMhx1CcxIyw2E7gJXQxXAFc7m5nYt0FXNkoTZqFMQh4=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# RULES
|
||||||
|
"Cyber/wordlists/rules/oneruletorulethemstill".source = pkgs.fetchFromGitHub {
|
||||||
|
owner = "stealthsploit";
|
||||||
|
repo = "oneruletorulethemstill";
|
||||||
|
rev = "4bfb7322e189305b5f35bb7fcd4e9cc233c3d3c6";
|
||||||
|
hash = "sha256-h7MeymIXS/6wlPRt4lzsIEqOOssP0lDx9nQip65cwZw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
"Cyber/wordlists/rules/best64.rule" = {
|
||||||
|
source = pkgs.fetchurl {
|
||||||
|
url = "https://raw.githubusercontent.com/CarlosLannister/OwadeReborn/refs/heads/master/owade/fileAnalyze/hashcatLib/best64.rule%7E";
|
||||||
|
hash = "sha256-T0XkMHJZQiy63/j25nGTkaiDFjc+blmgEVGTAFgVylU=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
pkgs-stable,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages =
|
||||||
|
(with pkgs; [
|
||||||
|
# Unstable: latest toolchain versions preferred for dev
|
||||||
|
go
|
||||||
|
bun
|
||||||
|
nodejs
|
||||||
|
claude-code
|
||||||
|
inputs.bun2nix.packages.${stdenv.hostPlatform.system}.default
|
||||||
|
])
|
||||||
|
++ (with pkgs-stable; [
|
||||||
|
air
|
||||||
|
duckdb
|
||||||
|
docker
|
||||||
|
python3
|
||||||
|
jq
|
||||||
|
just
|
||||||
|
]);
|
||||||
|
}
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
pkgs-stable,
|
||||||
|
system,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
packages.${system} = {
|
||||||
|
dev = pkgs.buildEnv {
|
||||||
|
name = "dev-tools";
|
||||||
|
paths =
|
||||||
|
(with pkgs; [
|
||||||
|
go
|
||||||
|
bun
|
||||||
|
nodejs
|
||||||
|
air
|
||||||
|
duckdb
|
||||||
|
claude-code
|
||||||
|
inputs.bun2nix.packages.${system}.default
|
||||||
|
])
|
||||||
|
++ (with pkgs-stable; [
|
||||||
|
docker
|
||||||
|
python3
|
||||||
|
jq
|
||||||
|
just
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
|
||||||
|
cybersecurity = pkgs.buildEnv {
|
||||||
|
name = "cybersecurity-tools";
|
||||||
|
paths = with pkgs-stable; [
|
||||||
|
wireshark
|
||||||
|
nmap
|
||||||
|
john
|
||||||
|
hashcat
|
||||||
|
metasploit
|
||||||
|
haiti
|
||||||
|
hydra
|
||||||
|
dnsrecon
|
||||||
|
whois
|
||||||
|
dig
|
||||||
|
nosqli
|
||||||
|
jwt-cli
|
||||||
|
nuclei
|
||||||
|
caido
|
||||||
|
gobuster
|
||||||
|
dirb
|
||||||
|
ffuf
|
||||||
|
sqlmap
|
||||||
|
inetutils
|
||||||
|
samba
|
||||||
|
openvpn
|
||||||
|
mariadb
|
||||||
|
redis
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
homeManagerModules = {
|
||||||
|
dev = {
|
||||||
|
_module.args.pkgs-stable = pkgs-stable;
|
||||||
|
imports = [./dev.nix];
|
||||||
|
};
|
||||||
|
cybersecurity = {
|
||||||
|
_module.args.pkgs-stable = pkgs-stable;
|
||||||
|
imports = [./cybersecurity.nix];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{pkgs-stable, ...}: {
|
||||||
|
home.packages = with pkgs-stable; [
|
||||||
|
peaclock
|
||||||
|
cbonsai
|
||||||
|
pipes
|
||||||
|
cmatrix
|
||||||
|
fastfetch
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{inputs, ...}: {
|
||||||
|
imports = [inputs.nix-index-database.homeModules.default];
|
||||||
|
programs.nix-index.enable = true;
|
||||||
|
programs.nix-index-database.comma.enable = true;
|
||||||
|
}
|
||||||
@@ -5,73 +5,27 @@
|
|||||||
#- - `nixy` - UI wizard to manage the system.
|
#- - `nixy` - UI wizard to manage the system.
|
||||||
#- - `nixy rebuild` - Rebuild the system.
|
#- - `nixy rebuild` - Rebuild the system.
|
||||||
#- - `nixy ...` - ... see the script for more commands.
|
#- - `nixy ...` - ... see the script for more commands.
|
||||||
{ pkgs, config, ... }:
|
{
|
||||||
let
|
config,
|
||||||
configDirectory = config.var.configDirectory;
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options.programs.nixy = {
|
||||||
|
enable = lib.mkEnableOption "nixy";
|
||||||
|
configDirectory = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "$HOME/.config/nixos";
|
||||||
|
description = "Path to the NixOS configuration directory";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nixy = pkgs.writeShellScriptBin "nixy"
|
config = lib.mkIf config.programs.nixy.enable {
|
||||||
# bash
|
home.packages = [
|
||||||
''
|
(import ./package.nix {
|
||||||
function exec() {
|
inherit pkgs;
|
||||||
$@
|
inherit (config.programs.nixy) configDirectory;
|
||||||
}
|
})
|
||||||
|
];
|
||||||
function ui(){
|
};
|
||||||
DEFAULT_ICON=""
|
}
|
||||||
|
|
||||||
# "icon;name;command"[]
|
|
||||||
apps=(
|
|
||||||
";Rebuild;nixy rebuild"
|
|
||||||
";Test;nixy test"
|
|
||||||
";Update;nixy update"
|
|
||||||
";Collect Garbage;nixy gc"
|
|
||||||
";Clean Boot Menu;nixy cb"
|
|
||||||
";List generation;nixy listgen"
|
|
||||||
";Hyprland Keybindings;nvim ${configDirectory}/docs/KEYBINDINGS-HYPRLAND.md"
|
|
||||||
";Wallpapers;zen https://github.com/anotherhadi/nixy-wallpapers"
|
|
||||||
)
|
|
||||||
|
|
||||||
# Apply default icons if empty:
|
|
||||||
for i in "''${!apps[@]}"; do
|
|
||||||
apps[i]=$(echo "''${apps[i]}" | sed 's/^;/'$DEFAULT_ICON';/')
|
|
||||||
done
|
|
||||||
|
|
||||||
fzf_result=$(printf "%s\n" "''${apps[@]}" | awk -F ';' '{print $1" "$2}' | fzf)
|
|
||||||
[[ -z $fzf_result ]] && exit 0
|
|
||||||
fzf_result=''${fzf_result/ /;}
|
|
||||||
line=$(printf "%s\n" "''${apps[@]}" | grep "$fzf_result")
|
|
||||||
command=$(echo "$line" | sed 's/^[^;]*;//;s/^[^;]*;//')
|
|
||||||
|
|
||||||
exec "$command"
|
|
||||||
exit $?
|
|
||||||
}
|
|
||||||
|
|
||||||
[[ $1 == "" ]] && ui
|
|
||||||
|
|
||||||
if [[ $1 == "rebuild" ]];then
|
|
||||||
cd ${configDirectory} && git add . && sudo nixos-rebuild switch --flake
|
|
||||||
elif [[ $1 == "test" ]];then
|
|
||||||
cd ${configDirectory} && git add . && sudo nixos-rebuild test --flake
|
|
||||||
elif [[ $1 == "update" ]];then
|
|
||||||
cd ${configDirectory} && nix flake update
|
|
||||||
elif [[ $1 == "gc" ]];then
|
|
||||||
echo "Starting Nix garbage collection..."
|
|
||||||
cd ${configDirectory} && \
|
|
||||||
echo "Cleaning up system garbage..." && \
|
|
||||||
sudo nix-collect-garbage -d && \
|
|
||||||
echo "Cleaning up user garbage..." && \
|
|
||||||
nix-collect-garbage -d && \
|
|
||||||
echo "Collecting garbage from Nix store..." && \
|
|
||||||
nix-store --gc && \
|
|
||||||
echo "Optimizing Nix store..." && \
|
|
||||||
nix-store --optimise
|
|
||||||
echo "Nix garbage collection complete."
|
|
||||||
elif [[ $1 == "cb" ]];then
|
|
||||||
sudo /run/current-system/bin/switch-to-configuration boot
|
|
||||||
elif [[ $1 == "listgen" ]];then
|
|
||||||
sudo nix-env -p /nix/var/nix/profiles/system --list-generations
|
|
||||||
else
|
|
||||||
echo "Unknown argument"
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
in { home.packages = [ nixy ]; }
|
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
system,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
packages.${system}.nixy = import ./package.nix {
|
||||||
|
inherit pkgs;
|
||||||
|
configDirectory = "$HOME/.config/nixos";
|
||||||
|
};
|
||||||
|
|
||||||
|
homeManagerModules.nixy = {
|
||||||
|
imports = [./default.nix];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
configDirectory,
|
||||||
|
}:
|
||||||
|
pkgs.writeShellScriptBin "nixy"
|
||||||
|
# bash
|
||||||
|
''
|
||||||
|
EXTRA_ARGS="''${@:2}"
|
||||||
|
|
||||||
|
function exec() {
|
||||||
|
$@
|
||||||
|
}
|
||||||
|
|
||||||
|
function ui(){
|
||||||
|
DEFAULT_ICON=""
|
||||||
|
|
||||||
|
# "icon;name;command"[]
|
||||||
|
apps=(
|
||||||
|
";Rebuild;nixy rebuild"
|
||||||
|
";Test;nixy test"
|
||||||
|
";Update;nixy update"
|
||||||
|
";Collect Garbage;nixy gc"
|
||||||
|
";Clean Boot Menu;nixy cb"
|
||||||
|
";List generation;nixy listgen"
|
||||||
|
)
|
||||||
|
|
||||||
|
# Apply default icons if empty:
|
||||||
|
for i in "''${!apps[@]}"; do
|
||||||
|
apps[i]=$(echo "''${apps[i]}" | sed 's/^;/'$DEFAULT_ICON';/')
|
||||||
|
done
|
||||||
|
|
||||||
|
fzf_result=$(printf "%s\n" "''${apps[@]}" | awk -F ';' '{print $1" "$2}' | fzf)
|
||||||
|
[[ -z $fzf_result ]] && exit 0
|
||||||
|
fzf_result=''${fzf_result/ /;}
|
||||||
|
line=$(printf "%s\n" "''${apps[@]}" | grep "$fzf_result")
|
||||||
|
command=$(echo "$line" | sed 's/^[^;]*;//;s/^[^;]*;//')
|
||||||
|
|
||||||
|
exec "$command"
|
||||||
|
exit $?
|
||||||
|
}
|
||||||
|
|
||||||
|
[[ $1 == "" ]] && ui
|
||||||
|
|
||||||
|
if [[ $1 == "rebuild" ]];then
|
||||||
|
cd ${configDirectory} && git add . && sudo nixos-rebuild switch --flake . $EXTRA_ARGS
|
||||||
|
elif [[ $1 == "test" ]];then
|
||||||
|
cd ${configDirectory} && git add . && sudo nixos-rebuild test --flake . $EXTRA_ARGS
|
||||||
|
elif [[ $1 == "update" ]];then
|
||||||
|
cd ${configDirectory} && nix flake update $EXTRA_ARGS
|
||||||
|
elif [[ $1 == "gc" ]];then
|
||||||
|
echo "Starting Nix garbage collection..."
|
||||||
|
cd ${configDirectory} && \
|
||||||
|
echo "Cleaning up system garbage..." && \
|
||||||
|
sudo nix-collect-garbage -d && \
|
||||||
|
echo "Cleaning up user garbage..." && \
|
||||||
|
nix-collect-garbage -d && \
|
||||||
|
echo "Collecting garbage from Nix store..." && \
|
||||||
|
nix-store --gc && \
|
||||||
|
echo "Optimizing Nix store..." && \
|
||||||
|
nix-store --optimise
|
||||||
|
echo "Nix garbage collection complete."
|
||||||
|
elif [[ $1 == "cb" ]];then
|
||||||
|
sudo /run/current-system/bin/switch-to-configuration boot
|
||||||
|
elif [[ $1 == "listgen" ]];then
|
||||||
|
sudo nix-env -p /nix/var/nix/profiles/system --list-generations
|
||||||
|
else
|
||||||
|
echo "Unknown argument"
|
||||||
|
fi
|
||||||
|
''
|
||||||
@@ -1,11 +1,22 @@
|
|||||||
# NVF is a Neovim configuration that provides a minimal setup with essential plugins and configurations.
|
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
imports = [inputs.nvf.homeManagerModules.default];
|
||||||
|
# Packages needed by snacks image preview
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
imagemagick
|
||||||
|
tree-sitter
|
||||||
|
ghostscript
|
||||||
|
tectonic
|
||||||
|
mermaid-cli
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.nvf = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nvf.homeManagerModules.default
|
|
||||||
./options.nix
|
./options.nix
|
||||||
./languages.nix
|
./languages.nix
|
||||||
./picker.nix
|
./picker.nix
|
||||||
@@ -14,13 +25,6 @@
|
|||||||
./utils.nix
|
./utils.nix
|
||||||
./mini.nix
|
./mini.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.nvf = {
|
|
||||||
enable = true;
|
|
||||||
settings.vim = {
|
|
||||||
startPlugins = [
|
|
||||||
pkgs.vimPlugins.vim-kitty-navigator
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
system,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
nvimConfig = inputs.nvf.lib.neovimConfiguration {
|
||||||
|
inherit pkgs;
|
||||||
|
modules = [
|
||||||
|
./options.nix
|
||||||
|
./languages.nix
|
||||||
|
./picker.nix
|
||||||
|
./snacks.nix
|
||||||
|
./keymaps.nix
|
||||||
|
./utils.nix
|
||||||
|
./mini.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
packages.${system}.nvim = nvimConfig.neovim;
|
||||||
|
|
||||||
|
apps.${system}.nvim = {
|
||||||
|
type = "app";
|
||||||
|
program = "${nvimConfig.neovim}/bin/nvim";
|
||||||
|
};
|
||||||
|
defaultApp.${system} = {
|
||||||
|
type = "app";
|
||||||
|
program = "${nvimConfig.neovim}/bin/nvim";
|
||||||
|
};
|
||||||
|
|
||||||
|
homeManagerModules.nvim = {
|
||||||
|
imports = [
|
||||||
|
inputs.nvf.homeManagerModules.default
|
||||||
|
./default.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
+113
-29
@@ -1,10 +1,9 @@
|
|||||||
{
|
{
|
||||||
programs.nvf.settings.vim = {
|
vim = {
|
||||||
globals.mapleader = " ";
|
globals.mapleader = " ";
|
||||||
binds = {
|
binds = {
|
||||||
whichKey = {
|
whichKey = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# TODO: registers
|
|
||||||
register = {};
|
register = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -32,33 +31,7 @@
|
|||||||
desc = "Next Buffer";
|
desc = "Next Buffer";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Kitty navigator
|
# Disable Arrow Keys in Normal Mode and Middle click
|
||||||
{
|
|
||||||
key = "<C-h>";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>KittyNavigateLeft<cr>";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<C-j>";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>KittyNavigateDown<cr>";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<C-k>";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>KittyNavigateUp<cr>";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<C-l>";
|
|
||||||
mode = "n";
|
|
||||||
silent = true;
|
|
||||||
action = "<cmd>KittyNavigateRight<cr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Disable Arrow Keys in Normal Mode
|
|
||||||
{
|
{
|
||||||
key = "<Up>";
|
key = "<Up>";
|
||||||
mode = "n";
|
mode = "n";
|
||||||
@@ -87,6 +60,36 @@
|
|||||||
action = "<Nop>";
|
action = "<Nop>";
|
||||||
desc = "Disable Right Arrow";
|
desc = "Disable Right Arrow";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
key = "<MiddleMouse>";
|
||||||
|
mode = [
|
||||||
|
"n"
|
||||||
|
"i"
|
||||||
|
"v"
|
||||||
|
];
|
||||||
|
action = "<nop>";
|
||||||
|
silent = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<2-MiddleMouse>";
|
||||||
|
mode = [
|
||||||
|
"n"
|
||||||
|
"i"
|
||||||
|
"v"
|
||||||
|
];
|
||||||
|
action = "<nop>";
|
||||||
|
silent = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<3-MiddleMouse>";
|
||||||
|
mode = [
|
||||||
|
"n"
|
||||||
|
"i"
|
||||||
|
"v"
|
||||||
|
];
|
||||||
|
action = "<nop>";
|
||||||
|
silent = true;
|
||||||
|
}
|
||||||
|
|
||||||
# UI
|
# UI
|
||||||
{
|
{
|
||||||
@@ -168,6 +171,87 @@
|
|||||||
action = "<cmd>close<cr>";
|
action = "<cmd>close<cr>";
|
||||||
desc = "Close";
|
desc = "Close";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# QOL
|
||||||
|
{
|
||||||
|
key = ">";
|
||||||
|
mode = "v";
|
||||||
|
silent = true;
|
||||||
|
action = ">gv";
|
||||||
|
desc = "Indent and keep selection";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<";
|
||||||
|
mode = "v";
|
||||||
|
silent = true;
|
||||||
|
action = "<gv";
|
||||||
|
desc = "Dedent and keep selection";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Move
|
||||||
|
{
|
||||||
|
key = "<C-h>";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<C-w>h";
|
||||||
|
desc = "Move to left window";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<C-j>";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<C-w>j";
|
||||||
|
desc = "Move to bottom window";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<C-k>";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<C-w>k";
|
||||||
|
desc = "Move to top window";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<C-l>";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<C-w>l";
|
||||||
|
desc = "Move to right window";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Format
|
||||||
|
{
|
||||||
|
key = "<leader>lf";
|
||||||
|
mode = "n";
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>lua require('conform').format({ async = true, lsp_format = 'fallback' })<cr>";
|
||||||
|
desc = "Format file";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Save
|
||||||
|
{
|
||||||
|
key = "<C-s>";
|
||||||
|
mode = [
|
||||||
|
"n"
|
||||||
|
"i"
|
||||||
|
"v"
|
||||||
|
];
|
||||||
|
silent = true;
|
||||||
|
action = "<cmd>w<cr>";
|
||||||
|
desc = "Save file";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Deactivate "esc"
|
||||||
|
{
|
||||||
|
key = "<Esc>";
|
||||||
|
mode = [
|
||||||
|
"n"
|
||||||
|
"i"
|
||||||
|
"v"
|
||||||
|
];
|
||||||
|
silent = true;
|
||||||
|
action = "<Nop>";
|
||||||
|
desc = "Disable Escape";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
programs.nvf.settings.vim = {
|
vim = {
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
@@ -26,7 +26,6 @@
|
|||||||
''
|
''
|
||||||
function(diagnostic)
|
function(diagnostic)
|
||||||
return string.format("%s", diagnostic.message)
|
return string.format("%s", diagnostic.message)
|
||||||
--return string.format("%s (%s)", diagnostic.message, diagnostic.source)
|
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@@ -35,22 +34,27 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
syntaxHighlighting = true;
|
|
||||||
treesitter = {
|
treesitter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autotagHtml = true;
|
autotagHtml = true;
|
||||||
context.enable = true;
|
context.enable = true;
|
||||||
highlight.enable = true;
|
highlight.enable = true;
|
||||||
grammars = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
|
grammars = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
|
||||||
typescript # in language settings only tsx gets enabled, not typescript
|
typescript
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
lsp = {
|
lsp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
presets = {
|
||||||
|
tailwindcss-language-server = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
trouble.enable = true;
|
trouble.enable = true;
|
||||||
lspSignature.enable = true;
|
lspSignature.enable = true;
|
||||||
lspconfig.enable = true;
|
lspconfig.enable = true;
|
||||||
formatOnSave = true;
|
formatOnSave = true;
|
||||||
|
mappings.format = null;
|
||||||
inlayHints.enable = true;
|
inlayHints.enable = true;
|
||||||
null-ls.enable = true;
|
null-ls.enable = true;
|
||||||
servers.nixd.settings.nil.nix.autoArchive = true;
|
servers.nixd.settings.nil.nix.autoArchive = true;
|
||||||
@@ -87,6 +91,13 @@
|
|||||||
enableFormat = true;
|
enableFormat = true;
|
||||||
enableTreesitter = true;
|
enableTreesitter = true;
|
||||||
|
|
||||||
|
python = {
|
||||||
|
enable = true;
|
||||||
|
lsp = {
|
||||||
|
enable = true;
|
||||||
|
servers = ["pyright"];
|
||||||
|
};
|
||||||
|
};
|
||||||
astro.enable = true;
|
astro.enable = true;
|
||||||
go.enable = true;
|
go.enable = true;
|
||||||
markdown = {
|
markdown = {
|
||||||
@@ -99,20 +110,23 @@
|
|||||||
};
|
};
|
||||||
extraDiagnostics.enable = true;
|
extraDiagnostics.enable = true;
|
||||||
};
|
};
|
||||||
ts = {
|
typescript = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions.ts-error-translator.enable = true;
|
extensions.ts-error-translator.enable = true;
|
||||||
};
|
};
|
||||||
css.enable = true;
|
css.enable = true;
|
||||||
svelte.enable = true;
|
svelte = {
|
||||||
|
enable = true;
|
||||||
|
format.enable = false;
|
||||||
|
};
|
||||||
html.enable = true;
|
html.enable = true;
|
||||||
bash.enable = true;
|
bash.enable = true;
|
||||||
nix.enable = true;
|
nix.enable = true;
|
||||||
tailwind.enable = true;
|
|
||||||
};
|
};
|
||||||
formatter = {
|
formatter = {
|
||||||
conform-nvim = {
|
conform-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
setupOpts.format_after_save = null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
programs.nvf.settings.vim.mini = {
|
vim.mini = {
|
||||||
starter.enable = true;
|
starter.enable = true;
|
||||||
comment.enable = true;
|
comment.enable = true;
|
||||||
# cursorword.enable = true;
|
|
||||||
icons.enable = true;
|
icons.enable = true;
|
||||||
indentscope.enable = true;
|
indentscope.enable = true;
|
||||||
notify.enable = true;
|
notify.enable = true;
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{lib, ...}: {
|
{lib, ...}: {
|
||||||
programs.nvf.settings.vim = {
|
vim = {
|
||||||
viAlias = false;
|
viAlias = false;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
withNodeJs = true;
|
withNodeJs = true;
|
||||||
# syntaxHighlighting = true;
|
|
||||||
options = {
|
options = {
|
||||||
autoindent = true;
|
autoindent = true;
|
||||||
smartindent = true;
|
smartindent = true;
|
||||||
@@ -19,8 +18,8 @@
|
|||||||
wrap = false;
|
wrap = false;
|
||||||
};
|
};
|
||||||
globals = {
|
globals = {
|
||||||
navic_silence = true; # navic tries to attach multiple LSPs and fails
|
navic_silence = true;
|
||||||
suda_smart_edit = 1; # use super user write automatically
|
suda_smart_edit = 1;
|
||||||
neovide_scale_factor = 0.7;
|
neovide_scale_factor = 0.7;
|
||||||
neovide_cursor_animation_length = 0.1;
|
neovide_cursor_animation_length = 0.1;
|
||||||
neovide_cursor_short_animation_length = 0;
|
neovide_cursor_short_animation_length = 0;
|
||||||
@@ -30,6 +29,19 @@
|
|||||||
registers = "unnamedplus";
|
registers = "unnamedplus";
|
||||||
providers.wl-copy.enable = true;
|
providers.wl-copy.enable = true;
|
||||||
};
|
};
|
||||||
|
luaConfigRC.osc52-clipboard = ''
|
||||||
|
vim.g.clipboard = {
|
||||||
|
name = 'OSC 52',
|
||||||
|
copy = {
|
||||||
|
['+'] = require('vim.ui.clipboard.osc52').copy '+',
|
||||||
|
['*'] = require('vim.ui.clipboard.osc52').copy '*',
|
||||||
|
},
|
||||||
|
paste = {
|
||||||
|
['+'] = require('vim.ui.clipboard.osc52').paste '+',
|
||||||
|
['*'] = require('vim.ui.clipboard.osc52').paste '*',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
'';
|
||||||
theme = {
|
theme = {
|
||||||
enable = true;
|
enable = true;
|
||||||
name = lib.mkForce "catppuccin";
|
name = lib.mkForce "catppuccin";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
programs.nvf.settings.vim = {
|
vim = {
|
||||||
utility = {
|
utility = {
|
||||||
oil-nvim.enable = true;
|
oil-nvim.enable = true;
|
||||||
snacks-nvim = {
|
snacks-nvim = {
|
||||||
@@ -66,8 +66,7 @@
|
|||||||
key = "<leader>fc";
|
key = "<leader>fc";
|
||||||
mode = "n";
|
mode = "n";
|
||||||
silent = true;
|
silent = true;
|
||||||
action = ''
|
action = ''<cmd>lua Snacks.picker.files({ cwd = vim.fn.stdpath("config") })<cr>'';
|
||||||
<cmd>lua Snacks.picker.files({ cwd = vim.fn.stdpath("config") })<cr>'';
|
|
||||||
desc = "Find Config File";
|
desc = "Find Config File";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
programs.nvf.settings.vim.utility.snacks-nvim = {
|
vim.utility.snacks-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
setupOpts = {
|
setupOpts = {
|
||||||
image = {
|
image = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
programs.nvf.settings.vim = {
|
vim = {
|
||||||
undoFile.enable = true;
|
undoFile.enable = true;
|
||||||
utility = {
|
utility = {
|
||||||
motion.flash-nvim.enable = true;
|
motion.flash-nvim.enable = true;
|
||||||
@@ -18,7 +18,6 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
sources = {
|
sources = {
|
||||||
buffer = "[Buffer]";
|
buffer = "[Buffer]";
|
||||||
nvim-cmp = null;
|
|
||||||
path = "[Path]";
|
path = "[Path]";
|
||||||
};
|
};
|
||||||
sourcePlugins = [
|
sourcePlugins = [
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
wayland.windowManager.hyprland.settings.exec-once = [
|
||||||
|
"protonvpn-app --start-minimized &"
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
protonvpn-gui
|
proton-vpn
|
||||||
proton-pass
|
proton-pass
|
||||||
proton-authenticator
|
proton-authenticator
|
||||||
];
|
];
|
||||||
@@ -15,5 +15,21 @@
|
|||||||
categories = ["Utility"];
|
categories = ["Utility"];
|
||||||
terminal = false;
|
terminal = false;
|
||||||
};
|
};
|
||||||
|
"Proton Calendar" = {
|
||||||
|
name = "Proton Calendar";
|
||||||
|
exec = "${pkgs.qutebrowser}/bin/qutebrowser \"https://calendar.proton.me\"";
|
||||||
|
icon = "proton-calendar";
|
||||||
|
type = "Application";
|
||||||
|
categories = ["Utility"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
"Proton Mail" = {
|
||||||
|
name = "Proton Mail";
|
||||||
|
exec = "${pkgs.qutebrowser}/bin/qutebrowser \"https://mail.proton.me/\"";
|
||||||
|
icon = "proton-mail";
|
||||||
|
type = "Application";
|
||||||
|
categories = ["Utility"];
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,484 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
bookmarkList =
|
||||||
|
(import ./general.nix)
|
||||||
|
++ (import ./tools.nix)
|
||||||
|
++ (import ./social.nix)
|
||||||
|
++ (import ./infosec.nix)
|
||||||
|
++ (import ./other.nix)
|
||||||
|
++ (import ./jack.nix);
|
||||||
|
|
||||||
|
c = config.lib.stylix.colors;
|
||||||
|
|
||||||
|
stripProtocol = url: lib.removePrefix "https://" (lib.removePrefix "http://" url);
|
||||||
|
|
||||||
|
stripDomain = url: builtins.head (lib.splitString "/" (stripProtocol url));
|
||||||
|
|
||||||
|
mkCard = item: let
|
||||||
|
domain = stripDomain item.url;
|
||||||
|
initial = builtins.substring 0 1 item.name;
|
||||||
|
in ''
|
||||||
|
<a href="${item.url}" class="card">
|
||||||
|
<div class="favicon-wrapper">
|
||||||
|
<img class="favicon" src="https://icons.duckduckgo.com/ip3/${domain}.ico" alt="" aria-hidden="true" loading="lazy" onerror="this.style.display='none';this.nextElementSibling.style.display='flex'">
|
||||||
|
<span class="favicon-fallback" style="display:none">${initial}</span>
|
||||||
|
</div>
|
||||||
|
<div class="card-info">
|
||||||
|
<span class="card-name">${item.name}</span>
|
||||||
|
<span class="card-url">${stripProtocol item.url}</span>
|
||||||
|
</div>
|
||||||
|
</a>'';
|
||||||
|
|
||||||
|
mkFolderContent = items: let
|
||||||
|
step = acc: item:
|
||||||
|
if item ? url
|
||||||
|
then acc // {pending = acc.pending ++ [item];}
|
||||||
|
else {
|
||||||
|
chunks =
|
||||||
|
acc.chunks
|
||||||
|
++ lib.optional (acc.pending != []) {
|
||||||
|
isCards = true;
|
||||||
|
items = acc.pending;
|
||||||
|
}
|
||||||
|
++ [
|
||||||
|
{
|
||||||
|
isCards = false;
|
||||||
|
folder = item;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
pending = [];
|
||||||
|
};
|
||||||
|
result =
|
||||||
|
lib.foldl' step {
|
||||||
|
chunks = [];
|
||||||
|
pending = [];
|
||||||
|
}
|
||||||
|
items;
|
||||||
|
chunks =
|
||||||
|
result.chunks
|
||||||
|
++ lib.optional (result.pending != []) {
|
||||||
|
isCards = true;
|
||||||
|
items = result.pending;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
lib.concatMapStrings (
|
||||||
|
chunk:
|
||||||
|
if chunk.isCards
|
||||||
|
then ''
|
||||||
|
<div class="cards">
|
||||||
|
${lib.concatMapStrings mkCard chunk.items}
|
||||||
|
</div>''
|
||||||
|
else mkFolder chunk.folder
|
||||||
|
)
|
||||||
|
chunks;
|
||||||
|
|
||||||
|
mkFolder = folder: let
|
||||||
|
iconHtml =
|
||||||
|
if folder ? icon
|
||||||
|
then ''<span class="material-symbols-outlined folder-icon" aria-hidden="true">${folder.icon}</span>''
|
||||||
|
else "";
|
||||||
|
in ''
|
||||||
|
<details class="folder-section" open>
|
||||||
|
<summary class="folder-title">
|
||||||
|
${iconHtml}<span class="folder-name">${folder.name}</span>
|
||||||
|
<svg class="chevron" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
||||||
|
</summary>
|
||||||
|
<div class="folder-content">
|
||||||
|
${mkFolderContent folder.bookmarks}
|
||||||
|
</div>
|
||||||
|
</details>'';
|
||||||
|
|
||||||
|
grouped = let
|
||||||
|
step = acc: item:
|
||||||
|
if item ? url
|
||||||
|
then acc // {pending = acc.pending ++ [item];}
|
||||||
|
else {
|
||||||
|
groups =
|
||||||
|
acc.groups
|
||||||
|
++ lib.optional (acc.pending != []) {
|
||||||
|
isRoot = true;
|
||||||
|
items = acc.pending;
|
||||||
|
}
|
||||||
|
++ [
|
||||||
|
{
|
||||||
|
isRoot = false;
|
||||||
|
inherit item;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
pending = [];
|
||||||
|
};
|
||||||
|
result =
|
||||||
|
lib.foldl' step {
|
||||||
|
groups = [];
|
||||||
|
pending = [];
|
||||||
|
}
|
||||||
|
bookmarkList;
|
||||||
|
in
|
||||||
|
result.groups
|
||||||
|
++ lib.optional (result.pending != []) {
|
||||||
|
isRoot = true;
|
||||||
|
items = result.pending;
|
||||||
|
};
|
||||||
|
|
||||||
|
mkSection = group:
|
||||||
|
if group.isRoot
|
||||||
|
then ''
|
||||||
|
<div class="root-section">
|
||||||
|
<div class="cards">
|
||||||
|
${lib.concatMapStrings mkCard group.items}
|
||||||
|
</div>
|
||||||
|
</div>''
|
||||||
|
else mkFolder group.item;
|
||||||
|
|
||||||
|
collectBookmarks = prefix: items:
|
||||||
|
lib.concatMapStrings (
|
||||||
|
item:
|
||||||
|
if item ? url
|
||||||
|
then "${item.url} ${prefix}${item.name}\n"
|
||||||
|
else collectBookmarks "${prefix}${item.name}/" item.bookmarks
|
||||||
|
)
|
||||||
|
items;
|
||||||
|
|
||||||
|
publicBookmarks = pkgs.writeText "qutebrowser-public-bookmarks" (collectBookmarks "" bookmarkList);
|
||||||
|
in {
|
||||||
|
config = {
|
||||||
|
xdg.dataFile."qutebrowser/bookmarks.html".text = ''
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Bookmarks</title>
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20,300,0,0">
|
||||||
|
<style>
|
||||||
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #${c.base00};
|
||||||
|
color: #${c.base05};
|
||||||
|
font-family: 'Source Sans Pro', sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
|
min-height: 100vh;
|
||||||
|
padding: 2.5rem 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
max-width: 1100px;
|
||||||
|
margin: 0 auto 2rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-title {
|
||||||
|
font-size: 1.3rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #${c.base0D};
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar {
|
||||||
|
flex: 1;
|
||||||
|
background-color: #${c.base01};
|
||||||
|
border: 1px solid #${c.base02};
|
||||||
|
border-radius: 8px;
|
||||||
|
color: #${c.base05};
|
||||||
|
font-family: 'Source Sans Pro', sans-serif;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
padding: 0.5rem 0.9rem;
|
||||||
|
outline: none;
|
||||||
|
transition: border-color 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-bar::placeholder { color: #${c.base03}; }
|
||||||
|
.search-bar:focus { border-color: #${c.base0D}; }
|
||||||
|
|
||||||
|
.collapse-btn {
|
||||||
|
flex-shrink: 0;
|
||||||
|
background: none;
|
||||||
|
border: 1px solid #${c.base02};
|
||||||
|
border-radius: 8px;
|
||||||
|
color: #${c.base03};
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0.47rem;
|
||||||
|
transition: color 0.15s ease, border-color 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.collapse-btn:hover {
|
||||||
|
color: #${c.base0D};
|
||||||
|
border-color: #${c.base0D};
|
||||||
|
}
|
||||||
|
|
||||||
|
.collapse-btn svg {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bookmarks-container {
|
||||||
|
max-width: 1100px;
|
||||||
|
margin: 0 auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.root-section {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
details.folder-section {
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
details.folder-section > summary {
|
||||||
|
list-style: none;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
padding: 0.45rem 0.5rem;
|
||||||
|
border-radius: 8px;
|
||||||
|
user-select: none;
|
||||||
|
transition: background-color 0.12s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
details.folder-section > summary::-webkit-details-marker { display: none; }
|
||||||
|
|
||||||
|
details.folder-section > summary:hover {
|
||||||
|
background-color: #${c.base01};
|
||||||
|
color: #${c.base0D};
|
||||||
|
}
|
||||||
|
|
||||||
|
details.folder-section > summary:hover .folder-name {
|
||||||
|
color: #${c.base0D};
|
||||||
|
}
|
||||||
|
|
||||||
|
details.folder-section > summary:hover .folder-icon {
|
||||||
|
color: #${c.base0D};
|
||||||
|
}
|
||||||
|
|
||||||
|
.folder-icon {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1;
|
||||||
|
flex-shrink: 0;
|
||||||
|
color: #${c.base04};
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folder-name {
|
||||||
|
font-size: 0.72rem;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: #${c.base03};
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chevron {
|
||||||
|
width: 13px;
|
||||||
|
height: 13px;
|
||||||
|
color: #${c.base03};
|
||||||
|
transition: transform 0.2s ease;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] > summary > .chevron {
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.folder-content {
|
||||||
|
padding: 0.4rem 0 0.5rem 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folder-content > details.folder-section > summary {
|
||||||
|
padding-left: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folder-content > details.folder-section > .folder-content {
|
||||||
|
padding-left: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||||
|
gap: 0.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.7rem;
|
||||||
|
padding: 0.6rem 0.8rem;
|
||||||
|
background-color: #${c.base01};
|
||||||
|
border: 1px solid #${c.base02};
|
||||||
|
border-radius: 10px;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: background-color 0.12s ease, border-color 0.12s ease;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card:hover {
|
||||||
|
background-color: #${c.base02};
|
||||||
|
border-color: #${c.base0D};
|
||||||
|
}
|
||||||
|
|
||||||
|
.favicon-wrapper { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
|
||||||
|
|
||||||
|
.favicon {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.favicon-fallback {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background-color: #${c.base02};
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #${c.base04};
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.05rem;
|
||||||
|
overflow: hidden;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-name {
|
||||||
|
color: #${c.base05};
|
||||||
|
font-size: 0.86rem;
|
||||||
|
font-weight: 500;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
transition: color 0.12s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card:hover .card-name { color: #${c.base0D}; }
|
||||||
|
|
||||||
|
.card-url {
|
||||||
|
color: #${c.base03};
|
||||||
|
font-family: 'Maple Mono NF', monospace;
|
||||||
|
font-size: 0.7rem;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-results {
|
||||||
|
color: #${c.base03};
|
||||||
|
font-size: 0.9rem;
|
||||||
|
padding: 0.5rem 0.2rem;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="header">
|
||||||
|
<h1 class="page-title">Bookmarks</h1>
|
||||||
|
<input id="search" class="search-bar" type="text" placeholder="Search…" autocomplete="off" spellcheck="false">
|
||||||
|
<button id="collapse-btn" class="collapse-btn" title="Collapse all folders" aria-label="Collapse all folders">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="10" y1="14" x2="3" y2="21"/><line x1="21" y1="3" x2="14" y2="10"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="bookmarks-container">
|
||||||
|
<p id="no-results" class="no-results">No results</p>
|
||||||
|
${lib.concatMapStrings mkSection grouped}
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
window.addEventListener('DOMContentLoaded', function () {
|
||||||
|
const input = document.getElementById('search');
|
||||||
|
const noResults = document.getElementById('no-results');
|
||||||
|
const collapseBtn = document.getElementById('collapse-btn');
|
||||||
|
|
||||||
|
input.focus();
|
||||||
|
|
||||||
|
collapseBtn.addEventListener('click', function () {
|
||||||
|
document.querySelectorAll('details.folder-section').forEach(function (d) {
|
||||||
|
d.open = false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
input.addEventListener('input', function () {
|
||||||
|
const query = this.value.toLowerCase().trim();
|
||||||
|
let anyVisible = false;
|
||||||
|
|
||||||
|
if (query) {
|
||||||
|
document.querySelectorAll('details.folder-section').forEach(function (d) {
|
||||||
|
d.open = true;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
document.querySelectorAll('.folder-section, .root-section').forEach(function (section) {
|
||||||
|
let sectionVisible = false;
|
||||||
|
section.querySelectorAll('.card').forEach(function (card) {
|
||||||
|
const name = card.querySelector('.card-name').textContent.toLowerCase();
|
||||||
|
const url = card.querySelector('.card-url').textContent.toLowerCase();
|
||||||
|
const match = !query || name.includes(query) || url.includes(query);
|
||||||
|
card.style.display = match ? ''' : 'none';
|
||||||
|
if (match) { sectionVisible = true; anyVisible = true; }
|
||||||
|
});
|
||||||
|
section.style.display = sectionVisible ? ''' : 'none';
|
||||||
|
});
|
||||||
|
|
||||||
|
noResults.style.display = anyVisible || !query ? 'none' : 'block';
|
||||||
|
});
|
||||||
|
|
||||||
|
input.addEventListener('keydown', function (e) {
|
||||||
|
if (e.key === 'Enter') {
|
||||||
|
const val = this.value.trim();
|
||||||
|
const isUrl = /^https?:\/\//i.test(val) || /^[a-zA-Z0-9-]+(\.[a-zA-Z]{2,})(\/.*)?$/.test(val);
|
||||||
|
if (isUrl) {
|
||||||
|
location.href = /^https?:\/\//i.test(val) ? val : 'https://' + val;
|
||||||
|
} else {
|
||||||
|
const first = document.querySelector('.card:not([style*="none"])');
|
||||||
|
if (first) {
|
||||||
|
location.href = first.href;
|
||||||
|
} else {
|
||||||
|
const q = encodeURIComponent(val);
|
||||||
|
if (q) location.href = 'https://www.startpage.com/sp/search?q=' + q;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (e.key === 'Escape') {
|
||||||
|
this.value = ''';
|
||||||
|
this.dispatchEvent(new Event('input'));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
'';
|
||||||
|
|
||||||
|
home.activation.qutebrowserBookmarks = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||||
|
mkdir -p ${config.home.homeDirectory}/.config/qutebrowser/bookmarks
|
||||||
|
cat ${publicBookmarks} > ${config.home.homeDirectory}/.config/qutebrowser/bookmarks/urls
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
name = "Proton Mail";
|
||||||
|
url = "https://mail.proton.me";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Proton Drive";
|
||||||
|
url = "https://drive.proton.me";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Proton Lumo";
|
||||||
|
url = "https://lumo.proton.me";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Proton Calendar";
|
||||||
|
url = "https://calendar.proton.me";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Github";
|
||||||
|
url = "https://github.com";
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
name = "Infosec";
|
||||||
|
icon = "terminal";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Nix 4 Cyber";
|
||||||
|
url = "https://n4c.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Cyberchef";
|
||||||
|
url = "https://cyberchef.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "TryHackMe";
|
||||||
|
url = "https://tryhackme.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Root-Me";
|
||||||
|
url = "https://root-me.org";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Hack The Box";
|
||||||
|
url = "https://hackthebox.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Iknowyou";
|
||||||
|
url = "https://iknowyou-prod.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Exploit-DB";
|
||||||
|
url = "https://exploit-db.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "GTFOBins";
|
||||||
|
url = "https://gtfobins.org/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Crack Station";
|
||||||
|
url = "https://crackstation.net";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Osint Tracker";
|
||||||
|
url = "https://app.osintracker.com";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
name = "Jack";
|
||||||
|
icon = "dns";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Glance";
|
||||||
|
url = "https://home.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Blog";
|
||||||
|
url = "https://hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Gitea";
|
||||||
|
url = "https://git.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Mealie";
|
||||||
|
url = "https://mealie.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Wallpapers";
|
||||||
|
url = "https://wallpapers.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Default Creds";
|
||||||
|
url = "https://default-creds.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Media";
|
||||||
|
icon = "subscriptions";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Radarr";
|
||||||
|
url = "https://radarr.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Sonarr";
|
||||||
|
url = "https://sonarr.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Bazarr";
|
||||||
|
url = "https://bazarr.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Prowlarr";
|
||||||
|
url = "https://prowlarr.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Transmission";
|
||||||
|
url = "https://transmission.hadi.icu";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Infrastructure";
|
||||||
|
icon = "construction";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "AdGuard";
|
||||||
|
url = "https://adguard.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Umami";
|
||||||
|
url = "https://umami.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Cloudflare";
|
||||||
|
url = "https://dash.cloudflare.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Cloudflare Zero Trust";
|
||||||
|
url = "https://one.dash.cloudflare.com";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
name = "Other";
|
||||||
|
icon = "category";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Documentation";
|
||||||
|
icon = "menu_book";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Hyprland Wiki";
|
||||||
|
url = "https://wiki.hypr.land";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Stylix Wiki";
|
||||||
|
url = "https://nix-community.github.io/stylix/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Nixpkgs";
|
||||||
|
url = "https://github.com/NixOS/nixpkgs";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "tldr";
|
||||||
|
url = "https://tldr.inbrowser.app/";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Startpage Config";
|
||||||
|
url = "https://www.startpage.com/do/mypage.pl?prfe=45d331deb05471d659dba933e7400df51d952bb103da6f6125c0e769a6be1d65610456a479f495ceeee7e97311cf227d7c1bb198de0ceeb193d8cddf9c455c19a409cc35c3e3f542ee27bd7cecd3";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Feedly";
|
||||||
|
url = "https://feedly.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "MyNixOS";
|
||||||
|
url = "https://mynixos.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Amazon";
|
||||||
|
url = "https://amazon.fr";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
name = "Entertainment";
|
||||||
|
icon = "movie";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Youtube";
|
||||||
|
url = "https://youtube.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Jellyfin";
|
||||||
|
url = "https://media.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Seerr";
|
||||||
|
url = "https://demandemedia.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Social Media";
|
||||||
|
icon = "group";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Medium";
|
||||||
|
url = "https://medium.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Bluesky";
|
||||||
|
url = "https://bsky.app";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Reddit";
|
||||||
|
url = "https://reddit.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Instagram";
|
||||||
|
url = "https://instagram.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Discord";
|
||||||
|
url = "https://discord.com/channels/@me/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Gitlab";
|
||||||
|
url = "https://gitlab.com/";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
name = "Tools";
|
||||||
|
icon = "handyman";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "Maps";
|
||||||
|
url = "https://maps.apple.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Excalidraw";
|
||||||
|
url = "https://excalidraw.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Cobalt (downloader)";
|
||||||
|
url = "https://cobalt.meowing.de";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Mazanoke (image)";
|
||||||
|
url = "https://mazanoke.hadi.icu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Vert";
|
||||||
|
url = "https://vert.sh";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Markdown to PDF";
|
||||||
|
url = "https://md2file.com";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Image to Vector";
|
||||||
|
url = "https://www.vectorcascade.com/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "PrivateBin";
|
||||||
|
url = "https://privatebin.net";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Claude";
|
||||||
|
url = "https://claude.ai";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Gemini";
|
||||||
|
url = "https://gemini.google.com";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
{...}: {
|
||||||
|
imports = [
|
||||||
|
./bookmarks
|
||||||
|
./search.nix
|
||||||
|
./keybindings.nix
|
||||||
|
./settings.nix
|
||||||
|
./userscripts.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
DEFAULT_BROWSER = "qutebrowser";
|
||||||
|
BROWSER = "qutebrowser";
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
"text/html" = ["org.qutebrowser.qutebrowser.desktop"];
|
||||||
|
"text/xml" = ["org.qutebrowser.qutebrowser.desktop"];
|
||||||
|
"x-scheme-handler/http" = ["org.qutebrowser.qutebrowser.desktop"];
|
||||||
|
"x-scheme-handler/https" = ["org.qutebrowser.qutebrowser.desktop"];
|
||||||
|
"x-scheme-handler/unknown" = ["org.qutebrowser.qutebrowser.desktop"];
|
||||||
|
"x-scheme-handler/about" = ["org.qutebrowser.qutebrowser.desktop"];
|
||||||
|
"x-scheme-handler/qute" = ["org.qutebrowser.qutebrowser.desktop"];
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.desktopEntries.qutebrowser-private = {
|
||||||
|
name = "Qutebrowser (Temp session)";
|
||||||
|
genericName = "Web Browser";
|
||||||
|
exec = "qutebrowser --temp-basedir %U";
|
||||||
|
icon = "qutebrowser";
|
||||||
|
categories = [
|
||||||
|
"Network"
|
||||||
|
"WebBrowser"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.qutebrowser = {
|
||||||
|
enable = true;
|
||||||
|
loadAutoconfig = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{config, ...}: {
|
||||||
|
programs.qutebrowser.keyBindings = {
|
||||||
|
normal."<Ctrl-w>" = "tab-close";
|
||||||
|
normal."<Ctrl-Tab>" = "tab-next";
|
||||||
|
normal."<Ctrl-Shift-Tab>" = "tab-prev";
|
||||||
|
normal."<Ctrl-b>" = "open file://${config.xdg.dataHome}/qutebrowser/bookmarks.html";
|
||||||
|
|
||||||
|
# Ctrl+c is used to leave the current mode and return to normal mode.
|
||||||
|
insert."<Ctrl-c>" = "mode-leave";
|
||||||
|
hint."<Ctrl-c>" = "mode-leave";
|
||||||
|
caret."<Ctrl-c>" = "mode-leave";
|
||||||
|
command."<Ctrl-c>" = "mode-leave";
|
||||||
|
prompt."<Ctrl-c>" = "mode-leave";
|
||||||
|
yesno."<Ctrl-c>" = "mode-leave";
|
||||||
|
register."<Ctrl-c>" = "mode-leave";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
programs.qutebrowser.searchEngines = rec {
|
||||||
|
startpage = "https://www.startpage.com/sp/search?q={}";
|
||||||
|
|
||||||
|
mynixos = "https://mynixos.com/search?q={}";
|
||||||
|
duckduckgo = "https://duckduckgo.com/?q={}";
|
||||||
|
google = "https://google.com/search?hl=en&q={}";
|
||||||
|
yandex = "https://yandex.com/search/?text={}";
|
||||||
|
bing = "https://bing.com/search?q={}";
|
||||||
|
youtube = "https://youtube.com/results?search_query={}";
|
||||||
|
google-images = "https://google.com/search?hl=en&tbm=isch&q={}";
|
||||||
|
|
||||||
|
# AI
|
||||||
|
chatgpt = "https://chatgpt.com/?q={}";
|
||||||
|
claude = "https://claude.ai/new?q={}";
|
||||||
|
gemini = "https://gemini.google.com/app?q={}";
|
||||||
|
|
||||||
|
# Maps
|
||||||
|
amap = "https://maps.apple.com/?q={}";
|
||||||
|
gmap = "https://www.google.com/maps/search/{}";
|
||||||
|
|
||||||
|
# shortcuts
|
||||||
|
g = google;
|
||||||
|
n = mynixos;
|
||||||
|
gpt = chatgpt;
|
||||||
|
gem = gemini;
|
||||||
|
cla = claude;
|
||||||
|
DEFAULT = startpage;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
{config, ...}: {
|
||||||
|
programs.qutebrowser = {
|
||||||
|
settings = {
|
||||||
|
url = rec {
|
||||||
|
default_page = "file://${config.xdg.dataHome}/qutebrowser/bookmarks.html";
|
||||||
|
start_pages = [default_page];
|
||||||
|
};
|
||||||
|
new_instance_open_target = "window";
|
||||||
|
"tabs.last_close" = "close";
|
||||||
|
"statusbar.widgets" = [
|
||||||
|
"keypress"
|
||||||
|
"url"
|
||||||
|
"progress"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Adblock
|
||||||
|
"content.blocking.enabled" = true;
|
||||||
|
"content.blocking.method" = "adblock";
|
||||||
|
"content.blocking.adblock.lists" = [
|
||||||
|
"https://easylist.to/easylist/easylist.txt"
|
||||||
|
"https://easylist.to/easylist/easyprivacy.txt"
|
||||||
|
"https://secure.fanboy.co.nz/fanboy-cookiemonster.txt"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Clipboard access (needed for Excalidraw, Cyberchef, etc.)
|
||||||
|
"content.javascript.clipboard" = "access";
|
||||||
|
|
||||||
|
# Downloads
|
||||||
|
"downloads.location.directory" = "~/Downloads";
|
||||||
|
"downloads.location.prompt" = false;
|
||||||
|
|
||||||
|
# Editor (Ctrl+e in text fields)
|
||||||
|
"editor.command" = [
|
||||||
|
"ghostty"
|
||||||
|
"-e"
|
||||||
|
"nvim"
|
||||||
|
"{}"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Tabs
|
||||||
|
# "tabs.show" = "switching";
|
||||||
|
# "tabs.show_switching_delay" = 3000;
|
||||||
|
|
||||||
|
# Scrollbar
|
||||||
|
"scrolling.bar" = "never";
|
||||||
|
|
||||||
|
# Statusbar
|
||||||
|
"statusbar.show" = "in-mode";
|
||||||
|
|
||||||
|
# Privacy
|
||||||
|
"content.geolocation" = false;
|
||||||
|
"content.cookies.accept" = "no-3rdparty";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
c.statusbar.padding = {'top': 6, 'bottom': 6, 'left': 8, 'right': 8}
|
||||||
|
c.tabs.padding = {'top': 6, 'bottom': 6, 'left': 8, 'right': 8}
|
||||||
|
config.set('content.local_content_can_access_remote_urls', True, 'file://*')
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
xdg.dataFile = {
|
||||||
|
# Startpage: hide sponsored results (custom script, no upstream)
|
||||||
|
"qutebrowser/greasemonkey/startpage-no-ads.user.js".text = ''
|
||||||
|
// ==UserScript==
|
||||||
|
// @name Startpage - Hide Ads
|
||||||
|
// @match https://www.startpage.com/*
|
||||||
|
// @run-at document-start
|
||||||
|
// ==/UserScript==
|
||||||
|
|
||||||
|
new MutationObserver(function(mutations) {
|
||||||
|
mutations.forEach((mutation) => {
|
||||||
|
if (mutation.type === 'childList') {
|
||||||
|
mutation.addedNodes.forEach((node) => {
|
||||||
|
if (node.nodeType === 1 && node.nodeName === 'DIV' && node.id === 'gcsa-top') {
|
||||||
|
node.remove();
|
||||||
|
this.disconnect();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}).observe(document, { childList: true, subtree: true });
|
||||||
|
'';
|
||||||
|
|
||||||
|
"qutebrowser/greasemonkey/return-youtube-dislike.user.js".source = inputs.qs-return-youtube-dislike;
|
||||||
|
"qutebrowser/greasemonkey/sponsorblock-lite.user.js".source = inputs.qs-sponsorblock-lite;
|
||||||
|
"qutebrowser/greasemonkey/dont-track-me-google.user.js".source = inputs.qs-dont-track-me-google;
|
||||||
|
"qutebrowser/greasemonkey/i-dont-care-about-cookies.user.js".source =
|
||||||
|
inputs.qs-i-dont-care-about-cookies;
|
||||||
|
"qutebrowser/greasemonkey/tracking-token-stripper.user.js".source =
|
||||||
|
inputs.qs-tracking-token-stripper;
|
||||||
|
"qutebrowser/greasemonkey/bypass-paywalls-clean.user.js".source = inputs.qs-bypass-paywalls-clean;
|
||||||
|
"qutebrowser/greasemonkey/anti-adblock-fuckoff.user.js".source = inputs.qs-anti-adblock-fuckoff;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,4 +1,10 @@
|
|||||||
# Import all shell configurations
|
# Import all shell configurations
|
||||||
{
|
{
|
||||||
imports = [./fzf.nix ./zsh.nix ./starship.nix ./zoxide.nix ./eza.nix];
|
imports = [
|
||||||
|
./fzf.nix
|
||||||
|
./zsh.nix
|
||||||
|
./starship.nix
|
||||||
|
./zoxide.nix
|
||||||
|
./eza.nix
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,9 @@ in {
|
|||||||
"$git_status"
|
"$git_status"
|
||||||
"$character"
|
"$character"
|
||||||
];
|
];
|
||||||
directory = {style = accent;};
|
directory = {
|
||||||
|
style = accent;
|
||||||
|
};
|
||||||
|
|
||||||
character = {
|
character = {
|
||||||
success_symbol = "[❯](${accent})";
|
success_symbol = "[❯](${accent})";
|
||||||
|
|||||||
+19
-34
@@ -7,18 +7,34 @@
|
|||||||
}: let
|
}: let
|
||||||
fetch = config.theme.fetch; # neofetch, nerdfetch, pfetch
|
fetch = config.theme.fetch; # neofetch, nerdfetch, pfetch
|
||||||
in {
|
in {
|
||||||
home.packages = with pkgs; [bat ripgrep tldr sesh];
|
home.packages = with pkgs; [
|
||||||
|
bat
|
||||||
|
ripgrep
|
||||||
|
tldr
|
||||||
|
witr
|
||||||
|
];
|
||||||
|
|
||||||
# Add go binaries to the PATH
|
# Add go binaries to the PATH
|
||||||
home.sessionPath = ["$HOME/go/bin"];
|
home.sessionPath = ["$HOME/go/bin"];
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
COLORTERM = "truecolor";
|
||||||
|
};
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
syntaxHighlighting = {
|
syntaxHighlighting = {
|
||||||
enable = true;
|
enable = true;
|
||||||
highlighters = ["main" "brackets" "pattern" "regexp" "root" "line"];
|
highlighters = [
|
||||||
|
"main"
|
||||||
|
"brackets"
|
||||||
|
"pattern"
|
||||||
|
"regexp"
|
||||||
|
"root"
|
||||||
|
"line"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
historySubstringSearch.enable = true;
|
historySubstringSearch.enable = true;
|
||||||
|
|
||||||
@@ -29,9 +45,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
profileExtra = lib.optionalString (config.home.sessionPath != []) ''
|
profileExtra = lib.optionalString (config.home.sessionPath != []) ''
|
||||||
export PATH="$PATH''${PATH:+:}${
|
export PATH="$PATH''${PATH:+:}${lib.concatStringsSep ":" config.home.sessionPath}"
|
||||||
lib.concatStringsSep ":" config.home.sessionPath
|
|
||||||
}"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
@@ -47,7 +61,6 @@ in {
|
|||||||
tree = "eza --icons=always --tree --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";
|
|
||||||
cat = "bat --theme=base16 --color=always --paging=never --tabs=2 --wrap=never --plain";
|
cat = "bat --theme=base16 --color=always --paging=never --tabs=2 --wrap=never --plain";
|
||||||
mkdir = "mkdir -p";
|
mkdir = "mkdir -p";
|
||||||
|
|
||||||
@@ -93,29 +106,6 @@ in {
|
|||||||
else ""
|
else ""
|
||||||
}
|
}
|
||||||
|
|
||||||
function sesh-sessions() {
|
|
||||||
session=$(sesh list -t -c | fzf --height 70% --reverse)
|
|
||||||
[[ -z "$session" ]] && return
|
|
||||||
sesh connect $session
|
|
||||||
}
|
|
||||||
|
|
||||||
function chatgptfolder(){
|
|
||||||
echo "################################"
|
|
||||||
echo "### TREE ###"
|
|
||||||
echo "################################"
|
|
||||||
${pkgs.eza}/bin/eza --tree -aF --icons never
|
|
||||||
echo -e "\n\n"
|
|
||||||
echo "##############################"
|
|
||||||
echo "### CONTENT ###"
|
|
||||||
echo "##############################"
|
|
||||||
find . -type f -not -path '*/.git/*' -print0 | while IFS= read -r -d "" file; do
|
|
||||||
echo -e "\n--- DEBUT: $file ---\n"
|
|
||||||
cat "$file"
|
|
||||||
echo -e "\n--- FIN: $file ---\n"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function n4c() {
|
function n4c() {
|
||||||
category=''${1:-all}
|
category=''${1:-all}
|
||||||
shift
|
shift
|
||||||
@@ -123,11 +113,6 @@ in {
|
|||||||
nix develop "github:nix4cyber/n4c#''${category}" ''${args} -c zsh
|
nix develop "github:nix4cyber/n4c#''${category}" ''${args} -c zsh
|
||||||
}
|
}
|
||||||
|
|
||||||
zle -N sesh-sessions
|
|
||||||
bindkey -M emacs '\es' sesh-sessions
|
|
||||||
bindkey -M vicmd '\es' sesh-sessions
|
|
||||||
bindkey -M viins '\es' sesh-sessions
|
|
||||||
|
|
||||||
# search history based on what's typed in the prompt
|
# search history based on what's typed in the prompt
|
||||||
autoload -U history-search-end
|
autoload -U history-search-end
|
||||||
zle -N history-beginning-search-backward-end history-search-end
|
zle -N history-beginning-search-backward-end history-search-end
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# Spicetify is a spotify client customizer
|
# Spicetify is a spotify client customizer
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
pkgs-stable,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
inputs,
|
inputs,
|
||||||
@@ -16,6 +17,7 @@ in {
|
|||||||
|
|
||||||
programs.spicetify = {
|
programs.spicetify = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
spotifyPackage = pkgs-stable.spotify;
|
||||||
theme = lib.mkForce spicePkgs.themes.dribbblish;
|
theme = lib.mkForce spicePkgs.themes.dribbblish;
|
||||||
|
|
||||||
colorScheme = "custom";
|
colorScheme = "custom";
|
||||||
@@ -31,7 +33,6 @@ in {
|
|||||||
|
|
||||||
enabledExtensions = with spicePkgs.extensions; [
|
enabledExtensions = with spicePkgs.extensions; [
|
||||||
playlistIcons
|
playlistIcons
|
||||||
lastfm
|
|
||||||
historyShortcut
|
historyShortcut
|
||||||
hidePodcasts
|
hidePodcasts
|
||||||
adblock
|
adblock
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
# Thunar is a file explorer
|
# Thunar is a file explorer
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
pkgs-stable,
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
user = config.var.username;
|
user = config.var.username;
|
||||||
in {
|
in {
|
||||||
# ctrl + m to toggle the menubar
|
# ctrl + m to toggle the menubar
|
||||||
home.packages = with pkgs; [
|
home.packages =
|
||||||
|
(with pkgs-stable; [
|
||||||
xfce.thunar
|
xfce.thunar
|
||||||
xfce.xfconf
|
xfce.xfconf
|
||||||
xfce.tumbler
|
xfce.tumbler
|
||||||
@@ -16,29 +19,40 @@ in {
|
|||||||
xfce.thunar-media-tags-plugin
|
xfce.thunar-media-tags-plugin
|
||||||
p7zip
|
p7zip
|
||||||
xarchiver
|
xarchiver
|
||||||
];
|
])
|
||||||
|
++ (with pkgs; [
|
||||||
|
# Icon themes: keep on global pkgs to avoid conflicts with other modules
|
||||||
|
papirus-icon-theme
|
||||||
|
material-icons
|
||||||
|
material-design-icons
|
||||||
|
material-symbols
|
||||||
|
]);
|
||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
|
enable = true;
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
name = "WhiteSur";
|
name = "Papirus-Dark";
|
||||||
package = pkgs.whitesur-icon-theme.override {
|
package = pkgs.papirus-icon-theme;
|
||||||
boldPanelIcons = true;
|
|
||||||
alternativeIcons = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables = {
|
gtk4.theme = null;
|
||||||
XDG_ICON_DIR = "${pkgs.whitesur-icon-theme}/share/icons/WhiteSur";
|
|
||||||
};
|
|
||||||
|
|
||||||
# bookmarks for the side pane
|
# bookmarks for the side pane
|
||||||
gtk.gtk3.bookmarks = [
|
gtk3.bookmarks = [
|
||||||
"file:///home/${user}/Downloads Downloads"
|
"file:///home/${user}/Downloads Downloads"
|
||||||
"file:///home/${user}/Pictures Pictures"
|
"file:///home/${user}/Pictures Pictures"
|
||||||
"file:///home/${user}/.config/nixos NixOS"
|
"file:///home/${user}/.config/nixos NixOS"
|
||||||
"file:///home/${user}/dev Development"
|
"file:///home/${user}/dev Development"
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
qt.enable = true;
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
XDG_ICON_DIR = "${pkgs.papirus-icon-theme}/share/icons/Papirus";
|
||||||
|
QS_ICON_THEME = "Papirus";
|
||||||
|
QT_STYLE_OVERRIDE = lib.mkForce "Fusion";
|
||||||
|
};
|
||||||
|
|
||||||
home.file.".config/xarchiver/xarchiverrc".text = ''
|
home.file.".config/xarchiver/xarchiverrc".text = ''
|
||||||
[xarchiver]
|
[xarchiver]
|
||||||
@@ -56,7 +70,7 @@ in {
|
|||||||
show_toolbar=true
|
show_toolbar=true
|
||||||
preferred_custom_cmd=
|
preferred_custom_cmd=
|
||||||
preferred_temp_dir=/tmp
|
preferred_temp_dir=/tmp
|
||||||
preferred_extract_dir=/home/${user}/Downloads
|
preferred_extract_dir=./
|
||||||
allow_sub_dir=0
|
allow_sub_dir=0
|
||||||
ensure_directory=true
|
ensure_directory=true
|
||||||
overwrite=false
|
overwrite=false
|
||||||
@@ -72,7 +86,8 @@ in {
|
|||||||
remove_files=false
|
remove_files=false
|
||||||
'';
|
'';
|
||||||
|
|
||||||
home.file.".config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml".text = ''
|
home.file.".config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml" = {
|
||||||
|
text = ''
|
||||||
<?xml version="1.1" encoding="UTF-8"?>
|
<?xml version="1.1" encoding="UTF-8"?>
|
||||||
|
|
||||||
<channel name="thunar" version="1.0">
|
<channel name="thunar" version="1.0">
|
||||||
@@ -119,6 +134,8 @@ in {
|
|||||||
<property name="misc-show-delete-action" type="bool" value="false"/>
|
<property name="misc-show-delete-action" type="bool" value="false"/>
|
||||||
</channel>
|
</channel>
|
||||||
'';
|
'';
|
||||||
|
force = true;
|
||||||
|
};
|
||||||
|
|
||||||
xdg.configFile."Thunar/uca.xml".text = ''
|
xdg.configFile."Thunar/uca.xml".text = ''
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
@@ -127,8 +144,8 @@ in {
|
|||||||
<icon>utilities-terminal</icon>
|
<icon>utilities-terminal</icon>
|
||||||
<name>Open Terminal Here</name>
|
<name>Open Terminal Here</name>
|
||||||
<unique-id>1700000000000001</unique-id>
|
<unique-id>1700000000000001</unique-id>
|
||||||
<command>kitty -d %f</command>
|
<command>ghostty -d %f</command>
|
||||||
<description>Opens Kitty terminal in the selected folder</description>
|
<description>Opens terminal in the selected folder</description>
|
||||||
<patterns>*</patterns>
|
<patterns>*</patterns>
|
||||||
<startup-notify/>
|
<startup-notify/>
|
||||||
<directories/>
|
<directories/>
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
programs.vivaldi = {
|
|
||||||
enable = true;
|
|
||||||
commandLineArgs = [
|
|
||||||
"--no-default-browser-check"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
|
||||||
DEFAULT_BROWSER = "${pkgs.vivaldi}/bin/vivaldi";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# TODO: Misc section with VLC, Zathura etc
|
|
||||||
# Zathura is a PDF viewer
|
|
||||||
{
|
|
||||||
programs.zathura = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
options = {
|
|
||||||
guioptions = "v";
|
|
||||||
adjust-open = "width";
|
|
||||||
statusbar-basename = true;
|
|
||||||
render-loading = false;
|
|
||||||
scroll-step = 120;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -15,7 +15,7 @@ in {
|
|||||||
background.enabled = false;
|
background.enabled = false;
|
||||||
appearance = {
|
appearance = {
|
||||||
transparency = {
|
transparency = {
|
||||||
enable = true;
|
enabled = true;
|
||||||
base = 0.85;
|
base = 0.85;
|
||||||
layers = 0.4;
|
layers = 0.4;
|
||||||
};
|
};
|
||||||
@@ -29,8 +29,8 @@ in {
|
|||||||
enabled = true;
|
enabled = true;
|
||||||
maxToasts = 4;
|
maxToasts = 4;
|
||||||
toasts = {
|
toasts = {
|
||||||
audioInputChanged = true;
|
audioInputChanged = false;
|
||||||
audioOutputChanged = true;
|
audioOutputChanged = false;
|
||||||
capsLockChanged = false;
|
capsLockChanged = false;
|
||||||
chargingChanged = true;
|
chargingChanged = true;
|
||||||
configLoaded = false;
|
configLoaded = false;
|
||||||
@@ -41,6 +41,7 @@ in {
|
|||||||
kbLayoutChanged = false;
|
kbLayoutChanged = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
dashboard.showOnHover = false;
|
||||||
border = {
|
border = {
|
||||||
inherit rounding;
|
inherit rounding;
|
||||||
thickness = 8;
|
thickness = 8;
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
label = " ";
|
label = " ";
|
||||||
occupiedBg = true;
|
occupiedBg = true;
|
||||||
occupiedLabel = " ";
|
occupiedLabel = " ";
|
||||||
rounded = true;
|
|
||||||
showWindows = false;
|
showWindows = false;
|
||||||
shown = 5;
|
shown = 5;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,58 +0,0 @@
|
|||||||
{
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
bindin = [
|
|
||||||
# Launcher
|
|
||||||
"$mod, mouse:272, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:273, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:274, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:275, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:276, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse:277, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse_up, global, caelestia:launcherInterrupt"
|
|
||||||
"$mod, mouse_down, global, caelestia:launcherInterrupt"
|
|
||||||
];
|
|
||||||
bind = [
|
|
||||||
# Launcher
|
|
||||||
"$mod, SPACE, global, caelestia:launcher"
|
|
||||||
"$mod, X, global, caelestia:session" # Powermenu
|
|
||||||
|
|
||||||
# Misc
|
|
||||||
"$mod, L, global, caelestia:lock"
|
|
||||||
"$mod, N, exec, caelestia shell drawers toggle sidebar"
|
|
||||||
|
|
||||||
# Utilities
|
|
||||||
"$mod+Shift, SPACE, exec, caelestia shell gameMode toggle" # Toggle Focus/Game mode
|
|
||||||
"$mod+Shift, S, global, caelestia:screenshotFreeze" # Capture region (freeze)
|
|
||||||
"$mod+Shift+Alt, S, global, caelestia:screenshot" # Capture region
|
|
||||||
"$mod+Alt, R, exec, caelestia record -s" # Record screen with sound
|
|
||||||
"Ctrl+Alt, R, exec, caelestia record" # Record screen
|
|
||||||
"$mod+Shift+Alt, R, exec, caelestia record -r" # Record region
|
|
||||||
|
|
||||||
"$mod+Shift, E, exec, pkill fuzzel || caelestia emoji -p"
|
|
||||||
];
|
|
||||||
bindl = [
|
|
||||||
# Brightness
|
|
||||||
", XF86MonBrightnessUp, global, caelestia:brightnessUp"
|
|
||||||
", XF86MonBrightnessDown, global, caelestia:brightnessDown"
|
|
||||||
"$mod, F2, exec, nightshift-toggle"
|
|
||||||
"$mod, F3, exec, nightshift-toggle"
|
|
||||||
|
|
||||||
# Media
|
|
||||||
", XF86AudioPlay, global, caelestia:mediaToggle"
|
|
||||||
", XF86AudioPause, global, caelestia:mediaToggle"
|
|
||||||
", XF86AudioNext, global, caelestia:mediaNext"
|
|
||||||
", XF86AudioPrev, global, caelestia:mediaPrev"
|
|
||||||
", XF86AudioStop, global, caelestia:mediaStop"
|
|
||||||
|
|
||||||
# Sound
|
|
||||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
|
||||||
|
|
||||||
# Utilities
|
|
||||||
", Print, exec, caelestia screenshot" # Full screen capture > clipboard
|
|
||||||
];
|
|
||||||
bindle = [
|
|
||||||
", XF86AudioRaiseVolume, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0; wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"
|
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0; wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -3,15 +3,16 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.caelestia-shell.homeManagerModules.default
|
inputs.caelestia-shell.homeManagerModules.default
|
||||||
./bindings.nix
|
|
||||||
./bar.nix
|
./bar.nix
|
||||||
./launcher.nix
|
./launcher.nix
|
||||||
./appearance.nix
|
./appearance.nix
|
||||||
./scheme.nix
|
./scheme.nix
|
||||||
|
./swappy.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.caelestia = {
|
programs.caelestia = {
|
||||||
@@ -52,9 +53,20 @@
|
|||||||
wayland.windowManager.hyprland.settings.exec-once = [
|
wayland.windowManager.hyprland.settings.exec-once = [
|
||||||
"uwsm app -- caelestia resizer -d"
|
"uwsm app -- caelestia resizer -d"
|
||||||
"uwsm app -- caelestia shell -d"
|
"uwsm app -- caelestia shell -d"
|
||||||
|
"caelestia scheme set -n onedark"
|
||||||
"caelestia scheme set -n custom"
|
"caelestia scheme set -n custom"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# shell.json is managed by home-manager (read-only symlink) but caelestia
|
||||||
|
# needs to write to it at runtime: replace the symlink with a mutable copy
|
||||||
|
home.activation.caelestiaWritableShellConfig = lib.hm.dag.entryAfter ["linkGeneration"] ''
|
||||||
|
if [ -L "$HOME/.config/caelestia/shell.json" ]; then
|
||||||
|
$DRY_RUN_CMD cp --remove-destination \
|
||||||
|
"$(readlink -f "$HOME/.config/caelestia/shell.json")" \
|
||||||
|
"$HOME/.config/caelestia/shell.json"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
services.cliphist = {
|
services.cliphist = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowImages = true;
|
allowImages = true;
|
||||||
|
|||||||
@@ -1,10 +1,22 @@
|
|||||||
{
|
{
|
||||||
programs.caelestia.settings = {
|
programs.caelestia.settings = {
|
||||||
session.commands = {
|
session.commands = {
|
||||||
logout = ["loginctl" "terminate-user" ""];
|
shutdown = [
|
||||||
shutdown = ["systemctl" "poweroff"];
|
"systemctl"
|
||||||
hibernate = ["systemctl" "hibernate"];
|
"poweroff"
|
||||||
reboot = ["systemctl" "reboot"];
|
];
|
||||||
|
logout = [
|
||||||
|
"loginctl"
|
||||||
|
"lock-session"
|
||||||
|
];
|
||||||
|
hibernate = [
|
||||||
|
"systemctl"
|
||||||
|
"hibernate"
|
||||||
|
];
|
||||||
|
reboot = [
|
||||||
|
"systemctl"
|
||||||
|
"reboot"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
launcher = {
|
launcher = {
|
||||||
actionPrefix = "/";
|
actionPrefix = "/";
|
||||||
@@ -13,7 +25,10 @@
|
|||||||
name = "Calculator";
|
name = "Calculator";
|
||||||
icon = "calculate";
|
icon = "calculate";
|
||||||
description = "Do simple math equations (powered by Qalc)";
|
description = "Do simple math equations (powered by Qalc)";
|
||||||
command = ["autocomplete" "calc"];
|
command = [
|
||||||
|
"autocomplete"
|
||||||
|
"calc"
|
||||||
|
];
|
||||||
enabled = true;
|
enabled = true;
|
||||||
dangerous = false;
|
dangerous = false;
|
||||||
}
|
}
|
||||||
@@ -21,7 +36,10 @@
|
|||||||
name = "Shutdown";
|
name = "Shutdown";
|
||||||
icon = "power_settings_new";
|
icon = "power_settings_new";
|
||||||
description = "Shutdown the system";
|
description = "Shutdown the system";
|
||||||
command = ["systemctl" "poweroff"];
|
command = [
|
||||||
|
"systemctl"
|
||||||
|
"poweroff"
|
||||||
|
];
|
||||||
enabled = true;
|
enabled = true;
|
||||||
dangerous = true;
|
dangerous = true;
|
||||||
}
|
}
|
||||||
@@ -29,7 +47,10 @@
|
|||||||
name = "Reboot";
|
name = "Reboot";
|
||||||
icon = "cached";
|
icon = "cached";
|
||||||
description = "Reboot the system";
|
description = "Reboot the system";
|
||||||
command = ["systemctl" "reboot"];
|
command = [
|
||||||
|
"systemctl"
|
||||||
|
"reboot"
|
||||||
|
];
|
||||||
enabled = true;
|
enabled = true;
|
||||||
dangerous = true;
|
dangerous = true;
|
||||||
}
|
}
|
||||||
@@ -37,7 +58,11 @@
|
|||||||
name = "Logout";
|
name = "Logout";
|
||||||
icon = "exit_to_app";
|
icon = "exit_to_app";
|
||||||
description = "Log out of the current session";
|
description = "Log out of the current session";
|
||||||
command = ["loginctl" "terminate-user" ""];
|
command = [
|
||||||
|
"loginctl"
|
||||||
|
"terminate-user"
|
||||||
|
""
|
||||||
|
];
|
||||||
enabled = true;
|
enabled = true;
|
||||||
dangerous = true;
|
dangerous = true;
|
||||||
}
|
}
|
||||||
@@ -45,7 +70,10 @@
|
|||||||
name = "Lock";
|
name = "Lock";
|
||||||
icon = "lock";
|
icon = "lock";
|
||||||
description = "Lock the current session";
|
description = "Lock the current session";
|
||||||
command = ["loginctl" "lock-session"];
|
command = [
|
||||||
|
"loginctl"
|
||||||
|
"lock-session"
|
||||||
|
];
|
||||||
enabled = true;
|
enabled = true;
|
||||||
dangerous = false;
|
dangerous = false;
|
||||||
}
|
}
|
||||||
@@ -53,7 +81,10 @@
|
|||||||
name = "Sleep";
|
name = "Sleep";
|
||||||
icon = "bedtime";
|
icon = "bedtime";
|
||||||
description = "Suspend then hibernate";
|
description = "Suspend then hibernate";
|
||||||
command = ["systemctl" "suspend-then-hibernate"];
|
command = [
|
||||||
|
"systemctl"
|
||||||
|
"suspend-then-hibernate"
|
||||||
|
];
|
||||||
enabled = true;
|
enabled = true;
|
||||||
dangerous = false;
|
dangerous = false;
|
||||||
}
|
}
|
||||||
@@ -61,7 +92,12 @@
|
|||||||
name = "Restart caelestia";
|
name = "Restart caelestia";
|
||||||
icon = "cached";
|
icon = "cached";
|
||||||
description = "Restart caelestia";
|
description = "Restart caelestia";
|
||||||
command = ["hyprctl" "dispatch" "exec" "caelestia-shell kill | sleep 1 | caelestia-shell"];
|
command = [
|
||||||
|
"hyprctl"
|
||||||
|
"dispatch"
|
||||||
|
"exec"
|
||||||
|
"caelestia-shell kill | sleep 1 | caelestia-shell"
|
||||||
|
];
|
||||||
enabled = true;
|
enabled = true;
|
||||||
dangerous = false;
|
dangerous = false;
|
||||||
}
|
}
|
||||||
@@ -69,7 +105,11 @@
|
|||||||
name = "Emoji Picker";
|
name = "Emoji Picker";
|
||||||
icon = "mood";
|
icon = "mood";
|
||||||
description = "Toggle the emoji picker";
|
description = "Toggle the emoji picker";
|
||||||
command = ["caelestia" "emoji" "-p"];
|
command = [
|
||||||
|
"caelestia"
|
||||||
|
"emoji"
|
||||||
|
"-p"
|
||||||
|
];
|
||||||
enabled = true;
|
enabled = true;
|
||||||
dangerous = false;
|
dangerous = false;
|
||||||
}
|
}
|
||||||
@@ -77,7 +117,10 @@
|
|||||||
name = "Clipboard History";
|
name = "Clipboard History";
|
||||||
icon = "content_paste";
|
icon = "content_paste";
|
||||||
description = "Toggle the clipboard history";
|
description = "Toggle the clipboard history";
|
||||||
command = ["caelestia" "clipboard"];
|
command = [
|
||||||
|
"caelestia"
|
||||||
|
"clipboard"
|
||||||
|
];
|
||||||
enabled = true;
|
enabled = true;
|
||||||
dangerous = false;
|
dangerous = false;
|
||||||
}
|
}
|
||||||
@@ -85,7 +128,10 @@
|
|||||||
name = "Delete from Clipboard History";
|
name = "Delete from Clipboard History";
|
||||||
icon = "content_paste_off";
|
icon = "content_paste_off";
|
||||||
description = "Delete a line from the clipboard history";
|
description = "Delete a line from the clipboard history";
|
||||||
command = ["caelestia" "clipboard"];
|
command = [
|
||||||
|
"caelestia"
|
||||||
|
"clipboard"
|
||||||
|
];
|
||||||
enabled = true;
|
enabled = true;
|
||||||
dangerous = false;
|
dangerous = false;
|
||||||
}
|
}
|
||||||
@@ -101,7 +147,10 @@
|
|||||||
name = "Hyprpicker";
|
name = "Hyprpicker";
|
||||||
icon = "colorize";
|
icon = "colorize";
|
||||||
description = "Pick an hex color";
|
description = "Pick an hex color";
|
||||||
command = ["hyprpicker" "-a"];
|
command = [
|
||||||
|
"hyprpicker"
|
||||||
|
"-a"
|
||||||
|
];
|
||||||
enabled = true;
|
enabled = true;
|
||||||
dangerous = false;
|
dangerous = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -120,7 +120,12 @@
|
|||||||
onSuccessContainer ${colors.base05}
|
onSuccessContainer ${colors.base05}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
customCli = inputs.caelestia-cli.packages.${pkgs.stdenv.hostPlatform.system}.default.overrideAttrs (oldAttrs: {
|
colorsHash = builtins.hashString "sha256" (builtins.toJSON colors);
|
||||||
|
|
||||||
|
customCli =
|
||||||
|
inputs.caelestia-cli.packages.${pkgs.stdenv.hostPlatform.system}.default.overrideAttrs
|
||||||
|
(oldAttrs: {
|
||||||
|
name = "${oldAttrs.name or "caelestia-cli"}-themed-${colorsHash}";
|
||||||
postUnpack = ''
|
postUnpack = ''
|
||||||
mkdir -p $sourceRoot/src/caelestia/data/schemes/custom/main
|
mkdir -p $sourceRoot/src/caelestia/data/schemes/custom/main
|
||||||
cp ${customSchemeFile} $sourceRoot/src/caelestia/data/schemes/custom/main/dark.txt
|
cp ${customSchemeFile} $sourceRoot/src/caelestia/data/schemes/custom/main/dark.txt
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
xdg.configFile."swappy/config".text = ''
|
||||||
|
[Default]
|
||||||
|
save_dir=~/Pictures/Screenshots
|
||||||
|
save_filename_format=screenshot-%Y%m%d-%H%M%S.png
|
||||||
|
show_panel=false
|
||||||
|
line_size=5
|
||||||
|
text_size=20
|
||||||
|
text_font=sans-serif
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -1,43 +1,208 @@
|
|||||||
{pkgs, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
colors = config.lib.stylix.colors;
|
||||||
|
|
||||||
|
mkMenu = menu: let
|
||||||
|
configFile = pkgs.writeText "config.yaml" (
|
||||||
|
lib.generators.toYAML {} {
|
||||||
|
anchor = "bottom-right";
|
||||||
|
border = "#${colors.base0D}80";
|
||||||
|
background = "#${colors.base01}EE";
|
||||||
|
color = "#${colors.base05}";
|
||||||
|
margin_right = 15;
|
||||||
|
margin_bottom = 15;
|
||||||
|
rows_per_column = 5;
|
||||||
|
|
||||||
|
inherit menu;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
in
|
||||||
|
pkgs.writeShellScriptBin "menu" ''
|
||||||
|
exec ${lib.getExe pkgs.wlr-which-key} ${configFile}
|
||||||
|
'';
|
||||||
|
in {
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
"$mod" = "SUPER";
|
"$mod" = "SUPER";
|
||||||
"$shiftMod" = "SUPER_SHIFT";
|
"$shiftMod" = "SUPER_SHIFT";
|
||||||
|
|
||||||
bind =
|
bind =
|
||||||
[
|
[
|
||||||
"$mod,RETURN, exec, uwsm app -- ${pkgs.ghostty}/bin/ghostty" # Ghostty (terminal)
|
# Applications
|
||||||
"$mod,E, exec, uwsm app -- ${pkgs.xfce.thunar}/bin/thunar" # Thunar
|
(
|
||||||
"$mod,B, exec, uwsm app -- ${pkgs.vivaldi}/bin/vivaldi" # Browser (Vivaldi)
|
"$shiftMod, A, exec, "
|
||||||
"$mod,K, exec, uwsm app -- ${pkgs.proton-pass}/bin/proton-pass" # Proton Pass
|
+ lib.getExe (mkMenu [
|
||||||
"$mod,V, exec, uwsm app -- ${pkgs.protonvpn-gui}/bin/protonvpn-app" # Proton VPN
|
{
|
||||||
"$mod,A, exec, uwsm app -- env WEBKIT_DISABLE_COMPOSITING_MODE=1 ${pkgs.proton-authenticator}/bin/proton-authenticator" # Proton Auth
|
key = "a";
|
||||||
"$mod,M, exec, uwsm app -- ${pkgs.vivaldi}/bin/vivaldi --profile-directory=Default --app-id=jnpecgipniidlgicjocehkhajgdnjekh" # Proton Mail (PWA)
|
desc = "Proton Authenticator";
|
||||||
"$mod,C, exec, uwsm app -- ${pkgs.vivaldi}/bin/vivaldi --profile-directory=Default --app-id=ojibjkjikcpjonjjngfkegflhmffeemk" # Proton Calendar (PWA)
|
cmd = "env WEBKIT_DISABLE_COMPOSITING_MODE=1 ${pkgs.proton-authenticator}/bin/proton-authenticator";
|
||||||
"$mod,I, exec, uwsm app -- ${pkgs.vivaldi}/bin/vivaldi --profile-directory=Default --app-id=lcfjlhjhpmdjimnbkdfjnkojodddgfmd" # Proton Lumo (PWA)
|
}
|
||||||
|
{
|
||||||
|
key = "p";
|
||||||
|
desc = "Proton Pass";
|
||||||
|
cmd = "${pkgs.proton-pass}/bin/proton-pass";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "v";
|
||||||
|
desc = "Proton VPN";
|
||||||
|
cmd = "${pkgs.proton-vpn}/bin/protonvpn-app";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "c";
|
||||||
|
desc = "Proton Calendar";
|
||||||
|
cmd = "${pkgs.qutebrowser}/bin/qutebrowser 'https://calendar.proton.me/'";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "m";
|
||||||
|
desc = "Proton Mail";
|
||||||
|
cmd = "${pkgs.qutebrowser}/bin/qutebrowser 'https://mail.proton.me/'";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "o";
|
||||||
|
desc = "Obsidian";
|
||||||
|
cmd = "${pkgs.obsidian}/bin/obsidian";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "s";
|
||||||
|
desc = "Signal";
|
||||||
|
cmd = "${pkgs.signal-desktop}/bin/signal-desktop";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "t";
|
||||||
|
desc = "TickTick";
|
||||||
|
cmd = "${pkgs.ticktick}/bin/ticktick";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "b";
|
||||||
|
desc = "Qutebrowser";
|
||||||
|
cmd = "${pkgs.qutebrowser}/bin/qutebrowser";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "i";
|
||||||
|
desc = "Qutebrowser (Temp session)";
|
||||||
|
cmd = "${pkgs.qutebrowser}/bin/qutebrowser --temp-basedir";
|
||||||
|
}
|
||||||
|
])
|
||||||
|
)
|
||||||
|
|
||||||
|
# Web links
|
||||||
|
"$mod,B, exec, uwsm app -- ${pkgs.qutebrowser}/bin/qutebrowser" # Browser (Qutebrowser)
|
||||||
|
|
||||||
|
# Power
|
||||||
|
"$mod, X, global, caelestia:session" # Powermenu
|
||||||
|
(
|
||||||
|
"$shiftMod, X, exec, "
|
||||||
|
+ lib.getExe (mkMenu [
|
||||||
|
{
|
||||||
|
key = "l";
|
||||||
|
desc = "Lock";
|
||||||
|
cmd = "hyprctl dispatch global caelestia:lock";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "s";
|
||||||
|
desc = "Suspend";
|
||||||
|
cmd = "systemctl suspend";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "r";
|
||||||
|
desc = "Reboot";
|
||||||
|
cmd = "systemctl reboot";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "p";
|
||||||
|
desc = "Power Off";
|
||||||
|
cmd = "systemctl poweroff";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "n";
|
||||||
|
desc = "Nightshift";
|
||||||
|
cmd = "nightshift-toggle";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "c";
|
||||||
|
desc = "Restart caelestia";
|
||||||
|
cmd = "hyprctl dispatch exec 'caelestia-shell kill | sleep 1 | caelestia-shell'";
|
||||||
|
}
|
||||||
|
])
|
||||||
|
)
|
||||||
|
|
||||||
|
# Quick launch
|
||||||
|
"$mod,RETURN, exec, uwsm app -- ${pkgs.ghostty}/bin/ghostty" # Ghostty (terminal)
|
||||||
|
"$mod,E, exec, uwsm app -- ${pkgs.thunar}/bin/thunar" # Thunar
|
||||||
|
"$shiftMod, E, exec, pkill fuzzel || caelestia emoji -p" # Emoji picker
|
||||||
|
"$mod, SPACE, global, caelestia:launcher" # Launcher
|
||||||
|
"$mod, N, exec, caelestia shell drawers toggle sidebar" # Sidebar (Notifications, quick actions)
|
||||||
|
"$mod, D, exec, caelestia shell drawers toggle dashboard" # Dashboard
|
||||||
|
|
||||||
|
# Windows
|
||||||
"$mod,Q, killactive," # Close window
|
"$mod,Q, killactive," # Close window
|
||||||
"$mod,T, togglefloating," # Toggle Floating
|
|
||||||
"$mod,F, fullscreen" # Toggle Fullscreen
|
"$mod,F, fullscreen" # Toggle Fullscreen
|
||||||
"$mod,left, movefocus, l" # Move focus left
|
"$shiftMod,F, togglefloating," # Toggle Floating
|
||||||
"$mod,right, movefocus, r" # Move focus Right
|
|
||||||
"$mod,up, movefocus, u" # Move focus Up
|
# Focus Windows
|
||||||
"$mod,down, movefocus, d" # Move focus Down
|
"$mod,H, movefocus, l" # Move focus left
|
||||||
"$shiftMod,up, focusmonitor, -1" # Focus previous monitor
|
"$mod,J, movefocus, d" # Move focus Down
|
||||||
"$shiftMod,down, focusmonitor, 1" # Focus next monitor
|
"$mod,K, movefocus, u" # Move focus Up
|
||||||
"$shiftMod,left, layoutmsg, addmaster" # Add to master
|
"$mod,L, movefocus, r" # Move focus Right
|
||||||
"$shiftMod,right, layoutmsg, removemaster" # Remove from master
|
"$shiftMod,H, focusmonitor, -1" # Focus previous monitor
|
||||||
|
"$shiftMod,J, layoutmsg, removemaster" # Remove from master
|
||||||
|
"$shiftMod,K, layoutmsg, addmaster" # Add to master
|
||||||
|
"$shiftMod,L, focusmonitor, 1" # Focus next monitor
|
||||||
|
|
||||||
|
# Utilities
|
||||||
|
"$shiftMod, SPACE, exec, caelestia shell gameMode toggle" # Toggle Focus/Game mode
|
||||||
|
"$shiftMod, S, global, caelestia:screenshotFreeze" # Capture region (freeze)
|
||||||
|
", Print, global, caelestia:screenshotFreeze" # Capture region (freeze)
|
||||||
|
"$shiftMod+Alt, S, global, caelestia:screenshot" # Capture region
|
||||||
]
|
]
|
||||||
++ (builtins.concatLists (builtins.genList (i: let
|
++ (builtins.concatLists (
|
||||||
|
builtins.genList (
|
||||||
|
i: let
|
||||||
ws = i + 1;
|
ws = i + 1;
|
||||||
in [
|
in [
|
||||||
"$mod,code:1${toString i}, workspace, ${toString ws}"
|
"$mod,code:1${toString i}, workspace, ${toString ws}"
|
||||||
"$mod SHIFT,code:1${toString i}, movetoworkspace, ${toString ws}"
|
"$mod SHIFT,code:1${toString i}, movetoworkspace, ${toString ws}"
|
||||||
])
|
]
|
||||||
9));
|
)
|
||||||
|
9
|
||||||
|
));
|
||||||
|
|
||||||
bindm = [
|
bindm = [
|
||||||
"$mod,mouse:272, movewindow" # Move Window (mouse)
|
"$mod,mouse:272, movewindow" # Move Window (mouse)
|
||||||
"$mod,R, resizewindow" # Resize Window (mouse)
|
"$mod,R, resizewindow" # Resize Window (mouse)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
bindl = [
|
||||||
|
# Brightness
|
||||||
|
", XF86MonBrightnessUp, global, caelestia:brightnessUp"
|
||||||
|
", XF86MonBrightnessDown, global, caelestia:brightnessDown"
|
||||||
|
|
||||||
|
# Media
|
||||||
|
", XF86AudioPlay, global, caelestia:mediaToggle"
|
||||||
|
", XF86AudioPause, global, caelestia:mediaToggle"
|
||||||
|
", XF86AudioNext, global, caelestia:mediaNext"
|
||||||
|
", XF86AudioPrev, global, caelestia:mediaPrev"
|
||||||
|
", XF86AudioStop, global, caelestia:mediaStop"
|
||||||
|
|
||||||
|
# Sound
|
||||||
|
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||||
|
", XF86AudioRaiseVolume, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0; wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"
|
||||||
|
", XF86AudioLowerVolume, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0; wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||||
|
];
|
||||||
|
|
||||||
|
bindin = [
|
||||||
|
# Launcher
|
||||||
|
"$mod, mouse:272, global, caelestia:launcherInterrupt"
|
||||||
|
"$mod, mouse:273, global, caelestia:launcherInterrupt"
|
||||||
|
"$mod, mouse:274, global, caelestia:launcherInterrupt"
|
||||||
|
"$mod, mouse:275, global, caelestia:launcherInterrupt"
|
||||||
|
"$mod, mouse:276, global, caelestia:launcherInterrupt"
|
||||||
|
"$mod, mouse:277, global, caelestia:launcherInterrupt"
|
||||||
|
"$mod, mouse_up, global, caelestia:launcherInterrupt"
|
||||||
|
"$mod, mouse_down, global, caelestia:launcherInterrupt"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
rounding = config.theme.rounding;
|
rounding = config.theme.rounding;
|
||||||
blur = config.theme.blur;
|
blur = config.theme.blur;
|
||||||
keyboardLayout = config.var.keyboardLayout;
|
keyboardLayout = config.var.keyboardLayout;
|
||||||
background = "rgba(" + config.lib.stylix.colors.base00 + "77)";
|
background = "rgba(" + config.lib.stylix.colors.base00 + "EE)";
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./animations.nix
|
./animations.nix
|
||||||
@@ -27,6 +27,8 @@ in {
|
|||||||
qt6.qtwayland
|
qt6.qtwayland
|
||||||
libsForQt5.qt5ct
|
libsForQt5.qt5ct
|
||||||
qt6Packages.qt6ct
|
qt6Packages.qt6ct
|
||||||
|
xcb-util-cursor
|
||||||
|
libxcb
|
||||||
hyprland-qtutils
|
hyprland-qtutils
|
||||||
adw-gtk3
|
adw-gtk3
|
||||||
hyprshot
|
hyprshot
|
||||||
@@ -37,13 +39,9 @@ in {
|
|||||||
wlr-randr
|
wlr-randr
|
||||||
brightnessctl
|
brightnessctl
|
||||||
gnome-themes-extra
|
gnome-themes-extra
|
||||||
libva
|
|
||||||
dconf
|
dconf
|
||||||
wayland-utils
|
wayland-utils
|
||||||
wayland-protocols
|
wayland-protocols
|
||||||
glib
|
|
||||||
direnv
|
|
||||||
meson
|
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
@@ -64,35 +62,23 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
monitor = [
|
monitor = [
|
||||||
"eDP-2,highres,0x0,1" # My internal laptop screen
|
|
||||||
"desc:AOC U34G2G1 0x00000E06,3440x1440@99.98,auto,1" # My external monitor
|
|
||||||
"desc:United Microelectr Corporation UMC SHARP,3840x2160,auto,2" # TV
|
|
||||||
",prefered,auto,1" # default
|
",prefered,auto,1" # default
|
||||||
];
|
];
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
"XDG_CURRENT_DESKTOP,Hyprland"
|
"XDG_CURRENT_DESKTOP,Hyprland"
|
||||||
"MOZ_ENABLE_WAYLAND,1"
|
|
||||||
"ANKI_WAYLAND,1"
|
|
||||||
"DISABLE_QT5_COMPAT,0"
|
|
||||||
"NIXOS_OZONE_WL,1"
|
|
||||||
"XDG_SESSION_TYPE,wayland"
|
"XDG_SESSION_TYPE,wayland"
|
||||||
"XDG_SESSION_DESKTOP,Hyprland"
|
"XDG_SESSION_DESKTOP,Hyprland"
|
||||||
|
"ANKI_WAYLAND,1"
|
||||||
|
"DISABLE_QT5_COMPAT,0"
|
||||||
"QT_AUTO_SCREEN_SCALE_FACTOR,1"
|
"QT_AUTO_SCREEN_SCALE_FACTOR,1"
|
||||||
"QT_QPA_PLATFORM=wayland,xcb"
|
"QT_QPA_PLATFORM,wayland;xcb"
|
||||||
|
"QT_QPA_PLATFORMTHEME,gtk3"
|
||||||
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
||||||
"ELECTRON_OZONE_PLATFORM_HINT,auto"
|
"ELECTRON_OZONE_PLATFORM_HINT,auto"
|
||||||
"__GL_GSYNC_ALLOWED,0"
|
|
||||||
"__GL_VRR_ALLOWED,0"
|
|
||||||
"DISABLE_QT5_COMPAT,0"
|
|
||||||
"DIRENV_LOG_FORMAT,"
|
"DIRENV_LOG_FORMAT,"
|
||||||
"WLR_DRM_NO_ATOMIC,1"
|
|
||||||
"WLR_BACKEND,vulkan"
|
|
||||||
"WLR_RENDERER,vulkan"
|
|
||||||
"WLR_NO_HARDWARE_CURSORS,1"
|
|
||||||
"SDL_VIDEODRIVER,wayland"
|
"SDL_VIDEODRIVER,wayland"
|
||||||
"CLUTTER_BACKEND,wayland"
|
"CLUTTER_BACKEND,wayland"
|
||||||
"AQ_DRM_DEVICES,/dev/dri/card2:/dev/dri/card1" # CHANGEME: Related to the GPU
|
|
||||||
];
|
];
|
||||||
|
|
||||||
cursor = {
|
cursor = {
|
||||||
@@ -128,7 +114,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
master = {
|
master = {
|
||||||
new_status = true;
|
new_status = "slave";
|
||||||
allow_small_split = true;
|
allow_small_split = true;
|
||||||
mfact = 0.5;
|
mfact = 0.5;
|
||||||
};
|
};
|
||||||
@@ -136,17 +122,18 @@ in {
|
|||||||
gesture = "3, horizontal, workspace";
|
gesture = "3, horizontal, workspace";
|
||||||
|
|
||||||
windowrule = [
|
windowrule = [
|
||||||
|
"match:class .*, suppress_event maximize"
|
||||||
|
|
||||||
"match:class proton-authenticator, float on"
|
"match:class proton-authenticator, float on"
|
||||||
"match:class proton-authenticator, suppress_event maximize"
|
|
||||||
"match:class proton-authenticator, center on"
|
"match:class proton-authenticator, center on"
|
||||||
"match:class proton-authenticator, size 500 400"
|
"match:class proton-authenticator, size 500 400"
|
||||||
|
|
||||||
"match:class protonvpn-app, float on"
|
"match:class protonvpn-app, float on"
|
||||||
"match:class protonvpn-app, center on"
|
"match:class protonvpn-app, center on"
|
||||||
"match:class protonvpn-app, size 500 400"
|
"match:class protonvpn-app, size 500 400"
|
||||||
];
|
];
|
||||||
|
|
||||||
misc = {
|
misc = {
|
||||||
vfr = true;
|
|
||||||
disable_hyprland_logo = true;
|
disable_hyprland_logo = true;
|
||||||
disable_splash_rendering = true;
|
disable_splash_rendering = true;
|
||||||
disable_autoreload = true;
|
disable_autoreload = true;
|
||||||
@@ -168,6 +155,10 @@ in {
|
|||||||
clickfinger_behavior = true;
|
clickfinger_behavior = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ecosystem = {
|
||||||
|
no_update_news = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,4 +39,6 @@
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
command = "bash ${keyboard-backlight}/bin/keyboard-backlight &";
|
command = "bash ${keyboard-backlight}/bin/keyboard-backlight &";
|
||||||
in {wayland.windowManager.hyprland.settings.exec-once = [command];}
|
in {
|
||||||
|
wayland.windowManager.hyprland.settings.exec-once = [command];
|
||||||
|
}
|
||||||
|
|||||||
@@ -6,11 +6,9 @@
|
|||||||
settings = {
|
settings = {
|
||||||
ipc = "on";
|
ipc = "on";
|
||||||
splash = false;
|
splash = false;
|
||||||
splash_offset = 2.0;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.user.services.hyprpaper.Unit.After =
|
systemd.user.services.hyprpaper.Unit.After = lib.mkForce "graphical-session.target";
|
||||||
lib.mkForce "graphical-session.target";
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.exec-once = [
|
wayland.windowManager.hyprland.settings.exec-once = [
|
||||||
"systemctl --user enable --now hyprpaper.service"
|
"systemctl --user enable --now hyprpaper.service"
|
||||||
|
|||||||
@@ -1,23 +1,64 @@
|
|||||||
# Mime type associations for the system.
|
# Mime type associations for the system.
|
||||||
{lib, ...}:
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
defaultApps = {
|
defaultApps = {
|
||||||
# check desktop files here: `ls $(echo $XDG_DATA_DIRS| sed "s/:/ /g")`
|
# check desktop files here: `ls $(echo $XDG_DATA_DIRS| sed "s/:/ /g")`
|
||||||
browser = ["vivaldi-stable.desktop"];
|
text = [
|
||||||
text = ["org.gnome.TextEditor.desktop"];
|
# "org.gnome.TextEditor.desktop"
|
||||||
|
"nvim-ghostty.desktop"
|
||||||
|
];
|
||||||
|
code = ["nvim-ghostty.desktop"];
|
||||||
image = ["imv-dir.desktop"];
|
image = ["imv-dir.desktop"];
|
||||||
audio = ["mpv.desktop"];
|
audio = ["mpv.desktop"];
|
||||||
video = ["mpv.desktop"];
|
video = ["mpv.desktop"];
|
||||||
directory = ["thunar.desktop"];
|
directory = ["thunar.desktop"];
|
||||||
office = ["libreoffice.desktop"];
|
office = ["libreoffice.desktop"];
|
||||||
pdf = ["zathura.desktop"];
|
pdf = ["zathura.desktop"];
|
||||||
terminal = ["kitty.desktop"];
|
terminal = ["ghostty.desktop"];
|
||||||
discord = ["discord.desktop"];
|
|
||||||
archive = ["xarchiver.desktop"];
|
archive = ["xarchiver.desktop"];
|
||||||
};
|
};
|
||||||
|
|
||||||
mimeMap = {
|
mimeMap = {
|
||||||
text = ["text/plain"];
|
text = ["text/plain"];
|
||||||
|
code = [
|
||||||
|
"text/x-csrc"
|
||||||
|
"text/x-chdr"
|
||||||
|
"text/x-c++src"
|
||||||
|
"text/x-c++hdr"
|
||||||
|
"text/x-rust"
|
||||||
|
"text/x-go"
|
||||||
|
"text/x-java"
|
||||||
|
"text/x-csharp"
|
||||||
|
|
||||||
|
"text/x-python"
|
||||||
|
"application/x-shellscript"
|
||||||
|
"text/javascript"
|
||||||
|
"application/javascript"
|
||||||
|
"text/css"
|
||||||
|
"text/x-php"
|
||||||
|
"text/x-ruby"
|
||||||
|
|
||||||
|
"application/json"
|
||||||
|
"application/xml"
|
||||||
|
"text/xml"
|
||||||
|
"text/x-yaml"
|
||||||
|
"application/x-yaml"
|
||||||
|
"application/toml"
|
||||||
|
"text/x-nix"
|
||||||
|
"text/markdown"
|
||||||
|
|
||||||
|
"text/x-dockerfile"
|
||||||
|
"application/x-yaml"
|
||||||
|
"text/x-terraform"
|
||||||
|
|
||||||
|
"application/x-perl"
|
||||||
|
"text/x-lua"
|
||||||
|
"text/x-haskell"
|
||||||
|
];
|
||||||
image = [
|
image = [
|
||||||
"image/bmp"
|
"image/bmp"
|
||||||
"image/gif"
|
"image/gif"
|
||||||
@@ -49,13 +90,6 @@ with lib; let
|
|||||||
"video/x-msvideo"
|
"video/x-msvideo"
|
||||||
];
|
];
|
||||||
directory = ["inode/directory"];
|
directory = ["inode/directory"];
|
||||||
browser = [
|
|
||||||
"text/html"
|
|
||||||
"x-scheme-handler/about"
|
|
||||||
"x-scheme-handler/http"
|
|
||||||
"x-scheme-handler/https"
|
|
||||||
"x-scheme-handler/unknown"
|
|
||||||
];
|
|
||||||
office = [
|
office = [
|
||||||
"application/vnd.oasis.opendocument.text"
|
"application/vnd.oasis.opendocument.text"
|
||||||
"application/vnd.oasis.opendocument.spreadsheet"
|
"application/vnd.oasis.opendocument.spreadsheet"
|
||||||
@@ -76,14 +110,27 @@ with lib; let
|
|||||||
"application/7z"
|
"application/7z"
|
||||||
"application/*tar"
|
"application/*tar"
|
||||||
];
|
];
|
||||||
discord = ["x-scheme-handler/discord"];
|
};
|
||||||
|
|
||||||
|
nvim-ghostty = pkgs.makeDesktopItem {
|
||||||
|
name = "nvim-ghostty";
|
||||||
|
desktopName = "Neovim (Ghostty)";
|
||||||
|
exec = ''ghostty --title="Neovim Editor" -e nvim %F'';
|
||||||
|
terminal = false;
|
||||||
|
categories = [
|
||||||
|
"Development"
|
||||||
|
"TextEditor"
|
||||||
|
];
|
||||||
|
mimeTypes = mimeMap.code ++ mimeMap.text;
|
||||||
};
|
};
|
||||||
|
|
||||||
associations = with lists;
|
associations = with lists;
|
||||||
listToAttrs (flatten (mapAttrsToList
|
listToAttrs (
|
||||||
(key: map (type: attrsets.nameValuePair type defaultApps."${key}"))
|
flatten (mapAttrsToList (key: map (type: attrsets.nameValuePair type defaultApps."${key}")) mimeMap)
|
||||||
mimeMap));
|
);
|
||||||
in {
|
in {
|
||||||
|
home.packages = [nvim-ghostty];
|
||||||
|
|
||||||
xdg = {
|
xdg = {
|
||||||
configFile."mimeapps.list".force = true;
|
configFile."mimeapps.list".force = true;
|
||||||
mimeApps = {
|
mimeApps = {
|
||||||
|
|||||||
@@ -11,9 +11,8 @@
|
|||||||
../../nixos/sddm.nix
|
../../nixos/sddm.nix
|
||||||
../../nixos/users.nix
|
../../nixos/users.nix
|
||||||
../../nixos/utils.nix
|
../../nixos/utils.nix
|
||||||
../../nixos/tailscale.nix
|
|
||||||
../../nixos/hyprland.nix
|
../../nixos/hyprland.nix
|
||||||
../../nixos/docker.nix
|
../../nixos/usbguard.nix
|
||||||
|
|
||||||
../../nixos/omen.nix # CHANGEME: For my laptop only, remove this (OMEN 16)
|
../../nixos/omen.nix # CHANGEME: For my laptop only, remove this (OMEN 16)
|
||||||
|
|
||||||
@@ -22,6 +21,29 @@
|
|||||||
./variables.nix
|
./variables.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# USBGuard:
|
||||||
|
# Allow all USB devices until a proper policy is configured.
|
||||||
|
# Run `sudo usbguard generate-policy` with your devices plugged in,
|
||||||
|
# then set rules = "<output>" and switch implicitPolicyTarget to "block".
|
||||||
|
# services.usbguard.implicitPolicyTarget = lib.mkForce "allow";
|
||||||
|
|
||||||
|
services.usbguard.rules = ''
|
||||||
|
allow id 1532:02a1 serial "" name "Razer Ornata V3" hash "wfuIjBhhGuge8gflyA526SKqKoy8rHJZQZ+2o6usMiE=" parent-hash "MSXcPAlZqkpTyZQylOhSIB8eMfST2AzVHV9EbrBGTWc=" with-interface { 03:01:01 03:00:01 03:00:02 } with-connect-type "unknown"
|
||||||
|
allow id 1d6b:0002 serial "0000:05:00.3" name "xHCI Host Controller" hash "4a4NgfdUaJO43rkCzmWRSeHHR/uUh5+SNsXnhosm9qs=" parent-hash "ldMchY4Tt4GPUYo30eNGvai+Fs/EdnVY3vMyxJUq4Nk=" with-interface 09:00:00 with-connect-type ""
|
||||||
|
allow id 1d6b:0003 serial "0000:05:00.3" name "xHCI Host Controller" hash "d+DNGWARDtv9nEK2ZvnNOCtFernuMu5/e/oZ7kCppqQ=" parent-hash "ldMchY4Tt4GPUYo30eNGvai+Fs/EdnVY3vMyxJUq4Nk=" with-interface 09:00:00 with-connect-type ""
|
||||||
|
allow id 0bda:c85c serial "00e04c000001" name "Bluetooth Radio" hash "Q/wlToV8WQgEYHBW/UIhnSwCCusCGqAR2D5gspSCImQ=" parent-hash "4a4NgfdUaJO43rkCzmWRSeHHR/uUh5+SNsXnhosm9qs=" with-interface { e0:01:01 e0:01:01 e0:01:01 e0:01:01 e0:01:01 e0:01:01 e0:01:01 e0:01:01 } with-connect-type "hardwired"
|
||||||
|
allow id 30c9:009f serial "01.00.00" name "HP True Vision FHD Camera" hash "eYW5fqReJd29tfHXkEktKC63dGfDpmlRMo5uMGUWwME=" parent-hash "icotY3rI59mWiKsGxc59BGZZeBjfbuH0b4NUByj3cbQ=" with-interface { 0e:01:01 0e:02:01 0e:02:01 0e:02:01 0e:02:01 0e:02:01 0e:02:01 0e:02:01 0e:02:01 0e:02:01 0e:02:01 0e:02:01 0e:02:01 fe:01:01 } with-connect-type "hardwired"
|
||||||
|
allow id 03f0:036b serial "" name "HP USB-C Dock G5" hash "iPFGrgGz0sWgKQjWD/F8eNOhkeR728dTG8JJtkUSvuM=" parent-hash "Hp8B0Enf+ACRT2tyy0EqXj7eNsFDAnTRZadzuh/Iqd4=" with-interface { 09:00:01 09:00:02 } with-connect-type "hotplug"
|
||||||
|
allow id 03f0:066b serial "" name "HP USB-C Dock G5" hash "JHDjLFApQNqijjmuKdJSWH5+1oLL7S6LQ9QHTAk5fTk=" parent-hash "rJ3LKdvkCK3SUrCU3lV8qVbmPjA+r9Fe5106x2HlgK4=" with-interface 09:00:00 with-connect-type "hotplug"
|
||||||
|
allow id 03f0:056b serial "201604140001" name "USB Audio" hash "OxQ8HQenW3/4HSGEBOSYFS15rXDTOaNDnjMbICweHgw=" parent-hash "iPFGrgGz0sWgKQjWD/F8eNOhkeR728dTG8JJtkUSvuM=" with-interface { 01:01:00 01:02:00 01:02:00 01:02:00 01:02:00 03:00:00 } with-connect-type "unknown"
|
||||||
|
allow id 03f0:086b serial "" name "USB2734" hash "MSXcPAlZqkpTyZQylOhSIB8eMfST2AzVHV9EbrBGTWc=" parent-hash "iPFGrgGz0sWgKQjWD/F8eNOhkeR728dTG8JJtkUSvuM=" with-interface { 09:00:01 09:00:02 } with-connect-type "unknown"
|
||||||
|
allow id 03f0:046b serial "11AD1D0A89EA2D08310E0B00" name "HP USB-C Dock G5" hash "DEGeuj1u4lwqrzp0UksFX7mSEY9JnGLxg7yxGbglAKE=" parent-hash "iPFGrgGz0sWgKQjWD/F8eNOhkeR728dTG8JJtkUSvuM=" with-interface { 11:00:00 ff:03:00 03:00:00 } with-connect-type "unknown"
|
||||||
|
allow id 03f0:076b serial "" name "USB5734" hash "BshoqybYo0IKgoDORYPRtbhhlmQrYAxPQb2EAm1JsWA=" parent-hash "JHDjLFApQNqijjmuKdJSWH5+1oLL7S6LQ9QHTAk5fTk=" with-interface 09:00:00 with-connect-type "unknown"
|
||||||
|
allow id 0bda:8153 serial "000001000000" name "USB 10/100/1000 LAN" hash "utEnXKJ57kRUbPcGUaNWhEyoOEbLOYAFxvlsyC0PZkk=" parent-hash "JHDjLFApQNqijjmuKdJSWH5+1oLL7S6LQ9QHTAk5fTk=" with-interface { ff:ff:00 02:06:00 0a:00:00 0a:00:00 } with-connect-type "unknown"
|
||||||
|
allow id 046d:0ab7 serial "2046BAB04T68" name "Blue Microphones" hash "cC6AQ2e1Q/BeFeostpbf1mH2WpoUmt6bhau4NlA3niU=" parent-hash "MSXcPAlZqkpTyZQylOhSIB8eMfST2AzVHV9EbrBGTWc=" with-interface { 01:01:00 01:02:00 01:02:00 01:02:00 01:02:00 01:02:00 01:02:00 03:00:00 } with-connect-type "unknown"
|
||||||
|
allow id 13fd:5900 serial "50026B76861EE752 " name "External" hash "Xebp3uQRrhCKBHdGRVKXH0I5Vdawi4mSpuu0ttKgDyE=" parent-hash "BshoqybYo0IKgoDORYPRtbhhlmQrYAxPQb2EAm1JsWA=" with-interface { 08:06:50 08:06:62 } with-connect-type "unknown"
|
||||||
|
'';
|
||||||
|
|
||||||
home-manager.users."${config.var.username}" = import ./home.nix;
|
home-manager.users."${config.var.username}" = import ./home.nix;
|
||||||
|
|
||||||
# Don't touch this
|
# Don't touch this
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
nixpkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
nixpkgs.lib.nixosSystem {
|
||||||
|
modules = [
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(final: prev: {
|
||||||
|
# FIXME: Workaround: Mesa crash with AMD GPU + Wayland + Qt 6.11.0
|
||||||
|
qutebrowser = prev.symlinkJoin {
|
||||||
|
name = "qutebrowser";
|
||||||
|
paths = [prev.qutebrowser];
|
||||||
|
buildInputs = [prev.makeWrapper];
|
||||||
|
postBuild = ''
|
||||||
|
wrapProgram $out/bin/qutebrowser \
|
||||||
|
--set LIBGL_ALWAYS_SOFTWARE 1
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
_module.args = {inherit inputs;};
|
||||||
|
}
|
||||||
|
inputs.nixos-hardware.nixosModules.omen-16-n0005ne
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
inputs.stylix.nixosModules.stylix
|
||||||
|
inputs.nix-index-database.nixosModules.default
|
||||||
|
./configuration.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -11,7 +11,13 @@
|
|||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "uas" "usbhid" "sd_mod"];
|
boot.initrd.availableKernelModules = [
|
||||||
|
"nvme"
|
||||||
|
"xhci_pci"
|
||||||
|
"uas"
|
||||||
|
"usbhid"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
boot.initrd.kernelModules = [];
|
boot.initrd.kernelModules = [];
|
||||||
boot.kernelModules = ["kvm-amd"];
|
boot.kernelModules = ["kvm-amd"];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
@@ -24,7 +30,10 @@
|
|||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
device = "/dev/disk/by-uuid/5251-9B85";
|
device = "/dev/disk/by-uuid/5251-9B85";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = ["fmask=0077" "dmask=0077"];
|
options = [
|
||||||
|
"fmask=0077"
|
||||||
|
"dmask=0077"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [];
|
swapDevices = [];
|
||||||
|
|||||||
+28
-53
@@ -1,26 +1,26 @@
|
|||||||
{
|
{config, ...}: {
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
imports = [
|
||||||
# Programs
|
# Programs
|
||||||
../../home/programs/vivaldi
|
../../home/programs/brave
|
||||||
../../home/programs/proton
|
../../home/programs/proton
|
||||||
|
../../home/programs/proton/auto-start-vpn.nix
|
||||||
../../home/programs/ghostty
|
../../home/programs/ghostty
|
||||||
../../home/programs/nvf
|
../../home/programs/nvf
|
||||||
../../home/programs/shell
|
../../home/programs/shell
|
||||||
../../home/programs/fetch
|
|
||||||
../../home/programs/git
|
../../home/programs/git
|
||||||
../../home/programs/git/lazygit.nix
|
../../home/programs/git/lazygit.nix
|
||||||
../../home/programs/git/signing.nix # Change the key or remove this file
|
../../home/programs/git/signing.nix # CHANGEME: Change the key or remove this file
|
||||||
../../home/programs/spicetify
|
../../home/programs/spicetify
|
||||||
../../home/programs/thunar
|
../../home/programs/thunar
|
||||||
../../home/programs/discord
|
|
||||||
../../home/programs/nixy
|
../../home/programs/nixy
|
||||||
../../home/programs/zathura
|
|
||||||
../../home/programs/nightshift
|
../../home/programs/nightshift
|
||||||
|
../../home/programs/qutebrowser
|
||||||
|
../../home/programs/nix-utils
|
||||||
|
|
||||||
|
../../home/programs/group/basic-apps.nix
|
||||||
../../home/programs/group/cybersecurity.nix
|
../../home/programs/group/cybersecurity.nix
|
||||||
|
../../home/programs/group/dev.nix
|
||||||
|
../../home/programs/group/misc.nix
|
||||||
|
|
||||||
# System (Desktop environment like stuff)
|
# System (Desktop environment like stuff)
|
||||||
../../home/system/hyprland
|
../../home/system/hyprland
|
||||||
@@ -34,55 +34,30 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
|
||||||
# Apps
|
|
||||||
vlc # Video player
|
|
||||||
blanket # White-noise app
|
|
||||||
obsidian # Note taking app
|
|
||||||
textpieces # Manipulate texts
|
|
||||||
resources # Ressource monitor
|
|
||||||
gnome-clocks # Clocks app
|
|
||||||
gnome-text-editor # Basic graphic text editor
|
|
||||||
mpv # Video player
|
|
||||||
ticktick # Todo app
|
|
||||||
session-desktop # Session app, private messages
|
|
||||||
signal-desktop # Signal app, private messages
|
|
||||||
stirling-pdf # TODO: Server version
|
|
||||||
calibre
|
|
||||||
|
|
||||||
# Dev
|
|
||||||
go
|
|
||||||
bun
|
|
||||||
docker
|
|
||||||
nodejs
|
|
||||||
python3
|
|
||||||
jq
|
|
||||||
just
|
|
||||||
pnpm
|
|
||||||
air
|
|
||||||
duckdb
|
|
||||||
|
|
||||||
# Just cool
|
|
||||||
peaclock
|
|
||||||
cbonsai
|
|
||||||
pipes
|
|
||||||
cmatrix
|
|
||||||
fastfetch
|
|
||||||
|
|
||||||
# Backup
|
|
||||||
vscode
|
|
||||||
brave
|
|
||||||
];
|
|
||||||
|
|
||||||
inherit (config.var) username;
|
inherit (config.var) username;
|
||||||
homeDirectory = "/home/" + config.var.username;
|
homeDirectory = "/home/" + config.var.username;
|
||||||
|
file.".face" = {
|
||||||
|
source = ./profile_picture.png;
|
||||||
|
};
|
||||||
|
|
||||||
# Import a profile picture, used by the caelestia dashboard
|
sessionVariables = {
|
||||||
file.".face" = {source = ./profile_picture.png;};
|
AQ_DRM_DEVICES = "/dev/dri/card2:/dev/dri/card1"; # CHANGEME: Related to the GPU
|
||||||
|
};
|
||||||
|
|
||||||
# Don't touch this
|
# Don't touch this
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
wayland.windowManager.hyprland.settings.monitor = [
|
||||||
|
"eDP-2,highres,0x0,1" # My internal laptop screen
|
||||||
|
"desc:AOC U34G2G1 0x00000E06,3440x1440@99.98,auto,1" # My external monitor
|
||||||
|
];
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
home-manager.enable = true;
|
||||||
|
nixy = {
|
||||||
|
enable = true;
|
||||||
|
configDirectory = config.var.configDirectory;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,27 +1,41 @@
|
|||||||
# Those are my secrets, encrypted with sops
|
# Those are my secrets, encrypted with sops
|
||||||
# You shouldn't import this file, unless you edit it
|
# You shouldn't import this file, unless you edit it
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
inputs,
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
home = config.home.homeDirectory;
|
||||||
|
in {
|
||||||
imports = [inputs.sops-nix.homeManagerModules.sops];
|
imports = [inputs.sops-nix.homeManagerModules.sops];
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
age.keyFile = "/home/hadi/.config/sops/age/keys.txt";
|
age.keyFile = "${home}/.config/sops/age/keys.txt";
|
||||||
defaultSopsFile = ./secrets.yaml;
|
defaultSopsFile = ./secrets.yaml;
|
||||||
secrets = {
|
secrets = {
|
||||||
sshconfig = {path = "/home/hadi/.ssh/config";};
|
ssh-config = {
|
||||||
github-key = {path = "/home/hadi/.ssh/github";};
|
path = "${home}/.ssh/config";
|
||||||
jack-key = {path = "/home/hadi/.ssh/jack";};
|
};
|
||||||
signing-key = {path = "/home/hadi/.ssh/key";};
|
github-key = {
|
||||||
signing-pub-key = {path = "/home/hadi/.ssh/key.pub";};
|
path = "${home}/.ssh/github";
|
||||||
|
};
|
||||||
|
jack-key = {
|
||||||
|
path = "${home}/.ssh/jack";
|
||||||
|
};
|
||||||
|
signing-key = {
|
||||||
|
path = "${home}/.ssh/key";
|
||||||
|
};
|
||||||
|
signing-pub-key = {
|
||||||
|
path = "${home}/.ssh/key.pub";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".config/nixos/.sops.yaml".text = ''
|
home.file.".config/nixos/.sops.yaml".text = ''
|
||||||
keys:
|
keys:
|
||||||
- &primary age12yvtj49pfh3fqzqflscm0ek4yzrjhr6cqhn7x89gdxnlykq0xudq5c7334
|
- &primary age12yvtj49pfh3fqzqflscm0ek4yzrjhr6cqhn7x89gdxnlykq0xudq5c7334
|
||||||
|
- &work age1c8pawdsxptfslgrz2c56s39mrtnjzc5mm3hfzgr2wdwu2v6vfsdsupjsq6
|
||||||
creation_rules:
|
creation_rules:
|
||||||
- path_regex: hosts/laptop/secrets/secrets.yaml$
|
- path_regex: hosts/laptop/secrets/secrets.yaml$
|
||||||
key_groups:
|
key_groups:
|
||||||
@@ -31,10 +45,17 @@
|
|||||||
key_groups:
|
key_groups:
|
||||||
- age:
|
- age:
|
||||||
- *primary
|
- *primary
|
||||||
|
- path_regex: hosts/work/secrets/secrets.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *work
|
||||||
'';
|
'';
|
||||||
|
|
||||||
systemd.user.services.mbsync.Unit.After = ["sops-nix.service"];
|
systemd.user.services.mbsync.Unit.After = ["sops-nix.service"];
|
||||||
home.packages = with pkgs; [sops age];
|
home.packages = with pkgs; [
|
||||||
|
sops
|
||||||
|
age
|
||||||
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.exec-once = ["systemctl --user start sops-nix"];
|
wayland.windowManager.hyprland.settings.exec-once = ["systemctl --user start sops-nix"];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
pia: ENC[AES256_GCM,data:0bnhHeVqKSLHVimd78a94ShHlO3+LUoZ4oiKD3cnBYkaZsw=,iv:S+/IChlFlqdI+PyFF+Ti4AJUkch2MS0qKiqHL1Q3RMk=,tag:+v2kV70ou84eIc01dKnAhA==,type:str]
|
ssh-config: ENC[AES256_GCM,data:/TWslzoF2wtZ9T41H1y0wLNEx+Xzff8pQGr6AfEcACExRCv4rd5hD9pNAlmlcTtISJJBPEWY45WsLfSKuD4r3715IENM2biQUvlq47THfkGviQuQ6KAXiJxBQ/7qRNqGGt7WFRlWFRGYCiyjw9h4pOhovGgw8TU6tIgIsXjo0psclHoJoE4B3cSOby7DbN8jVI9NjpBGiQMXmUB3JVz7muC9F5EAs+XZUIl7TjQMxob3PiF5LqTJITODSxboAAk901rjS5gjQKpQKfj28TpU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fzcU6lp7JxobaICaO3zdmomUm7oabIUTrc3Kom3Wjw8ryqfqC1/SC0SHr5XGk2ygk0WnlQ4kNshqriL2dwbWAzy1Z/cTX9+aB/KNtC0U6zWG1bpnL3dgSgvhRiocIis/eNg1HWsLWVicmdebL/lXHztxFMdTuX/gWgQBotggTmx+OFGZfP9ZGlF3635mDxM/fEOCtTyA195dMicCUsjEpBegNtXsp+oOtxyRI0jSW47MBcXFP09f5ywELTPyz4eOUHO8sQ6UfJ6X,iv:KNQUlMPaiR4x1Fw+HZe/EOmh/gfsrqlefpq23uflz/8=,tag:illu42HKunQXnijjsUIvnQ==,type:str]
|
||||||
signing-pub-key: ENC[AES256_GCM,data:XuokZmCsnaNQ0rvVa3k81T4vtxw//r63xp1yHDLaNAMwA2r2bh6addl9WoAmm76g1rweqZrAAIw1PXDb90ubPaBP1iEHSkGZpwUpy/tOTePRdHMW2WtVvidpHQ==,iv:auB/bA89cJK6DnQi1BK2uldXRPyJfo+r7nl5qOLefUk=,tag:/I3kB6El1yesBMGOjJ+oHA==,type:str]
|
signing-pub-key: ENC[AES256_GCM,data:XuokZmCsnaNQ0rvVa3k81T4vtxw//r63xp1yHDLaNAMwA2r2bh6addl9WoAmm76g1rweqZrAAIw1PXDb90ubPaBP1iEHSkGZpwUpy/tOTePRdHMW2WtVvidpHQ==,iv:auB/bA89cJK6DnQi1BK2uldXRPyJfo+r7nl5qOLefUk=,tag:/I3kB6El1yesBMGOjJ+oHA==,type:str]
|
||||||
@@ -16,7 +14,7 @@ sops:
|
|||||||
cmVxVC8rVDlWMUdZaGw3bmdOaWZGS1EKYahBlc8XpB5UdKZQkvxbLcKQ/xkFJjWo
|
cmVxVC8rVDlWMUdZaGw3bmdOaWZGS1EKYahBlc8XpB5UdKZQkvxbLcKQ/xkFJjWo
|
||||||
FSfQWnjhe/a7BJtJEcKZkjOQU0mYqlSu+uT2RA9diCQeRUJPRF+nAw==
|
FSfQWnjhe/a7BJtJEcKZkjOQU0mYqlSu+uT2RA9diCQeRUJPRF+nAw==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2025-09-27T13:28:57Z"
|
lastmodified: "2026-04-25T11:23:30Z"
|
||||||
mac: ENC[AES256_GCM,data:XMPDLGHwTYIxgEz9Stj7j+lWgAOpzkEsnoRdWVVs4798m1sQRIyUuvEiCgbHoAktajrAAzXq3GZ4HJ1dfE1fDWGh+B7WwRoJKxtP6qI8Ub4h7lSiDsxJhr8ieqm5bzmHZkn8VJkrqBrSSXesirLprRLR5yZOVLAgco0lg9boM1Y=,iv:pYA5oz8cldKw1Ai7k2LCQBipE2keZa49L3SHcL+eDp0=,tag:4kVsC95SSPCCSZDf6qDeqA==,type:str]
|
mac: ENC[AES256_GCM,data:ZnLSwtyhaiMIcXxzlwhtk0dWVnOkn0avfeRezPPNBUXd0oyJY+krBsLXJdSNPHV/X/L58476okYjUzfIQzEAkrL9Fb7v/Jt0aw4SDrxbF+qbcfdvsWPUjFDJIPovuf3ee3o7iXGU2ItGTaJa2eFACoyd37KVc7jZd6gvYYAyULA=,iv:7IKqe0c5CTgJrS7OgCQWhtxaCVKo+UWEibttFUVCWGM=,tag:OfCrKPzrPBZThCR1j7IB7A==,type:str]
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.10.2
|
version: 3.12.2
|
||||||
|
|||||||
@@ -5,16 +5,13 @@
|
|||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
# Choose your theme here:
|
# Choose your theme here:
|
||||||
../../themes/rose-pine.nix
|
../../themes/darkviolet.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config.var = {
|
config.var = {
|
||||||
hostname = "nixy";
|
hostname = "h-laptop";
|
||||||
username = "hadi";
|
username = "hadi";
|
||||||
configDirectory =
|
configDirectory = "/home/" + config.var.username + "/.config/nixos"; # The path of the nixos configuration directory
|
||||||
"/home/"
|
|
||||||
+ config.var.username
|
|
||||||
+ "/.config/nixos"; # The path of the nixos configuration directory
|
|
||||||
|
|
||||||
keyboardLayout = "fr";
|
keyboardLayout = "fr";
|
||||||
|
|
||||||
|
|||||||
@@ -6,19 +6,27 @@
|
|||||||
../../nixos/systemd-boot.nix
|
../../nixos/systemd-boot.nix
|
||||||
../../nixos/users.nix
|
../../nixos/users.nix
|
||||||
../../nixos/utils.nix
|
../../nixos/utils.nix
|
||||||
../../nixos/docker.nix
|
../../nixos/amd-graphics.nix
|
||||||
../../nixos/tailscale.nix
|
|
||||||
|
|
||||||
# NixOS server modules
|
# NixOS server modules
|
||||||
../../server-modules/ssh.nix
|
../../server-modules/ssh.nix
|
||||||
# ../../server-modules/bitwarden.nix
|
|
||||||
../../server-modules/firewall.nix
|
../../server-modules/firewall.nix
|
||||||
../../server-modules/nginx.nix
|
../../server-modules/cloudflared.nix
|
||||||
../../server-modules/glance.nix
|
../../server-modules/glance
|
||||||
../../server-modules/adguardhome.nix
|
../../server-modules/adguardhome.nix
|
||||||
../../server-modules/arr.nix
|
../../server-modules/arr.nix
|
||||||
|
../../server-modules/blog.nix
|
||||||
|
../../server-modules/awesome-wallpapers.nix
|
||||||
|
../../server-modules/iknowyou.nix
|
||||||
|
../../server-modules/stirling-pdf.nix
|
||||||
|
../../server-modules/cyberchef.nix
|
||||||
|
../../server-modules/mazanoke.nix
|
||||||
|
../../server-modules/kernel-hardening.nix
|
||||||
|
../../server-modules/fail2ban.nix
|
||||||
|
../../server-modules/default-creds.nix
|
||||||
|
../../server-modules/umami.nix
|
||||||
|
../../server-modules/gitea.nix
|
||||||
../../server-modules/mealie.nix
|
../../server-modules/mealie.nix
|
||||||
../../server-modules/eleakxir.nix
|
|
||||||
|
|
||||||
# You should let those lines as is
|
# You should let those lines as is
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
nixpkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
nixpkgs.lib.nixosSystem {
|
||||||
|
modules = [
|
||||||
|
{_module.args = {inherit inputs;};}
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
inputs.stylix.nixosModules.stylix
|
||||||
|
inputs.sops-nix.nixosModules.sops
|
||||||
|
inputs.nixarr.nixosModules.default
|
||||||
|
# inputs.eleakxir.nixosModules.eleakxir
|
||||||
|
inputs.nix-index-database.nixosModules.default
|
||||||
|
inputs.default-creds.nixosModules.default
|
||||||
|
./configuration.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -9,7 +9,14 @@
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
||||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
|
boot.initrd.availableKernelModules = [
|
||||||
|
"xhci_pci"
|
||||||
|
"ahci"
|
||||||
|
"nvme"
|
||||||
|
"usbhid"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
boot.initrd.kernelModules = ["dm-snapshot"];
|
boot.initrd.kernelModules = ["dm-snapshot"];
|
||||||
boot.kernelModules = ["kvm-amd"];
|
boot.kernelModules = ["kvm-amd"];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
@@ -20,12 +27,18 @@
|
|||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
device = "/dev/disk/by-uuid/DD15-1125";
|
device = "/dev/disk/by-uuid/DD15-1125";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = ["fmask=0077" "dmask=0077"];
|
options = [
|
||||||
|
"fmask=0077"
|
||||||
|
"dmask=0077"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
fileSystems."/mnt/data" = {
|
fileSystems."/mnt/data" = {
|
||||||
device = "/dev/disk/by-uuid/0b055155-0134-448c-b1ca-e81030ff064e";
|
device = "/dev/disk/by-uuid/0b055155-0134-448c-b1ca-e81030ff064e";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = ["subvol=/" "compress=zstd"]; # adapte selon si t'as des subvolumes
|
options = [
|
||||||
|
"subvol=/"
|
||||||
|
"compress=zstd"
|
||||||
|
]; # adapte selon si t'as des subvolumes
|
||||||
};
|
};
|
||||||
swapDevices = [];
|
swapDevices = [];
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
@@ -35,6 +48,5 @@
|
|||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode =
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-30
@@ -1,8 +1,4 @@
|
|||||||
{
|
{config, ...}: {
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
imports = [
|
||||||
# Mostly user-specific configuration
|
# Mostly user-specific configuration
|
||||||
./variables.nix
|
./variables.nix
|
||||||
@@ -10,42 +6,26 @@
|
|||||||
# Programs
|
# Programs
|
||||||
../../home/programs/nvf
|
../../home/programs/nvf
|
||||||
../../home/programs/shell
|
../../home/programs/shell
|
||||||
../../home/programs/fetch
|
|
||||||
../../home/programs/git
|
../../home/programs/git
|
||||||
../../home/programs/lazygit
|
../../home/programs/git/lazygit.nix
|
||||||
|
../../home/programs/nixy
|
||||||
|
../../home/programs/nix-utils
|
||||||
|
|
||||||
# Scripts
|
../../home/programs/group/dev.nix
|
||||||
../../home/scripts # All scripts
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
inherit (config.var) username;
|
inherit (config.var) username;
|
||||||
homeDirectory = "/home/" + config.var.username;
|
homeDirectory = "/home/" + config.var.username;
|
||||||
|
|
||||||
packages = with pkgs; [
|
|
||||||
# Dev
|
|
||||||
go
|
|
||||||
nodejs
|
|
||||||
python3
|
|
||||||
jq
|
|
||||||
just
|
|
||||||
pnpm
|
|
||||||
wireguard-tools
|
|
||||||
duckdb
|
|
||||||
|
|
||||||
# Utils
|
|
||||||
zip
|
|
||||||
unzip
|
|
||||||
optipng
|
|
||||||
pfetch
|
|
||||||
btop
|
|
||||||
fastfetch
|
|
||||||
tailscale
|
|
||||||
];
|
|
||||||
|
|
||||||
# Don't touch this
|
# Don't touch this
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
programs.nixy = {
|
||||||
|
enable = true;
|
||||||
|
configDirectory = config.var.configDirectory;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,5 +26,8 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [sops age];
|
environment.systemPackages = with pkgs; [
|
||||||
|
sops
|
||||||
|
age
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
|
umami-secret: ENC[AES256_GCM,data:tImpd4sD92Omf/YFB8YE4gxAu+g801wQNR+k5rhY6AbzIIYOzpVmQL4XGjfp9Teky3olii4s3XTcmTyuMoxMWg==,iv:QFAEzYnAnxOOtrHWiM2IkvSs0Aqk3s1T5X7j5WC+tO8=,tag:FIbgHLfRVMJ2qZ6dOJ8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t+YYdCPw8/cd0PIx2D6geh1c28,iv:wl+RG24mXYMklD8CBGXVD36DMhlWT/7zh8ZMvr7vgOk=,tag:OJhqF8PoXotr7IsyFW6q1g==,type:str]
|
github-key: ENC[AES256_GCM,data:NRYhcBIwGJEV13+YECLR+2IErsn/7clbnkx0Mltr7dQajSb5WHZ3QDH0KQPylEHhplE5IVS0h4I0z+Pb1B0UteCxFmJ5wZq+2BKZkvE7G3dojqBpgHcVqJV2GLEJkRjlHfRgsbq/OBe8xcsPh20P1KUyP0WIwVbpt+9dFWGxEGYkp2uSyuBIJ98kElt0zuVgl7WcYoDO7v5WmGzZfla+yZwURvMk8zcM3gopo+4KL6YnYUs+UA3VlBBn6VK4Nvbqy6X0R0+ZA5HHAXg+OFgGmfWnENZmsyQJHXEchGGgEldzThkQ4r8yMkgN/ax+AGouLyzbITapGE4sE11FFgL6Hmp4pSXxl3UAGF+cvV5pIujbb28CXmSPRMyYpoNxI93PSYz/txAzE6Cr2dgwxR4zpMelv4i6IaGnY8NgpY8jp2Y6C0uuJxJCN0RtnjQw1rM2uRnm7vMGyU7XXz9DEVfGnYpTWnykXsEjHE5DVGy80ejYQlc6dtmf3vdTWpt+YYdCPw8/cd0PIx2D6geh1c28,iv:wl+RG24mXYMklD8CBGXVD36DMhlWT/7zh8ZMvr7vgOk=,tag:OJhqF8PoXotr7IsyFW6q1g==,type:str]
|
||||||
cloudflare-dns-token: ENC[AES256_GCM,data:JIXUtVDpYS9B74W0ooj50kd4v2+PX+FdF218gvgaS04rYATu4N6w9KEFPfdQqLjUmVihzV6s/IR1fg==,iv:AlbQ86kvFQbetvmFwt/hEyUcqKTI+XzL/NvSMXW9wm4=,tag:1JQeK4KrTDa6Kz+JhWxkxQ==,type:str]
|
adguard-pwd: ENC[AES256_GCM,data:CAmZFpKN6FFRlCk=,iv:cz45T/z2ZYHNC46FNVp2YHmdhXD4ERhM31+Jo+9PkSk=,tag:GTUvzkYSP4flXs/HUNGYhw==,type:str]
|
||||||
nextclo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YfFlKpll6JLifk8sML4A+94UPR8b89guXn7kBkLg1Y1oIAyguCdKpNOD31nXBMFF0nTcmCwyshDySaGTfJDgox65/77AiN1wH,iv:cdu6lBjLnEEfSFmWMC4Vn2sLKsvpCaatzXlgRNkEMeA=,tag:y1rAeNPB+DNGTpnP94iQrA==,type:str]
|
wireguard-pia: ENC[AES256_GCM,data:2IvJARGhesMuH9RdWzsyrwA7eqrhLyacQqZ1RNEkGOPUkQGX4uimKBSzkxXRy/haZ4V2k73JdLSaB9rAuI0n65GmWHmarwZekOyhRZSNb+zvFgw5BPZmywG1wR2HiTGR/qILovAaz47q/VnohUnjbbMCUvarC4PytWGxMUH96GIgZar8HjHFtK8grCSxlvpHKiDeKx8VSXnY/Pxj1EplBtIqwmtAeZdf/VjtwOL0nY54doPwHdIAvJ0B8Cu0a1zJIGEbV1NlKIHEJ1YA7rmv1ODkBnbXbIHMxAR3jeqR/UDqhDmXe41KujhiJI7nNeO7FKo2v92jK3fSbxYKatLrzXktHpE9JsMYVBXzTK7yAXPgoDdgLXzWH0OrJGBSisPrvqmxUko7MPreuwVYfFlKpll6JLifk8sML4A+94UPR8b89guXn7kBkLg1Y1oIAyguCdKpNOD31nXBMFF0nTcmCwyshDySaGTfJDgox65/77AiN1wH,iv:cdu6lBjLnEEfSFmWMC4Vn2sLKsvpCaatzXlgRNkEMeA=,tag:y1rAeNPB+DNGTpnP94iQrA==,type:str]
|
||||||
signing-key: ENC[AES256_GCM,data:FrJzuTgH/ooZkcnYL55uQcc4u+QzNnFvNVs2wDSE4nnwku+EuCJBlb8pd/6W0KPwIXzcki/8CY0YfRcRrzjExMgMa4hwxrlxS9bk3LNPzJsrRK5RJgPg3iA8L791f1zcDxNf8RuWatIqm1TCK+Vhdk/p+221zy1Gcq1dW8X+o4XzbPBzHdLagcIdB0wpjYTtIoGP2X8GoL/NJpuzIiQBK1HdGNKvUI2+ztqCQZOsxm+Fki57NteX3/Llw8AwABjdZvviOBZ62OvJ/SsOQ9NYAvKf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olDzZwWM8v31d5QIrZpHcPrdRLyV0X2USfG9U4aQ/ls79QAyOOJXA==,iv:/Eb5/+p86tw3tqNiDVHGu7HS1KBtFiYIgasRYJsAiEo=,tag:dGdJlcrnuU73s+IMQ3w3hA==,type:str]
|
signing-pub-key: ENC[AES256_GCM,data:CB7uU2Q4oTEKihpTIXGLaV0fJ1cv/p4oJJ5kjaU6BZiKhsiMA1JILUw2oVIDTDb+80WPzolDzZwWM8v31d5QIrZpHcPrdRLyV0X2USfG9U4aQ/ls79QAyOOJXA==,iv:/Eb5/+p86tw3tqNiDVHGu7HS1KBtFiYIgasRYJsAiEo=,tag:dGdJlcrnuU73s+IMQ3w3hA==,type:str]
|
||||||
|
cloudflared-token: ENC[AES256_GCM,data:7DwWFL6JbJXuc6fSyrZkMt/+DAcqDYBQOzJ1QhBL4yfCpQ57mjDV2beRZ8H7SuyoKY3caifHfAVVPDGG1YnffZ9anLRyDW383aHKmgaeztOXj44eVQcHi3evnSiH6h0HasiyO8pNzhnKpYew8CwHSvYZMraX3ITz8UKOTtsanO9/8ZD6Y9gyxfLoySqbeBy2x/0Ql5hrDfrX854C+vYuXM9VJbtQqMBa7+IBydUvddk=,iv:jZTk5ptuwc+1aP2rimqGnyCHR4/J+W4Kyn3LKXXkv/I=,tag:xr/LhoNH5aWdIJr0Py6nAg==,type:str]
|
||||||
sops:
|
sops:
|
||||||
age:
|
age:
|
||||||
- recipient: age12yvtj49pfh3fqzqflscm0ek4yzrjhr6cqhn7x89gdxnlykq0xudq5c7334
|
- recipient: age12yvtj49pfh3fqzqflscm0ek4yzrjhr6cqhn7x89gdxnlykq0xudq5c7334
|
||||||
@@ -19,7 +18,7 @@ sops:
|
|||||||
TEc5d01RaVFGNXc3dlljM0FTTHpENjQKOqwI+pl8UxVIVl43glnOYvW660/PsDGY
|
TEc5d01RaVFGNXc3dlljM0FTTHpENjQKOqwI+pl8UxVIVl43glnOYvW660/PsDGY
|
||||||
yefODJGVtHrOm3yeXC2xlTi3sFW+c5wUl2yPqddbvcBt5Ud/yd4iXQ==
|
yefODJGVtHrOm3yeXC2xlTi3sFW+c5wUl2yPqddbvcBt5Ud/yd4iXQ==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2025-09-14T19:20:44Z"
|
lastmodified: "2026-04-12T18:24:10Z"
|
||||||
mac: ENC[AES256_GCM,data:nJ5lnPSVPyfMKhlNwzhxYGWY32i60P3N+jpBZKo8oEh8sqjsb4zHAECG/vMXrGTPwYzZ46m5PQQURCyeOvjuMaXK8184zMwFkehXtMJWI7/aKYbSpQqOchl8BN7QdlxH58kqtCwUkdldiW6t6cr4/VAUUPPLqpK19GDrwUYIVrY=,iv:JZBz5X8PdCFXonSPBd1hYiFG+t0aMQDmgCmAbclnpis=,tag:7Pm7V96xMRQZa/JAiDGYmQ==,type:str]
|
mac: ENC[AES256_GCM,data:D7gWC1fxZkpG8dCr7aWhcyLT92NK1OefS4SIAq5ZImMYRJzzvhXtyJM9tzUYVWPU0ojhgOJyawlWEFk1P/DWjOrafBsBHdxUl5FtZrRb4Z/rquODhR8OT8UYFVKyAmjSfomUEDzYetJdXdAxhX3eNlT+eKI51IjqD9y1dYqcjMw=,iv:ZPIkMf/fUETeUYQdqu4TpS/ZE752079jIW9BlehhWlw=,tag:Z3i/Zc0zkEF5rsNnkmUB9A==,type:str]
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.10.2
|
version: 3.12.2
|
||||||
|
|||||||
@@ -5,16 +5,13 @@
|
|||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
# Choose your theme here:
|
# Choose your theme here:
|
||||||
../../themes/nixy.nix
|
../../themes/rose-pine.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config.var = {
|
config.var = {
|
||||||
hostname = "jack";
|
hostname = "jack";
|
||||||
username = "hadi";
|
username = "hadi";
|
||||||
configDirectory =
|
configDirectory = "/home/" + config.var.username + "/.config/nixos"; # The path of the nixos configuration directory
|
||||||
"/home/"
|
|
||||||
+ config.var.username
|
|
||||||
+ "/.config/nixos"; # The path of the nixos configuration directory
|
|
||||||
|
|
||||||
keyboardLayout = "fr";
|
keyboardLayout = "fr";
|
||||||
|
|
||||||
@@ -30,6 +27,10 @@
|
|||||||
|
|
||||||
autoUpgrade = false;
|
autoUpgrade = false;
|
||||||
autoGarbageCollector = true;
|
autoGarbageCollector = true;
|
||||||
|
|
||||||
|
domain = "hadi.icu";
|
||||||
|
tunnelId = "a1dfa315-7fc3-4a65-8c02-8387932c35c3";
|
||||||
|
networkInterface = "enp3s0";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Let this here
|
# Let this here
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
{config, ...}: {
|
||||||
|
imports = [
|
||||||
|
# Mostly system related configuration
|
||||||
|
../../nixos/audio.nix
|
||||||
|
../../nixos/bluetooth.nix
|
||||||
|
../../nixos/fonts.nix
|
||||||
|
../../nixos/home-manager.nix
|
||||||
|
../../nixos/nix.nix
|
||||||
|
../../nixos/systemd-boot.nix
|
||||||
|
../../nixos/sddm.nix
|
||||||
|
../../nixos/users.nix
|
||||||
|
../../nixos/utils.nix
|
||||||
|
../../nixos/hyprland.nix
|
||||||
|
|
||||||
|
# You should let those lines as is
|
||||||
|
./hardware-configuration.nix
|
||||||
|
./variables.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
home-manager.users."${config.var.username}" = import ./home.nix;
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [9001];
|
||||||
|
|
||||||
|
# Don't touch this
|
||||||
|
system.stateVersion = "24.05";
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
nixpkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
nixpkgs.lib.nixosSystem {
|
||||||
|
modules = [
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [];
|
||||||
|
_module.args = {inherit inputs;};
|
||||||
|
}
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
inputs.stylix.nixosModules.stylix
|
||||||
|
inputs.nix-index-database.nixosModules.default
|
||||||
|
./configuration.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [
|
||||||
|
"xhci_pci"
|
||||||
|
"ahci"
|
||||||
|
"nvme"
|
||||||
|
"usb_storage"
|
||||||
|
"usbhid"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
|
boot.initrd.kernelModules = [];
|
||||||
|
boot.kernelModules = ["kvm-intel"];
|
||||||
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-uuid/5dbf85d3-d236-4af8-b489-d6066bfe1eb7";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/043E-1755";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [
|
||||||
|
"fmask=0077"
|
||||||
|
"dmask=0077"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
{config, ...}: {
|
||||||
|
imports = [
|
||||||
|
# Programs
|
||||||
|
../../home/programs/brave
|
||||||
|
../../home/programs/proton
|
||||||
|
../../home/programs/ghostty
|
||||||
|
../../home/programs/nvf
|
||||||
|
../../home/programs/shell
|
||||||
|
../../home/programs/git
|
||||||
|
../../home/programs/git/lazygit.nix
|
||||||
|
../../home/programs/spicetify
|
||||||
|
../../home/programs/thunar
|
||||||
|
../../home/programs/nixy
|
||||||
|
../../home/programs/nightshift
|
||||||
|
../../home/programs/qutebrowser
|
||||||
|
../../home/programs/nix-utils
|
||||||
|
|
||||||
|
../../home/programs/group/basic-apps.nix
|
||||||
|
../../home/programs/group/cybersecurity.nix
|
||||||
|
../../home/programs/group/dev.nix
|
||||||
|
../../home/programs/group/misc.nix
|
||||||
|
|
||||||
|
# System (Desktop environment like stuff)
|
||||||
|
../../home/system/hyprland
|
||||||
|
../../home/system/caelestia-shell
|
||||||
|
../../home/system/hyprpaper
|
||||||
|
../../home/system/mime
|
||||||
|
../../home/system/udiskie
|
||||||
|
|
||||||
|
./variables.nix # Mostly user-specific configuration
|
||||||
|
./secrets # CHANGEME: You should probably remove this line, this is where I store my secrets
|
||||||
|
];
|
||||||
|
|
||||||
|
home = {
|
||||||
|
inherit (config.var) username;
|
||||||
|
homeDirectory = "/home/" + config.var.username;
|
||||||
|
|
||||||
|
# Don't touch this
|
||||||
|
stateVersion = "24.05";
|
||||||
|
};
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland.settings.monitor = [
|
||||||
|
"desc:Philips Consumer Electronics Company PHL 221B8L ZV02144013987,highres,0x0,1"
|
||||||
|
];
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
home-manager.enable = true;
|
||||||
|
nixy = {
|
||||||
|
enable = true;
|
||||||
|
configDirectory = config.var.configDirectory;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
# Those are my secrets, encrypted with sops
|
||||||
|
# You shouldn't import this file, unless you edit it
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
home = config.home.homeDirectory;
|
||||||
|
in {
|
||||||
|
imports = [inputs.sops-nix.homeManagerModules.sops];
|
||||||
|
|
||||||
|
sops = {
|
||||||
|
age.keyFile = "${home}/.config/sops/age/keys.txt";
|
||||||
|
defaultSopsFile = ./secrets.yaml;
|
||||||
|
secrets = {
|
||||||
|
ssh-config = {
|
||||||
|
path = "${home}/.ssh/config";
|
||||||
|
};
|
||||||
|
netrc = {
|
||||||
|
path = "${home}/.netrc";
|
||||||
|
};
|
||||||
|
github-key = {
|
||||||
|
path = "${home}/.ssh/github";
|
||||||
|
};
|
||||||
|
gitlab-key = {
|
||||||
|
path = "${home}/.ssh/gitlab";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file.".config/nixos/.sops.yaml".text = ''
|
||||||
|
keys:
|
||||||
|
- &primary age12yvtj49pfh3fqzqflscm0ek4yzrjhr6cqhn7x89gdxnlykq0xudq5c7334
|
||||||
|
- &work age1c8pawdsxptfslgrz2c56s39mrtnjzc5mm3hfzgr2wdwu2v6vfsdsupjsq6
|
||||||
|
creation_rules:
|
||||||
|
- path_regex: hosts/laptop/secrets/secrets.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *primary
|
||||||
|
- path_regex: hosts/server/secrets/secrets.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *primary
|
||||||
|
- path_regex: hosts/work/secrets/secrets.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *work
|
||||||
|
'';
|
||||||
|
|
||||||
|
systemd.user.services.mbsync.Unit.After = ["sops-nix.service"];
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
sops
|
||||||
|
age
|
||||||
|
];
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland.settings.exec-once = ["systemctl --user start sops-nix"];
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
ssh-config: ENC[AES256_GCM,data:npBcAOSwHpApUASlZmRo4stwMrOjdrdmhfYwumjbTpcq8aQ2ybV8le7cjNdVqIyxgwxUFV4/tGfmsq4nlrWIO/85spwfC5DyPGaZ848NI3UZJj8k2GKuw5qk/xGsTveNhq+vNZQcHeL4aeXF2TRmFLDHYGTku9anFL7FWkQ75MmGW78XfPUEyZJ52ylXq3gkYeVSrl6cXuwJw/QBlu+XTgFk4MM+E5BTXBFFNJOYkIt4GwWX7wdI+QqPEof8J0ENYdxUAMKMueL4pLNclWP0fu7QC7gwwRJWjauCNElJiDhpVFa6WukJV/Ut+I30FH9cJtj0rSodeu0hq2fWaiQ0wVbQudxi0JcnxJQs+B9nb6kpF+TN0MiD,iv:c7DMZSmlgMMnNlR0/kNRKPYjCzvNQJ46mZzojHppSg8=,tag:ausjsFk0H9nOiiMebHXSUg==,type:str]
|
||||||
|
netrc: ENC[AES256_GCM,data:EOpuZhDVXe7Q4P/98C3gtEvkdawI26d4oX/wRNytyp/mAdkHytXiLpFdsuO/3DADOG8h1CCo1UTs9ex+bqoD/LdChdp7INfNDSQ+aDxTiG0rLBgjvy8TIj8=,iv:tc/RbN1Upbjv+3rU5zUR3P//a1Hj1xODInLMShg4i1Y=,tag:7E9G2g4g+eMeJrwI20R/1g==,type:str]
|
||||||
|
github-key: ENC[AES256_GCM,data:LRgJxUcKvLiqVJ3acz88oGp5qmvbo7QiyTbcft3YwZr+84CLbty9GCMrryJ8DFnP8GCGh+cCQxyvk/n/hA71qz7WZ6vIWbTN2byP0LHwDtQpugYOQi9z1Q04hQU3DYnsqKS8hu6bnUV/SzrDpAOXugyMGZL5dITitidgEsVG5PxB+bzTZGhg7EOcZISz955AEtD+bGedvxaryEcMYPTZwRHYPl2+wvKKIbeZMiup6i0BCCYktUUIb3qSBawbknZ9nfbQFODkZbNuEEhyU2MITz2ajQEx8AjE4e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DDqy5X497h56jqwjWex3Lc7cTusrkVrcHg26fIMw/zyTW3pgmrwpGayVC8kg3pNJQw+MX6xYO5Cq/EQv72rOKVw5YY83IWqkh6GHn3bTghvMETiWoCDUPB0JNsPY1i7hrFCYzGJib+p6M53ngNCfjI786qZ78CQVhmIyl8VGGwYrvtHY3UFArXUDK/Y9rc2lvMoCIBCwhq5w/eaJiTN1BhMgFVvgbdI+Y9cj/UgtE3yFjsQp/kI+oEyCDQntuzO1UhZiP2/9nXm4Lyf/ZhUcdEI9I0=,iv:aG4nqGJ/TRiAtiWoPwqej6We+IWEWFibCqL7bGwXbkA=,tag:c5ckW2o4+2rm/5mrGF1tzg==,type:str]
|
||||||
|
sops:
|
||||||
|
age:
|
||||||
|
- recipient: age1c8pawdsxptfslgrz2c56s39mrtnjzc5mm3hfzgr2wdwu2v6vfsdsupjsq6
|
||||||
|
enc: |
|
||||||
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBVby9Wa1NUUkpyeDMwU3dM
|
||||||
|
R0EyeFVtT0tJU0pKaWtXQzRkTDBPY3JjcTFrClNIQnl2WVorS0FZZjhicTQ5V2kx
|
||||||
|
MUZTZWZtaUk2a1ZhUTBCUnhkWHFIMFUKLS0tIElLcjJLZWNLOUJYN0NNVGFNUEFN
|
||||||
|
RkMrdTYwNkY1Tlc3M3dxTFdkRXJJZUEKUlYU45jXpS9hJO9Z/uAQ6XMj9QWgMMRI
|
||||||
|
LbJxvt48+yC+Y0XKOtDE0lHAuGNzUG8R/7FB1tTD8NCamBe46KGCIg==
|
||||||
|
-----END AGE ENCRYPTED FILE-----
|
||||||
|
lastmodified: "2026-04-23T07:50:07Z"
|
||||||
|
mac: ENC[AES256_GCM,data:V3us1oxkQxIg5hn8TMiSHWa0RhNbio2mP8j59lSCKDLjnpTUHUAUZZOan+fkBwPxxtIdZFVZQl/kZuEHcnNwXk8J0DLeT8jrs8pvlDCHMAc+C9uzThNjQ9CrZ2C/dNtoI6uop3a6qo8UMhKhvAus08yR8rLsY7Gqt/In28HKqxU=,iv:g8wmq1thPfkSSfG+mtJS0431wbon/uylDTfH0P31dlw=,tag:5Z6CJMWeGN6frTLJQMxGGw==,type:str]
|
||||||
|
unencrypted_suffix: _unencrypted
|
||||||
|
version: 3.12.2
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
# Choose your theme here:
|
||||||
|
../../themes/darkviolet.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
config.var = {
|
||||||
|
hostname = "h-work";
|
||||||
|
username = "hadrien";
|
||||||
|
configDirectory = "/home/" + config.var.username + "/.config/nixos"; # The path of the nixos configuration directory
|
||||||
|
|
||||||
|
keyboardLayout = "fr";
|
||||||
|
|
||||||
|
location = "Paris";
|
||||||
|
timeZone = "Europe/Paris";
|
||||||
|
defaultLocale = "en_US.UTF-8";
|
||||||
|
extraLocale = "fr_FR.UTF-8";
|
||||||
|
|
||||||
|
git = {
|
||||||
|
username = "Hadi";
|
||||||
|
email = "hadi@example.com";
|
||||||
|
};
|
||||||
|
|
||||||
|
autoUpgrade = false;
|
||||||
|
autoGarbageCollector = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# DON'T TOUCH THIS
|
||||||
|
options = {
|
||||||
|
var = lib.mkOption {
|
||||||
|
type = lib.types.attrs;
|
||||||
|
default = {};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
rocmPackages.clr.icd
|
||||||
|
# Support VA-API pour AMD
|
||||||
|
libvdpau-va-gl
|
||||||
|
libva-vdpau-driver
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
+3
-1
@@ -13,7 +13,9 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
"10-disable-camera" = {
|
"10-disable-camera" = {
|
||||||
"wireplumber.profiles" = {main."monitor.libcamera" = "disabled";};
|
"wireplumber.profiles" = {
|
||||||
|
main."monitor.libcamera" = "disabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-3
@@ -1,9 +1,7 @@
|
|||||||
# Bluetooth configuration for NixOS
|
# Bluetooth configuration for NixOS
|
||||||
{pkgs, ...}: {
|
{
|
||||||
environment.systemPackages = with pkgs; [blueman];
|
|
||||||
hardware.bluetooth = {
|
hardware.bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
powerOnBoot = true;
|
powerOnBoot = true;
|
||||||
};
|
};
|
||||||
services.blueman.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-2
@@ -1,9 +1,19 @@
|
|||||||
# Home-manager configuration for NixOS
|
# Home-manager configuration for NixOS
|
||||||
{inputs, ...}: {
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
backupFileExtension = "hm-backup";
|
backupFileExtension = "hm-backup";
|
||||||
extraSpecialArgs = {inherit inputs;};
|
extraSpecialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
pkgs-stable = import inputs.nixpkgs-stable {
|
||||||
|
system = pkgs.stdenv.hostPlatform.system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-2
@@ -6,6 +6,11 @@
|
|||||||
}: let
|
}: let
|
||||||
autoGarbageCollector = config.var.autoGarbageCollector;
|
autoGarbageCollector = config.var.autoGarbageCollector;
|
||||||
in {
|
in {
|
||||||
|
# Ask for password once per SSH session (tied to the tty, expires when session closes)
|
||||||
|
security.sudo.extraConfig = ''
|
||||||
|
Defaults timestamp_type=tty,timestamp_timeout=-1
|
||||||
|
'';
|
||||||
|
|
||||||
security.sudo.extraRules = [
|
security.sudo.extraRules = [
|
||||||
{
|
{
|
||||||
users = [config.var.username];
|
users = [config.var.username];
|
||||||
@@ -19,7 +24,7 @@ in {
|
|||||||
];
|
];
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
allowBroken = true;
|
allowBroken = false;
|
||||||
};
|
};
|
||||||
nix = {
|
nix = {
|
||||||
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||||
@@ -30,7 +35,10 @@ in {
|
|||||||
settings = {
|
settings = {
|
||||||
download-buffer-size = 262144000; # 250 MB (250 * 1024 * 1024)
|
download-buffer-size = 262144000; # 250 MB (250 * 1024 * 1024)
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
experimental-features = ["nix-command" "flakes"];
|
experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
substituters = [
|
substituters = [
|
||||||
# high priority since it's almost always used
|
# high priority since it's almost always used
|
||||||
"https://cache.nixos.org?priority=10"
|
"https://cache.nixos.org?priority=10"
|
||||||
|
|||||||
+5
-8
@@ -6,7 +6,7 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
# Using beta driver for recent GPUs like RTX 4070
|
# Using beta driver for recent GPUs like RTX 4070
|
||||||
nvidiaDriverChannel = config.boot.kernelPackages.nvidiaPackages.beta;
|
nvidiaDriverChannel = config.boot.kernelPackages.nvidiaPackages.production;
|
||||||
in {
|
in {
|
||||||
# Video drivers configuration for Xorg and Wayland
|
# Video drivers configuration for Xorg and Wayland
|
||||||
services.xserver.videoDrivers = ["nvidia"]; # Simplified - other modules are loaded automatically
|
services.xserver.videoDrivers = ["nvidia"]; # Simplified - other modules are loaded automatically
|
||||||
@@ -15,7 +15,6 @@ in {
|
|||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
"nvidia-drm.modeset=1" # Enable mode setting for Wayland
|
"nvidia-drm.modeset=1" # Enable mode setting for Wayland
|
||||||
"nvidia.NVreg_PreserveVideoMemoryAllocations=1" # Improves resume after sleep
|
"nvidia.NVreg_PreserveVideoMemoryAllocations=1" # Improves resume after sleep
|
||||||
"nvidia.NVreg_RegistryDwords=PowerMizerEnable=0x1;PerfLevelSrc=0x2222;PowerMizerLevel=0x3;PowerMizerDefault=0x3;PowerMizerDefaultAC=0x3" # Performance/power optimizations
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Blacklist nouveau to avoid conflicts
|
# Blacklist nouveau to avoid conflicts
|
||||||
@@ -24,14 +23,11 @@ in {
|
|||||||
# Environment variables for better compatibility
|
# Environment variables for better compatibility
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
LIBVA_DRIVER_NAME = "nvidia"; # Hardware video acceleration
|
LIBVA_DRIVER_NAME = "nvidia"; # Hardware video acceleration
|
||||||
XDG_SESSION_TYPE = "wayland"; # Force Wayland
|
|
||||||
GBM_BACKEND = "nvidia-drm"; # Graphics backend for Wayland
|
GBM_BACKEND = "nvidia-drm"; # Graphics backend for Wayland
|
||||||
__GLX_VENDOR_LIBRARY_NAME = "nvidia"; # Use Nvidia driver for GLX
|
__GLX_VENDOR_LIBRARY_NAME = "nvidia"; # Use Nvidia driver for GLX
|
||||||
WLR_NO_HARDWARE_CURSORS = "1"; # Fix for cursors on Wayland
|
|
||||||
NIXOS_OZONE_WL = "1"; # Wayland support for Electron apps
|
NIXOS_OZONE_WL = "1"; # Wayland support for Electron apps
|
||||||
__GL_GSYNC_ALLOWED = "1"; # Enable G-Sync if available
|
__GL_GSYNC_ALLOWED = "1"; # Enable G-Sync if available
|
||||||
__GL_VRR_ALLOWED = "1"; # Enable VRR (Variable Refresh Rate)
|
__GL_VRR_ALLOWED = "1"; # Enable VRR (Variable Refresh Rate)
|
||||||
WLR_DRM_NO_ATOMIC = "1"; # Fix for some issues with Hyprland
|
|
||||||
NVD_BACKEND = "direct"; # Configuration for new driver
|
NVD_BACKEND = "direct"; # Configuration for new driver
|
||||||
MOZ_ENABLE_WAYLAND = "1"; # Wayland support for Firefox
|
MOZ_ENABLE_WAYLAND = "1"; # Wayland support for Firefox
|
||||||
};
|
};
|
||||||
@@ -59,8 +55,7 @@ in {
|
|||||||
# Optimized configuration for switchable graphics laptops
|
# Optimized configuration for switchable graphics laptops
|
||||||
offload = {
|
offload = {
|
||||||
enable = true; # Mode optimized for power saving
|
enable = true; # Mode optimized for power saving
|
||||||
enableOffloadCmd =
|
enableOffloadCmd = true; # Allows running applications with dedicated GPU
|
||||||
true; # Allows running applications with dedicated GPU
|
|
||||||
};
|
};
|
||||||
# sync.enable disabled as offload is generally better for laptops
|
# sync.enable disabled as offload is generally better for laptops
|
||||||
sync.enable = false;
|
sync.enable = false;
|
||||||
@@ -73,7 +68,6 @@ in {
|
|||||||
# Enhanced graphics support
|
# Enhanced graphics support
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = nvidiaDriverChannel;
|
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
nvidia-vaapi-driver
|
nvidia-vaapi-driver
|
||||||
@@ -102,4 +96,7 @@ in {
|
|||||||
mesa-demos
|
mesa-demos
|
||||||
libva-utils # VA-API debugging tools
|
libva-utils # VA-API debugging tools
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Enable Nvidia container toolkit for GPU acceleration in containers (docker)
|
||||||
|
hardware.nvidia-container-toolkit.enable = false;
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-4
@@ -5,9 +5,8 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
hp-omen-linux-module =
|
hp-omen-linux-module = pkgs.callPackage (
|
||||||
pkgs.callPackage
|
{
|
||||||
({
|
|
||||||
kernel ? config.boot.kernelPackages.kernel,
|
kernel ? config.boot.kernelPackages.kernel,
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
@@ -33,10 +32,12 @@
|
|||||||
install hp-wmi.ko -Dm444 -t $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/platform/x86/hp/
|
install hp-wmi.ko -Dm444 -t $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/platform/x86/hp/
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
})) {kernel = config.boot.kernelPackages.kernel;};
|
})
|
||||||
|
) {kernel = config.boot.kernelPackages.kernel;};
|
||||||
in {
|
in {
|
||||||
boot.extraModulePackages = [hp-omen-linux-module];
|
boot.extraModulePackages = [hp-omen-linux-module];
|
||||||
boot.kernelModules = ["hp-wmi"];
|
boot.kernelModules = ["hp-wmi"];
|
||||||
|
boot.kernelParams = ["hp_wmi.force_slow_fan_control=1"];
|
||||||
|
|
||||||
users.groups.omen-rgb = {};
|
users.groups.omen-rgb = {};
|
||||||
users.users.${config.var.username}.extraGroups = ["omen-rgb"];
|
users.users.${config.var.username}.extraGroups = ["omen-rgb"];
|
||||||
|
|||||||
@@ -11,8 +11,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
tmp.cleanOnBoot = true;
|
tmp.cleanOnBoot = true;
|
||||||
kernelPackages =
|
kernelPackages = pkgs.linuxPackages_latest; # _zen, _hardened, _rt, _rt_latest, etc.
|
||||||
pkgs.linuxPackages_latest; # _zen, _hardened, _rt, _rt_latest, etc.
|
|
||||||
|
|
||||||
# Silent boot
|
# Silent boot
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
@@ -38,5 +37,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# To avoid systemd services hanging on shutdown
|
# To avoid systemd services hanging on shutdown
|
||||||
systemd.settings.Manager = { DefaultTimeoutStopSec = "10s"; };
|
systemd.settings.Manager = {
|
||||||
|
DefaultTimeoutStopSec = "10s";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,41 +0,0 @@
|
|||||||
# Tailscale is a VPN service that makes it easy to connect your devices between each other.
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
username = config.var.username;
|
|
||||||
in {
|
|
||||||
security.sudo.extraRules = [
|
|
||||||
{
|
|
||||||
users = [username];
|
|
||||||
# Allow running Tailscale commands without a password
|
|
||||||
commands = [
|
|
||||||
{
|
|
||||||
command = "/etc/profiles/per-user/${username}/bin/tailscale";
|
|
||||||
options = ["NOPASSWD"];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
command = "/run/current-system/sw/bin/tailscale";
|
|
||||||
options = ["NOPASSWD"];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with inputs.nixpkgs-stable.legacyPackages.x86_64-linux; [
|
|
||||||
tailscale
|
|
||||||
];
|
|
||||||
|
|
||||||
services.tailscale = {
|
|
||||||
enable = true;
|
|
||||||
package = inputs.nixpkgs-stable.legacyPackages.x86_64-linux.tailscale;
|
|
||||||
openFirewall = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall = {
|
|
||||||
trustedInterfaces = ["tailscale0"];
|
|
||||||
# required to connect to Tailscale exit nodes
|
|
||||||
checkReversePath = "loose";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user