From cb8832c79a9c5d28aeb3e0d47898b33ad29ba83a Mon Sep 17 00:00:00 2001 From: krizej <60076189+krizej@users.noreply.github.com> Date: Fri, 12 Jul 2024 15:42:35 +0200 Subject: [PATCH] xdg portal crap which doesn't even work --- misc/theme.nix | 5 ----- misc/xdg.nix | 12 ++++++++---- programs/default.nix | 4 ++-- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/misc/theme.nix b/misc/theme.nix index 57fb6ad..eaaf709 100644 --- a/misc/theme.nix +++ b/misc/theme.nix @@ -47,11 +47,6 @@ home.sessionVariables = { GTK_USE_PORTAL = "1"; }; - - home.packages = with pkgs; [ - xdg-desktop-portal - xdg-desktop-portal-gtk - ]; }; } diff --git a/misc/xdg.nix b/misc/xdg.nix index cb75e09..d3b13e0 100644 --- a/misc/xdg.nix +++ b/misc/xdg.nix @@ -5,8 +5,7 @@ in { home-manager.users.krizej = { home.packages = with pkgs; [ xdg-user-dirs - xdg-desktop-portal - xdg-desktop-portal-gnome + xdg-utils ]; home.sessionVariables = rec { @@ -43,10 +42,15 @@ in { videos = "${HOME}/videos"; }; + # fix this scheisse + xdg.portal = { + enable = true; + extraPortals = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-kde ]; + config.common.default = [ "*" ]; + }; + home.file = { ".config/python/pythonrc".text = '' - - def is_vanilla() -> bool: import sys return not hasattr(__builtins__, '__IPYTHON__') and 'bpython' not in sys.argv[0] diff --git a/programs/default.nix b/programs/default.nix index 9490f69..1a5223f 100644 --- a/programs/default.nix +++ b/programs/default.nix @@ -35,7 +35,7 @@ pkg-config python39 ]; - + # maybe i can just put it into the packages but idk whatever home-manager.users.krizej.programs = { home-manager.enable = true; @@ -69,7 +69,7 @@ gimp sqlitebrowser feh - vlc + vlc gdb ccls