Skip to content

Commit

Permalink
feat(firefox): tweak the default profile
Browse files Browse the repository at this point in the history
  • Loading branch information
workflow committed Nov 5, 2024
1 parent 15f889e commit 9a66712
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
16 changes: 16 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
nixpkgs-2311.url = "github:nixos/nixpkgs/nixos-23.11";
nixos-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:nixos/nixos-hardware/master";
nur.url = "github:nix-community/nur";
rmob.url = "https://flakehub.com/f/workflow/rmob/*.tar.gz";
secrets.url = "path:/home/farlion/code/nixos-secrets";
stylix.url = "github:danth/stylix/993fcabd83d1e0ee5ea038b87041593cc73c1ebe";
Expand All @@ -24,6 +25,7 @@
nixpkgs-2311,
nixos-unstable,
home-manager,
nur,
secrets,
stylix,
...
Expand Down Expand Up @@ -62,6 +64,7 @@
./machines/boar/system.nix
./system/amd
./configuration.nix
nur.nixosModules.nur
home-manager.nixosModules.home-manager
{
home-manager = {
Expand Down Expand Up @@ -106,6 +109,7 @@
./machines/flexbox/system.nix
./system/nvidia
./configuration.nix
nur.nixosModules.nur
home-manager.nixosModules.home-manager
{
home-manager = {
Expand Down
11 changes: 10 additions & 1 deletion home/firefox/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
{...}: {
{osConfig, ...}: {
programs.firefox = {
enable = true;
profiles = {
main = {
extensions = with osConfig.nur.repos.rycee.firefox-addons; [
bitwarden
];
id = 0;
isDefault = true;
settings = {
# Hardware Video Decoding, see https://wiki.archlinux.org/title/Firefox
"gfx.webrender.all" = true;
"media.ffmpeg.vaapi.enabled" = true;
"media.hardware-video-decoding.force-enabled" = true;
};
};
};
};
Expand Down

0 comments on commit 9a66712

Please sign in to comment.