diff options
author | Kaiden Fey <kookie@spacekookie.de> | 2020-09-21 14:12:32 +0200 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2020-09-21 14:12:32 +0200 |
commit | f80843dd45d7acd563d0a5b014cec3a2ea686fc2 (patch) | |
tree | 87189d873d6f932d85f9c1a480462b37d96cd6a5 /home-manager/modules/services/lorri.nix | |
parent | e0800985dab8f8ebb4cebdfd7e361fd1fafdb2a7 (diff) | |
parent | 9b1b55ba0264a55add4b7b4e022bdc2832b531f6 (diff) |
Merge commit '9b1b55ba0264a55add4b7b4e022bdc2832b531f6'
Diffstat (limited to 'home-manager/modules/services/lorri.nix')
-rw-r--r-- | home-manager/modules/services/lorri.nix | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/home-manager/modules/services/lorri.nix b/home-manager/modules/services/lorri.nix index 3b2c244e3c0..6183699088b 100644 --- a/home-manager/modules/services/lorri.nix +++ b/home-manager/modules/services/lorri.nix @@ -9,10 +9,19 @@ let in { meta.maintainers = [ maintainers.gerschtli ]; - options = { services.lorri.enable = mkEnableOption "lorri build daemon"; }; + options.services.lorri = { + enable = mkEnableOption "lorri build daemon"; + + package = mkOption { + type = types.package; + default = pkgs.lorri; + defaultText = literalExample "pkgs.lorri"; + description = "Which lorri package to install."; + }; + }; config = mkIf cfg.enable { - home.packages = [ pkgs.lorri ]; + home.packages = [ cfg.package ]; systemd.user = { services.lorri = { @@ -24,7 +33,7 @@ in { }; Service = { - ExecStart = "${pkgs.lorri}/bin/lorri daemon"; + ExecStart = "${cfg.package}/bin/lorri daemon"; PrivateTmp = true; ProtectSystem = "strict"; ProtectHome = "read-only"; @@ -32,7 +41,7 @@ in { Environment = let path = with pkgs; makeSearchPath "bin" [ nix gitMinimal gnutar gzip ]; - in "PATH=${path}"; + in [ "PATH=${path}" ]; }; }; |