summary refs log tree commit diff
path: root/host/Arc/optional/gui/wayland.nix
blob: 281c72d5bddfa8b2c5e81603e9cec0ed7a34d04d (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
  pkgs,
  hyprland,
  hy3,
  ...
}:

{
  #programs.sway = {
  #  enable = true;
#
  #  wrapperFeatures.gtk = true;
  #  extraSessionCommands = ''
  #    # -- Wayland fixes
  #    # SDL:
  #    export SDL_VIDEODRIVER=wayland
  #    # QT (needs qt5.qtwayland in systemPackages):
  #    export QT_QPA_PLATFORM=wayland-egl
  #    export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
  #    # Fix for some Java AWT applications (e.g. Android Studio),
  #    # use this if they aren't displayed properly:
  #    export _JAVA_AWT_WM_NONREPARENTING=1
  #  '';
#
  #  extraPackages = with pkgs; [
  #    swaybg
  #    #swayidle
  #    #swaylock
  #    waybar
  #    wl-clipboard
  #    grim
  #    slurp
  #    easyeffects
  #    keepassxc
  #  ];
  #};

  programs.hyprland = {
    enable = true;
    package = hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
  };

  programs.hyprlock.enable = true;
  environment.systemPackages = with pkgs;[
    wmenu

    waybar
    wl-clipboard
    grim
    slurp
    #easyeffects
    keepassxc
    networkmanagerapplet
  ];
  
  #environment.etc."hyprPlugins" = {
  #  text = ''
  #    plugin = ${hy3.packages.${pkgs.stdenv.hostPlatform.system}.hy3}/lib/libhy3.so
  #  '';
  #};

  xdg.portal.wlr.enable = true;
}