From 71039cd1acfe814e36a5763a9bf199e2622dc48f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 15 Sep 2024 13:57:32 +0200 Subject: [PATCH] switch to systemd-initrd --- nixosModules/clanCore/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixosModules/clanCore/default.nix b/nixosModules/clanCore/default.nix index de72f2ea0..a242dab51 100644 --- a/nixosModules/clanCore/default.nix +++ b/nixosModules/clanCore/default.nix @@ -1,3 +1,4 @@ +{ lib, config, ... }: { imports = [ ./backups.nix @@ -20,6 +21,12 @@ ./zerotier ./zfs.nix ]; + + # Use systemd during boot as well except: + # - systems with raids as this currently require manual configuration: https://github.com/NixOS/nixpkgs/issues/210210 + # - for containers we currently rely on the `stage-2` init script that sets up our /etc + boot.initrd.systemd.enable = lib.mkDefault (!config.boot.swraid.enable && !config.boot.isContainer); + # Work around for https://github.com/NixOS/nixpkgs/issues/124215 documentation.info.enable = lib.mkDefault false; }