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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
|
{
description = "nipsy's NixOS configurations";
inputs = {
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
#ghostty = {
# url = "github:ghostty-org/ghostty";
#};
home-manager-stable = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:nixos/nixos-hardware";
# per https://nixos-and-flakes.thiscute.world/nixos-with-flakes/downgrade-or-upgrade-packages
#nixpkgs-67e692392.url = "github:nixos/nixpkgs/67e69239226f37168d1adb8d29bd61150756a03e";
nixpkgs-wine9_4.url = "github:nixos/nixpkgs/dea5930f0ed8c29d3758d5ade9898b4e99d80b74";
nixpkgs-master.url = "github:nixos/nixpkgs";
#nixpkgs-pr369712.url = "github:7c6f434c/nixpkgs/fix-tftp-hpa";
nixpkgs-stable.url = "github:nixos/nixpkgs/release-24.05";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nvidia-patch = {
url = "github:icewind1991/nvidia-patch-nixos";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
disko,
home-manager-stable,
home-manager,
nixos-hardware,
nixpkgs-master,
#nixpkgs-pr369712,
nixpkgs-stable,
nixpkgs-wine9_4,
nixpkgs,
nvidia-patch,
self,
sops-nix,
...
} @ inputs: let
inherit (self) outputs;
systems = [
#"aarch64-linux"
#"i686-linux"
"x86_64-linux"
#"aarch64-darwin"
#"x86_64-darwin"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
in {
nixosConfigurations = {
arrakis = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [
#{
# environment.systemPackages = [
# ghostty.packages.x86_64-linux.default
# ];
#}
#({ config, pkgs, ... }:
# let
# overlay-dict-pr367392 = final: prev: {
# dict = nixpkgs-pr367392.legacyPackages."x86_64-linux".dict;
# };
# in {
# nixpkgs.overlays = [ overlay-dict-pr367392 ];
# }
#)
disko.nixosModules.disko
./hosts/arrakis
home-manager.nixosModules.home-manager {
home-manager.sharedModules = [ sops-nix.homeManagerModules.sops ];
home-manager.users.root = import ./home/root/arrakis.nix;
home-manager.users.nipsy = import ./home/nipsy/arrakis.nix;
}
sops-nix.nixosModules.sops
];
};
darkstar = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [
disko.nixosModules.disko
./hosts/darkstar
home-manager.nixosModules.home-manager {
#home-manager.sharedModules = [ sops-nix.homeManagerModules.sops ];
home-manager.users.root = import ./home/root/darkstar.nix;
home-manager.users.nipsy = import ./home/nipsy/darkstar.nix;
}
sops-nix.nixosModules.sops
];
};
ginaz = nixpkgs.lib.nixosSystem rec {
specialArgs = { inherit inputs outputs; };
modules = [
disko.nixosModules.disko
./hosts/ginaz
home-manager.nixosModules.home-manager {
home-manager.sharedModules = [ sops-nix.homeManagerModules.sops ];
home-manager.users.root = import ./home/root/ginaz.nix;
home-manager.users.nipsy = import ./home/nipsy/ginaz.nix;
}
nixos-hardware.nixosModules.lenovo-yoga-7-14ARH7-amdgpu
sops-nix.nixosModules.sops
];
};
# from https://nixos.wiki/wiki/Creating_a_NixOS_live_CD and https://chengeric.com/homelab/
iso = nixpkgs.lib.nixosSystem {
modules = [
({ modulesPath, pkgs, ... }: {
environment.systemPackages = with pkgs; [
acl
bash
bc
bzip2
conntrack-tools
coreutils
cpio
curl
diffutils
dig
dmidecode
elinks
encfs
ethtool
expect
file
findutils
fio
fping
git
gnugrep
gnupatch
gnused
gnutar
gptfdisk
gzip
htop
iotop
ipcalc
iperf
iproute2
iputils
jq
less
lshw
lsof
lvm2
moreutils
nano
netcat-openbsd
nettools
nmap
ntfs3g
openldap
openssl
p7zip
parted
pciutils
procps
progress
psmisc
pv
pwgen
recode
rsync
sg3_utils
smartmontools
socat
speedtest-cli
sqlite
sshfs
strace
sysstat
tcpdump
tftp-hpa
traceroute
tree
tshark
unixtools.xxd
unrar
unzip
usbutils
util-linux
vim
wdiff
wget
whois
wireguard-tools
xz
zip
];
imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") ];
#isoImage.squashfsCompression = "gzip -Xcompression-level 1";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;
services.openssh = {
enable = true;
openFirewall = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
users.users = {
nixos.openssh.authorizedKeys.keys = [ (builtins.readFile ./hosts/common/users/nipsy/keys/id_arrakis.pub) ];
root.openssh.authorizedKeys.keys = [ (builtins.readFile ./hosts/common/users/nipsy/keys/id_arrakis.pub) ];
};
})
];
system = "x86_64-linux";
};
kaitain = nixpkgs.lib.nixosSystem rec {
specialArgs = { inherit inputs outputs; };
modules = [
disko.nixosModules.disko
./hosts/kaitain
home-manager.nixosModules.home-manager {
#home-manager.sharedModules = [ sops-nix.homeManagerModules.sops ];
home-manager.users.root = import ./home/root/kaitain.nix;
home-manager.users.nipsy = import ./home/nipsy/kaitain.nix;
}
sops-nix.nixosModules.sops
];
};
jupiter = nixpkgs.lib.nixosSystem rec {
specialArgs = { inherit inputs outputs; };
modules = [
disko.nixosModules.disko
./hosts/jupiter
home-manager.nixosModules.home-manager {
#home-manager.sharedModules = [ sops-nix.homeManagerModules.sops ];
home-manager.users.root = import ./home/root/jupiter.nix;
home-manager.users.nipsy = import ./home/nipsy/jupiter.nix;
}
#sops-nix.nixosModules.sops
];
};
neptune = nixpkgs.lib.nixosSystem rec {
specialArgs = { inherit inputs outputs; };
modules = [
disko.nixosModules.disko
./hosts/neptune
home-manager.nixosModules.home-manager {
#home-manager.sharedModules = [ sops-nix.homeManagerModules.sops ];
home-manager.users.root = import ./home/root/neptune.nix;
home-manager.users.nipsy = import ./home/nipsy/neptune.nix;
}
#sops-nix.nixosModules.sops
];
};
netboot = nixpkgs.lib.nixosSystem {
modules = [
"${nixpkgs}/nixos/modules/installer/netboot/netboot-minimal.nix"
({
#isoImage.squashfsCompression = "gzip -Xcompression-level 1";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
users.users = {
nixos.openssh.authorizedKeys.keys = [ (builtins.readFile ./hosts/common/users/nipsy/keys/id_arrakis.pub) ];
root.openssh.authorizedKeys.keys = [ (builtins.readFile ./hosts/common/users/nipsy/keys/id_arrakis.pub) ];
};
})
];
system = "x86_64-linux";
};
richese = nixpkgs.lib.nixosSystem rec {
specialArgs = { inherit inputs outputs; };
modules = [
disko.nixosModules.disko
./hosts/richese
home-manager.nixosModules.home-manager {
#home-manager.sharedModules = [ sops-nix.homeManagerModules.sops ];
home-manager.users.root = import ./home/root/richese.nix;
home-manager.users.nipsy = import ./home/nipsy/richese.nix;
}
sops-nix.nixosModules.sops
];
};
saturn = nixpkgs.lib.nixosSystem rec {
specialArgs = { inherit inputs outputs; };
modules = [
disko.nixosModules.disko
./hosts/saturn
home-manager.nixosModules.home-manager {
#home-manager.sharedModules = [ sops-nix.homeManagerModules.sops ];
home-manager.users.root = import ./home/root/saturn.nix;
home-manager.users.nipsy = import ./home/nipsy/saturn.nix;
}
#sops-nix.nixosModules.sops
];
};
uranus = nixpkgs.lib.nixosSystem rec {
specialArgs = { inherit inputs outputs; };
modules = [
disko.nixosModules.disko
./hosts/uranus
home-manager.nixosModules.home-manager {
#home-manager.sharedModules = [ sops-nix.homeManagerModules.sops ];
home-manager.users.root = import ./home/root/uranus.nix;
home-manager.users.nipsy = import ./home/nipsy/uranus.nix;
}
#sops-nix.nixosModules.sops
];
};
};
overlays = import ./overlays {inherit inputs;};
packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
};
}
|