2024-01-22 15:01:36 +01:00
|
|
|
{ pkgs
|
|
|
|
, config
|
|
|
|
, lib
|
|
|
|
, repoFlake
|
|
|
|
, nodeFlake
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (import ../lib.nix { }) mkSimpleTrayService;
|
2023-05-23 18:11:30 +02:00
|
|
|
|
|
|
|
nixpkgs-wayland' = repoFlake.inputs.nixpkgs-wayland.packages.${pkgs.system};
|
|
|
|
wayprompt = nixpkgs-wayland'.wayprompt;
|
2024-01-22 15:01:36 +01:00
|
|
|
in
|
|
|
|
{
|
2023-05-21 11:58:57 +02:00
|
|
|
fonts.fontconfig.enable = true;
|
|
|
|
|
2023-05-23 18:11:30 +02:00
|
|
|
# services.gpg-agent.pinentryFlavor = lib.mkForce null;
|
|
|
|
# services.gpg-agent.extraConfig = ''
|
|
|
|
# pinentry-program "${wayprompt}/bin/pinentry-wayprompt"
|
|
|
|
# '';
|
|
|
|
|
2023-05-23 19:02:35 +02:00
|
|
|
services = {
|
|
|
|
blueman-applet.enable = true;
|
|
|
|
network-manager-applet.enable = true;
|
|
|
|
};
|
|
|
|
|
2023-05-23 20:32:32 +02:00
|
|
|
systemd.user.targets.tray = {
|
|
|
|
Unit = {
|
|
|
|
Description = "Home Manager System Tray";
|
2024-01-22 15:01:36 +01:00
|
|
|
Requires = [ "graphical-session-pre.target" ];
|
2023-05-23 20:32:32 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-05-21 11:58:57 +02:00
|
|
|
home.packages = with pkgs; [
|
2023-05-23 19:02:35 +02:00
|
|
|
# required by network-manager-applet
|
|
|
|
pkgs.networkmanagerapplet
|
|
|
|
|
2023-05-21 11:58:57 +02:00
|
|
|
wlr-randr
|
|
|
|
wayout
|
|
|
|
wl-clipboard
|
|
|
|
wmctrl
|
|
|
|
|
2023-05-23 18:11:30 +02:00
|
|
|
nixpkgs-wayland'.shotman
|
|
|
|
|
2023-05-21 11:58:57 +02:00
|
|
|
# identifies key input syms
|
|
|
|
wev
|
|
|
|
|
|
|
|
# TODO: whwat's this for?
|
|
|
|
# wltype
|
|
|
|
|
|
|
|
pavucontrol
|
|
|
|
playerctl
|
|
|
|
pasystray
|
2023-08-08 17:54:51 +02:00
|
|
|
qt5.qtwayland
|
|
|
|
qt6.qtwayland
|
|
|
|
# libsForQt5.qt5.qtwayland
|
|
|
|
# libsForQt6.qt6.qtwayland
|
2023-05-23 18:11:30 +02:00
|
|
|
|
|
|
|
# probably required by flameshot
|
2023-08-08 17:54:51 +02:00
|
|
|
# xdg-desktop-portal xdg-desktop-portal-wlr
|
2023-05-23 18:11:30 +02:00
|
|
|
# grim
|
2024-01-22 22:50:51 +01:00
|
|
|
] ++ (lib.lists.optionals (!pkgs.stdenv.isAarch64)
|
|
|
|
# TODO: broken on aarch64
|
|
|
|
[
|
|
|
|
]
|
|
|
|
);
|
2023-05-21 11:58:57 +02:00
|
|
|
|
|
|
|
home.sessionVariables = {
|
|
|
|
XDG_SESSION_TYPE = "wayland";
|
|
|
|
NIXOS_OZONE_WL = "1";
|
|
|
|
MOZ_ENABLE_WAYLAND = "1";
|
|
|
|
};
|
|
|
|
|
|
|
|
home.pointerCursor = {
|
|
|
|
name = "Vanilla-DMZ";
|
|
|
|
package = pkgs.vanilla-dmz;
|
|
|
|
size = 32;
|
|
|
|
x11.enable = true;
|
|
|
|
gtk.enable = true;
|
|
|
|
};
|
|
|
|
}
|