Add options for aliases

So they can be added from extensions
This commit is contained in:
Geoffrey Frogeye 2023-12-02 18:05:33 +01:00
parent e01c454d68
commit 25011a3353
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
4 changed files with 30 additions and 14 deletions

View file

@ -18,6 +18,20 @@
fpga = lib.mkEnableOption "FPGA dev stuff";
python = lib.mkEnableOption "Python dev stuff";
};
shellAliases = lib.mkOption {
default = { };
example = lib.literalExpression ''
{
ll = "ls -l";
".." = "cd ..";
}
'';
description = ''
An attribute set that maps aliases (the top level attribute names in
this option) to command strings or directly to build outputs.
'';
type = lib.types.attrsOf lib.types.str;
};
};
config = {