add core configuration

This commit is contained in:
Chance 2025-03-29 21:03:07 -04:00 committed by lily
parent 74c78e1c68
commit f40517cff1
Signed by: lily
GPG key ID: 601F3263FBCBC4B9
94 changed files with 2816 additions and 959 deletions

View file

@ -0,0 +1,37 @@
{
lib,
pkgs,
config,
...
}: let
cfg = config.lily.wayland;
in {
options.lily.wayland.enable = lib.mkEnableOption "activate wayland";
config = lib.mkIf cfg.enable {
programs.xwayland.enable = true;
environment.systemPackages = with pkgs;
[
wl-clipboard
xwayland
xwaylandvideobridge
wayland-utils
wev
]
++ lib.optionals (config.lily.plasma.enable) [kdePackages.plasma-wayland-protocols];
environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
MOZ_ENABLE_WAYLAND = "1";
QT_QUICK_CONTROLS_STYLE = "org.kde.desktop";
SDL_VIDEODRIVER = "wayland";
CLUTTER_BACKEND = "wayland";
QT_QPA_PLATFORM = "wayland;xcb";
XDG_SESSION_TYPE = "wayland";
GDK_BACKEND = "wayland,x11";
};
services.dbus.enable = true;
security = {
polkit.enable = true;
rtkit.enable = true;
};
};
}