mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
firefox: replace with-lib-expression with inherit-expression
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
{ lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
|
||||
rec {
|
||||
inherit (builtins) attrValues;
|
||||
inherit (lib) types mkOption;
|
||||
|
||||
in rec {
|
||||
settingsType = with types;
|
||||
coercedTo (addCheck (attrsOf nodeType) (attrs: !(attrs ? settings)))
|
||||
attrValues (listOf nodeType);
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
{ config, lib, pkgs, modulePath }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
bookmarkTypes = import ./bookmark-types.nix { inherit lib; };
|
||||
inherit (lib)
|
||||
escapeXML concatStringsSep mkOption maintainers types literalExpression;
|
||||
|
||||
inherit (bookmarkTypes) settingsType;
|
||||
|
||||
bookmarkTypes = import ./bookmark-types.nix { inherit lib; };
|
||||
|
||||
bookmarksFile = bookmarks:
|
||||
let
|
||||
indent = level:
|
||||
|
||||
Reference in New Issue
Block a user