feat: added cheat

feat/kile-v2
Ricard Illa 2022-02-21 18:22:19 +01:00
parent ed115a7522
commit 22efec27cb
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
3 changed files with 31 additions and 0 deletions

29
home/cheat/default.nix Normal file
View File

@ -0,0 +1,29 @@
{ config, pkgs, ... }:
{
home = {
packages = [ pkgs.cheat ];
file.".config/cheat/conf.yml".text = pkgs.lib.generators.toYAML { } {
# The editor to use with 'cheat -e <sheet>'. Defaults to $EDITOR or $VISUAL.
editor = "${pkgs.neovim}/bin/nvim";
colorize = true;
# chroma formatter, options are available here:
# https://github.com/alecthomas/chroma/tree/master/styles
style = "monokai";
# one of: "terminal", "terminal256", "terminal16m"
formatter = "terminal16m";
cheatpaths = [{
name = "personal";
path = "${config.home.homeDirectory}/configs/cheatsheets";
tags = [ "personal" ];
readonly = false;
}];
};
};
}

View File

@ -6,6 +6,7 @@
imports = [
./alacritty/macos.nix
./cheat
./dav/macos.nix
./gcloud
./git/echidna.nix

View File

@ -19,6 +19,7 @@ in {
./arduino
./barrier
./browsers
./cheat
./dav
./fonts
./git