From 039c23bd76dbf9572a64e754ef855fcedb12ece9 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Thu, 14 Nov 2024 19:59:38 -0800 Subject: [PATCH] feat(glow): Install & configure --- home/programs/default.nix | 1 + home/programs/glow.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 home/programs/glow.nix diff --git a/home/programs/default.nix b/home/programs/default.nix index 0348222..b97a1c1 100644 --- a/home/programs/default.nix +++ b/home/programs/default.nix @@ -12,6 +12,7 @@ ./fzf.nix ./gh.nix ./git.nix + ./glow.nix ./gpg.nix ./hyfetch.nix ./just.nix diff --git a/home/programs/glow.nix b/home/programs/glow.nix new file mode 100644 index 0000000..b3e3395 --- /dev/null +++ b/home/programs/glow.nix @@ -0,0 +1,16 @@ +{ 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; + }; +}