mess around with portals

This commit is contained in:
Adithya 2024-02-17 16:28:05 +05:30
parent eb78a4fb0a
commit 365d0b6012
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 13 additions and 10 deletions

View file

@ -1,4 +1,4 @@
_: { { pkgs, ... }: {
imports = [ ./programs ./services ./wm ./gtk.nix ./persistence.nix ]; imports = [ ./programs ./services ./wm ./gtk.nix ./persistence.nix ];
home.stateVersion = "23.11"; home.stateVersion = "23.11";
@ -17,6 +17,16 @@ _: {
"x-scheme-handler/tg" = [ "org.telegram.desktop.desktop" ]; "x-scheme-handler/tg" = [ "org.telegram.desktop.desktop" ];
}; };
}; };
portal = {
xdgOpenUsePortal = true;
extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-hyprland ];
config = {
common = {
default = [ "gtk" ];
};
};
configPackages = with pkgs; [ hyprland ];
};
userDirs.enable = true; userDirs.enable = true;
desktopEntries."nixos-manual" = { desktopEntries."nixos-manual" = {

View file

@ -62,15 +62,8 @@
xdg.portal = { xdg.portal = {
enable = true; enable = true;
extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-hyprland ]; config.common.default = [ "gtk" ];
config = { xdgOpenUsePortal =true;
common = {
default = [ "gtk" ];
};
hyprland = {
default = [ "hyprland" "gtk" ];
};
};
}; };
system.stateVersion = "23.11"; system.stateVersion = "23.11";