mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 07:59:40 +00:00
33 lines
564 B
Nix
33 lines
564 B
Nix
{
|
|
osConfig,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf;
|
|
|
|
inherit (import ./packages {inherit pkgs;}) hyprland-swap-workspace hyprland-move-window;
|
|
|
|
cfg = osConfig.myOptions.home-manager.wms.hyprland;
|
|
in {
|
|
imports = [
|
|
./config
|
|
];
|
|
|
|
config = mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
hyprland-swap-workspace
|
|
hyprland-move-window
|
|
];
|
|
|
|
wayland.windowManager.hyprland = {
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
systemd = {
|
|
enable = true;
|
|
variables = ["--all"];
|
|
};
|
|
};
|
|
};
|
|
}
|