diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 141a21b4..8e7348a1 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -76,6 +76,7 @@ zsh.enable = true; newsboat.enable = true; ranger.enable = true; + pipe-viewer.enable = true; }; media = { mpd.enable = true; diff --git a/modules/shell/default.nix b/modules/shell/default.nix index d67c39d2..d45017b8 100644 --- a/modules/shell/default.nix +++ b/modules/shell/default.nix @@ -4,5 +4,6 @@ ./zsh ./newsboat ./ranger + ./pipe-viewer ]; } diff --git a/modules/shell/pipe-viewer/default.nix b/modules/shell/pipe-viewer/default.nix new file mode 100644 index 00000000..03b22186 --- /dev/null +++ b/modules/shell/pipe-viewer/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.shell.pipe-viewer; +in +{ + options.modules.shell.pipe-viewer = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + pipe-viewer + ]; + }; +}