Compare commits

...

2 commits

Author SHA1 Message Date
6448b16751
feat(nix): Install helper tools 2024-11-14 21:00:06 -08:00
92f360e2bb
feat(cheat): Install cheat 2024-11-14 21:00:06 -08:00
3 changed files with 39 additions and 0 deletions

View file

@ -3,5 +3,7 @@
home.packages = with pkgs; [
nixfmt-rfc-style
nil
statix
manix
];
}

36
home/programs/cheat.nix Normal file
View file

@ -0,0 +1,36 @@
{ pkgs, config, ... }:
let
toYaml = (pkgs.formats.yaml { }).generate;
in
{
home.packages = with pkgs; [
cheat
];
xdg.configFile."cheat/conf.yml".source = toYaml "conf.yml" {
colorize = true;
# TODO set based on global color scheme
style = "rose-pine";
formatter = "terminal256";
pager = "less -FRX";
cheatpaths =
let
cheatDir = "${config.xdg.configHome}/cheat/cheatsheets";
in
[
{
name = "community";
path = "${cheatDir}/community";
tags = [ "community" ];
readonly = true;
}
{
name = "personal";
path = "${cheatDir}/personal";
tags = [ "personal" ];
readonly = false;
}
];
};
}

View file

@ -5,6 +5,7 @@
./bat.nix
./btop.nix
./cava.nix
./cheat.nix
./curl.nix
./eza.nix
./figlet.nix