Major update to handle multiple systems
This commit is contained in:
@ -5,12 +5,12 @@ let
|
||||
in {
|
||||
options = {
|
||||
userSettings.browser = lib.mkOption {
|
||||
default = "brave";
|
||||
default = null;
|
||||
description = "Default browser";
|
||||
type = lib.types.enum [ "brave" "qutebrowser" "librewolf" ];
|
||||
type = lib.types.enum [ "brave" "qutebrowser" "librewolf" null ];
|
||||
};
|
||||
userSettings.spawnBrowser = lib.mkOption {
|
||||
default = "brave";
|
||||
default = "";
|
||||
description = "Default browser spawn command";
|
||||
type = lib.types.str;
|
||||
};
|
||||
@ -25,6 +25,7 @@ in {
|
||||
(lib.mkIf ((browser == "brave") || (browser == "librewolf")) browser)
|
||||
(lib.mkIf (!(config.userSettings.hyprland.hyprprofiles.enable) && (browser == "qutebrowser")) "qutebrowser --qt-flag ignore-gpu-blacklist --qt-flag enable-gpu-rasterization --qt-flag enable-native-gpu-memory-buffers --qt-flag enable-accelerated-2d-canvas --qt-flag num-raster-threads=4")
|
||||
(lib.mkIf config.userSettings.hyprland.hyprprofiles.enable "qutebrowser-hyprprofile")
|
||||
(lib.mkIf (browser == null) "")
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user