nixos-config/home/fish/default.nix

21 lines
355 B
Nix
Raw Normal View History

{ config, lib, ... }:
let
2022-01-11 16:08:21 +01:00
inherit (lib)
mkEnableOption
mkIf
;
cfg = config.my.home.fish;
in
{
2022-01-11 16:08:21 +01:00
options.my.home.fish.enable = (mkEnableOption "Fish shell") // { default = true; };
2022-01-11 16:08:21 +01:00
config = mkIf cfg.enable {
programs.fish = {
enable = true;
};
xdg.configFile."fish/functions" = { source = ./. + "/functions"; };
};
}