Skip to content

Commit

Permalink
Avoid macos in firefox activations
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jun 28, 2024
1 parent fcca15a commit 6872e94
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
30 changes: 0 additions & 30 deletions home-manager/browser.nix

This file was deleted.

1 change: 0 additions & 1 deletion home-manager/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
./ssh.nix
./git.nix
./editor.nix
./browser.nix
./darwin.nix
];

Expand Down
31 changes: 31 additions & 0 deletions home-manager/firefox.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ lib, pkgs, ... }:

lib.mkMerge [
# Firefox package does not support both M1 and Intel like x86_64-apple-darwin
(lib.mkIf pkgs.stdenv.isLinux {
# https://github.com/nix-community/home-manager/blob/release-24.05/modules/programs/firefox.nix
programs.firefox = {
enable = true;
profiles.default = {
isDefault = true;
settings = {
# UI lang
"intl.locale.requested" = "ja";

"browser.shell.checkDefaultBrowser" = false;

# Required for playing DRM contents as Spotify
"media.eme.enabled" = true;

# Enabling userChrome.css
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;

# Disabling alt+ keybinds for lanchers
# https://www.reddit.com/r/firefox/comments/129w85w/is_there_a_way_to_disable_firefox_alt_keyboard/
"ui.key.menuAccessKeyFocuses" = false;
};
userChrome = builtins.readFile ../config/Firefox/userChrome.css;
};
};
})
]

0 comments on commit 6872e94

Please sign in to comment.