19 lines
354 B
Nix
19 lines
354 B
Nix
{
|
|
config,
|
|
username,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.services.getty;
|
|
in
|
|
{
|
|
systemd.services."getty@tty1" = {
|
|
overrideStrategy = "asDropin";
|
|
serviceConfig.ExecStart = [
|
|
""
|
|
"${pkgs.util-linux}/bin/agetty --login-program ${cfg.loginProgram} --autologin ${username} --noclear --keep-baud %I 115200,38400,9600 $TERM"
|
|
];
|
|
};
|
|
}
|