summaryrefslogtreecommitdiff
path: root/nixos/desktop/hyprland.nix
blob: 62b39aecaa2e51df102373d500adef5d05a5b6bb (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
45
46
{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;
     extraPortals = with pkgs; [ xdg-desktop-portal-hyprland xdg-desktop-portal-gtk ]; 
     config = {
         common = {
           default = [
             "hyprland"
             "gtk"
           ];
           "org.freedesktop.impl.portal.Filechooser"="gtk";
         }; 
      }; 
  };
}