diff --git a/modules/home/profiles.nix b/modules/home/profiles.nix index 0f49b1b..1ee659b 100644 --- a/modules/home/profiles.nix +++ b/modules/home/profiles.nix @@ -21,6 +21,7 @@ in { gpg = enabled; httpie = enabled; hyfetch = enabled; + journalctl = enabled; nh = enabled; }; } diff --git a/modules/home/programs/default.nix b/modules/home/programs/default.nix index d9cc395..e55fa1f 100644 --- a/modules/home/programs/default.nix +++ b/modules/home/programs/default.nix @@ -15,6 +15,7 @@ ./gpg.nix ./httpie.nix ./hyfetch + ./journalctl.nix ./nemo.nix ./nh.nix ./waybar.nix diff --git a/modules/home/programs/journalctl.nix b/modules/home/programs/journalctl.nix new file mode 100644 index 0000000..f1df254 --- /dev/null +++ b/modules/home/programs/journalctl.nix @@ -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}"; + }; + }; +} diff --git a/snowflake/modules/home/programs/cli/journalctl/default.nix b/snowflake/modules/home/programs/cli/journalctl/default.nix deleted file mode 100644 index 21e082c..0000000 --- a/snowflake/modules/home/programs/cli/journalctl/default.nix +++ /dev/null @@ -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"; - }; - }; -}