Commit 8b495cddbed2
Changed files (4)
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
+ ];
+ };
+}
dev.haskell.nix
@@ -1,10 +0,0 @@
-{ pkgs, prefix, ... }:
-
-{
- profiles.dev.enable = true;
- home.packages = with pkgs; [
- ghc
- stack
- hlint
- ];
-}
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
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