Common/bat: use old theme name on nixos 23.11
This commit is contained in:
parent
7474faefe5
commit
e88fb8a16e
1 changed files with 4 additions and 1 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue