From 1c8ff97dd4f542260e37ebbf49d2300b4783af86 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sat, 29 Jul 2023 15:57:41 +0300 Subject: [PATCH] ranger --- hosts/sakotop/configuration.nix | 1 + modules/shell/default.nix | 1 + modules/shell/ranger/default.nix | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 modules/shell/ranger/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index f0bceb27..141a21b4 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -75,6 +75,7 @@ }; zsh.enable = true; newsboat.enable = true; + ranger.enable = true; }; media = { mpd.enable = true; diff --git a/modules/shell/default.nix b/modules/shell/default.nix index 32e15f99..d67c39d2 100644 --- a/modules/shell/default.nix +++ b/modules/shell/default.nix @@ -3,5 +3,6 @@ ./nix ./zsh ./newsboat + ./ranger ]; } diff --git a/modules/shell/ranger/default.nix b/modules/shell/ranger/default.nix new file mode 100644 index 00000000..3c06d3ff --- /dev/null +++ b/modules/shell/ranger/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.shell.ranger; +in +{ + options.modules.shell.ranger = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + ranger + ]; + }; +}