40 lines
760 B
Nix
40 lines
760 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
lib.mkIf (config.jalr.gui.enable && config.jalr.gui.desktop == "sway") {
|
|
programs = {
|
|
wshowkeys.enable = true;
|
|
dconf.enable = true;
|
|
sway = {
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
wrapperFeatures.gtk = true;
|
|
};
|
|
};
|
|
|
|
hardware.graphics.enable = true;
|
|
|
|
security.polkit.enable = true;
|
|
|
|
security.pam.loginLimits = [{
|
|
domain = "@users";
|
|
item = "rtprio";
|
|
type = "-";
|
|
value = 1;
|
|
}];
|
|
|
|
xdg = {
|
|
icons.enable = true;
|
|
portal = {
|
|
enable = true;
|
|
extraPortals = with pkgs; [
|
|
xdg-desktop-portal-wlr
|
|
xdg-desktop-portal-gtk
|
|
];
|
|
xdgOpenUsePortal = true;
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
adwaita-icon-theme
|
|
];
|
|
}
|