From 2a1a814e5356a93a5c477352a31b6239ae481492 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Tue, 2 Sep 2014 01:36:10 +0400 Subject: Make console-getty only used inside container by default --- nixos/modules/services/ttys/agetty.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'nixos/modules/services/ttys') diff --git a/nixos/modules/services/ttys/agetty.nix b/nixos/modules/services/ttys/agetty.nix index 3878b02b1a8..3958be33df2 100644 --- a/nixos/modules/services/ttys/agetty.nix +++ b/nixos/modules/services/ttys/agetty.nix @@ -70,6 +70,7 @@ with lib; { serviceConfig.ExecStart = "@${pkgs.utillinux}/sbin/agetty agetty --noclear --login-program ${pkgs.shadow}/bin/login --keep-baud console 115200,38400,9600 $TERM"; serviceConfig.Restart = "always"; restartIfChanged = false; + enable = mkDefault config.boot.isContainer; }; environment.etc = singleton -- cgit 1.4.1