28 lines
472 B
Nix
28 lines
472 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
|
|
cfg = config.marleyos.programs.glow;
|
|
toYAML = (pkgs.formats.yaml { }).generate;
|
|
in
|
|
{
|
|
options.marleyos.programs.glow.enable = mkEnableOption "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;
|
|
};
|
|
};
|
|
}
|