-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathddd
More file actions
103 lines (90 loc) · 3.2 KB
/
Copy pathddd
File metadata and controls
103 lines (90 loc) · 3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
description = "Tayen's Aesthetic & Efficient NixOS Flake";
inputs = {
# 核心源
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.05";
# 硬件优化 (针对 1660 Ti 笔记本的关键输入)
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
# 系统架构支持
flake-parts.url = "github:hercules-ci/flake-parts";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
# 图形与合成器 (使用 Overlay 修复构建失败)
niri = {
url = "github:sodiboo/niri-flake";
};
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
# 开发与美化工具
stylix.url = "github:nix-community/stylix";
nixvim.url = "github:nix-community/nixvim";
treefmt-nix.url = "github:numtide/treefmt-nix";
nh.url = "github:nix-community/nh";
# 终端与 Shell
ghostty.url = "github:ghostty-org/ghostty";
quickshell = {
url = "git+https://git.outfoxxed.me/quickshell/quickshell";
inputs.nixpkgs.follows = "nixpkgs";
};
# 保留你原有的其他输入...
nur.url = "github:nix-community/NUR";
nil.url = "github:oxalica/nil";
nixd.url = "github:nix-community/nixd";
agenix.url = "github:ryantm/agenix";
mangowc.url = "github:DreamMaoMao/mangowc";
nix-matlab.url = "gitlab:doronbehar/nix-matlab";
nixGL.url = "github:nix-community/nixGL";
dankMaterialShell.url = "github:AvengeMedia/DankMaterialShell";
caelestia-shell = {
url = "github:caelestia-dots/shell";
inputs.quickshell.follows = "quickshell";
};
caelestia-cli.url = "github:caelestia-dots/cli";
noctalia-shell = {
url = "github:noctalia-dev/noctalia-shell";
inputs.nixpkgs.follows = "nixpkgs";
};
hexecute.url = "github:ThatOtherAndrew/Hexecute";
nixpkgs-kimi-cli.url = "github:jetjinser/nixpkgs/jinser/kimi-cli";
};
outputs =
{ self, nixpkgs, nixos-hardware, ... }@inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
imports = [
./hosts
inputs.treefmt-nix.flakeModule
{ _module.args = { inherit inputs self nixpkgs; }; }
];
flake = {
homeManagerModules = import ./modules/home-manager;
# 强制修复:跳过 Niri 构建阶段的单元测试
overlays = [
(final: prev: {
niri = prev.niri.overrideAttrs (old: {
doCheck = false;
});
})
(import ./overlays { inherit inputs self; })
];
templates = import ./templates;
};
perSystem =
{ pkgs, ... }:
{
packages = import ./pkgs { inherit pkgs; };
treefmt = {
projectRootFile = "flake.nix";
programs.nixfmt.enable = true;
programs.ruff-format.enable = true;
programs.prettier.enable = true;
programs.beautysh.enable = true;
programs.toml-sort.enable = true;
settings.global.excludes = [ "*.age" ];
# ... 保留原有格式化配置 ...
};
};
};
}