From 1835aa04051f2f0c41017423f2bcba6c549f26b0 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sun, 5 Jan 2025 16:19:45 -0600 Subject: overhual --- modules/root/zsh.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modules/root/zsh.nix (limited to 'modules/root/zsh.nix') diff --git a/modules/root/zsh.nix b/modules/root/zsh.nix new file mode 100644 index 0000000..697cb4c --- /dev/null +++ b/modules/root/zsh.nix @@ -0,0 +1,10 @@ +{ lib, config, pkgs, ... }: { + options = { + zsh.enable = lib.mkEnableOption "use zsh as default shell"; + }; + + config = lib.mkIf config.zsh.enable { + programs.zsh.enable = true; + users.defaultUserShell = pkgs.zsh; + }; +} -- cgit v1.2.3