nur-packages

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

commit 88f626d98010b05cb7910f150ec592897ff3c2d5
parent 3be00800ca33a081c4c834b1fb12a2d5a3d6445b
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Tue, 14 Apr 2020 00:38:57 +0300

Add gpxsee module

Diffstat:
Mmodules/default.nix | 8+++++---
Amodules/home-manager/programs/gpxsee.nix | 24++++++++++++++++++++++++
2 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/modules/default.nix b/modules/default.nix @@ -1,6 +1,8 @@ { - # Add your NixOS modules here - # - # my-module = ./my-module; + home-manager = { + programs = { + gpxsee = ./home-manager/programs/gpxsee.nix; + }; + }; } diff --git a/modules/home-manager/programs/gpxsee.nix b/modules/home-manager/programs/gpxsee.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + cfg = config.programs.gpxsee; +in +{ + meta.maintainers = with maintainers; [ sikmir ]; + + options.programs.gpxsee = { + enable = mkEnableOption "GPS log file viewer and analyzer"; + + package = mkOption { + default = pkgs.gpxsee; + defaultText = literalExample "pkgs.gpxsee"; + description = "GPXSee package to install."; + type = types.package; + }; + }; + + config = mkIf cfg.enable { + home.packages = [ cfg.package ]; + }; +}