Add google-chrome option to chromium module
This commit is contained in:
@ -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;
|
||||
|
||||
|
@ -6,4 +6,5 @@
|
||||
with lib;
|
||||
with mylib.modules; {
|
||||
enable = mkEnableOpt "Chromium";
|
||||
google = mkEnableOpt "Google Chrome";
|
||||
}
|
||||
|
Reference in New Issue
Block a user