commit 8b495cddbed23e8fee059e9970ec5da72241be8b
parent 8b4f9ecf1462720f6b3c18790e50c642c59fcdb6
Author: Vincent Demeester <vincent@sbr.pm>
Date: Thu, 1 Nov 2018 15:35:11 +0100
profiles.dev: add haskell
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
4 files changed, 33 insertions(+), 14 deletions(-)
diff --git a/dev.haskell.nix b/dev.haskell.nix
@@ -1,10 +0,0 @@
-{ pkgs, prefix, ... }:
-
-{
- profiles.dev.enable = true;
- home.packages = with pkgs; [
- ghc
- stack
- hlint
- ];
-}
diff --git a/modules/profiles/dev.haskell.nix b/modules/profiles/dev.haskell.nix
@@ -0,0 +1,25 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+let
+ cfg = config.profiles.dev.haskell;
+in
+{
+ options = {
+ profiles.dev.haskell = {
+ enable = mkOption {
+ default = false;
+ description = "Enable haskell development profile";
+ type = types.bool;
+ };
+ };
+ };
+ config = mkIf cfg.enable {
+ profiles.dev.enable = true;
+ home.packages = with pkgs; [
+ ghc
+ stack
+ hlint
+ ];
+ };
+}
diff --git a/shikoku.nix b/shikoku.nix
@@ -9,11 +9,13 @@
./dev.python.nix
./dev.js.nix
./dev.java.nix
- ./dev.haskell.nix
./openshift.nix
];
profiles.desktop.enable = true;
- profiles.dev.go.enable = true;
+ profiles.dev = {
+ go.enable = true;
+ haskell.enable = true;
+ };
programs.vscode.enable = true;
xdg.configFile."fish/conf.d/docker.fish".text = ''
set -gx DOCKER_BUILDKIT 1
diff --git a/wakasu.nix b/wakasu.nix
@@ -8,11 +8,13 @@
./dev.python.nix
./dev.js.nix
./dev.java.nix
- ./dev.haskell.nix
./openshift.nix
];
profiles.laptop.enable = true;
- profiles.dev.go.enable = true;
+ profiles.dev = {
+ go.enable = true;
+ haskell.enable = true;
+ };
programs.vscode.enable = true;
xdg.configFile."fish/conf.d/docker.fish".text = ''
set -gx DOCKER_BUILDKIT 1