Common/bat: use old theme name on nixos 23.11

This commit is contained in:
Toast 2024-03-20 11:16:22 +01:00
parent 7474faefe5
commit e88fb8a16e

View file

@ -1,5 +1,8 @@
{ config, pkgs, ... }:
let
themeName = if config.system.nixos.release == "23.11" then "Catppuccin-mocha" else "Catppuccin Mocha";
in
{
home-manager = {
users.toast.programs.bat = {
@ -10,7 +13,7 @@
themes = {
catppuccin-mocha = {
src = pkgs.catppuccin;
file = "bat/Catppuccin Mocha.tmTheme";
file = "bat/${themeName}.tmTheme";
};
};
};