diff options
author | Alan Pearce | 2024-06-21 22:52:22 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-21 22:52:22 +0200 |
commit | 1257f61075c00d7b77590261735d811613210aa0 (patch) | |
tree | 5c137323e68e7ad2e0a0505895aa02c88285d9cf | |
parent | 7260d417cdaba43107983ca781de46c5d72c4496 (diff) | |
download | nix-packages-1257f61075c00d7b77590261735d811613210aa0.tar.lz nix-packages-1257f61075c00d7b77590261735d811613210aa0.tar.zst nix-packages-1257f61075c00d7b77590261735d811613210aa0.zip |
laminar: configure path (used for jobs)
-rw-r--r-- | modules/laminar.nix | 23 |
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; |