nixos/lorri: add package option

Changed files
+11 -2
nixos
modules
services
development
+11 -2
nixos/modules/services/development/lorri.nix
···
issued by the `lorri` command.
'';
};
+
package = lib.mkOption {
+
default = pkgs.lorri;
+
type = lib.types.package;
+
description = ''
+
The lorri package to use.
+
'';
+
defaultText = lib.literalExample "pkgs.lorri";
+
example = lib.literalExample "pkgs.lorri";
+
};
};
};
···
after = [ "lorri.socket" ];
path = with pkgs; [ config.nix.package git gnutar gzip ];
serviceConfig = {
-
ExecStart = "${pkgs.lorri}/bin/lorri daemon";
+
ExecStart = "${cfg.package}/bin/lorri daemon";
PrivateTmp = true;
ProtectSystem = "strict";
ProtectHome = "read-only";
···
};
};
-
environment.systemPackages = [ pkgs.lorri ];
+
environment.systemPackages = [ cfg.package ];
};
}