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:
parent
90504b9a89
commit
61d8fc9af0
1 changed files with 9 additions and 0 deletions
|
|
@ -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 ({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue