Commit 570ae842 authored by Will Fancher's avatar Will Fancher
Browse files

nixos/autovt: Pull in autovt@tty1 in Nix, not generateUnits

parent 45f26104
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -526,9 +526,6 @@ rec {
          ln -s ${cfg.ctrlAltDelUnit} $out/ctrl-alt-del.target
          ln -s rescue.target $out/kbrequest.target

          mkdir -p $out/getty.target.wants/
          ln -s ../autovt@tty1.service $out/getty.target.wants/

          ln -s ../remote-fs.target $out/multi-user.target.wants/
        ''}
      ''; # */
+2 −0
Original line number Diff line number Diff line
@@ -148,6 +148,8 @@ in
      "container-getty@.service"
    ];

    systemd.targets.getty.wants = [ "autovt@tty1.service" ];

    systemd.services."getty@" = {
      serviceConfig.ExecStart = [
        # override upstream default with an empty ExecStart