portals
This commit is contained in:
parent
ae437bff51
commit
c80f82eecf
2 changed files with 30 additions and 1 deletions
|
@ -14,13 +14,20 @@ in {
|
|||
|
||||
printing = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
default = false;
|
||||
description = "Enables print and scan related options";
|
||||
};
|
||||
|
||||
portals = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Enables portals for wlr, gtk and kde as well as fixes fonts";
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
./modules/localisation.nix
|
||||
./modules/printing.nix
|
||||
./modules/portals.nix
|
||||
];
|
||||
}
|
||||
|
|
22
modules/portals.nix
Normal file
22
modules/portals.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, lib, ... }: let
|
||||
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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue