switch to systemd-initrd
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
{ lib, config, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./backups.nix
|
./backups.nix
|
||||||
@@ -20,6 +21,12 @@
|
|||||||
./zerotier
|
./zerotier
|
||||||
./zfs.nix
|
./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
|
# Work around for https://github.com/NixOS/nixpkgs/issues/124215
|
||||||
documentation.info.enable = lib.mkDefault false;
|
documentation.info.enable = lib.mkDefault false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user