Installer: Fix build.

This commit is contained in:
Dmitry Voronin 2025-01-29 16:15:22 +03:00
parent 2ef3eca866
commit 04eafe31e9
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 8 additions and 15 deletions

View file

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

View file

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