summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMajiir Paktu <majiir@nabaal.net>2022-11-05 22:11:02 -0400
committerBjørn Forsman <bjorn.forsman@gmail.com>2022-11-07 11:28:47 +0100
commitad83bff0088bcefd621fcf16b0db5d34f0cebf1c (patch)
tree7456a730ae213e4f1fc5347d8408b9fd76f55067 /nixos
parent9519670e6f3441c54dbdf85339632ef8c3a7abcf (diff)
nixos/binfmt: restart systemd-binfmt when registrations change
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/binfmt.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/binfmt.nix b/nixos/modules/system/boot/binfmt.nix
index 260638ceed50f..87e66f73be0ec 100644
--- a/nixos/modules/system/boot/binfmt.nix
+++ b/nixos/modules/system/boot/binfmt.nix
@@ -321,5 +321,6 @@ in {
       "proc-sys-fs-binfmt_misc.mount"
       "systemd-binfmt.service"
     ];
+    systemd.services.systemd-binfmt.restartTriggers = [ (builtins.toJSON config.boot.binfmt.registrations) ];
   };
 }