From 9a18f75bcbf27447bfce6665f9883564beceb1c2 Mon Sep 17 00:00:00 2001
From: Matei Adriel <rafaeladriel11@gmail.com>
Date: Thu, 16 Jul 2020 11:39:15 +0300
Subject: [PATCH] feat: added elm and ms teams and some stuff

---
 modules/applications/misc.nix | 1 +
 modules/dev/default.nix       | 1 +
 modules/dev/elm.nix           | 8 ++++++++
 modules/overlay.nix           | 6 +++++-
 4 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 modules/dev/elm.nix

diff --git a/modules/applications/misc.nix b/modules/applications/misc.nix
index 7ca11d9..b7b842f 100644
--- a/modules/applications/misc.nix
+++ b/modules/applications/misc.nix
@@ -25,6 +25,7 @@
     slack
     tdesktop # telegram for the desktop
     zoom-us
+    teams
 
     # browsers
     google-chrome
diff --git a/modules/dev/default.nix b/modules/dev/default.nix
index 74c0b8d..986d8e1 100644
--- a/modules/dev/default.nix
+++ b/modules/dev/default.nix
@@ -7,6 +7,7 @@
     ./fsharp.nix
     ./rust.nix
     ./racket.nix
+    ./elm.nix
     ./haskell
   ];
 }
diff --git a/modules/dev/elm.nix b/modules/dev/elm.nix
new file mode 100644
index 0000000..c768350
--- /dev/null
+++ b/modules/dev/elm.nix
@@ -0,0 +1,8 @@
+{ pkgs, ... }: {
+  home-manager.users.adrielus.home.packages = with pkgs;
+    with elmPackages; [
+      elm
+      elm-format
+      # elm-repl
+    ];
+}
diff --git a/modules/overlay.nix b/modules/overlay.nix
index 3211748..9e7d2e0 100644
--- a/modules/overlay.nix
+++ b/modules/overlay.nix
@@ -2,7 +2,10 @@
 let
   imports = import ../nix/sources.nix;
   edoproPackage = import ./applications/edopro.nix;
-  unstable = import imports.nixpkgs-unstable { config.allowUnfree = true; };
+  unstable = import imports.nixpkgs-unstable {
+    config.allowUnfree = true;
+    config.allowBroken = true;
+  };
 in {
   nixpkgs.overlays = [
     (self: super:
@@ -26,6 +29,7 @@ in {
         vscodium = unstable.vscodium;
         deno = unstable.deno;
         dotnet-sdk = dotnet-sdk_3;
+        elm-repl = unstable.haskellPackages.elm-repl;
       })
   ];