1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-09 03:56:04 +01:00

firefox: Allow to add PKCS11 modules (#5608)

This commit is contained in:
Brieuc Dubois 2025-02-22 19:51:06 +01:00 committed by GitHub
parent 90504b9a89
commit 61d8fc9af0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -207,6 +207,7 @@ let
package.override (old: { package.override (old: {
cfg = old.cfg or { } // fcfg; cfg = old.cfg or { } // fcfg;
extraPolicies = (old.extraPolicies or { }) // cfg.policies; extraPolicies = (old.extraPolicies or { }) // cfg.policies;
pkcs11Modules = (old.pkcs11Modules or [ ]) ++ cfg.pkcs11Modules;
}) })
else else
(pkgs.wrapFirefox.override { config = bcfg; }) package { }; (pkgs.wrapFirefox.override { config = bcfg; }) package { };
@ -782,6 +783,14 @@ in {
`true`. `true`.
''; '';
}; };
pkcs11Modules = mkOption {
type = types.listOf types.package;
default = [ ];
description = ''
Additional packages to be loaded as PKCS #11 modules in Firefox.
'';
};
}; };
config = mkIf cfg.enable ({ config = mkIf cfg.enable ({