mirror of
https://github.com/nix-community/srvos.git
synced 2024-08-16 17:30:36 +03:00
Merge pull request #431 from nix-community/switch-ng
common: use new rust-based switch script
This commit is contained in:
commit
a1bf15579d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user