feat: move chromium to separate module.
This commit is contained in:
parent
339292682e
commit
3575914a0e
@ -61,17 +61,6 @@
|
||||
# Install imv
|
||||
programs.imv.enable = true;
|
||||
|
||||
# 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"
|
||||
];
|
||||
};
|
||||
|
||||
# Enable nix-index
|
||||
programs.nix-index = {
|
||||
enable = true;
|
||||
|
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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
@ -5,6 +5,7 @@
|
||||
}: {
|
||||
imports = [
|
||||
./librewolf.nix
|
||||
./chromium.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
@ -13,5 +14,6 @@
|
||||
|
||||
config = lib.mkIf config.crony.browsers.enable {
|
||||
crony.browsers.librewolf.enable = lib.mkDefault true;
|
||||
crony.browsers.chromium.enable = lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user