Commit 8b4f9ecf1462

Vincent Demeester <vincent@sbr.pm>
2018-11-01 14:31:07
profiles: add zsh (disabled by default)
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent b350757
Changed files (3)
modules/profiles/zsh.nix
@@ -0,0 +1,23 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+let
+  cfg = config.profiles.zsh;
+in
+{
+  options = {
+    profiles.zsh = {
+      enable = mkOption {
+        default = false;
+        description = "Enable zsh profile and configuration";
+        type = types.bool;
+      };
+    };
+  };
+  config = mkIf cfg.enable {
+    programs.zsh = {
+      enable = true;
+      shellAliases = import ./aliases.shell.nix;
+    };
+  };
+}
modules/module-list.nix
@@ -13,6 +13,7 @@
     ./profiles/laptop.nix
     ./profiles/ssh.nix
     ./profiles/tmux.nix
+    ./profiles/zsh.nix
     ./programs/vscode.nix
     ./services/shairport-sync.nix
   ];
zsh.nix
@@ -1,8 +0,0 @@
-{ pkgs, config, lib, ...}:
-
-{
-  programs.zsh = {
-    enable = true;
-    shellAliases = import ./aliases.nix
-  };
-}