refactor
This commit is contained in:
parent
66c05f9093
commit
45d6f4b0f3
205 changed files with 9040 additions and 342 deletions
24
modules/nixos/desktop/addons/xdg-portal/default.nix
Normal file
24
modules/nixos/desktop/addons/xdg-portal/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.plusultra;
|
||||
let cfg = config.plusultra.desktop.addons.xdg-portal;
|
||||
in
|
||||
{
|
||||
options.plusultra.desktop.addons.xdg-portal = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to add support for xdg portal.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
xdg = {
|
||||
portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-wlr
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
gtkUsePortal = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue