From d2dbc13c26f514f740f9841b7997a75490119b9c Mon Sep 17 00:00:00 2001
From: Matei Adriel <rafaeladriel11@gmail.com>
Date: Wed, 8 Apr 2020 20:09:37 +0300
Subject: [PATCH] feat: added purescript stuff

---
 modules/applications/misc.nix | 4 +---
 modules/dev/default.nix       | 2 +-
 modules/dev/nix.nix           | 6 +++++-
 modules/dev/purescript.nix    | 8 ++++++++
 modules/overlay.nix           | 1 +
 5 files changed, 16 insertions(+), 5 deletions(-)
 create mode 100644 modules/dev/purescript.nix

diff --git a/modules/applications/misc.nix b/modules/applications/misc.nix
index 26b7db5..eb60938 100644
--- a/modules/applications/misc.nix
+++ b/modules/applications/misc.nix
@@ -1,8 +1,6 @@
 { pkgs, ... }: {
-  environment.systemPackages = with pkgs; [
-    # Tool to allow hashing passwords from the cmd
+  home-manager.users.adrielus.home.packages = with pkgs; [
     mkpasswd
-
     vscodium
     google-chrome
     discord
diff --git a/modules/dev/default.nix b/modules/dev/default.nix
index bed2c28..072b861 100644
--- a/modules/dev/default.nix
+++ b/modules/dev/default.nix
@@ -1 +1 @@
-{ ... }: { imports = [ ./nix.nix ]; }
+{ ... }: { imports = [ ./nix.nix ./purescript.nix ]; }
diff --git a/modules/dev/nix.nix b/modules/dev/nix.nix
index 6578ed2..2bf8896 100644
--- a/modules/dev/nix.nix
+++ b/modules/dev/nix.nix
@@ -1,3 +1,7 @@
 { pkgs, ... }: {
-  environment.systemPackages = with pkgs; [ nixfmt niv cached-nix-shell ];
+  home-manager.users.adrielus.home.packages = with pkgs; [
+    nixfmt
+    niv
+    cached-nix-shell
+  ];
 }
diff --git a/modules/dev/purescript.nix b/modules/dev/purescript.nix
new file mode 100644
index 0000000..f97428f
--- /dev/null
+++ b/modules/dev/purescript.nix
@@ -0,0 +1,8 @@
+{ pkgs, ... }: {
+  home-manager.users.adrielus.home.packages = with pkgs.easy-purescript-nix; [
+    purescript
+    spago
+    purty
+    pscid
+  ];
+}
diff --git a/modules/overlay.nix b/modules/overlay.nix
index 094a18d..4c8dee0 100644
--- a/modules/overlay.nix
+++ b/modules/overlay.nix
@@ -6,6 +6,7 @@ in {
       with self; rec {
         inherit imports;
         cached-nix-shell = callPackage imports.cached-nix-shell { };
+        easy-purescript-nix = callPackage imports.easy-purescript-nix { };
         inherit (import imports.niv { }) niv;
         inherit (import imports.all-hies { }) all-hies;
       })