nur-packages

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

commit 7097657e57c154c2f2846d4abdb3f5fc54c94b3c
parent 2f969e3d0180e0161b7058190a7bccfaba0a79d7
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Tue, 14 Apr 2020 22:32:27 +0300

Add qmapshack module

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

diff --git a/modules/default.nix b/modules/default.nix @@ -2,6 +2,7 @@ home-manager = { programs = { gpxsee = ./home-manager/programs/gpxsee.nix; + qmapshack = ./home-manager/programs/qmapshack.nix; }; }; } diff --git a/modules/home-manager/programs/qmapshack.nix b/modules/home-manager/programs/qmapshack.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + cfg = config.programs.qmapshack; +in +{ + meta.maintainers = with maintainers; [ sikmir ]; + + options.programs.qmapshack = { + enable = mkEnableOption "Consumer grade GIS software"; + + package = mkOption { + default = pkgs.qmapshack; + defaultText = literalExample "pkgs.qmapshack"; + description = "QMapShack package to install."; + type = types.package; + }; + }; + + config = mkIf cfg.enable { + home.packages = [ cfg.package ]; + }; +}