mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2026-01-23 14:53:25 +01:00
20 lines
277 B
Nix
20 lines
277 B
Nix
|
|
{
|
||
|
|
config,
|
||
|
|
lib,
|
||
|
|
pkgs,
|
||
|
|
...
|
||
|
|
}:
|
||
|
|
let
|
||
|
|
cfg = config.my.profiles.zsh;
|
||
|
|
in
|
||
|
|
{
|
||
|
|
options.my.profiles.zsh = with lib; {
|
||
|
|
enable = mkEnableOption "zsh profile";
|
||
|
|
};
|
||
|
|
|
||
|
|
config = lib.mkIf cfg.enable {
|
||
|
|
users.defaultUserShell = pkgs.zsh;
|
||
|
|
programs.zsh.enable = true;
|
||
|
|
};
|
||
|
|
}
|