From dc4ea159709bf7904140f2430bb0a1178dd152dd Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 9 Sep 2017 16:19:10 +0200 Subject: Add modules for development --- modules/dev.nix | 10 ++++++++++ modules/javascript.nix | 12 ++++++++++++ modules/satoshipay.nix | 24 ++++++++++++++++++++++++ satoshipad.nix | 3 +++ 4 files changed, 49 insertions(+) create mode 100644 modules/dev.nix create mode 100644 modules/javascript.nix create mode 100644 modules/satoshipay.nix diff --git a/modules/dev.nix b/modules/dev.nix new file mode 100644 index 00000000..ebef3f48 --- /dev/null +++ b/modules/dev.nix @@ -0,0 +1,10 @@ +{ config, pkgs, ... }: + +{ environment.systemPackages = with pkgs; [ + mercurial + gitAndTools.hub + + ag + ripgrep + ]; +} diff --git a/modules/javascript.nix b/modules/javascript.nix new file mode 100644 index 00000000..d950fe53 --- /dev/null +++ b/modules/javascript.nix @@ -0,0 +1,12 @@ +{ config, pkgs, ... }: + +let + pkgsUnstable = import {}; + # pkgsUnstable = pkgs; +in +{ environment.systemPackages = with pkgs; [ + nodejs-8_x + pkgsUnstable.nodePackages.yarn + pkgsUnstable.nodePackages.tern + ]; +} diff --git a/modules/satoshipay.nix b/modules/satoshipay.nix new file mode 100644 index 00000000..70053038 --- /dev/null +++ b/modules/satoshipay.nix @@ -0,0 +1,24 @@ +{ config, pkgs, ... }: + +let + pkgsUnstable = import {}; + # pkgsUnstable = pkgs; +in +{ virtualisation = { + docker = { + enable = true; + liveRestore = false; + }; + }; + + nixpkgs.config.allowUnfree = true; + + environment.systemPackages = with pkgs; [ + google-chrome + mongodb + franz + pkgsUnstable.scudCloud + ]; + + networking.domain = "satoshipay.io"; +} diff --git a/satoshipad.nix b/satoshipad.nix index d85242c4..e46f323b 100644 --- a/satoshipad.nix +++ b/satoshipad.nix @@ -23,6 +23,9 @@ ./modules/t470s.nix ./modules/user.nix ./modules/user-interface.nix + ./modules/dev.nix + ./modules/javascript.nix + ./modules/satoshipay.nix ]; networking.hostName = "satoshipad"; -- cgit 1.4.1