1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

amazon-ssm-agent: rename from ssm-agent

This commit is contained in:
Anthony Roussel 2023-10-17 23:01:15 +02:00
parent e80f82aa1e
commit ccf080ee05
No known key found for this signature in database
GPG key ID: 9DC4987B1A55E75E
8 changed files with 18 additions and 11 deletions

View file

@ -325,6 +325,8 @@
- `ps3netsrv` has been replaced with the webman-mod fork, the executable has been renamed from `ps3netsrv++` to `ps3netsrv` and cli parameters have changed.
- `ssm-agent` package and module were renamed to `amazon-ssm-agent` to be consistent with the upstream package name.
## Other Notable Changes {#sec-release-23.11-notable-changes}
- The Cinnamon module now enables XDG desktop integration by default. If you are experiencing collisions related to xdg-desktop-portal-gtk you can safely remove `xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];` from your NixOS configuration.

View file

@ -625,6 +625,7 @@
./services/matrix/matrix-sliding-sync.nix
./services/matrix/synapse.nix
./services/misc/airsonic.nix
./services/misc/amazon-ssm-agent.nix
./services/misc/ananicy.nix
./services/misc/ankisyncd.nix
./services/misc/apache-kafka.nix
@ -741,7 +742,6 @@
./services/misc/spice-autorandr.nix
./services/misc/spice-vdagentd.nix
./services/misc/spice-webdavd.nix
./services/misc/ssm-agent.nix
./services/misc/sssd.nix
./services/misc/subsonic.nix
./services/misc/sundtek.nix

View file

@ -2,7 +2,7 @@
with lib;
let
cfg = config.services.ssm-agent;
cfg = config.services.amazon-ssm-agent;
# The SSM agent doesn't pay attention to our /etc/os-release yet, and the lsb-release tool
# in nixpkgs doesn't seem to work properly on NixOS, so let's just fake the two fields SSM
@ -16,19 +16,24 @@ let
esac
'';
in {
options.services.ssm-agent = {
enable = mkEnableOption (lib.mdDoc "AWS SSM agent");
imports = [
(mkRenamedOptionModule [ "services" "ssm-agent" "enable" ] [ "services" "amazon-ssm-agent" "enable" ])
(mkRenamedOptionModule [ "services" "ssm-agent" "package" ] [ "services" "amazon-ssm-agent" "package" ])
];
options.services.amazon-ssm-agent = {
enable = mkEnableOption (lib.mdDoc "Amazon SSM agent");
package = mkOption {
type = types.path;
description = lib.mdDoc "The SSM agent package to use";
default = pkgs.ssm-agent.override { overrideEtc = false; };
defaultText = literalExpression "pkgs.ssm-agent.override { overrideEtc = false; }";
description = lib.mdDoc "The Amazon SSM agent package to use";
default = pkgs.amazon-ssm-agent.override { overrideEtc = false; };
defaultText = literalExpression "pkgs.amazon-ssm-agent.override { overrideEtc = false; }";
};
};
config = mkIf cfg.enable {
systemd.services.ssm-agent = {
systemd.services.amazon-ssm-agent = {
inherit (cfg.package.meta) description;
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];

View file

@ -11,7 +11,7 @@
, bashInteractive
, nix-update-script
, testers
, ssm-agent
, amazon-ssm-agent
, overrideEtc ? true
}:
@ -138,7 +138,7 @@ buildGoModule rec {
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = ssm-agent;
package = amazon-ssm-agent;
command = "amazon-ssm-agent --version";
};
};

View file

@ -849,6 +849,7 @@ mapAliases ({
spotify-unwrapped = spotify; # added 2022-11-06
spring-boot = spring-boot-cli; # added 2020-04-24
squid4 = throw "'squid4' has been renamed to/replaced by 'squid'"; # Converted to throw 2023-09-10
ssm-agent = amazon-ssm-agent; # Added 2023-10-17
starboard-octant-plugin = throw "starboard-octant-plugin has been dropped due to needing octant which is archived"; # Added 2023-09-29
steam-run-native = steam-run; # added 2022-02-21
sumneko-lua-language-server = lua-language-server; # Added 2023-02-07

View file

@ -18134,7 +18134,6 @@ with pkgs;
inherit (darwin) libobjc;
};
ssm-agent = callPackage ../applications/networking/cluster/ssm-agent { };
ssm-session-manager-plugin = callPackage ../applications/networking/cluster/ssm-session-manager-plugin { };
starlark = callPackage ../development/interpreters/starlark { };