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:
parent
c867c6d172
commit
1d416595ad
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user