-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
162 lines (152 loc) · 4.81 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
{
description = "spaghetti nixos";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/master";
agenix.url = "github:ryantm/agenix";
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";
};
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
schizofox.url = "github:schizofox/schizofox"; # firefox fork
alejandra.url = "github:kamadorueda/alejandra/3.0.0"; # codium nix
};
outputs = {
self,
nixpkgs,
agenix,
home-manager,
hyprland,
hyprpicker,
hy3,
alejandra,
nix-colors,
prism,
quickshell,
schizofox,
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 agenix hyprpicker hy3 secrets inputs prism schizofox spaghetti wallpaper-generator;};
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
agenix.nixosModules.default
{
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
agenix.nixosModules.default
{
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
agenix.nixosModules.default
{
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
agenix.nixosModules.default
{
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 / 1660 super
agenix.nixosModules.default
{
environment.systemPackages = [alejandra.defaultPackage.x86_64-linux];
}
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit nix-colors inputs;};
};
}
];
};
};
};
}