modules.system.gui: enable hyprland

This commit is contained in:
2025-02-02 17:04:17 +08:00
parent 796eb0ae50
commit 91237b73fe

View File

@@ -29,7 +29,23 @@ inputs:
fcitx5.addons = builtins.map (p: inputs.pkgs."fcitx5-${p}")
[ "rime" "chinese-addons" "mozc" "nord" "material-color" ];
};
programs.dconf.enable = true;
programs =
{
dconf.enable = true;
hyprland = { enable = true; withUWSM = true; };
iio-hyprland.enable = true;
hyprlock.enable = true;
uwsm =
{
enable = true;
waylandCompositors.hyprland =
{
prettyName = "Hyprland";
comment = "Hyprland compositor managed by UWSM";
binPath = "/run/current-system/sw/bin/Hyprland";
};
};
};
})
# prefer gui or not
(inputs.localLib.mkConditional (builtins.elem inputs.config.nixos.model.type [ "desktop" ])