diff options
author | Linus Heckemann <git@sphalerite.org> | 2022-07-28 14:34:44 +0200 |
---|---|---|
committer | Linus Heckemann <git@sphalerite.org> | 2023-07-10 16:39:35 +0200 |
commit | 0b277bcc2b40c6ecd728c44635fa92262bedf620 (patch) | |
tree | aa04f28a53d623a508dd98ec819cc706ff0a9eca /nixos/modules/profiles | |
parent | 408c0e8c15a1c9cf5c3226931b6f283c9867c484 (diff) | |
download | nixpkgs-0b277bcc2b40c6ecd728c44635fa92262bedf620.tar nixpkgs-0b277bcc2b40c6ecd728c44635fa92262bedf620.tar.gz nixpkgs-0b277bcc2b40c6ecd728c44635fa92262bedf620.tar.bz2 nixpkgs-0b277bcc2b40c6ecd728c44635fa92262bedf620.tar.lz nixpkgs-0b277bcc2b40c6ecd728c44635fa92262bedf620.tar.xz nixpkgs-0b277bcc2b40c6ecd728c44635fa92262bedf620.tar.zst nixpkgs-0b277bcc2b40c6ecd728c44635fa92262bedf620.zip |
nixos/swraid: make entire module optional
swraid support will now only be enabled by default if stateVersion is older than 23.11. nixos-generate-config will now generate explicit config for enabling support if needed.
Diffstat (limited to 'nixos/modules/profiles')
-rw-r--r-- | nixos/modules/profiles/installation-device.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/profiles/installation-device.nix b/nixos/modules/profiles/installation-device.nix index 32884f4b875..eea58294fb1 100644 --- a/nixos/modules/profiles/installation-device.nix +++ b/nixos/modules/profiles/installation-device.nix @@ -106,6 +106,10 @@ with lib; systemdStage1Network ]; + boot.initrd.services = { + swraid.enable = true; + }; + # Show all debug messages from the kernel but don't log refused packets # because we have the firewall enabled. This makes installs from the # console less cumbersome if the machine has a public IP. |