feat: setup mangowc

This commit is contained in:
tux
2026-05-07 03:57:15 +05:30
parent ff9bc06c61
commit ede154da66
4 changed files with 354 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
{
inputs,
...
}:
{
flake.modules.nixos.desktop =
{
pkgs,
lib,
...
}:
{
imports = [
inputs.mango.nixosModules.mango
];
programs.mango.enable = true;
xdg.portal = {
enable = lib.mkDefault true;
extraPortals = with pkgs; [
hyprland-git.xdg-desktop-portal-hyprland
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
config.mango = {
default = lib.mkForce [
"hyprland"
"gtk"
];
"org.freedesktop.impl.portal.ScreenCast" = lib.mkForce [ "hyprland" ];
"org.freedesktop.impl.portal.ScreenShot" = lib.mkForce [ "hyprland" ];
};
};
};
}