summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/home.nix27
1 files changed, 13 insertions, 14 deletions
diff --git a/home/home.nix b/home/home.nix
index a67a693..15d8e50 100644
--- a/home/home.nix
+++ b/home/home.nix
@@ -330,23 +330,22 @@
programs.bat = {
enable = true;
config.wrap = "never";
- };
-
- # TODO: remove once programs.bat.syntaxes is in home-manager's release
- xdg.configFile =
- let
- syntaxes = {
- isabelle = builtins.readFile
- "${inputs.isabelle-utils}/isabelle.sublime-syntax";
- gleam = builtins.readFile (pkgs.fetchFromGitHub {
+ syntaxes = {
+ isabelle = {
+ src = inputs.isabelle-utils;
+ file = "/isabelle.sublime-syntax";
+ };
+ gleam = {
+ src = pkgs.fetchFromGitHub {
owner = "molnarmark";
repo = "sublime-gleam";
rev = "2e761cdb1a87539d827987f997a20a35efd68aa9";
sha256 = "sha256-Zj2DKTcO1t9g18qsNKtpHKElbRSc9nBRE2QBzRn9+qs=";
- } + "/syntax/gleam.sublime-syntax");
+ };
+ file = "/syntax/gleam.sublime-syntax";
};
- in with lib; mkMerge (
- flip mapAttrsToList syntaxes (name: body: {
- "bat/syntaxes/${name}.sublime-syntax" = { text = body; };
- }));
+ };
+ };
+
+ xdg.mimeApps.associations.added."x-scheme-handler/tg" = "org.telegram.desktop.deskopt";
}