···2525 default = [];
2626 example = "/run/keys/telegraf.env";
2727 description = ''
2828- File to load as environment file. Environment variables
2929- from this file will be interpolated into the config file
3030- using envsubst with this syntax:
3131- <literal>$ENVIRONMENT ''${VARIABLE}</literal>
2828+ File to load as environment file. Environment variables from this file
2929+ will be interpolated into the config file using envsubst with this
3030+ syntax: <literal>$ENVIRONMENT</literal> or <literal>''${VARIABLE}</literal>.
3231 This is useful to avoid putting secrets into the nix store.
3332 '';
3433 };
···7372 ExecReload="${pkgs.coreutils}/bin/kill -HUP $MAINPID";
7473 RuntimeDirectory = "telegraf";
7574 User = "telegraf";
7575+ Group = "telegraf";
7676 Restart = "on-failure";
7777 # for ping probes
7878 AmbientCapabilities = [ "CAP_NET_RAW" ];
···81818282 users.users.telegraf = {
8383 uid = config.ids.uids.telegraf;
8484+ group = "telegraf";
8485 description = "telegraf daemon user";
8586 };
8787+8888+ users.groups.telegraf = {};
8689 };
8790}
···11+{ runCommand, autoprefixer }:
22+33+let
44+ inherit (autoprefixer) packageName version;
55+in
66+77+runCommand "${packageName}-tests" { meta.timeout = 60; }
88+ ''
99+ # get version of installed program and compare with package version
1010+ claimed_version="$(${autoprefixer}/bin/autoprefixer --version | awk '{print $2}')"
1111+ if [[ "$claimed_version" != "${version}" ]]; then
1212+ echo "Error: program version does not match package version ($claimed_version != ${version})"
1313+ exit 1
1414+ fi
1515+1616+ # run dummy commands
1717+ ${autoprefixer}/bin/autoprefixer --help > /dev/null
1818+ ${autoprefixer}/bin/autoprefixer --info > /dev/null
1919+2020+ # Testing the actual functionality is done in the test for postcss
2121+ # because autoprefixer is a postcss plugin
2222+2323+ # needed for Nix to register the command as successful
2424+ touch $out
2525+ ''
···7777 description = "An implementation of the standard Unix documentation system accessed using the man command";
7878 license = licenses.gpl2;
7979 platforms = lib.platforms.unix;
8080+ mainProgram = "man";
8081 };
8182}