-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
196 lines (193 loc) · 5.63 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
{
description = "Home Manager configuration of jacobpyke";
nixConfig = {
extra-substituters = [
"https://jpyke3.cachix.org"
];
extra-trusted-public-keys = [
"jpyke3.cachix.org-1:SkUkQoQ6WbhSs7SGsMZ22H/DyJ7VNpT4/BaEvTCEQZY="
];
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-24.05-darwin";
nur = {
url = "github:nix-community/nur";
};
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager-unstable = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "unstable";
};
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-colors = {
url = "github:misterio77/nix-colors";
};
nixpkgs-firefox-darwin = {
url = "github:bandithedoge/nixpkgs-firefox-darwin";
};
llama-cpp = {
url = "github:ggerganov/llama.cpp";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
jovian = {
url = "github:Jovian-Experiments/Jovian-NixOS";
inputs.nixpkgs.follows = "unstable";
};
kmonad = {
url = "git+https://github.com/kmonad/kmonad?submodules=1&dir=nix";
};
base16 = {
url = "github:SenchoPens/base16.nix";
};
stylix = {
url = "github:danth/stylix/master";
inputs.nixpkgs.follows = "nixpkgs";
};
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
vpnconfinement = {
url = "github:Maroka-chan/VPN-Confinement";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
unstable,
home-manager,
home-manager-unstable,
llama-cpp,
jovian,
nix-darwin,
nixpkgs-darwin,
nur,
kmonad,
stylix,
spicetify-nix,
vpnconfinement,
...
} @ inputs: {
# Desktop PC
nixosConfigurations.jacob-singapore = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
nur.nixosModules.nur
./systems/nixos/configuration.nix
./systems/nixos/singapore/configuration.nix
stylix.nixosModules.stylix
./systems/stylix.nix
home-manager.nixosModules.home-manager
{
home-manager.users.jacobpyke = import ./systems/nixos/singapore/home.nix;
home-manager.backupFileExtension = "backup";
home-manager.extraSpecialArgs = {
inherit inputs;
system = "x86_64-linux";
};
}
];
};
# Steam Deck LCD
nixosConfigurations.jacob-switzerland = unstable.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
nur.nixosModules.nur
./systems/nixos/configuration.nix
./systems/nixos/switzerland/configuration.nix
home-manager-unstable.nixosModules.home-manager
{
home-manager.users.jacobpyke = import ./systems/nixos/switzerland/home.nix;
home-manager.extraSpecialArgs = {
inherit inputs;
system = "x86_64-linux";
};
}
];
};
# Steam Deck OLED
nixosConfigurations.jacob-japan = unstable.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
nur.nixosModules.nur
./systems/nixos/configuration.nix
./systems/nixos/japan/configuration.nix
home-manager-unstable.nixosModules.home-manager
{
home-manager.users.jacobpyke = import ./systems/nixos/japan/home.nix;
home-manager.extraSpecialArgs = {
inherit inputs;
system = "x86_64-linux";
};
}
];
};
# Home Server / NAS
nixosConfigurations.jacob-china = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
nur.nixosModules.nur
./systems/nixos/configuration.nix
./systems/nixos/china/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.users.jacobpyke = import ./systems/nixos/china/home.nix;
home-manager.extraSpecialArgs = {
inherit inputs;
system = "x86_64-linux";
};
}
];
};
# Nix-Darwin Macbook Pro
darwinConfigurations."jacob-germany" = nix-darwin.lib.darwinSystem {
system = "aarch64-darwin";
specialArgs = {inherit inputs;};
modules = [
stylix.darwinModules.stylix
./systems/darwin/kmonad.nix
./systems/darwin/configuration.nix
./systems/stylix.nix
home-manager.darwinModules.home-manager
{
home-manager.backupFileExtension = "backup";
home-manager.users.jacobpyke.imports = [
./users/jacob/common-home.nix
./systems/darwin/home.nix
];
home-manager.extraSpecialArgs = {
inherit inputs;
system = "aarch64-darwin";
};
}
];
};
# Jovian Installer Image
nixosConfigurations.steam-deck-live = unstable.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
(nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-graphical-plasma5.nix")
./systems/nixos/configuration.nix
./systems/nixos/japan/configuration.nix
];
};
};
}