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
parent 29908a7580
commit e87837446e
No known key found for this signature in database
GPG key ID: 7B4D2A02BB0EC28C
2 changed files with 9 additions and 5 deletions
modules/programs/firefox/profiles

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: