feat: journalctl
This commit is contained in:
parent
bcab411b3a
commit
23c028f620
4 changed files with 21 additions and 16 deletions
|
@ -21,6 +21,7 @@ in {
|
|||
gpg = enabled;
|
||||
httpie = enabled;
|
||||
hyfetch = enabled;
|
||||
journalctl = enabled;
|
||||
nh = enabled;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
./gpg.nix
|
||||
./httpie.nix
|
||||
./hyfetch
|
||||
./journalctl.nix
|
||||
./nemo.nix
|
||||
./nh.nix
|
||||
./waybar.nix
|
||||
|
|
19
modules/home/programs/journalctl.nix
Normal file
19
modules/home/programs/journalctl.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.marleyos.programs.journalctl;
|
||||
in {
|
||||
options.marleyos.programs.journalctl.enable = lib.mkEnableOption "journalctl";
|
||||
|
||||
config = lib.mkIf (cfg.enable && pkgs.stdenv.isLinux) {
|
||||
home.shellAbbrs = rec {
|
||||
jctlf = "journalctl --follow --unit";
|
||||
jctle = "journalctl --pager-end --unit";
|
||||
sjctlf = "sudo ${jctlf}";
|
||||
sjctle = "sudo ${jctle}";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.marleyos.programs.journalctl;
|
||||
in {
|
||||
options.marleyos.programs.journalctl.enable = lib.mkEnableOption "journalctl";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.shellAbbrs = {
|
||||
jctlf = "sudo journalctl --follow --unit";
|
||||
jctle = "sudo journalctl --pager-end --unit";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue