nixos-config/home/fish/default.nix

16 lines
314 B
Nix

{ config, lib, ... }:
let
cfg = config.my.home.fish;
in
{
options.my.home.fish.enable = (lib.mkEnableOption "Fish shell") // { default = true; };
config = lib.mkIf cfg.enable {
programs.fish = {
enable = true;
};
xdg.configFile."fish/functions" = { source = ./. + "/functions"; };
};
}