about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--modules/laminar.nix23
1 files changed, 22 insertions, 1 deletions
diff --git a/modules/laminar.nix b/modules/laminar.nix
index 3d90c0e..7984c5c 100644
--- a/modules/laminar.nix
+++ b/modules/laminar.nix
@@ -6,7 +6,14 @@
 let
   cfg = config.services.laminar;
 
-  inherit (lib) mkEnableOption mkPackageOption mkOption mkIf optionalAttrs types;
+  inherit (lib)
+    literalExpression
+    optionalAttrs
+    mkEnableOption
+    mkPackageOption
+    mkOption
+    mkIf
+    types;
 in
 {
   options.services.laminar = {
@@ -32,6 +39,19 @@ in
       description = "Home directory for laminar user.";
     };
 
+    path = mkOption {
+      type = types.listOf types.package;
+      default = with pkgs; [
+        bash
+        stdenv
+        git
+        nix
+        config.programs.ssh.package
+      ];
+      defaultText = literalExpression "[ pkgs.stdenv pkgs.git pkgs.nix config.programs.ssh.package ]";
+      description = "Packages added to service PATH environment variable.";
+    };
+
     settings = mkOption {
       default = { };
 
@@ -84,6 +104,7 @@ in
       description = "Laminar continuous integration service";
       wantedBy = [ "multi-user.target" ];
       after = [ "network.target" ];
+      inherit (cfg) path;
       serviceConfig = {
         User = cfg.user;
         Group = cfg.group;