switch to systemd-initrd

This commit is contained in:
Jörg Thalheim
2024-09-15 13:57:32 +02:00
parent f496e027f6
commit 71039cd1ac

View File

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