需要先启用 Nix flakes 功能;这是作者个人配置,直接套用前需按自己主机改 hosts 与硬件相关设置;引用为 flake input 时建议加 inputs.nixpkgs.follows = "nixpkgs" 避免重复拉取 nixpkgs
nix flake show github:fufexan/dotfiles
nix run github:fufexan/dotfiles#<packageName>README 未说明
一套基于 Nix flakes 的 NixOS 系统与 Home-Manager 用户配置,可直接复用或借鉴
基于 Nix Flakes 的 NixOS 系统配置与 Home-Manager 用户配置,集成 Hyprland、Wayland、Helix 等,实现声明式、可复现的桌面环境管理。
核心能力
- 用 flakes 与 flake-parts 组织配置
- 按 hosts、home、modules 等目录分层管理
- 导出多个包,可用 nix run 直接运行
- 提供可复用的 NixOS 模块
- 桌面组件基于 Quickshell 实现
容易踩的坑
暂无 release 数据(可能没有发版,或尚未同步)。
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
🗒 About
In-house baked configs for Home-Manager and NixOS. Borrowed bits sprinkled on top. Using flakes and flake-parts.
See an overview of the flake outputs by running
nix flake show github:fufexan/dotfiles.
🗃️ Contents
- hosts: host-specific configuration
- home: Home Manager config
- lib: helper functions
- modules: exported NixOS modules
- pkgs: package definitions
- system: NixOS configuration common between hosts
📦 Exported packages
This flake exports several packages. To get a list of available packages, run
nix flake show github:fufexan/dotfiles
Run packages directly with the below command, replacing <packageName> with the desired package:
nix run github:fufexan/dotfiles#<packageName>
Or install from the packages output. For example:
# flake.nix
{
inputs.fufexan-dotfiles = {
url = "github:fufexan/dotfiles";
inputs.nixpkgs.follows = "nixpkgs";
};
}
# configuration.nix
{pkgs, inputs, ...}: {
environment.systemPackages = [
inputs.fufexan-dotfiles.packages."x86_64-linux".<packageName>
];
}
💻 Desktop preview
Currently, my widgets are created using Quickshell. If you're looking for the Ags v1 version, you can find it here. Older Eww version here.
Ags
Eww
💾 Resources
Other configurations from where I learned and copied:
- colemickens/nixcfg
- flake-utils-plus
- gytis-ivaskevicius/nixfiles
- Mic92/dotfiles
- NobbZ/nixos-config
- privatevoid-net/privatevoid-infrastructure
- RicArch97/nixos-config
- viperML/dotfiles
👥 People
These are the people whom I've taken inspiration from while writing these configs. There surely are more but I tend to forget. Regardless, I am thankful to all of them.
DieracDelta - gytis-ivaskevicius - hlissner - keksbg - Kranzes - matthewcroughan - max-privatevoid - Misterio77 - NobbZ - OPNA2608 - pnotequalnp - RicArch97 - tadeokondrak - viperML - Xe - yusdacra