refactor(nixos): inline shell shortcut type
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
let
|
{
|
||||||
entryType = lib.types.submodule {
|
type = lib.types.coercedTo lib.types.str (command: { inherit command; }) (
|
||||||
|
lib.types.submodule {
|
||||||
options = {
|
options = {
|
||||||
command = lib.mkOption {
|
command = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
@@ -14,8 +15,6 @@ let
|
|||||||
description = "Whether fish realizes this shell shortcut as an abbreviation instead of an alias.";
|
description = "Whether fish realizes this shell shortcut as an abbreviation instead of an alias.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
in
|
);
|
||||||
{
|
|
||||||
type = lib.types.coercedTo lib.types.str (command: { inherit command; }) entryType;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user