nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit c89255025c09219250397d1a67b57a5d38b5463a
parent d8a88d749b7c16c8d145ae3bfa5ee9705ecf7001
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Wed, 15 Jun 2022 12:45:59 +0300

Remove nnn module

Diffstat:
Mmodules/default.nix | 1-
Dmodules/home-manager/programs/nnn.nix | 47-----------------------------------------------
2 files changed, 0 insertions(+), 48 deletions(-)

diff --git a/modules/default.nix b/modules/default.nix @@ -8,7 +8,6 @@ gpxsee = ./home-manager/programs/gpxsee.nix; josm = ./home-manager/programs/josm.nix; merkaartor = ./home-manager/programs/merkaartor.nix; - nnn = ./home-manager/programs/nnn.nix; openorienteering-mapper = ./home-manager/programs/openorienteering-mapper.nix; qmapshack = ./home-manager/programs/qmapshack.nix; slack-term = ./home-manager/programs/slack-term.nix; diff --git a/modules/home-manager/programs/nnn.nix b/modules/home-manager/programs/nnn.nix @@ -1,47 +0,0 @@ -{ config, lib, pkgs, ... }: - -with lib; -let - cfg = config.programs.nnn; - configDir = "${config.xdg.configHome}/nnn"; - pluginDir = "${configDir}/plugins"; -in -{ - meta.maintainers = [ maintainers.sikmir ]; - - options.programs.nnn = { - enable = mkEnableOption "The missing terminal file manager for X"; - - package = mkOption { - default = pkgs.nnn; - defaultText = literalExpression "pkgs.nnn"; - description = "nnn package to install."; - type = types.package; - }; - - pluginsPackage = mkOption { - default = null; - description = "nnn plugins package to install."; - type = types.nullOr types.package; - }; - }; - - config = mkIf cfg.enable ( - mkMerge [ - { - home.packages = [ cfg.package ]; - - home.sessionVariables = { - NNN_COLORS = "5236"; - }; - } - - ( - mkIf (cfg.pluginsPackage != null) { - home.file."${pluginDir}".source = - "${cfg.pluginsPackage}/share/nnn/plugins"; - } - ) - ] - ); -}