From b42461b481c3c80e370f3244208c50fe7a1e2293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 28 May 2024 17:47:59 +0200 Subject: [PATCH] common: use new rust-based switch script This implementation is meant to replace switch-to-configuration.pl with a rust version. --- nixos/common/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/common/default.nix b/nixos/common/default.nix index 4020a0f..41dab4d 100644 --- a/nixos/common/default.nix +++ b/nixos/common/default.nix @@ -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