feat(home): Glow

This commit is contained in:
punkfairie 2024-11-16 17:15:18 -08:00
parent 2d9f56ef57
commit 43ce65fc92
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
3 changed files with 31 additions and 16 deletions

View file

@ -26,6 +26,7 @@ in
fzf = enabled; fzf = enabled;
gh = enabled; gh = enabled;
git = enabled; git = enabled;
glow = enabled;
journalctl = enabled; journalctl = enabled;
neo = enabled; neo = enabled;
systemctl = enabled; systemctl = enabled;

View file

@ -0,0 +1,30 @@
{
lib,
config,
namespace,
pkgs,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule;
cfg = config.${namespace}.programs.glow;
toYAML = (pkgs.formats.yaml { }).generate;
in
{
options = mkEnableModule "programs.glow";
config = mkIf cfg.enable {
home.packages = with pkgs; [
glow
];
xdg.configFile."glow/glow.yml".source = toYAML "glow.yml" {
style = "pink";
mouse = true;
pager = true;
width = 80;
};
};
}

View file

@ -1,16 +0,0 @@
{ pkgs, ... }:
let
toYaml = (pkgs.formats.yaml { }).generate;
in
{
home.packages = with pkgs; [
glow
];
xdg.configFile."glow/glow.yml".source = toYaml "glow.yml" {
style = "pink";
mouse = true;
pager = true;
width = 80;
};
}