aboutsummaryrefslogtreecommitdiff
path: root/nixos/desktop-environment.nix
blob: 15ad47e9962967391c3e9e1dbd1e8fdb9e13fb1d (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
{ config, pkgs, quickshell, sessions, ... }:
{
  services.xserver.enable = true;
  services.xserver.displayManager.startx.enable = true;
  services.displayManager.ly.enable = true;
  services.desktopManager.gnome.enable = false;
  services.desktopManager.plasma6.enable = true;
  programs.hyprland.enable = sessions.hyprland_wayland;
  programs.hyprlock.enable = sessions.hyprland_wayland;
  programs.foot.enable = true;
  programs.sway.enable = true;
  programs.dconf.enable = true;
  environment.systemPackages = with pkgs; [
    playerctl
    libnotify
    libGL
    mako
    lm_sensors
    slurp
  ] ++ (if sessions.hyprland_wayland then [
    quickshell.packages.${pkgs.system}.quickshell
    qt6.qtwayland
    catppuccin-cursors.mochaMauve
    swaybg
    grim
    hyprcursor
    hyprsunset
    hyprpicker
    wl-clipboard
  ] else []) ++ (if sessions.plasma_x11 then [
    xclip
    libx11
    libxrandr
    libxinerama
    libxcursor
    libxi
    libxext
    libxfixes
  ] else []);
}