aboutsummaryrefslogtreecommitdiff
path: root/modules/zsh.nix
diff options
context:
space:
mode:
authorstefan <stefan@s00.xyz>2025-03-03 21:34:53 -0500
committerstefan <stefan@s00.xyz>2025-03-03 21:34:53 -0500
commit390d23083905e9cd26ea44393422630ffe99c9a5 (patch)
tree431c2e0b7afd8bdd4897aeb2219f83faa7fd8c05 /modules/zsh.nix
parente22ff337702e41ad4cd214894ab3b1a3d6fb8d96 (diff)
downloadhome-390d23083905e9cd26ea44393422630ffe99c9a5.tar.gz
getting started with multi-system support
Diffstat (limited to 'modules/zsh.nix')
-rw-r--r--modules/zsh.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/zsh.nix b/modules/zsh.nix
new file mode 100644
index 0000000..5085263
--- /dev/null
+++ b/modules/zsh.nix
@@ -0,0 +1,27 @@
+{ config, lib, pkgs, ... }:
+let
+ cfg = config.modules.zsh;
+in
+{
+ options.modules.zsh = {
+ enable = lib.mkEnableOption "zsh";
+ };
+
+ config = {
+ home.packages = with pkgs; [
+ zsh
+ oh-my-zsh
+ zsh-autosuggestions
+ ];
+
+ programs.zsh = lib.mkIf cfg.enable {
+ enable = true;
+ enableCompletion = true;
+ autosuggestion.enable = true;
+ oh-my-zsh = {
+ enable = true;
+ theme = "lambda";
+ };
+ };
+ };
+}