feat(desktop): enable wayland utils when hyprland is enabled

This commit is contained in:
Mohammad Rafiq 2025-06-12 23:05:52 +08:00
parent 9de4ef0ce6
commit 5ba27ad3ae
No known key found for this signature in database
2 changed files with 13 additions and 0 deletions

View file

@ -5,8 +5,20 @@
pkgs,
...
}:
let
cfg = config.desktop;
inherit (lib) mkIf mkEnableOption;
in
{
options.desktop = {
wayland.enableUtils = mkEnableOption "common Wayland utilities";
};
config = lib.mkMerge [
(mkIf cfg.wayland.enableUtils {
home.packages = with pkgs; [
wl-clipboard-rs
];
})
(lib.mkIf (osConfig.hardware.gpu == "nvidia") {
home.packages = [ pkgs.stable-diffusion-webui.forge.cuda ];
home.persistence."/persist/home/${config.snowfallorg.user.name}".directories = [

View file

@ -9,6 +9,7 @@ let
in
{
config = lib.mkIf (osConfig.desktop.windowManager == "hyprland") {
desktop.wayland.enableUtils = true;
wayland.windowManager.hyprland = {
enable = true;
systemd.enable = false;