Skip to content

Commit c6bcef8

Browse files
committed
refactor(flake): Import all modules from separate file
1 parent 308c375 commit c6bcef8

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
@@ -199,10 +199,7 @@
199199
in
200200
flake-parts.lib.mkFlake {inherit inputs;} {
201201
imports = [
202-
./modules/lido
203-
./modules/tailscale-autoconnect
204-
./modules/grafana-agent-flow
205-
./modules/pyroscope
202+
./modules
206203
./packages
207204
];
208205
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
@@ -216,8 +213,8 @@
216213
};
217214
flake.lib.create = {
218215
rootDir,
219-
machinesDir ? null,
220-
usersDir ? null,
216+
machinesDir ? rootDir + "/machines",
217+
usersDir ? rootDir + "/users",
221218
}: {
222219
dirs = {
223220
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)