refactor(nixos): inline shell shortcut type

This commit is contained in:
2026-10-05 00:11:51 -04:00
parent c3a6271582
commit d602581a99

View File

@@ -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;
} }