Skip to content

Commit 5600039

Browse files
committed
refactor(flake): Import all modules from separate file
1 parent e436c6a commit 5600039

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

flake.nix

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,7 @@
202202
in
203203
flake-parts.lib.mkFlake {inherit inputs;} {
204204
imports = [
205-
./modules/lido
206-
./modules/tailscale-autoconnect
207-
./modules/grafana-agent-flow
208-
./modules/pyroscope
205+
./modules
209206
./packages
210207
];
211208
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
@@ -219,8 +216,8 @@
219216
};
220217
flake.lib.create = {
221218
rootDir,
222-
machinesDir ? null,
223-
usersDir ? null,
219+
machinesDir ? rootDir + "/machines",
220+
usersDir ? rootDir + "/users",
224221
}: {
225222
dirs = {
226223
lib = self + "/lib";

modules/default.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
imports = [
3+
./lido
4+
./tailscale-autoconnect
5+
./grafana-agent-flow
6+
./pyroscope
7+
];
8+
}

0 commit comments

Comments
 (0)