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