about summary refs log tree commit diff
path: root/nixos/modules/services/development
Commit message (Collapse)AuthorAge
* nixos/hoogle: add extraOptionsDCsunset2024-03-06
|
* nixos/nixseparatedebuginfod: fix compatibility with Nix 2.3V2024-02-29
| | | | | | | Appending to options with the `extra-` prefix was added in Nix 2.4, which makes config validation fail on this version without the guard. Change-Id: Ie253978dbaf00b228fecc08698a3dcc01cd2d82b
* Merge pull request #275024 from jerith666/lorri-less-protectedSandro2024-02-24
|\
| * lorri.service: remove ProtectHome, relax ProtectSystemMatt McHenry2023-12-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | per lorri's readme: lorri creates an indirect garbage collection root for each .drv in $XDG_CACHE_HOME/lorri (~/.cache/lorri/ by default) each time it evaluates your project. ... so it doesn't make sense to have ProtectHome enabled for lorri.service. lorri also needs to be able to modify /nix/var/nix/gcroots/per-user/, so ProtectSystem can't be 'strict'; 'full' is the next strongest. fixes: lorri: ERRO IO error binding to socket: Read-only file system (os error 30) bisecting this error leads to a range of unbuildable commits including 'a31429165204 Merge pull request #243242 from RaitoBezarius/systemd-254', so it's likely that systemd update changed the behaviour of ProtectHome somehow (though the release notes don't have any obvious culprits).
* | livebook: Set KillMode=mixedPhilip Munksgaard2024-01-26
| | | | | | | | | | | | | | | | | | | | | | | | | | This will gracefully shut down the service instead of resulting in errors like this: ``` Jan 24 10:11:11 foo livebook[981676]: 10:11:11.922 [error] GenServer :disksup terminating Jan 24 10:11:11 foo livebook[981676]: ** (stop) {:port_died, :normal} Jan 24 10:11:11 foo livebook[981676]: Last message: {:EXIT, #Port<0.8>, :normal} Jan 24 10:11:11 foo livebook[981676]: 10:11:11.922 [error] GenServer :memsup terminating Jan 24 10:11:11 foo livebook[981676]: ** (stop) {:port_died, :normal} ```
* | livebook: Use `mix release` to build instead of escriptPhilip Munksgaard2024-01-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current build of livebook does not work with the new [Livebook Teams](https://livebook.dev/teams/) features. The problem can be observed by running the current version of livebook, adding a new team and going to the team page. The process will crash and the team page will show a 500 error. The base of the problem is that the escript build method is not officially supported. This commit changes the livebook package to use the `mix release` workflow, which is also the one used to build the official Docker container. Unfortunately, the binary built with `mix release` does not support command line arguments like the `escript` binary does. Instead, users need to pass in most of the configuration as environment variables, as documented [here](https://hexdocs.pm/livebook/readme.html#environment-variables). As a result, this commit also changes the Livebook service to reflect this new way of configuring Livebook. Finally, the Livebook release configuration specifically excludes the ERTS (Erlang Runtime System), which means that the resulting release cannot run without Erlang installed. I have tested the results (both of the package and the service) locally.
* | Merge pull request #271030 from symphorien/nixseparatedebuginfodGuillaume Girol2024-01-07
|\ \ | | | | | | nixseparatedebuginfod: init at 0.3.0, plus module and nixos test
| * | nixseparatedebuginfod: add module and nixos testGuillaume Girol2024-01-01
| | |
* | | livebook: configurable package and extraPackagesAlexandru Scvortov2023-12-25
| | | | | | | | | | | | Also fix examples to not include a semicolon in the .env file.
* | | Merge pull request #269469 from NetaliDev/zammad-updateJanik2023-12-05
|\ \ \ | |_|/ |/| |
| * | nixos/zammad: update for zammad 6.1netali2023-12-04
| |/
* | Merge pull request #261702 from h7x4/replace-mkoption-with-mkpackageoptionWeijia Wang2023-11-30
|\ \ | | | | | | treewide: use `mkPackageOption`
| * | treewide: use `mkPackageOption`h7x42023-11-27
| |/ | | | | | | | | This commit replaces a lot of usages of `mkOption` with the package type, to be `mkPackageOption`, in order to reduce the amount of code.
* | Merge pull request #265349 from malt3/init/athensEmily Trau2023-11-29
|\ \ | |/ |/| athens: init at 0.12.1
| * nixos/athens: init at 0.12.1Malte Poll2023-11-07
| | | | | | | | Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
* | nixos/postgresql: drop ensurePermissions, fix ensureUsers for postgresql15Maximilian Bosch2023-11-13
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #216989 First of all, a bit of context: in PostgreSQL, newly created users don't have the CREATE privilege on the public schema of a database even with `ALL PRIVILEGES` granted via `ensurePermissions` which is how most of the DB users are currently set up "declaratively"[1]. This means e.g. a freshly deployed Nextcloud service will break early because Nextcloud itself cannot CREATE any tables in the public schema anymore. The other issue here is that `ensurePermissions` is a mere hack. It's effectively a mixture of SQL code (e.g. `DATABASE foo` is relying on how a value is substituted in a query. You'd have to parse a subset of SQL to actually know which object are permissions granted to for a user). After analyzing the existing modules I realized that in every case with a single exception[2] the UNIX system user is equal to the db user is equal to the db name and I don't see a compelling reason why people would change that in 99% of the cases. In fact, some modules would even break if you'd change that because the declarations of the system user & the db user are mixed up[3]. So I decided to go with something new which restricts the ways to use `ensure*` options rather than expanding those[4]. Effectively this means that * The DB user _must_ be equal to the DB name. * Permissions are granted via `ensureDBOwnerhip` for an attribute-set in `ensureUsers`. That way, the user is actually the owner and can perform `CREATE`. * For such a postgres user, a database must be declared in `ensureDatabases`. For anything else, a custom state management should be implemented. This can either be `initialScript`, doing it manual, outside of the module or by implementing proper state management for postgresql[5], but the current state of `ensure*` isn't even declarative, but a convergent tool which is what Nix actually claims to _not_ do. Regarding existing setups: there are effectively two options: * Leave everything as-is (assuming that system user == db user == db name): then the DB user will automatically become the DB owner and everything else stays the same. * Drop the `createDatabase = true;` declarations: nothing will change because a removal of `ensure*` statements is ignored, so it doesn't matter at all whether this option is kept after the first deploy (and later on you'd usually restore from backups anyways). The DB user isn't the owner of the DB then, but for an existing setup this is irrelevant because CREATE on the public schema isn't revoked from existing users (only not granted for new users). [1] not really declarative though because removals of these statements are simply ignored for instance: https://github.com/NixOS/nixpkgs/issues/206467 [2] `services.invidious`: I removed the `ensure*` part temporarily because it IMHO falls into the category "manage the state on your own" (see the commit message). See also https://github.com/NixOS/nixpkgs/pull/265857 [3] e.g. roundcube had `"DATABASE ${cfg.database.username}" = "ALL PRIVILEGES";` [4] As opposed to other changes that are considered a potential fix, but also add more things like collation for DBs or passwords that are _never_ touched again when changing those. [5] As suggested in e.g. https://github.com/NixOS/nixpkgs/issues/206467
* livebook: add systemd user service, test, and docsAlexandru Scvortov2023-10-31
| | | | Co-authored-by: Yt <happysalada@tuta.io>
* zammad: link test in passthru.testsEmber Keske2023-05-17
|
* nixos/lorri: install direnvSandro2023-04-14
| | | direnv is required to allow files to be run by lorri, so it should be installed, too.
* nixos/gemstash: init moduleStanisław Pitucha2023-03-07
|
* nixos/*: remove trailing period in mkEnableOptionspennae2023-02-08
| | | | | those are added by mkEnableOption, and .. is replaced to … by markdown processing.
* nixos/manual: render module chapters with nixos-render-docspennae2023-01-27
| | | | | | | | | | | | | | | | this converts meta.doc into an md pointer, not an xml pointer. since we no longer need xml for manual chapters we can also remove support for manual chapters from md-to-db.sh since pandoc converts smart quotes to docbook quote elements and our nixos-render-docs does not we lose this distinction in the rendered output. that's probably not that bad, our stylesheet didn't make use of this anyway (and pre-23.05 versions of the chapters didn't use quote elements either). also updates the nixpkgs manual to clarify that option docs support all extensions (although it doesn't support headings at all, so heading anchors don't work by extension).
* nixos/manual: move "edit the MD file" comments to generated XMLpennae2023-01-10
|
* nixos/manual: generate module chapters with md-to-db.shpennae2023-01-10
|
* nixos/blackfire: convert manual chapter to MDpennae2023-01-10
|
* nixos/manual: normalize <firstterm> -> <emphasis>pennae2023-01-10
| | | | they're emphasized, so we can't just throw them out.
* nixos/manual: normalize <package> -> <literal>pennae2023-01-10
| | | | | markdown can only do <literal>, so normalize to that. without auto-linking to a package index the distinction is not very useful anyway.
* nixos/manual: normalize <programlisting>pennae2023-01-10
| | | | | | | makes sure that program listing tags are separated from their contents by exactly a newline character. this makes the markdown translation easier to verify (since no new newlines need to be inserted), and there's no rendering difference anyway.
* treewide: switch to port type for nixos modulesDaniel Nagy2022-12-08
|
* nixos/jupyter: make kernel options freeform JSONJaakko Luttinen2022-10-14
|
* nixos/jupyter: add env kernel optionJaakko Luttinen2022-10-14
|
* nixos/*: convert straggler options to MDpennae2022-08-31
|
* nixos/*: convert options with listingspennae2022-08-31
| | | | minor rendering changes.
* nixos/*: automatically convert option descriptionspennae2022-08-31
| | | | | | | | | | | | 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.
* nixos/*: <screen> -> <programlisting>pennae2022-08-31
| | | | | | most of the screen tags used in option docs are actually listings of some sort. nsd had a notable exception where its screen usage was pretty much a raw markdown block that made most sense to convert into docbook lists.
* nixos/*: automatically convert option docspennae2022-08-19
|
* nixos/*: mark pre-existing markdown descriptions as mdDocpennae2022-08-19
|
* nixos/*: use properly indented strings for option docspennae2022-08-19
| | | | | | using regular strings works well for docbook because docbook is not as whitespace-sensitive as markdown. markdown would render all of these as code blocks when given the chance.
* nixos/*: automatically convert option docspennae2022-08-06
|
* nixos/*: normalize link formatpennae2022-08-03
| | | | | | | | | make (almost) all links appear on only a single line, with no unnecessary whitespace, using double quotes for attributes. this lets us automatically convert them to markdown easily. the few remaining links are extremely long link in a gnome module, we'll come back to those at a later date.
* treewide: automatically md-convert option descriptionspennae2022-07-30
| | | | | | | | | | | | | | | | | | | | | | 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.
* Merge pull request #164048 from hqurve/jupyter-extra-paths7c6f434c2022-07-01
|\ | | | | Jupyter kernel: link extra paths and fix missing docs in sagemath jupyter
| * nixos/jupyter: Add kernels.<name>.extraPaths optionhqurve2022-03-13
| |
* | Merge pull request #137335 from dsg22/feature-jupyter-create-system-userLassulus2022-04-03
|\ \ | |/ |/| jupyter: Create jupyter user as system user
| * jupyter: Create jupyter user as system userDavíð Steinn Geirsson2021-09-11
| | | | | | | | | | | | | | | | | | | | | | | | Before, with services.jupyter.enable set but no user specified, user creation failed with: ``` error: Failed assertions: - Exactly one of users.users.jupyter.isSystemUser and users.users.jupyter.isNormalUser must be set. ``` Set isSystemUser to true when creating the jupyter user.
* | add a defaultTextTaeer Bar-Yam2022-02-23
| |
* | tweaksTaeer Bar-Yam2022-02-23
| |
* | whitespaceTaeer Bar-Yam2022-02-23
| |
* | zammad: test passes!Taeer Bar-Yam2022-02-23
| |
* | minor changesTaeer Bar-Yam2022-02-23
| |