common: use new rust-based switch script

This implementation is meant to replace switch-to-configuration.pl with
a rust version.
This commit is contained in:
Jörg Thalheim 2024-05-28 17:47:59 +02:00
parent 5d4550de42
commit b42461b481

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