From defb43ea3d2f2b43253f0e804bcec68161e000ea Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Mon, 11 Dec 2023 16:12:47 +0800 Subject: [PATCH] home: xdg-mime: add default code editor --- .../nixos/profiles/device-type/desktop/home/xdg-mime.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/users/guanranwang/nixos/profiles/device-type/desktop/home/xdg-mime.nix b/users/guanranwang/nixos/profiles/device-type/desktop/home/xdg-mime.nix index abfa192..523d515 100644 --- a/users/guanranwang/nixos/profiles/device-type/desktop/home/xdg-mime.nix +++ b/users/guanranwang/nixos/profiles/device-type/desktop/home/xdg-mime.nix @@ -37,6 +37,13 @@ "video/mp4" "video/mpeg" "video/webm" - ] (n: ["mpv.desktop"]); + ] (n: ["mpv.desktop"]) + ### Code editor + // lib.genAttrs [ + "text/css" + "text/html" + "text/javascript" + "text/plain" + ] (n: ["codium.desktop" "Helix.desktop" "nvim.desktop"]); }; }