❄️ | I use NixOS btw
  • Nix 89.1%
  • Python 10.9%
Find a file
2026-06-01 18:17:28 +05:00
.zed some changes 2026-04-20 07:57:25 +05:00
assets/wallpapers integrate stylix and sops-nix 2026-02-05 05:39:27 +05:00
hosts/swift-sfx14-71g tweak filesystem 2026-02-03 11:26:55 +05:00
modules disable nix cgroups 2026-06-01 18:17:28 +05:00
overlays use spicetify 2026-05-30 01:07:09 +05:00
scripts big messy changes 2026-05-24 17:29:47 +05:00
.envrc some changes 2026-04-17 11:03:45 +05:00
.gitignore some changes 2026-04-17 11:03:45 +05:00
.nixd-expr.nix update nixd expr 2026-05-30 01:06:14 +05:00
.sops.yaml some changes 2026-04-20 07:57:25 +05:00
flake.lock update flake lock 2026-06-01 16:04:52 +05:00
flake.nix update hyprland 2026-06-01 13:39:14 +05:00
LICENSE add readme and license 2026-02-05 16:29:59 +05:00
README.md add readme and license 2026-02-05 16:29:59 +05:00
shell.nix integrate stylix and sops-nix 2026-02-05 05:39:27 +05:00

NixOS Configuration

Personal NixOS configuration for an Acer Swift SFX14-71G laptop with Intel + NVIDIA hybrid graphics.

Features

Performance-Optimized Kernel

Uses the CachyOS kernel with:

  • LTO (Link-Time Optimization)
  • x86-64-v3 architecture targeting (AVX2)
  • BBR congestion control

Thanks to xddxdd/nix-cachyos-kernel for the Nix packaging and providing it's Caches!

Hybrid Graphics

NVIDIA PRIME offload mode for optimal battery life:

  • Intel iGPU for daily use
  • NVIDIA dGPU available on-demand via nvidia-offload
  • Fine-grained power management (GPU sleeps when idle)

Power Management

Comprehensive TLP configuration with distinct AC/battery profiles:

  • AC: Performance governor, turbo boost enabled
  • Battery: Powersave governor, aggressive power saving
  • TLP Power Profiles daemon for easy switching

Optimized Builds

Custom package overlays with performance flags:

# Alacritty with mold linker and full LTO
RUSTFLAGS = "-C target-cpu=x86-64-v3 -C lto=fat -C codegen-units=1 -C link-arg=-fuse-ld=mold"

Structure

.
├── flake.nix                 # Flake entry point
├── hosts/
│   └── swift-sfx14-71g/      # Host-specific configuration
├── modules/
│   ├── nixos/                # System modules
│   │   ├── boot.nix          # CachyOS kernel, bootloader
│   │   ├── graphics/         # Intel/NVIDIA configuration
│   │   ├── power-management/ # TLP, thermald
│   │   └── ...
│   └── home-manager/         # User modules
│       ├── shell/            # zsh, starship
│       ├── desktop/          # GNOME, extensions
│       ├── programs/         # git, browser
│       └── ...
├── overlays/                 # Package customizations
└── secrets/                  # SOPS encrypted secrets

Stack

Component Choice
Kernel CachyOS (LTO, x86-64-v3)
Desktop GNOME + Wayland
Shell Zsh + Starship
Terminal Alacritty
Browser Zen Browser
Editor VS Code
Audio PipeWire
Secrets SOPS + age

GNOME Setup

  • Dash to Dock (bottom, autohide)
  • Blur My Shell
  • AppIndicator support
  • macOS-style window buttons
  • Dark mode

Quick Start

# Clone
git clone https://github.com/ezozbek36/nix.git
cd nix

# Enter dev shell (includes nixd, alejandra, statix, deadnix)
nix develop

# Build and switch
sudo nixos-rebuild switch --flake .#swift-sfx14-71g

# Or using nh
nh os switch .

Binary Caches

Pre-configured caches for faster builds:

  • nix-community.cachix.org
  • cuda-maintainers.cachix.org
  • attic.xuyh0120.win/lantian (CachyOS kernel)

Development

# Format
nix fmt

# Lint
statix check .

# Find dead code
deadnix .

License

MIT