From d5025c552911b29bb8f2250c5b4aa1f9917a68e4 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 3 Apr 2020 21:12:54 -0700 Subject: Add wemux to the dev machine I also had to refactor the overlays stuff a bit, but it is much nicer now. --- default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index 9ac2286..e213bc4 100644 --- a/default.nix +++ b/default.nix @@ -1,11 +1,11 @@ let nixpkgs-tar = builtins.fetchTarball (import ./nixpkgs.nix); - overlay = import ./overlays.nix; - nixpkgs = import "${nixpkgs-tar}" { overlays = [ overlay ]; }; + overlay = import ./overlay.nix; + bizpkgs = import "${nixpkgs-tar}" { overlays = [ overlay ]; }; nixos = import "${nixpkgs-tar}/nixos"; # TODO(bsima): buildNixOS should be split into multiple functions that each # return one thing, instead of a single function that returns multiple things - biz = import ./biz.nix { inherit nixpkgs; }; + biz = import ./biz.nix { nixpkgs = bizpkgs; }; buildOS = import ./Com/Simatime/buildOS.nix nixos; nixos-mailserver = let ver = "v2.3.0"; in builtins.fetchTarball { url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/${ver}/nixos-mailserver-${ver}.tar.gz"; @@ -40,6 +40,9 @@ in rec { Com.Simatime.Dev = buildOS { enableVpn = true; ipAddress = "73.222.221.63"; + deps = { + wemux = bizpkgs.wemux; + }; configuration = { imports = [ ./Com/Simatime/packages.nix @@ -54,7 +57,9 @@ in rec { # The production server for apps # Com.Simatime.Prod = buildOS { - deps = { que-server = Run.Que.Server; }; + deps = { + que-server = Run.Que.Server; + }; configuration = { imports = [ ./Com/Simatime/packages.nix @@ -79,4 +84,6 @@ in rec { Run.Que.Website = biz.buildGhc ./Run/Que/Website.hs; # Development environment repl = biz.globalGhc; + # Fall through to any of our overlay packages + inherit bizpkgs; } -- cgit v1.2.3