@@ -53,12 +53,12 @@ in
5353 };
5454
5555 shellAliases = mkOption {
56− default = config.environment.shellAliases;
56+ default = {};
5757 description = ''
58− Set of aliases for fish shell. See <option>environment.shellAliases</option>
59− for an option format description.
58+ Set of aliases for fish shell, which overrides <option>environment.shellAliases</option>.
59+ See <option>environment.shellAliases</option> for an option format description.
6060 '';
61− type = types.attrs;
61+ type = with types; attrsOf (either str path);
6262 };
6363
6464 shellInit = mkOption {
@@ -99,6 +99,8 @@ in
9999
100100 config = mkIf cfg.enable {
101101
102+ programs.fish.shellAliases = mapAttrs (name: mkDefault) cfge.shellAliases;
103+
102104 environment.etc."fish/foreign-env/shellInit".text = cfge.shellInit;
103105 environment.etc."fish/foreign-env/loginShellInit".text = cfge.loginShellInit;
104106 environment.etc."fish/foreign-env/interactiveShellInit".text = cfge.interactiveShellInit;