23 lines
474 B
Nix
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 {})
|
|
];
|
|
};
|
|
}
|