nixdots/home/programs/graphical/wms/hyprland/default.nix

33 lines
564 B
Nix
Raw Normal View History

2024-04-05 18:06:32 +00:00
{
2024-06-09 20:40:50 +00:00
osConfig,
pkgs,
lib,
...
}: let
inherit (lib) mkIf;
2024-06-10 12:23:59 +00:00
inherit (import ./packages {inherit pkgs;}) hyprland-swap-workspace hyprland-move-window;
2024-06-09 20:40:50 +00:00
cfg = osConfig.myOptions.home-manager.wms.hyprland;
in {
imports = [
./config
];
config = mkIf cfg.enable {
home.packages = with pkgs; [
hyprland-swap-workspace
2024-06-10 12:23:59 +00:00
hyprland-move-window
2024-06-09 20:40:50 +00:00
];
wayland.windowManager.hyprland = {
2024-04-05 18:06:32 +00:00
enable = true;
2024-06-09 20:40:50 +00:00
xwayland.enable = true;
systemd = {
enable = true;
variables = ["--all"];
};
2024-04-05 18:06:32 +00:00
};
};
2024-03-23 22:06:58 +00:00
}