mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-05 12:08:02 +03:00
nixos/proxmox-lxc: fix getty start
Otherwise there is no getty on tty1 in Proxmox.
This commit is contained in:
parent
4aa419c046
commit
c501d3fa97
@ -99,10 +99,16 @@ with lib;
|
||||
where = "/sys/kernel/debug";
|
||||
}
|
||||
];
|
||||
services."getty@".unitConfig.ConditionPathExists = [
|
||||
|
||||
# By default only starts getty on tty0 but first on LXC is tty1
|
||||
services."autovt@".unitConfig.ConditionPathExists = [
|
||||
""
|
||||
"/dev/%I"
|
||||
];
|
||||
|
||||
# These are disabled by `console.enable` but console via tty is the default in Proxmox
|
||||
services."getty@tty1".enable = lib.mkForce true;
|
||||
services."autovt@".enable = lib.mkForce true;
|
||||
};
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user