Merge pull request #431 from nix-community/switch-ng

common: use new rust-based switch script
This commit is contained in:
Jörg Thalheim 2024-05-29 20:56:55 +02:00 committed by GitHub
commit a1bf15579d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
# A default configuration that applies to all servers.
# Common configuration across *all* the machines
{ config, lib, ... }:
{ options, config, lib, ... }:
{
imports = [
@ -16,6 +16,13 @@
./zfs.nix
];
system.switch = {
enable = lib.mkDefault false;
} // lib.optionalAttrs (options.system.switch ? enableNg) {
# can be dropped after 24.05
enableNg = lib.mkDefault true;
};
# Use systemd during boot as well on systems 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