From 47885b325b63671c5359afcc3c2ebc4ed85f3004 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Fri, 29 Dec 2023 18:51:30 +0100 Subject: more updates --- home/home.nix | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'home') 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"; } -- cgit v1.2.3