add core configuration
This commit is contained in:
parent
74c78e1c68
commit
f40517cff1
94 changed files with 2816 additions and 959 deletions
37
modules/wayland/default.nix
Normal file
37
modules/wayland/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue