-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
220 lines (188 loc) · 6.57 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
{
description = "Kreyren's Infrastructure Management With NiXium";
inputs = {
# Release inputs
nixpkgs-master.url = "github:nixos/nixpkgs/master";
nixpkgs-staging-next.url = "github:nixos/nixpkgs/staging-next";
nixpkgs-staging.url = "github:nixos/nixpkgs/staging";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*.tar.gz";
nixpkgs-23_05.url = "github:nixos/nixpkgs/nixos-23.05";
nixpkgs-23_11.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs-24_05.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-kreyren.url = "github:kreyren/nixpkgs/central";
# Principle inputs
nixos-hardware.url = "github:NixOS/nixos-hardware";
nixos-flake.url = "github:srid/nixos-flake";
# nur.url = "github:nix-community/NUR/master";
#impermanence.url = "github:nix-community/impermanence";
impermanence.url = "github:kreyren/impermanence"; # Use a fork to manage https://github.com/nix-community/impermanence/issues/167
flake-parts.url = "github:hercules-ci/flake-parts";
mission-control.url = "github:Platonic-Systems/mission-control";
flake-root.url = "github:srid/flake-root";
# NOTE(Krey): Lanzaboote was updated to 0.4.1, but those versions are not compatible with the nixpkgs stable channel
lanzaboote.url = "github:nix-community/lanzaboote/v0.3.0"; # MAINTAIN(Krey): has to be kept up to date -- https://github.com/nix-community/lanzaboote/issues/343
arkenfox = {
url = "github:dwarfmaster/arkenfox-nixos";
inputs.nixpkgs.follows = "nixpkgs";
};
arkenfox-unstable = {
url = "github:dwarfmaster/arkenfox-nixos";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
arkenfox-master = {
url = "github:dwarfmaster/arkenfox-nixos";
inputs.nixpkgs.follows = "nixpkgs-master";
};
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
rust-overlay.url = "github:oxalica/rust-overlay";
polymc.url = "github:PolyMC/PolyMC";
# SOPS
sops = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-unstable = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
sops-master = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs-master";
};
# Ragenix
ragenix = {
url = "github:NiXium-org/ragenix";
inputs.nixpkgs.follows = "nixpkgs";
};
ragenix-unstable = {
url = "github:NiXium-org/ragenix";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
ragenix-master = {
url = "github:NiXium-org/ragenix";
inputs.nixpkgs.follows = "nixpkgs-master";
};
# DISKO
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
disko-unstable = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
disko-master = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs-master";
};
# AAGL
aagl = {
url = "github:ezKEa/aagl-gtk-on-nix/release-24.05";
inputs.nixpkgs.follows = "nixpkgs-24_05";
};
aagl-24_05 = {
url = "github:ezKEa/aagl-gtk-on-nix/release-24.05";
inputs.nixpkgs.follows = "nixpkgs-24_05";
};
aagl-23_11 = {
url = "github:ezKEa/aagl-gtk-on-nix/release-23.11";
inputs.nixpkgs.follows = "nixpkgs-23_11";
};
aagl-unstable = {
url = "github:ezKEa/aagl-gtk-on-nix/main";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
aagl-master = {
url = "github:ezKEa/aagl-gtk-on-nix/main";
inputs.nixpkgs.follows = "nixpkgs-master";
};
# Home-Manager
hm = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
hm-24_05 = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs-24_05";
};
hm-23_11 = {
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs-23_11";
};
hm-unstable = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
hm-master = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs-master";
};
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-generators-unstable = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
nixos-generators-master = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs-master";
};
};
outputs = inputs @ { self, ... }:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
./src # Import Source Code
./lib # Implement libs
./tasks # Include Tasks
inputs.flake-root.flakeModule
inputs.mission-control.flakeModule
];
# Set Supported Systems
systems = [
"x86_64-linux"
"aarch64-linux"
"riscv64-linux"
"armv7l-linux"
];
perSystem = { system, config, inputs', ... }: {
devShells.default = inputs.nixpkgs.legacyPackages.${system}.mkShell {
name = "NiXium-devshell";
nativeBuildInputs = [
# Shell
inputs.nixpkgs.legacyPackages.${system}.bashInteractive # For terminal
inputs.nixpkgs.legacyPackages.${system}.shellcheck # Linting of shell files
# Nix
inputs.nixpkgs.legacyPackages.${system}.nil # Needed for linting
inputs.nixpkgs.legacyPackages.${system}.nixpkgs-fmt # Nixpkgs formatter
# Javascript
inputs.nixpkgs.legacyPackages.${system}.nodePackages.eslint
# Secrets
inputs.ragenix.packages.${system}.default # To manage secrets
inputs.nixpkgs.legacyPackages.${system}.age # Managing age files
inputs.nixpkgs.legacyPackages.${system}.sops # Secret management
inputs.nixpkgs.legacyPackages.${system}.sbctl # To set up secureboot
inputs.nixpkgs.legacyPackages.${system}.fira-code # For liquratures in code editors
# Utilities
inputs.nixpkgs.legacyPackages.${system}.git # Working with the codebase
inputs.nixpkgs.legacyPackages.${system}.nano # Editor to work with the codebase in cli
inputs.nixos-generators.packages.${system}.nixos-generate
inputs.disko.packages.${system}.disko-install
inputs.disko.packages.${system}.disko
];
inputsFrom = [
config.mission-control.devShell
config.flake-root.devShell
];
# Environmental Variables
#VARIABLE = "value"; # Comment
};
formatter = inputs.nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
};
};
}