forked from go-vikunja/vikunja
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevenv.nix
More file actions
79 lines (73 loc) · 1.73 KB
/
devenv.nix
File metadata and controls
79 lines (73 loc) · 1.73 KB
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
{ pkgs, lib, config, inputs, ... }:
let
pkgs-unstable = import inputs.nixpkgs-unstable { system = pkgs.stdenv.system; };
in {
scripts.patch-sass-embedded.exec = ''
find node_modules/.pnpm/sass-embedded-linux-*/node_modules/sass-embedded-linux-*/dart-sass/src -name dart -print0 | xargs -I {} -0 patchelf --set-interpreter "$(<$NIX_CC/nix-support/dynamic-linker)" {}
'';
packages = with pkgs-unstable; [
# General tools
git-cliff
actionlint
crowdin-cli
nfpm
# API tools
golangci-lint mage
# Desktop
electron
# Font processing tools
wget
python3
python3Packages.pip
python3Packages.fonttools
python3Packages.brotli
] ++ lib.optionals (!pkgs.stdenv.isDarwin) [
# Frontend tools (exclude on Darwin)
pkgs-unstable.cypress
];
languages = {
javascript = {
enable = true;
package = pkgs-unstable.nodejs-slim;
pnpm = {
enable = true;
package = pkgs-unstable.pnpm;
};
};
go = {
enable = true;
package = pkgs-unstable.go;
enableHardeningWorkaround = true;
};
};
services.mailpit = {
enable = true;
package = pkgs-unstable.mailpit;
};
devcontainer = {
enable = true;
settings = {
forwardPorts = [ 4173 3456 ];
portsAttributes = {
"4173" = {
label = "Vikunja Frontend dev server";
};
"3456" = {
label = "Vikunja API";
};
};
customizations.vscode.extensions = [
"Syler.sass-indented"
"codezombiech.gitignore"
"dbaeumer.vscode-eslint"
"editorconfig.editorconfig"
"golang.Go"
"lokalise.i18n-ally"
"mikestead.dotenv"
"mkhl.direnv"
"vitest.explorer"
"vue.volar"
];
};
};
}