home: fish: use real .fish files for functions

This commit is contained in:
Antoine Martin 2021-04-22 17:52:39 +02:00
parent 325d3ee1b2
commit df15e6b6c2
4 changed files with 23 additions and 26 deletions

15
home/fish/default.nix Normal file
View file

@ -0,0 +1,15 @@
{ config, lib, ... }:
let
cfg = config.my.home.fish;
in
{
options.my.home.fish.enable = lib.mkEnableOption "Fish shell";
config = lib.mkIf cfg.enable {
programs.fish = {
enable = true;
};
xdg.configFile."fish/functions" = { source = ./. + "/functions"; };
};
}