nur-packages

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

commit e74b1d8a3a320c5664cf8247f3e3e397512f9d0c
parent f676a3a8f6736f7ebd3a45e1c17cb91bbbe3b0d2
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Tue, 28 Apr 2020 04:38:03 +0300

Add josm module

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

diff --git a/modules/default.nix b/modules/default.nix @@ -4,6 +4,7 @@ aerc = ./home-manager/programs/aerc.nix; goldendict = ./home-manager/programs/goldendict.nix; gpxsee = ./home-manager/programs/gpxsee.nix; + josm = ./home-manager/programs/josm.nix; qmapshack = ./home-manager/programs/qmapshack.nix; slack-term = ./home-manager/programs/slack-term.nix; }; diff --git a/modules/home-manager/programs/josm.nix b/modules/home-manager/programs/josm.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + cfg = config.programs.josm; +in +{ + meta.maintainers = with maintainers; [ sikmir ]; + + options.programs.josm = { + enable = mkEnableOption "An extensible editor for OpenStreetMap"; + + package = mkOption { + default = pkgs.josm; + defaultText = literalExample "pkgs.josm"; + description = "JOSM package to install."; + type = types.package; + }; + }; + + config = mkIf cfg.enable { + home.packages = [ cfg.package ]; + }; +}