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! - ''; - }; }