-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
57 lines (54 loc) · 1.47 KB
/
flake.nix
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
{
description = "NixOS & Nix Darwin & Home Manager 统一配置";
inputs = {
# 硬盘
disko = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/disko/latest";
};
# 核心
flake-parts.url = "github:hercules-ci/flake-parts";
flake-root.url = "github:srid/flake-root";
git-hooks-nix = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:cachix/git-hooks.nix";
};
home-manager = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/home-manager";
};
nixos-unified.url = "github:srid/nixos-unified";
nixos-wsl = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/NixOS-WSL";
};
nix-ld = {
url = "github:Mic92/nix-ld";
};
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
treefmt-nix.url = "github:numtide/treefmt-nix";
# 秘密
sops-nix.url = "github:Mic92/sops-nix";
# 音频
musnix.url = "github:musnix/musnix";
};
nixConfig = {
substituters = [
"https://mirror.sjtu.edu.cn/nix-channels/store"
"https://nix-community.cachix.org"
"https://cache.nixos.org"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
];
};
outputs =
{ nixos-unified
, ...
}@inputs:
nixos-unified.lib.mkFlake {
inherit inputs;
root = ./.;
};
}