git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/lorri: add package option
commita31736120c5de6e632f5a0ba1ed34e53fc1c1b00 authorEvan Stoll <evanjsx@gmail.com> dateSun 6 Sep 2020, 12:04 (6 years ago) parent85afe9c
1 file changed+11−2
nixos/modules/services/development/lorri.nix+11−2
nixos/modules/services/development/lorri.nix+11−2
@@ -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}