summary refs log tree commit diff
path: root/nixos
Commit message (Collapse)AuthorAge
* Merge pull request #267640 from Madouura/pr/bcachefsRyan Lahfa2023-11-18
|\
| * rl-2311: Note bcachefs kernel deprecation changesMadoura2023-11-18
| |
| * treewide: add bcachefsLinuxTesting and bcachefsLinuxTesting testsMadoura2023-11-18
| | | | | | | | | | | | nixos/tests/installer: add bcachefsLinuxTesting and bcachefsLinuxTesting tests bcachefs-tools: add bcachefsLinuxTesting and bcachefsLinuxTesting tests
| * nixos/bcachefs: soft-deprecate 'linuxPackages_testing_bcachefs'Madoura2023-11-18
| | | | | | | | 'bcachefs' is included in the linux kernel since 6.7-rc1
| * nixos/bcachefs: remove 'with lib;'Madoura2023-11-18
| |
* | Merge pull request #264521 from stephen-huan/mullvad-vpn-resolvconfArtturi2023-11-18
|\ \
| * | nixos/mullvad-vpn: use resolvconf if enabledStephen Huan2023-11-01
| | |
* | | Merge pull request #266990 from ↵Will Fancher2023-11-18
|\ \ \ | | | | | | | | | | | | | | | | ElvishJerricco/systemd-boot-boot-pass-flags-to-update nixos/systemd-boot: pass EFI variable flags during update too
| * | | nixos/systemd-boot: pass EFI variable flags during update tooThomas Watson2023-11-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8f2babd0326e was partially reverted by mistake. Original message below --- On some systems, EFI variables are not supported or otherwise wonky. bootctl attempting to access them causes failures during bootloader installations and updates. For such systems, NixOS provides the options `boot.loader.efi.canTouchEfiVariables` and `boot.loader.systemd-boot.graceful` which pass flags to bootctl that change whether and how EFI variables are accessed. Previously, these flags were only passed to bootctl during an install operation. However, they also apply during an update operation, which can cause the same sorts of errors. This change passes the flags during update operations as well to prevent those errors. Fixes https://github.com/NixOS/nixpkgs/issues/151336
* | | | nixos/networkd: allow configuring AckFilter for CAKE qdiscPatrick Steinhardt2023-11-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CAKE section for systemd.network units allows configuring whether or not redundant ACKs should be dropped. This option corresponds to the respective tc-cake(8) params "ack-filter", "ack-filter-aggressive" or "no-ack-filter". Add support for these values in the `cakeConfig` module so that users can configure it.
* | | | Merge pull request #268132 from bendlas/forgejo-release-notesNick Cao2023-11-18
|\ \ \ \ | |_|_|/ |/| | | nixos/forgejo/docs: fix typo
| * | | nixos/forgejo/docs: fix typoHerwig Hochleitner2023-11-17
| | | |
* | | | google-compute-image: add the missing /boot filesystemYang, Bo2023-11-18
| | | |
* | | | nixos/forgejo: remove `postgresql_15` permission work-aroundemilylange2023-11-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is no longer necessary as of ccfe07c3168109567b98462533f7ddf14c7ba18d. Previously: b8585a119ce5c28754267f349107304117041083.
* | | | nixos/networkd: add [IPVLAN] and [IPVTAP] configuration options to ↵Philip Taron2023-11-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | systemd.netdev files [IPVLAN](https://www.freedesktop.org/software/systemd/man/latest/systemd.netdev.html#%5BIPVLAN%5D%20Section%20Options) [IPVTAP](https://www.freedesktop.org/software/systemd/man/latest/systemd.netdev.html#%5BIPVTAP%5D%20Section%20Options)
* | | | nixos/networkd: add ipvtap kind to netdev and IPVTAP= to networkPhilip Taron2023-11-18
| | | | | | | | | | | | | | | | | | | | | | | | From `man systemd.netdev`: https://www.freedesktop.org/software/systemd/man/latest/systemd.netdev.html#Supported%20netdev%20kinds From `man systemd.network`: https://www.freedesktop.org/software/systemd/man/latest/systemd.network.html#IPoIB=
* | | | Merge pull request #264358 from RaitoBezarius/drop-nodejsRyan Lahfa2023-11-17
|\ \ \ \
| * | | | rl-2311: explain how dependent packages were removed due to Node.js dropRaito Bezarius2023-11-17
| | | | |
| * | | | code-server: dropRaito Bezarius2023-11-17
| | | | | | | | | | | | | | | | | | | | Depends on Node.js 16 and cannot be trivially upgraded to Node.js 18.
| * | | | kibana7: dropRaito Bezarius2023-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depends on EOL software and no maintenance has been attempted to change this after a ping (https://github.com/NixOS/nixpkgs/issues/259178) Feel free to adopt and re-introduce if you care about this software. This will probably seriously hamper ELK usability in nixpkgs, but as it receives no maintenance…
* | | | | nixos/syncthing: respect the dataDir optionWilliam McKinnon2023-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous -home argument worked as such: "Set common configuration and data directory. The default configuration directory is $HOME/.config/syncthing (Unix-like), $HOME/Library/Application Support/Syncthing (Mac) and %LOCALAPPDATA%\Syncthing (Windows)" This resulted in syncthing not respecting different home and data dirs declared in its config. The default behaviour will remain the same, as we set the datadir default value to homeDir + .config/syncthing.
* | | | | Merge pull request #265365 from JulienMalka/systemd-boot-garbage-testJulien Malka2023-11-17
|\ \ \ \ \ | | | | | | | | | | | | nixos/tests/systemd-boot: add garbage-collect-entry test
| * | | | | nixos/tests/systemd-boot: add garbage-collect-entry testJulien Malka2023-11-04
| | | | | |
* | | | | | Merge pull request #227588 from camillemndn/jitsi-meetJulien Malka2023-11-17
|\ \ \ \ \ \ | | | | | | | | | | | | | | nixos/jitsi-meet: updated prosody, support secure domain setup and Excalidraw whiteboards
| * | | | | | nixos/jitsi-meet: support secure domain setupgenesis2023-05-02
| | | | | | |
| * | | | | | nixos/jitsi-meet: support Excalidraw whiteboardgenesis2023-05-02
| | | | | | |
| * | | | | | nixos/jitsi-meet: updated prosody configgenesis2023-05-02
| | | | | | |
* | | | | | | Merge pull request #265556 from adamcstephens/slimserver/fixAdam C. Stephens2023-11-17
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | slimserver: fix broken package
| * | | | | | | nixos/tests/slimserver: add end to end with squeezeliteAdam Stephens2023-11-17
| | | | | | | |
| * | | | | | | slimserver: add bin symlink and meta.mainProgramAdam Stephens2023-11-17
| | | | | | | |
| * | | | | | | nixos/slimserver: init service testAdam Stephens2023-11-17
| | | | | | | |
* | | | | | | | Merge pull request #267985 from JulienMalka/absent-bootspecRyan Lahfa2023-11-17
|\ \ \ \ \ \ \ \
| * | | | | | | | nixos/systemd-boot: allow for bootspec-less generationsJulien Malka2023-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generation built with old versions of NixOS with no bootspec support may still be present on the system and must be accounted for.
* | | | | | | | | Merge pull request #266270 from Ma27/postgresql-ownership-15Ryan Lahfa2023-11-17
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / / |/| | | | | | | |
| * | | | | | | | rl-2311: inform about `services.postgresql.ensurePermissions` deprecationRaito Bezarius2023-11-17
| | | | | | | | |
| * | | | | | | | nixos/invidious: do not use `ensureDBOwnership`Raito Bezarius2023-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Invidious uses a strange setup where the database name is different from the system username for non-explicit reasons. Because of that, it makes it hard to migrate it to use `ensureDBOwnership`, we leave it to Invidious' maintainers to pick up the pieces.
| * | | | | | | | nixos/mobilizon: do not use `ensureDBOwnership`Raito Bezarius2023-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mobilizon can have a custom database username and it is not trivial to sort out how to remove this. In the meantime, for the upcoming 23.11 release, I apply the classical workaround and defer to Mobilizon's maintainers.
| * | | | | | | | nixos/sourcehut: do not use `ensureDBOwnership`Raito Bezarius2023-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given that SourceHut uses unfortunate defaults for database name, it will not be realistic to fix this in time for 23.11. We will leave the workaround and leave it to SourceHut maintainers to pick up the work to clean this up after 23.11.
| * | | | | | | | nixos/tests/pgbouncer: do not use `ensureDBOwnership`Raito Bezarius2023-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pgbouncer test is special in the sense where it actually tries to connect via SCRAM SHA, let's avoid `ensureDBOwnership` here otherwise for some reason pgbouncer will try to look in pg_shadow for the authuser…
| * | | | | | | | nixos/postgresql: improve the assertions for equality of DB user and DB nameRaito Bezarius2023-11-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is hard to figure out which one is offending without the database name.
| * | | | | | | | nixos/postgresql: restore `ensurePermissions` and strong-deprecate itRaito Bezarius2023-11-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As it is technically a breaking change, we should at least make a strong deprecation of `ensurePermissions` and leave it in the broken state it is, for out of tree users. We give them a 6 months notice to migrate away by doing so, which is honest. In the meantime, we forbid usage of `ensurePermissions` inside of nixpkgs.
| * | | | | | | | 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
* | | | | | | | | nixos/postgresql: document psql 15 changes (#267238)Herwig Hochleitner2023-11-17
| |_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * nixos/postgresql: document psql 15 changes * nixos/postgresql: manual heading ids * nixos/postgresql: reword warning against initialScript Co-authored-by: Ryan Lahfa <masterancpp@gmail.com> * nixos/postgresql: wording PERMISSIONS -> PRIVILEGES Co-authored-by: Ryan Lahfa <masterancpp@gmail.com> * nixos/postgresql: document intermediate oneshot / service user method * nixos/postgresql/docs: clarify security benefits of `ensureDBOwnership` * nixos/postgresql/docs: service type -> serviceConfig.Type --------- Co-authored-by: Ryan Lahfa <masterancpp@gmail.com>
* | | | | | | | nixos/forgejo: changelog and migration instructions (#267248)Herwig Hochleitner2023-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * nixos/forgejo: changelog and migration instructions * nixos/forgejo/docs: clarify sentence Co-authored-by: Trolli Schmittlauch <schmittlauch@users.noreply.github.com> * nixos/forgejo/docs: document migration via gitea impersonation * nixos/forgejo/docs: note about url change on migration * nixos/forgejo/docs: note about migration (non-)requirement * nixos/forgejo/docs: header ids * nixos/forgejo/docs: clarify release notes entry Co-authored-by: Emily <git@emilylange.de> * nixos/forgejo/docs: improve manual entry Co-authored-by: Emily <git@emilylange.de> * nixos/forgejo/docs: move changelog line to the middle of the section as noted <!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. --> --------- Co-authored-by: Trolli Schmittlauch <schmittlauch@users.noreply.github.com> Co-authored-by: Emily <git@emilylange.de>
* | | | | | | | maintainers: fortuneteller2k -> monifortuneteller2k2023-11-17
| |_|/ / / / / |/| | | | | |
* | | | | | | Merge pull request #264480 from paumr/archi_test_initArtturi2023-11-17
|\ \ \ \ \ \ \
| * | | | | | | nixos/tests/archi: init smoke tests for Archipaumr2023-11-17
| | | | | | | |
* | | | | | | | Merge pull request #267761 from jpds/grafana-restart-on-failureIlan Joselevich2023-11-17
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | nixos/grafana: Set systemd unit to restart on failure
| * | | | | | | nixos/grafana: Set systemd unit to restart on failureJonathan Davies2023-11-15
| | | | | | | |
* | | | | | | | alsa-utils: fix evalWeijia Wang2023-11-17
| |_|/ / / / / |/| | | | | |