1

Add google-chrome option to chromium module

This commit is contained in:
2024-06-01 12:00:22 +02:00
parent 41567817ea
commit 98b1f420ab
3 changed files with 21 additions and 7 deletions

View File

@ -14,6 +14,13 @@ in {
options.modules.chromium = import ./options.nix {inherit lib mylib;};
config = mkIf cfg.enable {
home.packages = with pkgs; builtins.concatLists [
(optionals cfg.google [
google-chrome # Trash, but required for decker pdf export
(pkgs.writeShellScriptBin "chrome" "exec -a $0 ${google-chrome}/bin/google-chrome-stable $@")
])
];
programs.chromium = {
enable = true;

View File

@ -6,4 +6,5 @@
with lib;
with mylib.modules; {
enable = mkEnableOpt "Chromium";
google = mkEnableOpt "Google Chrome";
}