feat(home): Glow
This commit is contained in:
parent
2d9f56ef57
commit
43ce65fc92
3 changed files with 31 additions and 16 deletions
|
@ -26,6 +26,7 @@ in
|
|||
fzf = enabled;
|
||||
gh = enabled;
|
||||
git = enabled;
|
||||
glow = enabled;
|
||||
journalctl = enabled;
|
||||
neo = enabled;
|
||||
systemctl = enabled;
|
||||
|
|
30
modules/home/programs/glow/default.nix
Normal file
30
modules/home/programs/glow/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue