nixpkgs/nixos/modules
Vincent Haupert 941c79b620 nixos/github-runner: fix bugs related to InaccessiblePaths=
This commit fixes two bugs:

1) When starting a github-runner for the very first time, the
   unconfigure script did not copy the `tokenFile` to the state
   directory. This case just was not handled so far. As a result, the
   runner could not configure. The unit did, however, fail even before
   as the state token file is configured as inaccessible for the service
   through `InaccessiblePaths=`. As the given path did not exist in the
   described case, setting up the unit's namespacing failed.

2) Similarly, the `tokenFile` is also marked as not accessible to the
   service user. There are, however, cases where other namespacing
   options make the files inaccessible even before `InaccessiblePaths=`
   kicks in; thus, they appear as non existing and cause the namespacing
   to fail yet again. Prefixing the entry with a `-` causes Systemd to
   ignore the entry if it cannot find it. This is the behavior we want.

I also took fixing those bugs as a chance to refactor the unconfigure
script to make it easier to follow.
2022-10-08 01:32:55 +02:00
..
config Merge #188381: Fix glibc locales on cross endian 2022-09-15 12:39:03 +02:00
hardware maintainers: remove superherointj 2022-10-04 14:06:48 -03:00
i18n/input-method nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
installer nixos/nixos-build-vms: fix eval 2022-10-01 20:34:01 +02:00
misc nixos: Fix cross compilation of derivations defined in NixOS via pkgs 2022-09-11 17:11:37 +02:00
profiles nixos/installer: mkForce -> mkImageMediaOverride 2022-08-14 12:14:34 -04:00
programs Merge pull request #191854 from farnoy/patch-1 2022-10-01 10:09:59 +02:00
security Merge pull request #190052 from JasonWoof/acme-example 2022-10-07 12:53:15 +02:00
services nixos/github-runner: fix bugs related to InaccessiblePaths= 2022-10-08 01:32:55 +02:00
system Merge pull request #191491 from oxalica/fix/systemd-initrd-modprobe 2022-10-05 10:39:58 +02:00
tasks nixos/jfs: correct broken toplevel reference 2022-10-06 19:26:13 +00:00
testing nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
virtualisation nixos/virtualisation/linode-image: init (#155426) 2022-09-29 00:25:03 +02:00
module-list.nix nixos/tmate-ssh-server: init module (#192270) 2022-10-05 17:34:30 +01:00
rename.nix dd-agent: remove 2022-09-14 14:11:14 +02:00