40 lines
830 B
Nix
40 lines
830 B
Nix
{
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
|
|
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
|
|
];
|
|
|
|
# Required for live iso.
|
|
networking.wireless.enable = lib.mkForce false;
|
|
|
|
# Override my settings to allow SSH logins using root password.
|
|
services.openssh.settings = {
|
|
PasswordAuthentication = lib.mkForce true;
|
|
PermitRootLogin = lib.mkForce "yes";
|
|
};
|
|
|
|
# Needed by installer smh.
|
|
# TODO: Find out what it downloads.
|
|
environment.systemPackages = with pkgs; [
|
|
# tor-browser # NOTE: ???
|
|
ghc
|
|
];
|
|
|
|
module = {
|
|
package.all = true;
|
|
};
|
|
|
|
services.mingetty = {
|
|
autologinUser = "live";
|
|
helpLine = ''
|
|
Welcome! Both live and root users have password "live". Enjoy!
|
|
'';
|
|
};
|
|
}
|