about summary refs log tree commit diff
path: root/nixos/modules/services/networking/headscale.nix
AgeCommit message (Collapse)AuthorFilesLines
2024-01-19nixos: fix a bunch of services missing dep on network-online.targetJade Lovelace1-0/+1
This was done by generating a truly hilarious configuration: rg 'services\.[^.]+\.enable\t' opts-tags | cut -f1 > allonconfig.nix The following were not tested due to other evaluation errors. They should probably be manually audited. services.amule services.castopod services.ceph services.chatgpt-retrieval-plugin services.clamsmtp services.clight services.dante services.dex services.discourse services.dwm-status services.engelsystem services.foundationdb services.frigate services.frp services.grocy services.guacamole-client services.hedgedoc services.home-assistant services.honk services.imaginary services.jitsi-meet services.kerberos_server services.limesurvey services.mastodon services.mediawiki services.mobilizon services.moodle services.mosquitto services.nextcloud services.nullmailer services.patroni services.pfix-srsd services.pgpkeyserver-lite services.postfixadmin services.roundcube services.schleuder services.self-deploy services.slskd services.spacecookie services.statsd services.step-ca services.sympa services.tsmBackup services.vdirsyncer services.vikunja services.yandex-disk services.zabbixWeb
2023-11-27treewide: use `mkPackageOption`h7x41-8/+1
This commit replaces a lot of usages of `mkOption` with the package type, to be `mkPackageOption`, in order to reduce the amount of code.
2023-08-14headscale.oidc: client_secret_path is a stringMotiejus Jakštys1-1/+1
It can be include an environment-variable, like `${CREDENTIALS_DIRECTORY}/some-path`, failing validation for `types.path`.
2023-05-19nixos: fix typosfigsoda1-1/+1
2023-03-08headscale: rename oidc.client_secret_file to oidc.client_secret_pathMotiejus Jakštys1-6/+3
Headscale now supports passing the OIDC client secret via a file, as added in [juanfont/headscale#1127][1127]. Lets use that. The headscale option is `client_secret_path`; let's make it consistent and rename the Nix option to this. Note that I wasn't able to do this: mkRenamedOptionModule [ ... "client_secret_file" ] [ ... "client_secret_path" ] I get such error: error: evaluation aborted with the following error message: 'cannot find attribute `services.headscale.settings.oidc.client_secret_file'' [1127]: https://github.com/juanfont/headscale/pull/1127
2023-02-27nixos/headscale: update oidc optionsDaniel Olsen1-6/+43
2022-12-23headscale: Update to 0.17.1, conform module to RFC0042Kristoffer Dalby1-380/+381
This commit upgrades headscale to the newest version, 0.17.0 and updates the module with the current breaking config changes. In addition, the module is rewritten to conform with RFC0042 to try to prevent some drift between the module and the upstream. A new maintainer, Misterio77, is added as maintainer. Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> Co-authored-by: Gabriel Fontes <hi@m7.rs> Co-authored-by: Geoffrey Huntley <ghuntley@ghuntley.com>
2022-12-17nixos: fix typosfigsoda1-2/+2
2022-08-31nixos/*: convert options with admonitions to MDpennae1-6/+8
rendering changes only slightly, most changes are in spacing.
2022-08-31nixos/*: automatically convert option descriptionspennae1-1/+1
conversions were done using https://github.com/pennae/nix-doc-munge using (probably) rev f34e145 running nix-doc-munge nixos/**/*.nix nix-doc-munge --import nixos/**/*.nix the tool ensures that only changes that could affect the generated manual *but don't* are committed, other changes require manual review and are discarded.
2022-08-19nixos/*: mark pre-existing markdown descriptions as mdDocpennae1-1/+1
2022-08-10headscale: fix tls challengeType enum possible valuestirex1-2/+2
2022-08-02Merge pull request #183491 from pennae/automatic-md-conversionspennae1-42/+42
treewide: automatically md-convert option descriptions
2022-07-30treewide: automatically md-convert option descriptionspennae1-42/+42
the conversion procedure is simple: - find all things that look like options, ie calls to either `mkOption` or `lib.mkOption` that take an attrset. remember the attrset as the option - for all options, find a `description` attribute who's value is not a call to `mdDoc` or `lib.mdDoc` - textually convert the entire value of the attribute to MD with a few simple regexes (the set from mdize-module.sh) - if the change produced a change in the manual output, discard - if the change kept the manual unchanged, add some text to the description to make sure we've actually found an option. if the manual changes this time, keep the converted description this procedure converts 80% of nixos options to markdown. around 2000 options remain to be inspected, but most of those fail the "does not change the manual output check": currently the MD conversion process does not faithfully convert docbook tags like <code> and <package>, so any option using such tags will not be converted at all.
2022-06-07nixos/headscale: do not run gin webframework in debug modesohalt1-0/+2
2022-06-07nixos/headscale: only set oidc secret if not nullsohalt1-1/+3
2022-04-18headscale: Fix typo as per systemd.exec(5)Ashish SHUKLA1-1/+1
2022-01-31nixos/headscale: Add headscale service moduleKristoffer Dalby1-0/+490