Major update to handle multiple systems

This commit is contained in:
Emmet
2025-02-12 14:12:11 -06:00
parent 0453901d17
commit cd1d2d866b
34 changed files with 2040 additions and 456 deletions

View File

@ -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) "")
];
};
}