From 35e5f6dc868eee5eccbdb5d25647d562261a898a Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Sat, 10 May 2025 14:22:37 +0100 Subject: [PATCH] mimeapps: move to user config --- modules/nixos/default.nix | 1 - .../common/optional/graphical}/mimeapps.nix | 19 +++++-------------- users/jordan/odyssey.nix | 1 + 3 files changed, 6 insertions(+), 15 deletions(-) rename {modules/nixos/system/desktop => users/jordan/common/optional/graphical}/mimeapps.nix (91%) diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index b5f2b41..a9fe468 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -7,7 +7,6 @@ ./services/tailscale.nix ./system/desktop/gnome.nix ./system/desktop/hyprland.nix - ./system/desktop/mimeapps.nix ./system/wireless.nix ]; } diff --git a/modules/nixos/system/desktop/mimeapps.nix b/users/jordan/common/optional/graphical/mimeapps.nix similarity index 91% rename from modules/nixos/system/desktop/mimeapps.nix rename to users/jordan/common/optional/graphical/mimeapps.nix index 87b7a98..05d7bd4 100644 --- a/modules/nixos/system/desktop/mimeapps.nix +++ b/users/jordan/common/optional/graphical/mimeapps.nix @@ -1,24 +1,15 @@ { - config, - lib, ... }: let - cfg = config.modules.system.desktop.mimeapps; - avApp = "io.github.celluloid_player.Celluloid.desktop"; - imageApp = "org.gnome.eog.desktop"; + avApp = "mpv.desktop"; + imageApp = "org.gnome.Loupe.desktop"; in { - options.modules.system.desktop.mimeapps = { - enable = lib.mkOption { - default = false; - example = true; - }; - }; - - config = lib.mkIf cfg.enable { - xdg.mime.defaultApplications = { + xdg.mimeApps = { + enable = true; + defaultApplications = { # Audio/video "audio/x-vorbis+ogg" = avApp; "audio/3gpp" = avApp; diff --git a/users/jordan/odyssey.nix b/users/jordan/odyssey.nix index 526c964..e02772a 100644 --- a/users/jordan/odyssey.nix +++ b/users/jordan/odyssey.nix @@ -8,6 +8,7 @@ ./common/optional/graphical/firefox.nix ./common/optional/graphical/hyprland ./common/optional/graphical/libreoffice.nix + ./common/optional/graphical/mimeapps.nix ./common/optional/graphical/thunderbird.nix ];