summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorstuebinm2023-09-19 00:17:20 +0200
committerstuebinm2023-09-19 00:17:20 +0200
commit9893158403196f56dde1e61ca49bc11bf32afa15 (patch)
tree96928922491c9579c2b62b5a214f1a48594ea18c /home
parent2c68f5d5cc16f87181ec73586c01ab14b132ab70 (diff)
home: configure bat
(waiting for an option to appear in the release channel)
Diffstat (limited to 'home')
-rw-r--r--home/home.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/home/home.nix b/home/home.nix
index 4dc0fd4..6fe4d97 100644
--- a/home/home.nix
+++ b/home/home.nix
@@ -322,4 +322,27 @@
musicDirectory = "${config.home.homeDirectory}/music";
network.startWhenNeeded = true;
};
+
+ 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 {
+ owner = "molnarmark";
+ repo = "sublime-gleam";
+ rev = "2e761cdb1a87539d827987f997a20a35efd68aa9";
+ sha256 = "sha256-Zj2DKTcO1t9g18qsNKtpHKElbRSc9nBRE2QBzRn9+qs=";
+ } + "/syntax/gleam.sublime-syntax");
+ };
+ in with lib; mkMerge (
+ flip mapAttrsToList syntaxes (name: body: {
+ "bat/syntaxes/${name}.sublime-syntax" = { text = body; };
+ }));
}