-
Notifications
You must be signed in to change notification settings - Fork 2
/
default.nix
126 lines (118 loc) · 2.98 KB
/
default.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
{
nixpkgs,
self,
...
}: let
inherit (self) inputs;
core = ./shared/core;
gamemode = ./shared/core/gamemode;
users = ./shared/users;
wayland = ./shared/meta/wayland;
agenix = inputs.agenix.nixosModules.default;
hw = inputs.nixos-hardware.nixosModules;
hmModule = inputs.home-manager.nixosModules.home-manager;
shared = [agenix core users];
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
extraSpecialArgs = {
inherit inputs;
inherit self;
};
users.will = ./shared/home;
};
in {
# all my hosts are named after zelda characters and creatures
# laptop
dinraal = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules =
[
{networking.hostName = "dinraal";}
./by-id/dinraal/hardware-configuration.nix
./by-id/dinraal/hardware.nix
./by-id/dinraal/age.nix
./by-id/dinraal/syncthing.nix
# ./by-id/dinraal/wireguard.nix
hw.common-cpu-intel
hw.common-pc-laptop
gamemode
# hyprland
wayland
hmModule
{inherit home-manager;}
]
++ shared;
specialArgs = {inherit inputs;};
};
# main desktop
farosh = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules =
[
{networking.hostName = "farosh";}
./by-id/farosh/hardware-configuration.nix
./by-id/farosh/hardware.nix
./by-id/farosh/age.nix
./by-id/farosh/syncthing.nix
hw.common-cpu-amd
hw.common-gpu-amd
gamemode
# hyprland
wayland
hmModule
{inherit home-manager;}
]
++ shared;
specialArgs = {inherit inputs;};
};
# generic image WIP
korok = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules =
[
{networking.hostName = "farosh";}
./by-id/korok/hardware-configuration.nix
./by-id/korok/hardware.nix
./by-id/korok/users.nix
wayland
hmModule
core
{inherit home-manager;}
];
specialArgs = {inherit inputs;};
};
# NAS/server WIP not tested or in use yet
naydra = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules =
[
{networking.hostName = "naydra";}
./by-id/naydra/hardware-configuration.nix
./by-id/naydra/hardware.nix
./by-id/naydra/syncthing.nix
hw.common-cpu-intel
hmModule
{inherit home-manager;}
]
++ shared;
specialArgs = {inherit inputs;};
};
# Dedi server. WIP, not tested or in use yet
gleeok = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules =
[
{networking.hostName = "gleeok";}
./by-id/gleeok/hardware-configuration.nix
./by-id/gleeok/hardware.nix
./by-id/gleeok/syncthing.nix
hw.common-cpu-intel
hmModule
{inherit home-manager;}
]
++ shared;
specialArgs = {inherit inputs;};
};
# valoo, bokoblin and hinox will be future projects :)
}