-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevenv.nix
More file actions
39 lines (35 loc) · 962 Bytes
/
Copy pathdevenv.nix
File metadata and controls
39 lines (35 loc) · 962 Bytes
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
{
config,
lib,
pkgs,
...
}:
let
system = pkgs.stdenv.system;
in
{
imports = [
(import ./nix/utils/util.nix {
devenvRoot = config.env.DEVENV_ROOT;
devenvState = config.env.DEVENV_STATE;
devenvDotfile = config.env.DEVENV_DOTFILE;
devenvProfile = config.env.DEVENV_PROFILE;
devenvRuntime = config.env.DEVENV_RUNTIME;
mysqlSocket = config.env.MYSQL_UNIX_PORT;
pgsqlSocket = config.services.postgres.settings.unix_socket_directories;
redisSocket = config.env.REDIS_UNIX_SOCKET;
})
./nix/utils/app-urls.devenv.nix
./nix/services/devenv.nix
./nix/app-services/devenv.nix
];
config = {
packages = if system != "aarch64-darwin" then (with pkgs; [ wl-clipboard ]) else [ ];
# Give rust tooling time to mature
process.manager.implementation = "process-compose";
processes = {
env-config.exec = "devenv info";
};
dotenv.enable = lib.mkDefault true;
};
}