mirror of
https://github.com/nix-community/home-manager.git
synced 2025-04-09 18:44:14 +00:00
firefox: replace with-lib-expression with inherit-expression
This commit is contained in:
parent
29908a7580
commit
e87837446e
2 changed files with 9 additions and 5 deletions
modules/programs/firefox/profiles
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue