marleyos/modules/home/programs/journalctl/default.nix

17 lines
336 B
Nix
Raw Normal View History

2024-11-15 22:18:13 -08:00
{
lib,
config,
...
}: let
cfg = config.marleyos.programs.journalctl;
in {
options.marleyos.programs.journalctl.enable = lib.mkEnableOption "journalctl";
2024-11-15 22:18:13 -08:00
config = lib.mkIf cfg.enable {
2024-11-15 22:18:13 -08:00
home.shellAbbrs = {
jctlf = "sudo journalctl --follow --unit";
jctle = "sudo journalctl --pager-end --unit";
};
};
}