2024-03-16 12:22:14 +01:00
|
|
|
{ pkgs, config, lib, ... }: let
|
2024-03-16 12:19:02 +01:00
|
|
|
cfg = config.grimmShared;
|
|
|
|
in {
|
|
|
|
config = with cfg; lib.mkIf (enable && portals) {
|
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
|
|
|
wlr.enable = true;
|
|
|
|
extraPortals = with pkgs; [
|
|
|
|
xdg-desktop-portal-wlr
|
|
|
|
xdg-desktop-portal-kde
|
|
|
|
xdg-desktop-portal-gtk
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.sessionVariables = {
|
|
|
|
XDG_CONFIG_HOME = "$HOME/.config";
|
|
|
|
FREETYPE_PROPERTIES="cff:no-stem-darkening=0 autofitter:no-stem-darkening=0";
|
|
|
|
};
|
|
|
|
|
|
|
|
fonts.fontDir.enable = true;
|
|
|
|
};
|
|
|
|
}
|