mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2026-02-04 16:56:53 -05:00
Added Firefox
This commit is contained in:
parent
f6cd2a6b68
commit
999087c61f
2 changed files with 28 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
|
|
||||||
gui.enable = true;
|
gui.enable = true;
|
||||||
discord.enable = true;
|
discord.enable = true;
|
||||||
|
firefox.enable = true;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
27
modules/common/applications/firefox.nix
Normal file
27
modules/common/applications/firefox.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
firefox = {
|
||||||
|
enable = lib.mkEnableOption {
|
||||||
|
description = "Enable Firefox";
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf (config.gui.enable && config.firefox.enable) {
|
||||||
|
home-manager.users.${config.user} = {
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
policies = {
|
||||||
|
ExtensionSettings = {
|
||||||
|
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
|
||||||
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi";
|
||||||
|
installation_mode = "normal_installed";
|
||||||
|
default_area = "navbar";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue