From 04eafe31e99dd47142ed54b5f54c66e2d7c466d8 Mon Sep 17 00:00:00 2001
From: Dmitry Voronin <hi@voronind.com>
Date: Wed, 29 Jan 2025 16:15:22 +0300
Subject: [PATCH] Installer: Fix build.

---
 config/Live.nix                         | 15 +++++++--------
 host/x86_64-linux/installer/default.nix |  8 +-------
 2 files changed, 8 insertions(+), 15 deletions(-)

diff --git a/config/Live.nix b/config/Live.nix
index e505252..f9d27e2 100644
--- a/config/Live.nix
+++ b/config/Live.nix
@@ -3,17 +3,16 @@ let
   cfg = config.module.live;
 in
 {
-  # TODO: Can't find a way to import this conditionally.
-  # imports = [ "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/iso-image.nix" ];
-
   config = lib.mkIf cfg.enable {
     # services.rogue.enable = true; # NOTE: Not available smh.
     fileSystems = lib.mkForce config.lib.isoFileSystems;
-    services.mingetty = {
-      autologinUser = "live";
-      helpLine = ''
-        Welcome! Both live and root users have password "live". Enjoy!
-      '';
+    services = {
+      getty = {
+        autologinUser = lib.mkForce "live";
+        helpLine = ''
+          Welcome! Both live and root users have password "live". Enjoy!
+        '';
+      };
     };
   };
 }
diff --git a/host/x86_64-linux/installer/default.nix b/host/x86_64-linux/installer/default.nix
index c7b23cc..6a980c0 100644
--- a/host/x86_64-linux/installer/default.nix
+++ b/host/x86_64-linux/installer/default.nix
@@ -1,4 +1,5 @@
 {
+  config,
   inputs,
   lib,
   pkgs,
@@ -29,11 +30,4 @@
   module = {
     package.all = true;
   };
-
-  services.mingetty = {
-    autologinUser = "live";
-    helpLine = ''
-      Welcome! Both live and root users have password "live". Enjoy!
-    '';
-  };
 }