diff options
-rw-r--r-- | archetypes/profiles/desktop/default.nix | 13 | ||||
-rw-r--r-- | home-manager/resources/xdg-mime/directory | 1 | ||||
-rw-r--r-- | home-manager/xdg-mime.nix | 2 |
3 files changed, 9 insertions, 7 deletions
diff --git a/archetypes/profiles/desktop/default.nix b/archetypes/profiles/desktop/default.nix index 0e68b84..a0ed9a8 100644 --- a/archetypes/profiles/desktop/default.nix +++ b/archetypes/profiles/desktop/default.nix @@ -103,12 +103,13 @@ xdg.mimeApps._defaultCategoryApplications = { enable = true; categoryApplications = { - audio = [ "mpv" ]; - email = [ "thunderbird" ]; - image = [ "sxiv" ]; - pdf = [ "org.pwmt.zathura-pdf-mupdf" ]; - text = [ "nvim" ]; - video = [ "mpv" ]; + audio = [ "mpv" ]; + directory = [ "pcmanfm" ]; + email = [ "thunderbird" ]; + image = [ "sxiv" ]; + pdf = [ "org.pwmt.zathura-pdf-mupdf" ]; + text = [ "nvim" ]; + video = [ "mpv" ]; }; }; }; diff --git a/home-manager/resources/xdg-mime/directory b/home-manager/resources/xdg-mime/directory new file mode 100644 index 0000000..e8b92b4 --- /dev/null +++ b/home-manager/resources/xdg-mime/directory @@ -0,0 +1 @@ +inode/directory diff --git a/home-manager/xdg-mime.nix b/home-manager/xdg-mime.nix index 420510f..e74b4b3 100644 --- a/home-manager/xdg-mime.nix +++ b/home-manager/xdg-mime.nix @@ -6,7 +6,7 @@ # Files present in mimeResources with newline separated mime-types # Would be more fun to load these dynamically with builtins.readDir, but I will be disciplined - categories = [ "audio" "email" "image" "pdf" "text" "video" ]; + categories = [ "audio" "directory" "email" "image" "pdf" "text" "video" ]; # Dynamically generate categories categoryApplications = (lib.genAttrs categories (category: lib.mkOption { |