28 lines
464 B
Nix
Raw Normal View History

2025-01-20 22:35:40 -05:00
{
config,
pkgs,
lib,
...
}:
let
cfg = config.nmasur.presets.programs.fish;
2025-02-08 12:58:06 -05:00
inherit (config.nmasur.settings) username;
2025-01-20 22:35:40 -05:00
in
{
options.nmasur.presets.programs.fish.enable = lib.mkEnableOption "Fish shell";
config = lib.mkIf cfg.enable {
programs.fish.enable = true;
environment.shells = [ pkgs.fish ];
2025-02-08 12:58:06 -05:00
users.users.${username}.shell = pkgs.fish;
2025-01-20 22:35:40 -05:00
# Speeds up fish launch time on macOS
programs.fish.useBabelfish = true;
};
}