From 1257f61075c00d7b77590261735d811613210aa0 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 21 Jun 2024 22:52:22 +0200 Subject: laminar: configure path (used for jobs) --- modules/laminar.nix | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'modules/laminar.nix') 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; -- cgit 1.4.1