需先自行安装全新 NixOS 系统;必须同时引入 home-manager 及其模块,否则配置不完整;generated_light/generated_dark 主题必须指定 wallpaper_path;作者已不再活跃维护,功能不保证与 Omarchy 对齐
omarchy-nix
henrysipp更新放缓基于 DHH 的 Omarchy 打造的 NixOS 配置,用 Nix 和 Home Manager 把桌面环境与 dotfiles 固化下来,省去手动配置的麻烦。
An opinionated NixOS config based on DHH's Omarchy
在 flake.nix 的 inputs 中加入 omarchy-nix = { url = "github:henrysipp/omarchy-nix"; inputs.nixpkgs.follows = "nixpkgs"; inputs.home-manager.follows = "home-manager"; };,并在 modules 中引入 omarchy-nix.nixosModules.default 与 home-manager.nixosModules.home-managerREADME 未说明
基于 DHH Omarchy 的 NixOS flake,帮你快速搭起 NixOS + Hyprland 开发环境
基于 DHH 的 Omarchy 打造的 NixOS 配置,用 Nix 和 Home Manager 把桌面环境与 dotfiles 固化下来,省去手动配置的麻烦。
核心能力
- 用 Nix flake 一键声明式配置 NixOS + Hyprland
- 内置 tokyo-night 等 7 套预设主题
- 支持从壁纸自动生成明暗配色方案
- 提供 NixOS 与 home-manager 两个模块入口
- 可单独覆盖壁纸而保留原主题配色
容易踩的坑
暂无 release 数据(可能没有发版,或尚未同步)。
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Omarchy Nix
Omarchy-nix (Omanix?) is an opinionated NixOS flake to help you get started as fast as possible with NixOS and Hyprland. It is primarily a reimplementation of DHH's Omarchy project - an opinionated Arch/Hyprland setup for modern web development.
This isn't meant to be full feature parity with Omarchy and likely never will be, especially with how fast the feature development and funding has been for that project. Instead, think of this as more of a launch pad to get your own similar Nix config set up!
I've personally moved to using regular Arch Omarchy full-time for a number of reasons. I'm not actively working on this repo but if you'd like to contribute please send a PR :)
Quick Start
To get started you'll first need to set up a fresh NixOS install. Just download and create a bootable USB and you should be good to go.
Once ready, add this flake to your system configuration, you'll also need home-manager as well: (You can find my personal nix setup here too if you need a reference.)
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
omarchy-nix = {
url = "github:henrysipp/omarchy-nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, omarchy-nix, home-manager, ... }: {
nixosConfigurations.your-hostname = nixpkgs.lib.nixosSystem {
modules = [
omarchy-nix.nixosModules.default
home-manager.nixosModules.home-manager #Add this import
{
# Configure omarchy
omarchy = {
full_name = "Your Name";
email_address = "[email protected]";
theme = "tokyo-night";
};
home-manager = {
users.your-username = {
imports = [ omarchy-nix.homeManagerModules.default ]; # And this one
};
};
}
];
};
};
}
Configuration Options
I've specified some basic configuration options to help you get started with initial setup, as well as some simple overrides for common configuration settings I found I was modifying often. These are likely subject to change with future versions as I iron things out.
Refer to the root configuration file for more information on what options are available.
Themes
Omarchy-nix includes several predefined themes:
tokyo-night(default)kanagawaeverforestcatppuccinnordgruvboxgruvbox-light
You can also generate themes from wallpaper images using:
generated_light- generates a light color scheme from wallpapergenerated_dark- generates a dark color scheme from wallpaper
Generated themes require a wallpaper path to be specified:
{
omarchy = {
theme = "generated_dark"; # or "generated_light"
theme_overrides = {
wallpaper_path = ./path/to/your/wallpaper.png;
};
};
}
Wallpaper Overrides
Any theme can be customized with a custom wallpaper by specifying wallpaper_path in theme_overrides. For predefined themes, this will only change the wallpaper but keep the original color scheme:
{
omarchy = {
theme = "tokyo-night"; # or any other predefined theme
theme_overrides = {
wallpaper_path = ./path/to/your/wallpaper.png;
};
};
}
Generated themes automatically extract colors from the wallpaper and create a matching color scheme for all Omarchy applications (terminal, editor, launcher, etc.).
License
This project is released under the MIT License, same as the original Omarchy.