mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-16 22:11:07 +01:00
firefox: replace with-lib-expression with inherit-expression
This commit is contained in:
parent
62d6a8931e
commit
d7f451d7b1
2 changed files with 9 additions and 5 deletions
|
|
@ -1,8 +1,11 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
with lib;
|
let
|
||||||
|
|
||||||
rec {
|
inherit (builtins) attrValues;
|
||||||
|
inherit (lib) types mkOption;
|
||||||
|
|
||||||
|
in rec {
|
||||||
settingsType = with types;
|
settingsType = with types;
|
||||||
coercedTo (addCheck (attrsOf nodeType) (attrs: !(attrs ? settings)))
|
coercedTo (addCheck (attrsOf nodeType) (attrs: !(attrs ? settings)))
|
||||||
attrValues (listOf nodeType);
|
attrValues (listOf nodeType);
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
{ config, lib, pkgs, modulePath }:
|
{ config, lib, pkgs, modulePath }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
bookmarkTypes = import ./bookmark-types.nix { inherit lib; };
|
inherit (lib)
|
||||||
|
escapeXML concatStringsSep mkOption maintainers types literalExpression;
|
||||||
|
|
||||||
inherit (bookmarkTypes) settingsType;
|
inherit (bookmarkTypes) settingsType;
|
||||||
|
|
||||||
|
bookmarkTypes = import ./bookmark-types.nix { inherit lib; };
|
||||||
|
|
||||||
bookmarksFile = bookmarks:
|
bookmarksFile = bookmarks:
|
||||||
let
|
let
|
||||||
indent = level:
|
indent = level:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue