summaryrefslogtreecommitdiff
path: root/nixos/desktop/hyprland.nix
blob: 84c05e7a520d4606a05932b3ba4faf1a9488ff49 (plain)
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
37
38
39
40
41
42
43
44
{pkgs, ...}: {
    environment.systemPackages = with pkgs; [
      hyprland
      hyprshot
      hyprkeys
      hypridle
      hyprpaper
      hyprpicker
      hyprnotify
      hyprcursor
      hyprpolkitagent
       waybar
       waybar-mpris
    ]; 


  services.xserver.exportConfiguration = true; # This makes it easy to search for a valid keymap 
  # Enable KDE6 env in case Hyprland gets borked. 
  # services.desktopManager.plasma6.enable = true;
  programs.hyprland.enable = true; 
  programs.hyprland.withUWSM  = true; 
  programs.uwsm = {
    enable = true; 
    waylandCompositors ={
      hyprland = {
        prettyName = "Hyprland";
        comment = "Hyprland compositor managed by UWSM";
        binPath = "/run/current-system/sw/bin/Hyprland";
      };
    };
  };
  
  xdg.portal = {
     enable = true;
     config = {
        common = {
          default = [
            "hyprland"
            "gtk"
          ];
        }; 
     }; 
  };
}