Sha256: 1504aab93f94971b1a9bac41747cf41b62d6c4139d357368d92f1e074685c558
Contents?: true
Size: 796 Bytes
Versions: 1
Compression:
Stored size: 796 Bytes
Contents
{ config, pkgs, lib, confMachine, ... }: let inherit (lib) mkIf mkOption types; cfg = config.confctl.carrier; carrier-env = pkgs.substituteAll { src = ./carrier-env.rb; name = "carrier-env"; isExecutable = true; dir = "bin"; ruby = pkgs.ruby; onChangeCommands = pkgs.writeScript "carrier-on-change-commands.sh" '' #!${pkgs.bash}/bin/bash ${cfg.onChangeCommands} ''; }; in { options = { confctl.carrier.onChangeCommands = mkOption { type = types.lines; default = ""; description = '' Extra commands executed on a carrier machine when carried machine is deployed or removed ''; }; }; config = mkIf confMachine.carrier.enable { environment.systemPackages = [ carrier-env ]; }; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
confctl-2.0.0 | nix/modules/confctl/carrier/base.nix |