1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-06-08 04:59:29 +00:00
This commit is contained in:
Rae 5e 2025-06-03 18:39:21 -04:00
parent 3e5f832d02
commit 6531db0006
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
7 changed files with 541 additions and 483 deletions

View file

@ -226,14 +226,57 @@
security.polkit.enable = true;
xdg.portal = {
enable = true;
config = {
common = {
default = [ "gtk" ];
xdg = {
mime = {
defaultApplications = let
audio = [ "vlc.desktop" "org.fooyin.fooyin.desktop" ];
browser = "firefox.desktop";
image = [ "sxiv.desktop" "gimp.desktop" ];
text = "nvim.desktop";
video = "vlc.desktop";
in {
"application/json" = text;
"application/x-c++src" = text;
"application/x-shellscript" = "kitty-open.desktop";
"application/x-xcf" = "gimp.desktop";
"audio/flac" = audio;
"audio/mp2" = audio;
"audio/mp3" = audio;
"audio/wav" = audio;
"audio/x-vorbis" = audio;
"audio/x-vorbis+ogg" = audio;
"image/avif" = image;
"image/bmp" = image;
"image/gif" = image;
"image/jpeg" = image;
"image/png" = image;
"image/svg+xml" = [ "sxiv.desktop" "nvim.desktop" ];
"image/tiff" = image;
"image/webp" = image;
"inode/directory" = "org.kde.dolphin.desktop";
"text/html" = browser;
"text/markdown" = text;
"text/plain" = text;
"text/x-c" = text;
"video/avi" = video;
"video/mp4" = video;
"video/quicktime" = video;
"video/webm" = video;
"video/x-matroska" = video;
"x-scheme-handler/http" = browser;
"x-scheme-handler/https" = browser;
"x-scheme-handler/mailto" = "thunderbird.desktop";
};
};
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
portal = {
enable = true;
config = {
common = {
default = [ "gtk" ];
};
};
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
};
};
users.users.rae.shell = pkgs.fish;

View file

@ -59,6 +59,7 @@
imagemagick # Software suite to create, edit, compose, or convert bitmap images
krita # Free and open source painting application
maim # Command-line screenshot utility
sxiv # Simple X Image Viewer
# gtk
posy-cursors # Posy's Improved Cursors for Linux
pantheon.elementary-gtk-theme # GTK theme designed to be smooth, attractive, fast, and usable