23 lines
386 B
Nix
23 lines
386 B
Nix
|
{
|
||
|
lib,
|
||
|
config,
|
||
|
namespace,
|
||
|
...
|
||
|
}:
|
||
|
let
|
||
|
inherit (lib) mkIf;
|
||
|
inherit (lib.${namespace}) mkEnableModule;
|
||
|
|
||
|
cfg = config.${namespace}.programs.journalctl;
|
||
|
in
|
||
|
{
|
||
|
options.programs = mkEnableModule "journalctl";
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
home.shellAbbrs = {
|
||
|
jctlf = "sudo journalctl --follow --unit";
|
||
|
jctle = "sudo journalctl --pager-end --unit";
|
||
|
};
|
||
|
};
|
||
|
}
|