mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-02 23:21:02 +01:00
Adds extension permissions as suggested in https://github.com/nix-community/home-manager/issues/7001. Adds the 'profiles.<name>.extensions.settings.<name>.permissions' to Firefox derivatives. If set, this option adds an assertion that fails if an extension package requests permissions that weren't added to the permissions option. In order to not require 'profiles.<name>.extensions.force' to be set when only permissions, but no extension settings were defined, the relevant assertions were changed. They now check whether any 'extensions.settings.<name>.settings' was set instead of checking whether 'extensions.settings' was set. --------- Co-authored-by: Robert Helgesson <robert@rycee.net> Co-authored-by: awwpotato <awwpotato@voidq.com>
29 lines
1.2 KiB
Nix
29 lines
1.2 KiB
Nix
name:
|
|
builtins.mapAttrs
|
|
(
|
|
test: module:
|
|
import module [
|
|
"programs"
|
|
name
|
|
]
|
|
)
|
|
{
|
|
"${name}-deprecated-native-messenger" = ./deprecated-native-messenger.nix;
|
|
"${name}-null-package" = ./null-package.nix;
|
|
"${name}-final-package" = ./final-package.nix;
|
|
"${name}-policies" = ./policies.nix;
|
|
"${name}-profiles-bookmarks" = ./profiles/bookmarks;
|
|
"${name}-profiles-bookmarks-attrset" = ./profiles/bookmarks/attrset.nix;
|
|
"${name}-profiles-containers" = ./profiles/containers;
|
|
"${name}-profiles-containers-duplicate-ids" = ./profiles/containers/duplicate-ids.nix;
|
|
"${name}-profiles-containers-id-out-of-range" = ./profiles/containers/id-out-of-range.nix;
|
|
"${name}-profiles-duplicate-ids" = ./profiles/duplicate-ids.nix;
|
|
"${name}-profiles-extensions" = ./profiles/extensions;
|
|
"${name}-profiles-extensions-assertions" = ./profiles/extensions/assertions.nix;
|
|
"${name}-profiles-overwrite" = ./profiles/overwrite;
|
|
"${name}-profiles-search" = ./profiles/search;
|
|
"${name}-profiles-settings" = ./profiles/settings;
|
|
"${name}-profiles-userchrome" = ./profiles/userchrome;
|
|
"${name}-state-version-19_09" = ./state-version-19_09.nix;
|
|
"${name}-profiles-shared-path" = ./profiles/shared-path.nix;
|
|
}
|