feat: move chromium to separate module.
This commit is contained in:
parent
339292682e
commit
3575914a0e
3 changed files with 25 additions and 11 deletions
23
modules/home-manager/browsers/chromium.nix
Normal file
23
modules/home-manager/browsers/chromium.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.browsers.chromium.enable = lib.mkEnableOption "Enable chromium";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.browsers.chromium.enable {
|
||||
# Enable theming chromium + use ungoogled chromium package
|
||||
programs.chromium = {
|
||||
enable = true;
|
||||
package = pkgs.ungoogled-chromium;
|
||||
# Fix for wayland
|
||||
commandLineArgs = [
|
||||
"--ozone-platform-hint=auto"
|
||||
"--ozone-platform=wayland"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue