nixos/systemd.enableEmergencyMode: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-28 21:19:12 +02:00 committed by Jörg Thalheim
parent 91cb7594d0
commit 0a51fdb520

View File

@ -1,16 +1,13 @@
{ config, lib, ... }:
with lib;
{
###### interface
options = {
systemd.enableEmergencyMode = mkOption {
systemd.enableEmergencyMode = lib.mkOption {
default = true;
type = types.bool;
type = lib.types.bool;
description = ''
Whether to enable emergency mode, which is an
{command}`sulogin` shell started on the console if
@ -27,7 +24,7 @@ with lib;
config = {
systemd.additionalUpstreamSystemUnits = optionals
systemd.additionalUpstreamSystemUnits = lib.optionals
config.systemd.enableEmergencyMode [
"emergency.target" "emergency.service"
];