-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhyprland.nix
99 lines (83 loc) · 1.67 KB
/
hyprland.nix
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# hyprland
{ pkgs, ... }:
{
programs.hyprland = {
enable = true;
# package = unstable.pkgs.hyprland;
xwayland = {
enable = true;
# hidpi = true;
};
};
services.hypridle = {
enable = true;
};
programs.hyprlock = {
enable = true;
};
security.pam.services.hyprlock = {
unixAuth = true;
yubicoAuth = true;
fprintAuth = false;
};
environment.variables = {
NIXOS_OZONE_WL = "1";
NIXOS_XDG_OPEN_USE_PORTAL = "1";
GDK_BACKEND = "wayland";
QT_QPA_PLATFORM = "wayland";
SDL_VIDEODRIVER = "wayland";
ELECTRON_ENABLE_STACK_DUMPING = "true";
ELECTRON_NO_ATTACH_CONSOLE = "true";
XDG_SESSION_DESKTOP = "Hyprland";
GTK_USE_PORTAL = "1";
};
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
# wlr.enable = true;
# make gtk apps happy
extraPortals = [
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-kde
];
};
environment.systemPackages = with pkgs; [
hyprland-protocols
hyprpicker # color picker
hyprpaper # wallpaper
wayland
# wayland-protocols
xwayland
xdg-utils # opening default programs from links
xdg-desktop-portal
xdg-desktop-portal-hyprland
cliphist
wl-clipboard
seatd
# launcher
rofi-wayland
bemoji # emoji picker
wtype # bemoji dependency
# wofi
# terminal
unstable.alacritty
kitty
unstable.ghostty
# status bar
eww
acpi
# screenshots
grim
unstable.slurp
# screen-recording
wf-recorder
# wl-screenrec
# qt
libsForQt5.qt5.qtwayland
qt6.qtwayland
adwaita-qt
adwaita-qt6
# night shift
hyprshade
];
}