No description
- Nix 100%
| hosts | ||
| mods | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
🖥️ Hosts
| Host | Arquitetura | Função | Kernel |
|---|---|---|---|
| Alfa | x86_64-linux |
Desktop / Workstation / Gaming | CachyOS LTO (custom v3) |
| darkgui-vps | aarch64-linux |
VPS Headless (serviços + exit node) | padrão |
🎯 Desktop — Alfa
Interfaces
| Interface | Status |
|---|---|
| KDE Plasma 6 | ✅ Ativo |
| GNOME | ⏸️ Comentado |
| Cosmic | ⏸️ Comentado |
| Niri (WM) | ⏸️ Comentado |
| Mango (WM) | ⏸️ Comentado |
🛠️ Otimizações
- Kernel CachyOS LTO (v3) com patches NVIDIA
- BBR TCP, Zram (zstd, 40%), earlyOOM, Preload-ng
- PipeWire + WirePlumber
- NVIDIA legacy 580 (runtime PM, PTB)
- LACT, OpenRGB, Ccache
☁️ VPS — darkgui-vps
Serviços
- Docker com IPv6
- Netbird (exit node e proxy reverso)
- Self-hosted via Docker (portas 80→8000, 53→5300 via NAT)
- Firewall com regras customizadas
📦 Estrutura
/etc/nixos/
├── flake.lock
├── flake.nix # Entrada principal do flake
├── hosts/
│ ├── Alfa/ # 🖥️ Desktop
│ │ ├── conf/
│ │ │ ├── GM/
│ │ │ │ ├── configs/
│ │ │ │ │ ├── cfsystem.nix # Configuraçoes gerais do sistema
│ │ │ │ │ ├── imp.nix # Import das coisas no configs
│ │ │ │ │ ├── nixhelper.nix # Ajustes e patchs pra o nix
│ │ │ │ │ ├── nvidia.nix # Driver NVIDIA
│ │ │ │ │ ├── ollama.nix
│ │ │ │ │ ├── patchs.nix # Alguns patchs para jogos e coisas gerais
│ │ │ │ │ └── self-host.nix # Configuraçoes para coisas self-host
│ │ │ │ ├── DE/
│ │ │ │ │ ├── cosmic.nix
│ │ │ │ │ ├── gnome.nix
│ │ │ │ │ ├── impde.nix # Import da DE/WM ativa no momento
│ │ │ │ │ ├── kde.nix
│ │ │ │ │ └── WMs/
│ │ │ │ │ ├── dms.nix
│ │ │ │ │ ├── mango.nix
│ │ │ │ │ ├── niri.nix
│ │ │ │ │ └── noctalia.nix
│ │ │ │ ├── imp.nix # Import geral dos outros Import no GM
│ │ │ │ └── Pkgs/
│ │ │ │ ├── imp_pkgs.nix # Import dos pkgs
│ │ │ │ ├── pkgsconfig.nix # Config de alguns pacotes
│ │ │ │ ├── pkgs.nix # Pacotes instalados no sistema
│ │ │ │ ├── proxmox.nix
│ │ │ │ ├── steam.nix
│ │ │ │ └── thunar.nix
│ │ │ └── HM/
│ │ │ ├── configs/
│ │ │ │ └── cfhome.nix # Config do Home-Manager
│ │ │ ├── imp.nix # Import geral do HM
│ │ │ └── pkgs/
│ │ │ ├── firefox.nix
│ │ │ └── pkgs.nix # Pacotes do Home-Manager
│ │ ├── configuration.nix # Config principal do PC
│ │ ├── hardware-configuration.nix # Gerado automaticamente
│ │ └── home.nix # Config principal do Home-Manager
│ └── darkgui-vps/ # ☁️ VPS
│ ├── config/
│ │ ├── imp.nix # Import geral
│ │ ├── nix-helper.nix # Ajustes e patchs pra o nix
│ │ ├── pkgs.nix
│ │ └── self-host/
│ │ ├── firewall.nix # Config do firewall
│ │ └── self-host.nix # Configuraçoes para coisas self-host
│ ├── configuration.nix # Config principal da VPS
│ ├── disk-config.nix # Disko
│ ├── hardware-configuration.nix # Gerado automaticamente
│ └── vars.nix # Hostname, SSH keys
└── mods/
├── home/
│ ├── home.nix
│ ├── kitty/
│ │ ├── kitty.conf
│ │ ├── kitty.nix
│ │ └── theme.conf
│ └── mango/
│ ├── auto_start.conf
│ ├── binds.conf
│ ├── config.conf
│ ├── mango.nix
│ ├── noctalia.conf
│ └── windowrule.conf
└── nixos/
├── nixos.nix
└── tailscale/
└── tailscale.nix
🚀 Comandos Rápidos
# Rebuild (Alfa) — nh gerencia sudo automaticamente
nh os switch
# Rebuild (darkgui-vps)
nh os switch . -H darkgui-vps
# Atualizar inputs
nix flake update
# Limpar cache (manter últimos 3 gens + 4 dias)
nh clean --keep-since 4d --keep 3
# Git-crypt (desbloquear repo)
git-crypt unlock ~/caminho/da/chave
📋 Inputs do Flake
| Input | Uso |
|---|---|
nixpkgs (unstable) |
Canal principal |
chaotic |
Overlay de pacotes |
home-manager |
Gestão de usuário |
disko |
Particionamento declarativo |
aagl |
Launcher de jogos anime |
niri / mangowm |
Wayland compositors |
jovian |
Steam Deck / otimizações |
zen-browser |
Navegador web |
thou-pkgs |
Kernels CachyOS + Proton |
millennium |
Customização Steam |
Feito com 💜 e ❄️ NixOS