mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
add programs.zsh module
This commit is contained in:
parent
b933e03c15
commit
58f246595a
3 changed files with 41 additions and 2 deletions
|
@ -18,6 +18,7 @@ let
|
|||
./modules/services/activate-system.nix
|
||||
./modules/services/nix-daemon.nix
|
||||
./modules/programs/tmux.nix
|
||||
./modules/programs/zsh.nix
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -37,11 +37,12 @@
|
|||
set -g status-fg white
|
||||
'';
|
||||
|
||||
programs.zsh.enable = true;
|
||||
programs.zsh.shell = "${pkgs.lnl.zsh}/bin/zsh";
|
||||
|
||||
environment.variables.EDITOR = "vim";
|
||||
environment.variables.HOMEBREW_CASK_OPTS = "--appdir=/Applications/cask";
|
||||
|
||||
environment.variables.SHELL = "${pkgs.lnl.zsh}/bin/zsh";
|
||||
|
||||
environment.variables.GIT_SSL_CAINFO = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
|
||||
environment.variables.SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
|
||||
|
||||
|
|
37
modules/programs/zsh.nix
Normal file
37
modules/programs/zsh.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
|
||||
cfg = config.programs.zsh;
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
options = {
|
||||
|
||||
programs.zsh.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to configure zsh as an interactive shell.
|
||||
'';
|
||||
};
|
||||
|
||||
programs.zsh.shell = mkOption {
|
||||
type = types.path;
|
||||
default = "${pkgs.zsh}/bin/zsh";
|
||||
description = ''
|
||||
Zsh shell to use.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
environment.variables.SHELL = "${cfg.shell}";
|
||||
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue