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; }