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 ];
home.stateVersion = "23.11";
@ -17,6 +17,16 @@ _: {
"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;
desktopEntries."nixos-manual" = {

View file

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