mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-20 14:31:28 +01:00
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ mylib, pkgs, ... }:
|
|
{
|
|
# wayland related
|
|
home.sessionVariables = {
|
|
"NIXOS_OZONE_WL" = "1"; # for any ozone-based browser & electron apps to run on wayland
|
|
"MOZ_ENABLE_WAYLAND" = "1"; # for firefox to run on wayland
|
|
"MOZ_WEBRENDER" = "1";
|
|
# enable native Wayland support for most Electron apps
|
|
"ELECTRON_OZONE_PLATFORM_HINT" = "auto";
|
|
# misc
|
|
"_JAVA_AWT_WM_NONREPARENTING" = "1";
|
|
"QT_WAYLAND_DISABLE_WINDOWDECORATION" = "1";
|
|
"SDL_VIDEODRIVER" = "wayland";
|
|
"GDK_BACKEND" = "wayland";
|
|
"XDG_SESSION_TYPE" = "wayland";
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
wl-clipboard # copying and pasting
|
|
brightnessctl
|
|
# screen recording
|
|
wf-recorder # screen recording
|
|
|
|
virt-manager # manage the libvirt VMs
|
|
virt-viewer # vnc/spice console for the libvirt VMs
|
|
];
|
|
|
|
# Emergency session-menu fallback; the normal flow uses Noctalia's session panel.
|
|
programs.wlogout.enable = true;
|
|
|
|
# auto mount usb drives
|
|
services = {
|
|
udiskie.enable = true;
|
|
# syncthing.enable = true;
|
|
};
|
|
}
|