From e9b2ed4b33697e26b63e3e8890cf3665ebbdfe41 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 30 Jul 2023 14:35:27 +0300 Subject: [PATCH] add pipe-viewer --- hosts/sakotop/configuration.nix | 1 + modules/shell/default.nix | 1 + modules/shell/pipe-viewer/default.nix | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 modules/shell/pipe-viewer/default.nix 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 + ]; + }; +}