summaryrefslogtreecommitdiffstats
path: root/modules/desktop/hyprland/default.nix
blob: 2acf5b681ba6f3adef75eb072b4c6d10a23110d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ config, lib, pkgs, user, ... }:
with lib;
let
in
{
    options = {
        hyprland = {
            enable = mkOption {
                type = types.bool;
                default = false;
            };
        };
    };

    config = mkIf (config.hyprland.enable)
    {
        environment.variables.WLR_NO_HARDWARE_CURSORS = "1";
        environment.systemPackages = with pkgs; [
            wayland
            glib
            wl-clipboard
            wdisplays
            hyprpaper
        ];

        programs.hyprland = {
            enable = true;
            xwayland.enable = true;
            enableNvidiaPatches = true;
        };

        programs.waybar = {
            enable = true;
        };
    };
}