❄️ 異世界 [isekai], fully declared
  • Nix 98.2%
  • ASL 1.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ezozbek bc7f71afa4
nmadirla qildimda yana
Signed-off-by: Ezozbek <git@ezozbek.dev>
2026-11-04 16:08:04 +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 nmadirla qildimda yana 2026-11-04 16:08:04 +05:00
modules nmadirla qildimda yana 2026-11-04 16:08:04 +05:00
nixos-modules nmadirla qildimda yana 2026-11-04 16:08:04 +05:00
packages pkgs: add esbonio 2026-09-11 20:12:10 +05:00
.envrc some changes 2026-04-17 11:03:45 +05:00
.gitignore core: input de-duplication, add git-hooks 2026-08-29 16:17:09 +05:00
.nixd-expr.nix reformat nixd-expr 2026-07-24 00:16:46 +05:00
.sops.yaml ssh & age keys with tpm2 2026-07-27 13:51:57 +05:00
flake.lock nmadirla qildimda yana 2026-11-04 16:08:04 +05:00
flake.nix nmadirla qildimda yana 2026-11-04 16:08:04 +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 core: input de-duplication, add git-hooks 2026-08-29 16:17:09 +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