dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
modules/hosts/valkyrie/_dev.nix (1188B)
1## Development
2_: {
3 nixos = {
4 config,
5 pkgs,
6 ...
7 }: {
8 # VPN
9 services.cloudflare-warp = {
10 enable = true;
11 openFirewall = true;
12 };
13
14 # VPN Tunnel
15 services.tailscale = {
16 enable = true;
17 openFirewall = true;
18 #authKeyFile = config.sops.secrets."tailscale.secret".path;
19 };
20
21 environment = {
22 persist.directories = [
23 "/var/lib/tailscale"
24 config.services.cloudflare-warp.rootDir
25 ];
26
27 # Tools
28 systemPackages = with pkgs; [
29 gcc
30 mongodb-compass
31
32 # Node
33 nodejs
34 npm-check-updates
35 pnpm
36 ];
37 };
38
39 networking.firewall = {
40 allowedUDPPorts = [7777];
41 allowedTCPPorts = [7777];
42 };
43 };
44
45 home = _: {
46 home = {
47 persist.directories = [
48 ".mongodb"
49 ".npm"
50 ".config/MongoDB Compass"
51 ".local/share/cloudflare-warp-gui"
52 ];
53
54 # NPM
55 sessionPath = ["$HOME/.npm/packages/bin"];
56 sessionVariables = {
57 NPM_CONFIG_USERCONFIG = "$HOME/.npm/npmrc";
58 NPM_CONFIG_PREFIX = "$HOME/.npm/packages";
59 NPM_CONFIG_CACHE = "$HOME/.npm/cache";
60 };
61 };
62 };
63}