nixos/grub: Remove with with broad scopes.

There is only other `with` with a somewhat broad scope, `with pkgs`, but
it's used in a place where it would become awkward to change out. And
anyway its scope is rather limited still.
This commit is contained in:
Samuel Dionne-Riel 2023-08-01 19:18:48 -04:00
parent c867c6d172
commit 1d416595ad

View file

@ -1,8 +1,32 @@
{ config, options, lib, pkgs, ... }:
with lib;
let
inherit (lib)
all
concatMap
concatMapStrings
concatStrings
concatStringsSep
escapeShellArg
flip
foldr
forEach
hasPrefix
mapAttrsToList
literalExpression
makeBinPath
mkDefault
mkIf
mkMerge
mkOption
mkRemovedOptionModule
mkRenamedOptionModule
optional
optionals
optionalString
replaceStrings
types
;
cfg = config.boot.loader.grub;
@ -150,7 +174,7 @@ in
(as opposed to external files) will be copied into the Nix store, and
will be visible to all local users.
'';
type = with types; attrsOf (submodule {
type = types.attrsOf (types.submodule {
options = {
hashedPasswordFile = mkOption {
example = "/path/to/file";