nur-packages

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

commit 05032d8740160217d8baf7dbbec65ebfebceee69
parent 0cb8e54c9fdd07c0f76bdf528efffad848c490af
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Tue, 14 Apr 2020 23:18:29 +0300

Add goldendict module

Diffstat:
Mmodules/default.nix | 1+
Amodules/home-manager/programs/goldendict.nix | 24++++++++++++++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/modules/default.nix b/modules/default.nix @@ -1,6 +1,7 @@ { home-manager = { programs = { + goldendict = ./home-manager/programs/goldendict.nix; gpxsee = ./home-manager/programs/gpxsee.nix; qmapshack = ./home-manager/programs/qmapshack.nix; }; diff --git a/modules/home-manager/programs/goldendict.nix b/modules/home-manager/programs/goldendict.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + cfg = config.programs.goldendict; +in +{ + meta.maintainers = with maintainers; [ sikmir ]; + + options.programs.goldendict = { + enable = mkEnableOption "A feature-rich dictionary lookup program"; + + package = mkOption { + default = pkgs.goldendict; + defaultText = literalExample "pkgs.goldendict"; + description = "GoldenDict package to install."; + type = types.package; + }; + }; + + config = mkIf cfg.enable { + home.packages = [ cfg.package ]; + }; +}