summary refs log tree commit diff
path: root/nixos/doc/manual/from_md/release-notes
diff options
context:
space:
mode:
authorLuflosi <luflosi@luflosi.de>2022-08-05 20:56:15 +0200
committerLuflosi <luflosi@luflosi.de>2023-01-24 16:33:03 +0100
commit78f357f134f2184ff4583ba82fd51c19fc40297c (patch)
treed84fbc7e4ee5c004f39b89fc7ff21d56bc818f9c /nixos/doc/manual/from_md/release-notes
parenteb45a616747157b8e5f0438a14ce6d43972f5327 (diff)
downloadnixpkgs-78f357f134f2184ff4583ba82fd51c19fc40297c.tar
nixpkgs-78f357f134f2184ff4583ba82fd51c19fc40297c.tar.gz
nixpkgs-78f357f134f2184ff4583ba82fd51c19fc40297c.tar.bz2
nixpkgs-78f357f134f2184ff4583ba82fd51c19fc40297c.tar.lz
nixpkgs-78f357f134f2184ff4583ba82fd51c19fc40297c.tar.xz
nixpkgs-78f357f134f2184ff4583ba82fd51c19fc40297c.tar.zst
nixpkgs-78f357f134f2184ff4583ba82fd51c19fc40297c.zip
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.
Diffstat (limited to 'nixos/doc/manual/from_md/release-notes')
-rw-r--r--nixos/doc/manual/from_md/release-notes/rl-2305.section.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
index bd53792b508..55d61e0f516 100644
--- a/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
+++ b/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
@@ -211,6 +211,18 @@
       </listitem>
       <listitem>
         <para>
+          The <literal>services.kubo.settings</literal> option is now no
+          longer stateful. If you changed any of the options in
+          <literal>services.kubo.settings</literal> in the past and then
+          removed them from your NixOS configuration again, those
+          changes are still in your Kubo configuration file but will now
+          be reset to the default. If you’re unsure, you may want to
+          make a backup of your configuration file (probably
+          /var/lib/ipfs/config) and compare after the update.
+        </para>
+      </listitem>
+      <listitem>
+        <para>
           The EC2 image module no longer fetches instance metadata in
           stage-1. This results in a significantly smaller initramfs,
           since network drivers no longer need to be included, and