-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
181 lines (170 loc) · 5.37 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
{
description = "spaghetti nixos";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/master";
home-manager.url = "github:nix-community/home-manager/master"; # added master branch to follow unstable nixos
home-manager.inputs.nixpkgs.follows = "nixpkgs";
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; # latest git
hyprpicker.url = "github:hyprwm/hyprpicker";
hy3 = {
url = "github:outfoxxed/hy3";
inputs.hyprland.follows = "hyprland";
};
quickshell = {
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
inputs.nixpkgs.follows = "nixpkgs";
};
# hycov.url = "github:DreamMaoMao/hycov";
# hycov.inputs.hyprland.follows = "hyprland";
# Hyprspace.url = "github:KZDKM/Hyprspace";
# Hyprspace.inputs.hyprland.follows = "hyprland";
nix-colors.url = "github:kyesarri/nix-colors"; # colour themes, fork
prism.url = "github:IogaMaster/prism"; # wallpaper gen
wallpaper-generator.url = "github:kyesarri/wallpaper-generator"; # another one
alejandra.url = "github:kamadorueda/alejandra/3.0.0"; # codium nix
};
outputs = {
self,
nixpkgs,
home-manager,
hyprland,
hyprpicker,
# Hyprspace,
hy3,
# hycov,
alejandra,
nix-colors,
prism,
quickshell,
wallpaper-generator,
...
} @ inputs: let
spaghetti = {
user = "kel";
plymouth = "deus_ex";
scheme = "horizon-dark";
scheme1 = "gigavolt";
scheme2 = "papercolor-dark";
iconPkg = "pkgs.zafiro-icons";
};
# import our secrets - these are required to be unencrypted when building
secrets = builtins.fromJSON (builtins.readFile "${self}/secrets/secrets.json");
system = "x86_64-linux";
specialArgs = {inherit nix-colors quickshell hyprpicker hy3 secrets inputs prism spaghetti wallpaper-generator;};
# TODO maybe don't pass nix-colors to special args, but only to extra special args
# TODO to fix the theming issue i'm currently facing
# FIXME
in {
#
nixosConfigurations = {
#
"nix-laptop" = nixpkgs.lib.nixosSystem {
inherit system specialArgs;
modules = [
home-manager.nixosModules.home-manager
./hosts/laptop # 4800hs / 1650 / 16gb ddr4 TODO download more ram
{
environment.systemPackages = [alejandra.defaultPackage.x86_64-linux];
}
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = false; # lets see what breaks :D
extraSpecialArgs = {
inherit nix-colors inputs hyprland;
inherit (inputs.nix-colors.lib-contrib) gtkThemeFromScheme;
};
};
}
];
};
#
"nix-notebook" = nixpkgs.lib.nixosSystem {
inherit system specialArgs;
modules = [
home-manager.nixosModules.home-manager
./hosts/notebook # celeron N3050 / intel "hd" / 4gb ddr3
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit nix-colors inputs hyprland;};
};
}
];
};
#
"nix-desktop" = nixpkgs.lib.nixosSystem {
inherit system specialArgs;
modules = [
home-manager.nixosModules.home-manager
./hosts/desktop # msi-z790i edge wifi / 13900kf / 3070 / 32gb ddr5
{
environment.systemPackages = [alejandra.defaultPackage.x86_64-linux];
}
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit nix-colors inputs;};
};
}
];
};
#
"nix-serv" = nixpkgs.lib.nixosSystem {
inherit system specialArgs;
modules = [
home-manager.nixosModules.home-manager
./hosts/serv # ASUS z390i / 9900k / 32gb ddr4
{
environment.systemPackages = [alejandra.defaultPackage.x86_64-linux];
}
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit inputs;};
};
}
];
};
#
"nix-ws" = nixpkgs.lib.nixosSystem {
inherit system specialArgs;
modules = [
home-manager.nixosModules.home-manager
./hosts/ws # ASUS x99 ws ipmi / 5960x / 64gb ddr4
{
environment.systemPackages = [alejandra.defaultPackage.x86_64-linux];
}
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit inputs;};
};
}
];
};
#
"nix-erying" = nixpkgs.lib.nixosSystem {
inherit system specialArgs;
modules = [
home-manager.nixosModules.home-manager
./hosts/erying # erying Q1J2 (i7 ES 0000 13650HX or 1360P?) 14C20T / iris xe / 32gb ddr5
{
environment.systemPackages = [alejandra.defaultPackage.x86_64-linux];
}
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit nix-colors inputs;};
};
}
];
};
};
};
}