overlays-personal/modules/lorri.nix

24 lines
474 B
Nix
Raw Permalink Normal View History

2019-05-16 13:36:58 +02:00
{ lib, pkgs, config, ... }:
with lib;
let
cfg = config.services.lorri;
lorri-src = fetchTarball https://github.com/target/lorri/archive/master.tar.gz;
in
{
imports = mkIf cfg.enable [
https://raw.githubusercontent.com/target/lorri/master/direnv/nixos.nix
];
options.services.lorri = {
enable = mkEnableOption "Lorri user service";
};
config = mkIf cfg.enable {
environment.systemPackages = [
(pkgs.callPackage lorri-src {})
];
};
}