overlays-personal/modules/lorri.nix
2019-05-16 14:37:14 +03:00

23 lines
474 B
Nix

{ 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 {})
];
};
}