@@ -15,6 +15,15 @@ in {
1515 issued by the `lorri` command.
1616 '';
1717 };
18+ package = lib.mkOption {
19+ default = pkgs.lorri;
20+ type = lib.types.package;
21+ description = ''
22+ The lorri package to use.
23+ '';
24+ defaultText = lib.literalExample "pkgs.lorri";
25+ example = lib.literalExample "pkgs.lorri";
26+ };
1827 };
1928 };
2029
@@ -34,7 +43,7 @@ in {
3443 after = [ "lorri.socket" ];
3544 path = with pkgs; [ config.nix.package git gnutar gzip ];
3645 serviceConfig = {
37− ExecStart = "${pkgs.lorri}/bin/lorri daemon";
46+ ExecStart = "${cfg.package}/bin/lorri daemon";
3847 PrivateTmp = true;
3948 ProtectSystem = "strict";
4049 ProtectHome = "read-only";
@@ -42,6 +51,6 @@ in {
4251 };
4352 };
4453
45− environment.systemPackages = [ pkgs.lorri ];
54+ environment.systemPackages = [ cfg.package ];
4655 };
4756}