diff options
author | Alan Pearce | 2019-10-02 16:55:35 +0200 |
---|---|---|
committer | Alan Pearce | 2019-10-02 16:55:35 +0200 |
commit | 340b2c244c0b7c331f6633edf9a69f1381916ad2 (patch) | |
tree | 2f430f20fbe01191c6b4a455bf792facef3f4fe7 /system/modules/development | |
parent | ec7f1357d16ff2f4aa7430a2940a0b9519018595 (diff) | |
parent | 5016c7440ad771fd990e1aa142fc4de0bdc382bd (diff) | |
download | nixfiles-340b2c244c0b7c331f6633edf9a69f1381916ad2.tar.lz nixfiles-340b2c244c0b7c331f6633edf9a69f1381916ad2.tar.zst nixfiles-340b2c244c0b7c331f6633edf9a69f1381916ad2.zip |
Add 'system/' from commit '5016c7440ad771fd990e1aa142fc4de0bdc382bd'
git-subtree-dir: system git-subtree-mainline: ec7f1357d16ff2f4aa7430a2940a0b9519018595 git-subtree-split: 5016c7440ad771fd990e1aa142fc4de0bdc382bd
Diffstat (limited to 'system/modules/development')
-rw-r--r-- | system/modules/development/base.nix | 32 | ||||
-rw-r--r-- | system/modules/development/javascript.nix | 50 | ||||
-rw-r--r-- | system/modules/development/kubernetes.nix | 21 | ||||
-rw-r--r-- | system/modules/development/lisp.nix | 13 |
4 files changed, 116 insertions, 0 deletions
diff --git a/system/modules/development/base.nix b/system/modules/development/base.nix new file mode 100644 index 00000000..2beed5b3 --- /dev/null +++ b/system/modules/development/base.nix @@ -0,0 +1,32 @@ +{ config, pkgs, ... }: + +{ environment.systemPackages = with pkgs; [ + gitAndTools.gitFull + gitAndTools.git-extras + git-lfs + + checkbashisms + editorconfig-core-c + go + + wrk + + ag + (ripgrep.override { withPCRE2 = true; }) + + httpie + jq + + discount + ] ++ ( + if !stdenv.isDarwin + then [ + whois + ldns + httping + http-prompt + firefox-devedition-bin + ] else [ + ] + ); +} diff --git a/system/modules/development/javascript.nix b/system/modules/development/javascript.nix new file mode 100644 index 00000000..1bdd4a4c --- /dev/null +++ b/system/modules/development/javascript.nix @@ -0,0 +1,50 @@ +{ config, pkgs, ... }: + +let + node = pkgs.unstable.nodejs-10_x; + npmPackages = pkgs.unstable.nodePackages_10_x; + node2nixPackages = import ../../packages/node2nix/default.nix { + pkgs = pkgs.unstable; + nodejs = node; + }; +in +{ environment.systemPackages = (with pkgs.unstable; [ + node + ] ++ ( + if stdenv.isDarwin + then + [ + ] + else + [ + # npm install may use any of these + binutils + gcc + gnumake + python2 + ] + )) ++ (with npmPackages; [ + node-gyp + node-gyp-build + node-pre-gyp + + tern + node2nix + nodemon + javascript-typescript-langserver + typescript-language-server + vscode-css-languageserver-bin + vscode-html-languageserver-bin + csslint + eslint_d + prettier + typescript + + node2nixPackages.bunyan + node2nixPackages.pino-pretty + node2nixPackages."pnpm-3.6.2" + node2nixPackages.prettier_d + node2nixPackages.dockerfile-language-server-nodejs + node2nixPackages.yaml-language-server + ]); +} diff --git a/system/modules/development/kubernetes.nix b/system/modules/development/kubernetes.nix new file mode 100644 index 00000000..692e46d6 --- /dev/null +++ b/system/modules/development/kubernetes.nix @@ -0,0 +1,21 @@ +{ config, pkgs, ... }: + +{ + networking.bridges = { + cbr0.interfaces = []; + }; + networking.interfaces = { + cbr0 = { + ipv4.addresses = [ + { address = "10.10.0.1"; + prefixLength = 24; + } + ]; + }; + }; + services.kubernetes.roles = ["master" "node"]; + services.kubernetes.kubelet.extraOpts = "--fail-swap-on=false"; + virtualisation.docker.extraOptions = '' + --iptables=false --ip-masq=false -b cbr0 + ''; +} diff --git a/system/modules/development/lisp.nix b/system/modules/development/lisp.nix new file mode 100644 index 00000000..dc521feb --- /dev/null +++ b/system/modules/development/lisp.nix @@ -0,0 +1,13 @@ +{ config, pkgs, ... }: + +{ environment.systemPackages = with pkgs; [ + ccl + sbcl + lispPackages.quicklisp + asdf + cl-launch + + dust + pixie + ]; +} |