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 d80860b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion home-manager/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
./ssh.nix
./git.nix
./editor.nix
./browser.nix
./linux.nix
./darwin.nix
];

Expand Down
3 changes: 1 addition & 2 deletions home-manager/browser.nix → home-manager/firefox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

{
# https://github.com/nix-community/home-manager/blob/release-24.05/modules/programs/firefox.nix
# Firefox package does not support both M1 and Intel like x86_64-apple-darwin
programs.firefox = {
enable = true;
profiles.default = {
Expand All @@ -25,6 +26,4 @@
userChrome = builtins.readFile ../config/Firefox/userChrome.css;
};
};

# Don't add unfree packages like google-chrome here for using in containers
}
4 changes: 4 additions & 0 deletions home-manager/linux.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{ pkgs, lib, ... }:

# https://github.com/nix-community/home-manager/issues/414#issuecomment-427163925
lib.mkMerge [ (lib.mkIf pkgs.stdenv.isLinux { imports = [ ./firefox.nix ]; }) ]

0 comments on commit d80860b

Please sign in to comment.