initrd.systemd: disable emergency mode
we disable emergency mode in systemd, but if systemd is enabled during boot we still end up in emergency mode eventually, this will fix that.
This commit is contained in:
parent
26aaec9101
commit
1b9105f158
1 changed files with 9 additions and 5 deletions
14
flake.nix
14
flake.nix
|
@ -244,6 +244,15 @@
|
|||
"${config.clan.core.clanDir}/machines/chungus/facts/ssh.rbackup.id_ed25519.pub"
|
||||
];
|
||||
})
|
||||
{
|
||||
# disable emergency mode everywhere, although it might be needed on laptops
|
||||
boot.initrd.systemd.emergencyAccess = false;
|
||||
boot.initrd.systemd.suppressedUnits = [
|
||||
"emergency.service"
|
||||
"emergency.target"
|
||||
];
|
||||
systemd.enableEmergencyMode = false;
|
||||
}
|
||||
# configure nix
|
||||
({ pkgs, lib, clanLib, ... }:
|
||||
{
|
||||
|
@ -465,11 +474,6 @@
|
|||
srvos.nixosModules.hardware-hetzner-online-intel
|
||||
#srvos.nixosModules.server
|
||||
#srvos.nixosModules.mixins-terminfo
|
||||
{
|
||||
# not needed for servers in general
|
||||
boot.initrd.systemd.emergencyAccess = false;
|
||||
systemd.enableEmergencyMode = false;
|
||||
}
|
||||
{
|
||||
home-manager.users.mainUser = import ./homes/palo;
|
||||
home-manager.users.root = import ./homes/root;
|
||||
|
|
Loading…
Reference in a new issue