modules: cleanup with lib

This commit is contained in:
Austin Horstman 2024-08-30 14:37:41 -05:00
parent ff042dfc93
commit 1c9ba58aef
No known key found for this signature in database
12 changed files with 79 additions and 85 deletions

View file

@ -4,8 +4,9 @@
config,
...
}:
with lib;
let
inherit (lib) types;
cfg = config.filetype;
filetypeDefinition = helpers.mkNullOrOption (
@ -19,7 +20,7 @@ let
(listOf (
either str (submodule {
options = {
priority = mkOption {
priority = lib.mkOption {
type = ints.unsigned;
description = ''
Filename patterns can specify an optional priority to resolve cases when a file path