My NixOS configuration😃
Find a file
2026-01-10 13:28:41 +08:00
docs feat: add formatter 2026-01-10 12:46:40 +08:00
githooks feat: add pre-commit hook to check TODO|FIXME|FIX comment 2026-01-10 13:28:41 +08:00
helper feat: add formatter 2026-01-10 12:46:40 +08:00
home feat: add formatter 2026-01-10 12:46:40 +08:00
options feat: add formatter 2026-01-10 12:46:40 +08:00
pkgs feat: add formatter 2026-01-10 12:46:40 +08:00
system feat: add formatter 2026-01-10 12:46:40 +08:00
.envrc feat: add pre-commit hook to check TODO|FIXME|FIX comment 2026-01-10 13:28:41 +08:00
.gitignore feat: add pre-commit hook to check TODO|FIXME|FIX comment 2026-01-10 13:28:41 +08:00
.sops.yaml feat: add formatter 2026-01-10 12:46:40 +08:00
flake.lock feat: add formatter 2026-01-10 12:46:40 +08:00
flake.nix feat: add pre-commit hook to check TODO|FIXME|FIX comment 2026-01-10 13:28:41 +08:00
preview.png feat: add formatter 2026-01-10 12:46:40 +08:00
README.md feat: add formatter 2026-01-10 12:46:40 +08:00

🚀 NixOS With Hyprland


📷 Preview

preview

Main Applications

  • Hyprland
  • NVF
  • Waybar
  • Hyprlock
  • Hypridle
  • Zen Browser
  • Swaync (Notification Center)
  • Awww (Wallpaper)
  • Ghostty (Terminal)
  • SDDM (Display Manager)
  • Fish (shell)
  • Rofi (Application Launcher)
  • Stylix

Manuals

🎮 Game

  • Steam
  • Xbox wireless controller

🧠 Virtualization

  • Virt Manager (libvirt)
  • Windows 11 example config: win11_kvm.xml

⌨️ Input (Fcitx5)

  • Rime (bopomofo, pinyin)
  • Mozc (Japanese)

🌐 VPN

  • Wireguard (You need put your own wg0.conf in sops file) .

NOTE: If import wireguard.nix without config file, the Build will fail.

🧊 CUDA

See Python Cuda Flake


💿 Installation

Your need to add your own device in flake.nix, and create configuration in system/dev (don't forget the hardware-configuration.nix generated with nixos-generate-config)

Example

system/dev/
├── <your-device-name>
    ├── boot.nix # You can add extra boot options here 
    ├── default.nix # Import modules you need
    └── hardware-configuration.nix # Your hardware configuration

flake.nix

nixosConfigurations = {
  <your-device-name> = nixpkgs.lib.nixosSystem {
    modules = [
      nix-index-database.nixosModules.nix-index
      ./system/dev/<your-device-name>
    ];
    specialArgs = {
      inherit inputs system nix-version;
    };
  };
};

❄️ Flake

home manager is configured to rebuild with NixOS

OS Install

nixos-install --flake .#<your device name>

Rebuild Switch

nixos-rebuild switch --flake .#<your device name>