-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.nix
48 lines (46 loc) · 1.03 KB
/
outputs.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
{ inputs, ... }:
with inputs;
let
args = {
inherit inputs self;
channels = {
inherit nixpkgs;
};
};
in
{
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
specialArgs = args // {
inherit system;
};
modules = [
#其他配置文件
./nixpkgs.nix
./nixos/wsl.nix
./nixos/system.nix
./nixos/secret.nix
./nixos/service.nix
#一些模块
nixos-wsl.nixosModules.wsl
agenix.nixosModules.default
home-manager.nixosModules.home-manager
{ home-manager.extraSpecialArgs = specialArgs; }
];
};
darwinConfigurations.AldricdeMacBook-Air = darwin.lib.darwinSystem rec {
system = "aarch64-darwin";
specialArgs = args // {
inherit system;
};
modules = [
./nixpkgs.nix
./darwin/system.nix
./darwin/secret.nix
#一些模块
agenix.darwinModules.default
home-manager.darwinModules.home-manager
{ home-manager.extraSpecialArgs = specialArgs; }
];
};
}