mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Browser/Firefox] refactor firefox to use callPackage
Move overrides to a config option Add gnome support
This commit is contained in:
parent
776c6e3060
commit
539e85ed95
5 changed files with 23 additions and 4 deletions
|
|
@ -4,6 +4,16 @@ let
|
|||
cfg = config.aviallon.desktop;
|
||||
generalCfg = config.aviallon.general;
|
||||
in {
|
||||
options.aviallon.desktop.browser = {
|
||||
firefox.overrides = mkOption {
|
||||
internal = true;
|
||||
description = "Override firefox package settings";
|
||||
type = types.attrs;
|
||||
default = {};
|
||||
example = { enablePlasmaIntegration = true; };
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf (cfg.enable && !generalCfg.minimal) {
|
||||
environment.systemPackages = with pkgs; []
|
||||
++ optionals (!generalCfg.minimal) [
|
||||
|
|
|
|||
|
|
@ -41,6 +41,8 @@ in {
|
|||
environment.systemPackages = with pkgs; []
|
||||
++ [
|
||||
guake
|
||||
|
||||
(myFirefox.override { enableGnomeExtensions = true; })
|
||||
]
|
||||
++ (with gnome; [
|
||||
gnome-software
|
||||
|
|
|
|||
|
|
@ -63,6 +63,8 @@ in {
|
|||
ark
|
||||
kolourpaint
|
||||
krdc
|
||||
|
||||
(myFirefox.override { enablePlasmaBrowserIntegration = true; })
|
||||
];
|
||||
|
||||
environment.profileRelativeSessionVariables = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue