1{
2 inputs,
3 config,
4 pkgs,
5 ...
6}:
7{
8 home.packages = with pkgs; [
9 swww
10 grimblast
11 hyprpicker
12 grim
13 slurp
14 wl-clip-persist
15 wl-clipboard
16 cliphist
17 wf-recorder
18 glib
19 wayland
20 playerctl
21 waybar
22 networkmanagerapplet
23 hyprpolkitagent
24 swappy
25 ];
26 # systemd.user.targets.hyprland-session.Unit.Wants = [
27 # "xdg-desktop-autostart.target"
28 # ];
29 wayland.windowManager.hyprland = {
30 enable = true;
31 package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
32 # make sure to also set the portal package, so that they are in sync
33 portalPackage =
34 inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
35
36 xwayland = {
37 enable = true;
38 };
39 systemd.enable = false;
40 };
41 # https://wiki.hypr.land/Nix/Hyprland-on-Home-Manager/#nixos-uwsm
42 xdg.configFile."uwsm/env".source =
43 "${config.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh";
44}