updated xdg-mime.nix

This commit is contained in:
serenity-F 2024-12-27 17:04:21 +10:00
parent fa104f6340
commit 5a5246998b
2 changed files with 17 additions and 15 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, flakePath, homeDir, ... }:
## Base desktop theme ## Base desktop theme
let let
@ -14,7 +14,7 @@ in {
./xdg-mime.nix # file associations ./xdg-mime.nix # file associations
./hyprcursor.nix # mouse cursor ./hyprcursor.nix # mouse cursor
./hyprlock.nix # screen locker ./hyprlock.nix # screen locker
./wlogout.nix # logout prompt ./wlogout.nix # logout prompt
./waybar.nix # statusbar ./waybar.nix # statusbar
./dunst.nix # notifier ./dunst.nix # notifier
./wofi.nix # app menu ./wofi.nix # app menu
@ -27,31 +27,32 @@ in {
mime.enable = true; mime.enable = true;
portal = { portal = {
enable = true; enable = true;
wlr.enable = true;
xdgOpenUsePortal = false; xdgOpenUsePortal = false;
config = { config = {
common."org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ]; common."org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
common.default = [ "gtk" "gnome" ]; common.default = [ "gtk" "wlr" "gnome" ];
sway.default = [ "wlr" "gtk" "gnome" ]; sway.default = [ "gtk" "wlr" "gnome" ];
}; };
configPackages = with pkgs; [ configPackages = with pkgs; [
#xdg-desktop-portal
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk xdg-desktop-portal-gtk
xdg-desktop-portal-wlr
xdg-desktop-portal-gnome xdg-desktop-portal-gnome
]; ];
extraPortals = with pkgs; [ extraPortals = with pkgs; [
#xdg-desktop-portal
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk xdg-desktop-portal-gtk
xdg-desktop-portal-wlr
xdg-desktop-portal-gnome xdg-desktop-portal-gnome
]; ];
}; };
#userDirs = { userDirs = {
#extraConfig = { enable = true;
#XDG_FLAKE_DIR = "${config.home.homeDirectory}/flakes/nixdots"; createDirectories = true;
#XDG_SYNC_DIR = "${config.home.homeDirectory}/Sync"; extraConfig = {
#}; XDG_FLAKE_DIR = "${flakePath}";
#}; XDG_SYNC_DIR = "${homeDir}/Sync";
};
};
}; };
fonts = { fontconfig = { enable = true; }; }; fonts = { fontconfig = { enable = true; }; };

View file

@ -1,7 +1,8 @@
# Mime allows us to configure the default applications for each file type # Mime allows us to configure the default applications for each file type
{ {
xdg = { xdg = {
#desktopEntries = { }; configFile."mimeapps.list".force = true; # forces the following declarations
#desktopEntries = { };
mimeApps = { mimeApps = {
associations = { associations = {
added = { added = {