-
Notifications
You must be signed in to change notification settings - Fork 0
/
devenv.nix
47 lines (38 loc) · 975 Bytes
/
devenv.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
{ pkgs, ... }:
{
# https://devenv.sh/basics/
# env.GREET = "devenv";
# https://devenv.sh/packages/
packages = [
pkgs.git
pkgs.omnisharp-roslyn
];
# https://devenv.sh/scripts/
# scripts.hello.exec = "echo hello from $GREET";
enterShell = ''
dotnet tool restore
'';
# https://devenv.sh/languages/
languages.dotnet.enable = true;
languages.dotnet.package = pkgs.dotnet-sdk_8;
# https://devenv.sh/pre-commit-hooks/
pre-commit.hooks = {
editorconfig-checker.enable = true;
csharpier = {
enable = true;
entry = "dotnet csharpier";
files = "\.cs$";
};
};
# https://devenv.sh/processes/
processes.watch.exec = "dotnet watch";
services.postgres = {
enable = true;
package = pkgs.postgresql_16;
listen_addresses = "127.0.0.1";
initialScript = ''
CREATE USER postgres SUPERUSER PASSWORD 'password';
'';
};
# See full reference at https://devenv.sh/reference/options/
}