Compare commits
2 commits
d6b876860e
...
6448b16751
Author | SHA1 | Date | |
---|---|---|---|
6448b16751 | |||
92f360e2bb |
3 changed files with 39 additions and 0 deletions
|
@ -3,5 +3,7 @@
|
|||
home.packages = with pkgs; [
|
||||
nixfmt-rfc-style
|
||||
nil
|
||||
statix
|
||||
manix
|
||||
];
|
||||
}
|
||||
|
|
36
home/programs/cheat.nix
Normal file
36
home/programs/cheat.nix
Normal 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;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
|
@ -5,6 +5,7 @@
|
|||
./bat.nix
|
||||
./btop.nix
|
||||
./cava.nix
|
||||
./cheat.nix
|
||||
./curl.nix
|
||||
./eza.nix
|
||||
./figlet.nix
|
||||
|
|
Loading…
Reference in a new issue