1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
Commit graph

281948 commits

Author SHA1 Message Date
Vincent Haupert f4af2f267a
nixos/github-runner: init at v2.277.1 (#116775)
* github-runner: init at 2.277.1

* nixos/github-runner: initial version

* nixos/github-runner: add warning if tokenFile in Nix store

* github-runner: don't accept unexpected attrs

* github-runner: formatting nits

* github-runner: add pre and post hooks to checkPhase

* nixos/github-runner: update ExecStartPre= comment

* nixos/github-runner: adapt tokenFile option description

Also note that not only a change to the option value will trigger a
reconfiguration but also modifications to the file's content.

* nixos/github-runner: remove mkDefault for DynamicUser=

* nixos/github-runner: create a parent for systemd dirs

Adds a parent directory "github-runner/" to all of the systemd lifecycle
directories StateDirectory=, RuntimeDirectory= and LogDirectory=.

Doing this has two motivations:

1. Something like this would required if we want to support multiple
   runners configurations. Please note that this is already possible
   using NixOS containers.
2. Having an additional parent directory makes it easier to remap
   any of the directories. Without a parent, systemd is going to
   complain if, for example, the given StateDirectory= is a symlink.

* nixos/github-runner: use specifier to get abs runtime path

* nixos/github-runner: use hostname as default for option `name`

Until now, the runner registration did not set the `--name` argument if
the configuration option was `null`, the default for the option.
According to GitHub's documentation, this instructs the registration
script to use the machine's hostname.

This commit causes the registration to always pass the `--name` argument
to the runner configuration script. The option now defaults to
`networking.hostName` which should be always set on NixOS.

This change becomes necessary as the systemd service name includes the
name of the runner since fcfa809 and, hence, expects it to be set. Thus,
an unset `name` option leads to an error.

* nixos/github-runner: use types.str for `name` option

Forcing a `name` option to comply with a pattern which could also be
used as a hostname is probably not required by GitHub.

* nixos/github-runner: pass dir paths explicitly for ExecStartPre=

* nixos/github-runner: update variable and script naming

* nixos/github-runner: let systemd choose the user/group

User and group naming restrictions are a complex topic [1] that I don't
even want to touch. Let systemd figure out the username and group and
reference it in our scripts through the USER environment variable.

[1] https://systemd.io/USER_NAMES/

* Revert "nixos/github-runner: use types.str for `name` option"

The escaping applied to the subdirectory paths given to StateDirectory=,
RuntimeDirectory= and LogsDirectory= apparently doesn't use the same
strategy that is used to escape unit names (cf. systemd-escape(1)). This
makes it unreasonably hard to construct reliable paths which work for
StateDirectory=/RuntimeDirectory=/LogsDirectory= and ExecStartPre=.

Against this background, I decided to (re-)apply restrictions to the
name a user might give for the GitHub runner. The pattern for
`networking.hostName` seems like a reasonable choice, also as its value
is the default if the `name` option isn't set.

This reverts commit 193ac67ba3.

* nixos/github-runner: use types.path for `tokenFile` option

* nixos/github-runner: escape options used as shell arguments

* nixos/github-runner: wait for network-online.target

* github-runner: ignore additional online tests
2021-04-10 10:17:10 +00:00
Martin Weinelt 8cbaf51809
Merge pull request #118943 from mweinelt/home-assistant
home-assistant: 2021.4.1 -> 2021.4.2
2021-04-10 11:58:58 +02:00
Doron Behar ecd2d63dfd
Merge pull request #118975 from r-ryantm/auto-update/cpp-utilities
cpp-utilities: 5.10.1 -> 5.10.2
2021-04-10 07:47:41 +00:00
R. RyanTM ddccf4272c cpp-utilities: 5.10.1 -> 5.10.2 2021-04-10 07:27:35 +00:00
R. RyanTM 85e62de17b
bazel-kazel: 0.2.1 -> 0.2.2 (#118959) 2021-04-09 22:52:24 -07:00
Jörg Thalheim f7e08360b0
Merge pull request #117456 from Izorkin/update-redis-options
nixos/redis: add option and change access to directories
2021-04-10 06:06:19 +01:00
Ryan Mulligan 7c6aa8400b
Merge pull request #118842 from superherointj/package-linode-cli-5.0.1
linode-cli: 2.15.0 -> 5.0.1
2021-04-09 21:06:53 -07:00
Ryan Mulligan fe48fb9eb0
Merge pull request #116394 from r-ryantm/auto-update/bschaffl
bschaffl: 1.4.4 -> 1.4.6
2021-04-09 20:58:41 -07:00
Ryan Mulligan 9d42670134
Merge pull request #117700 from r-ryantm/auto-update/python3.8-manhole
python38Packages.manhole: 1.6.0 -> 1.7.0
2021-04-09 20:53:02 -07:00
Ryan Mulligan 2930fdf6c2
Merge pull request #118526 from r-ryantm/auto-update/oapi-codegen
oapi-codegen: 1.5.6 -> 1.6.0
2021-04-09 20:51:02 -07:00
Ryan Mulligan c3df7b27bb
Merge pull request #118528 from r-ryantm/auto-update/osu-lazer
osu-lazer: 2021.323.0 -> 2021.331.0
2021-04-09 20:50:37 -07:00
Ryan Mulligan dd7dc1b724
Merge pull request #118473 from r-ryantm/auto-update/async-profiler
async-profiler: 1.8.4 -> 1.8.5
2021-04-09 20:50:02 -07:00
Ryan Mulligan 722fe010f5
Merge pull request #118193 from r-ryantm/auto-update/argo
argo: 2.12.10 -> 3.0.0
2021-04-09 20:48:42 -07:00
Ryan Mulligan 82dc205de6
Merge pull request #118511 from r-ryantm/auto-update/librealsense
librealsense: 2.42.0 -> 2.43.0
2021-04-09 20:47:58 -07:00
Anderson Torres 6d5dc3f0e4
Merge pull request #118947 from AndersonTorres/updates
udiskie: 2.3.2 -> 2.3.3
2021-04-09 21:37:08 -03:00
Martin Weinelt 8735fd1e95
Merge pull request #118944 from fabaff/homematicip
python3Packages.homematicip: init at 1.0.0
2021-04-10 02:19:55 +02:00
AndersonTorres bd9c23dcb3 udiskie: 2.3.2 -> 2.3.3 2021-04-09 21:05:52 -03:00
Martin Weinelt 3c88beebb0 home-assistant: enable kodi component test 2021-04-10 01:43:57 +02:00
Martin Weinelt e27e160247 python3Packages.pykodi: 0.2.3 -> 0.2.5 2021-04-10 01:31:55 +02:00
Martin Weinelt 47e2cb49d5 python3Packages.jsonrpc-websocket: 1.2.2 -> 3.0.0 2021-04-10 01:29:32 +02:00
Martin Weinelt 3779c01110 python3Packages.jsonrpc-base: 1.1.0 -> 2.0.0
Fetch source from GitHub so we can run tests, update homepage.
2021-04-10 01:29:19 +02:00
Martin Weinelt d23d0aa3bb python3Packages.jsonrpc-async: 1.1.1. -> 2.0.0
Fetch from GitHub to run tests, update homepage.
2021-04-10 01:28:56 +02:00
Martin Weinelt e9ad3e3e10 python3Packages.zha-quirks: 0.0.55 -> 0.0.56 2021-04-10 01:28:41 +02:00
Dmitry Kalinkin 27693c7205
Merge pull request #118940 from SFrijters/openttd-remove-libxdg_basedir
openttd: Remove libxdg_basedir as dependency
2021-04-09 19:02:05 -04:00
Martin Weinelt fb4ffa649f home-assistant: 2021.4.1 -> 2021.4.2 2021-04-10 00:37:53 +02:00
Fabian Affolter 793d671409 home-assistant: enable homematicip_cloud tests 2021-04-10 00:22:23 +02:00
Fabian Affolter a71daddb5d home-assistant: update component-packages 2021-04-10 00:22:23 +02:00
Fabian Affolter 7564d5ef16 python3Packages.homematicip: init at 1.0.0 2021-04-10 00:22:23 +02:00
Stefan Frijters 5f3ba2015b
openttd: Remove libxdg_basedir as dependency
Dependency in code removed at 3dfee979a7e486b8d90f6398ea557d2889855059.

"Codechange: Drop libxdg-basedir dependency in favour of finding the directories ourselves"
2021-04-09 23:52:27 +02:00
Fabian Affolter c197fdd498 python3Packages.aiohttp-wsgi: init at 0.8.2 2021-04-09 23:44:02 +02:00
Sandro c1c617ff8d
Merge pull request #118895 from fabaff/bump-pywizlight
python3Packages.pywizlight: 0.4.5 -> 0.4.6
2021-04-09 23:03:42 +02:00
Sandro 1b1a9fa0dc
Merge pull request #118901 from asymmetric/polkadot-0.8.30
polkadot: 0.8.29 -> 0.8.30
2021-04-09 22:58:37 +02:00
Sandro 09c30aeb44
Merge pull request #118908 from romildo/upd.matcha-gtk-theme
matcha-gtk-theme: 2021-04-05 -> 2021-04-09
2021-04-09 22:51:12 +02:00
Sandro 6a128e22fa
Merge pull request #118913 from prusnak/trezord
trezord: 2.0.30 -> 2.0.31
2021-04-09 22:49:46 +02:00
Sandro cbdbd24665
Merge pull request #118919 from fabaff/omnilogic 2021-04-09 21:57:00 +02:00
Peter Simons cb29de02c4
Merge pull request #118350 from NixOS/haskell-updates
Update Haskell package set to Stackage Nightly 2021-04-02 (plus other fixes)
2021-04-09 20:50:19 +02:00
Peter Simons 60770bf185 all-cabal-hashes: update to Hackage at 2021-04-09T18:32:26Z 2021-04-09 20:49:48 +02:00
Peter Simons 98f3f2f651 hackage2nix: keep the old version of refinery around for haskell-language-server 2021-04-09 20:31:28 +02:00
Peter Simons b78820de3f haskell-reflex-dom-core: add jailbreak to allow latest version of constraints 2021-04-09 20:23:33 +02:00
Peter Simons adeee0d02e haskell-dependent-sum-aeson-orphans: add jailbreak to allow latest version of constraints 2021-04-09 20:21:26 +02:00
Peter Simons 37905dfbf3 hackage-packages.nix: automatic Haskell package set update
This update was generated by hackage2nix v2.17.0-2-g2ef7e72 from Hackage revision
ca0d273639.
2021-04-09 20:10:28 +02:00
Peter Simons 0868b8fb21 hackage2nix: update list of broken packages to fix evaluation on Hydra 2021-04-09 20:05:19 +02:00
Bernardo Meurer ae09772927
Merge pull request #118889 from taku0/thunderbird-bin-78.9.1
thunderbird, thunderbird-bin: 78.9.0 -> 78.9.1 [Moderate security fixes]
2021-04-09 17:06:20 +00:00
Michael Weiss 95e9fb16ae
Merge pull request #118893 from primeos/chromium
chromiumDev: 91.0.4464.5 -> 91.0.4469.4
2021-04-09 18:51:25 +02:00
Fabian Affolter c3bb574d73 home-assistant: enable omnilogic tests 2021-04-09 18:49:21 +02:00
Fabian Affolter 0d17a0f68d home-assistant: update component-packages 2021-04-09 18:46:09 +02:00
Fabian Affolter 61a5c65f0d python3Packages.omnilogic: init at 0.4.3 2021-04-09 18:44:41 +02:00
Frederik Rietdijk 0656d546fb
Merge pull request #118312 from NixOS/staging-next
Staging next
2021-04-09 18:29:47 +02:00
Maximilian Bosch 842f900e73
Merge pull request #114128 from jorsn/docs.fix-hostName
nixos/docs: fix example for code-generated modules
2021-04-09 18:05:51 +02:00
Maximilian Bosch 0b938eae3b
Merge pull request #117005 from tomberek/go-yq/test
yq-go: add simple test
2021-04-09 18:01:49 +02:00