-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
122 lines (116 loc) · 3.52 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
description = "Main config";
inputs = rec {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
impermanence = {
url = "github:nix-community/impermanence";
};
neovim.url = "github:nix-community/neovim-nightly-overlay/master";
neovim.inputs.nixpkgs.follows = "nixpkgs";
nvchad.url = "github:nix-community/nix4nvchad";
nvchad.inputs.nixpkgs.follows = "nixpkgs";
starter.url = "github:Bot-wxt1221/Bot-wxt1221-NvChad";
starter.flake = false;
nvchad.inputs.nvchad-starter.follows = "starter";
luogu-gcc.url = "github:luogu-dev/judge-env";
clipboard = {
url = "github:Bot-wxt1221/clipboard-sync";
inputs.nixpkgs.follows = "nixpkgs";
};
niri = {
url = "github:sodiboo/niri-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
home-manager,
neovim,
niri,
nvchad,
luogu-gcc,
impermanence,
clipboard,
...
}@inputs:
{
nixosConfigurations.wxt-g3 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
nixpkgs = nixpkgs;
inherit niri;
};
modules = [
./g3-configuration.nix
impermanence.nixosModules.impermanence
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.wxt = import ./home/wxt/default-g3.nix;
home-manager.extraSpecialArgs = {
inherit neovim;
inherit nvchad;
inherit impermanence;
inherit clipboard;
inherit luogu-gcc;
};
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
];
};
packages.x86_64-linux.iso-image = self.nixosConfigurations.iso-image.config.system.build.isoImage;
nixosConfigurations.iso-image = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit nixpkgs;
};
modules = [
./iso
];
};
packages.x86_64-linux.iso-image-gpu =
self.nixosConfigurations.iso-image-gpu.config.system.build.isoImage;
nixosConfigurations.iso-image-gpu = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit nixpkgs;
};
modules = [
./iso
./iso/gpu.nix
];
};
nixosConfigurations.wxt-school-vmware = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
nixpkgs = nixpkgs;
inherit niri;
};
modules = [
./school-vmware-configuration.nix
impermanence.nixosModules.impermanence
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.wxt = import ./home/wxt/default-school-vmware.nix;
home-manager.extraSpecialArgs = {
inherit neovim;
inherit nvchad;
inherit impermanence;
inherit clipboard;
inherit luogu-gcc;
};
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
];
};
};
}