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 + ]; + }; +}