diff --git a/home-manager/common.nix b/home-manager/common.nix index 055281fd..8247c310 100644 --- a/home-manager/common.nix +++ b/home-manager/common.nix @@ -16,7 +16,7 @@ ./ssh.nix ./git.nix ./editor.nix - ./browser.nix + ./linux.nix ./darwin.nix ]; diff --git a/home-manager/browser.nix b/home-manager/firefox.nix similarity index 91% rename from home-manager/browser.nix rename to home-manager/firefox.nix index 3a29aa0d..042f2448 100644 --- a/home-manager/browser.nix +++ b/home-manager/firefox.nix @@ -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 = { @@ -25,6 +26,4 @@ userChrome = builtins.readFile ../config/Firefox/userChrome.css; }; }; - - # Don't add unfree packages like google-chrome here for using in containers } diff --git a/home-manager/linux.nix b/home-manager/linux.nix new file mode 100644 index 00000000..f9048498 --- /dev/null +++ b/home-manager/linux.nix @@ -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 ]; }) ]