nixpkgs/nixos/modules
Luflosi 78f357f134
nixos/kubo: make the configuration options idempotent
Without this commit, unsetting any of the `services.kubo.settings` options does not reset the value back to the default. This commit gets rid of this statefulness.
This is achieved by generating the default config, applying the user specified config options to it and then patching the `Identity` and `Pinning` config options from the old config back in. This new config is then applied using `ipfs config replace`.
The only remaining stateful parts of the config are the `Identity` and `Pinning.RemoteServices` settings as those can't be changed with `ipfs config replace`. `Pinning.RemoteServices` also contains secrets that shouldn't be in the Nix store. Setting these options wasn't possible before as it would result in an error when the daemon tried to start. I added some assertions to guard against this case.
2023-01-24 16:33:03 +01:00
..
config nixos: fix backticks in Markdown descriptions 2023-01-21 18:08:38 +01:00
hardware Merge master into staging-next 2023-01-06 00:02:28 +00:00
i18n/input-method kime: 2.5.6 -> 3.0.2 2023-01-22 19:57:34 +01:00
installer Merge pull request #211640 from Izorkin/update-iso-channel 2023-01-22 16:31:54 +08:00
misc nixos/documentation: deprecate docbook option docs 2023-01-22 17:08:40 +01:00
profiles Merge pull request #208956 from SuperSandro2000/profile-base-tcpdump 2023-01-17 01:20:31 +01:00
programs Merge pull request #209538 from voidzero/zsh-syntax-hl.regexp 2023-01-15 00:26:10 +01:00
security Merge pull request #211830 from sorpaas/patch-11 2023-01-22 16:25:44 +08:00
services nixos/kubo: make the configuration options idempotent 2023-01-24 16:33:03 +01:00
system Merge pull request #211229 from Luflosi/fix-modprobeConfig-typo 2023-01-23 16:02:09 +08:00
tasks nixos/envfs: fix envfs package option default 2023-01-22 17:50:09 +01:00
testing Merge pull request #207801 from ElvishJerricco/systemd-stage-1-test-instrumentation 2022-12-28 01:43:03 +01:00
virtualisation Merge pull request #211723 from tpwrules/fix-systemd-boot-more 2023-01-23 15:55:57 +08:00
module-list.nix Merge pull request #208712 from mattmelling/cloudlog 2023-01-24 02:52:36 +01:00
rename.nix modules: add mkAliasOptionModuleMD 2023-01-05 02:33:13 +01:00