1
0
Fork 0
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:
bricked 2025-03-20 18:28:23 +01:00 committed by Austin Horstman
parent 62d6a8931e
commit d7f451d7b1
2 changed files with 9 additions and 5 deletions

View file

@ -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);

View file

@ -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: