lf, add fish cd-alias
This commit is contained in:
parent
9978fb7921
commit
b16fb47719
2 changed files with 19 additions and 3 deletions
|
|
@ -1,10 +1,19 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
let
|
||||
functionModule = with lib.types; submodule {
|
||||
options = {
|
||||
body = lib.mkOption { type = lines; };
|
||||
wraps = lib.mkOption {
|
||||
type = nullOr str;
|
||||
default = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
options.fish = {
|
||||
enable = lib.mkEnableOption "Enables fish";
|
||||
extraFunctions = lib.mkOption {
|
||||
type = with lib.types; attrsOf lines;
|
||||
type = with lib.types; attrsOf (either lines functionModule);
|
||||
default = {};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue