Merge pull request #319291 from arianvp/amazon-ssm-agent-remove-override-etc
amazon-ssm-agent: remove overrideEtc parameter
This commit is contained in:
@@ -28,13 +28,7 @@ in {
|
||||
|
||||
options.services.amazon-ssm-agent = {
|
||||
enable = mkEnableOption "Amazon SSM agent";
|
||||
|
||||
package = mkOption {
|
||||
type = types.path;
|
||||
description = "The Amazon SSM agent package to use";
|
||||
default = pkgs.amazon-ssm-agent.override { overrideEtc = false; };
|
||||
defaultText = literalExpression "pkgs.amazon-ssm-agent.override { overrideEtc = false; }";
|
||||
};
|
||||
package = mkPackageOption pkgs "amazon-ssm-agent" {};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
, nixosTests
|
||||
, testers
|
||||
, amazon-ssm-agent
|
||||
, overrideEtc ? true
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -96,9 +95,6 @@ buildGoModule rec {
|
||||
--replace "/sbin/shutdown" "shutdown"
|
||||
|
||||
echo "${version}" > VERSION
|
||||
'' + lib.optionalString overrideEtc ''
|
||||
substituteInPlace agent/appconfig/constants_unix.go \
|
||||
--replace '"/etc/amazon/ssm/"' '"${placeholder "out"}/etc/amazon/ssm/"'
|
||||
'' + lib.optionalString stdenv.isLinux ''
|
||||
substituteInPlace agent/managedInstances/fingerprint/hardwareInfo_unix.go \
|
||||
--replace /usr/sbin/dmidecode ${dmidecode}/bin/dmidecode
|
||||
|
||||
Reference in New Issue
Block a user