diff --git a/user/default.nix b/user/default.nix index b22c03d5..e19ef2eb 100644 --- a/user/default.nix +++ b/user/default.nix @@ -12,6 +12,7 @@ rec anyrun = callPackage ./wrapped/anyrun {inherit theme;}; waybar = callPackage ./wrapped/waybar {inherit theme;}; mako = callPackage ./wrapped/mako {inherit theme;}; + bat = callPackage ./wrapped/bat {inherit theme;}; }; shell = pkgs: diff --git a/user/theme/default.nix b/user/theme/default.nix index 4d6c2921..2debc396 100644 --- a/user/theme/default.nix +++ b/user/theme/default.nix @@ -46,6 +46,8 @@ pkgs: rec { accent = regular.blue; wallpaper = ./wall.jpg; + bat = "Nord"; + nvim = { enable = true; # uses generated base16 them if set to false diff --git a/user/wrapped/bat/default.nix b/user/wrapped/bat/default.nix new file mode 100644 index 00000000..6e0be308 --- /dev/null +++ b/user/wrapped/bat/default.nix @@ -0,0 +1,13 @@ +{ + pkgs, + theme, + ... +}: +pkgs.symlinkJoin { + name = "bat-wrapped"; + paths = [pkgs.bat]; + buildInputs = [pkgs.makeWrapper]; + postBuild = '' + wrapProgram $out/bin/bat --add-flags "--theme=${theme.bat}" + ''; +} diff --git a/user/wrapped/zsh/aliases.nix b/user/wrapped/zsh/aliases.nix index c84002d9..0416d0d2 100644 --- a/user/wrapped/zsh/aliases.nix +++ b/user/wrapped/zsh/aliases.nix @@ -16,7 +16,7 @@ in rec { # imagine using mp3 ytopus = "yt-dlp -x --embed-metadata --audio-quality 0 --audio-format opus --embed-metadata --embed-thumbnail"; - cat = "${getExe pkgs.bat} --plain"; + cat = "bat --plain"; kys = "shutdown now";