mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-11-26 03:15:32 +03:00
20d40bf692
Now it not only builds but is also usable. - You can login as root with password "nixos" - You are logged in automatically on console (like installer) - You can login as root with SSH - You can connect to port 80 I have tested it with format "virtualbox" and "install-iso". It's not best practice to use such insecure password, but it's probably OK for this example for people to see that it works.
12 lines
302 B
Nix
12 lines
302 B
Nix
{ config, lib, pkgs, ... }:
|
|
{
|
|
services.sshd.enable = true;
|
|
services.nginx.enable = true;
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 ];
|
|
|
|
users.users.root.password = "nixos";
|
|
services.openssh.permitRootLogin = lib.mkDefault "yes";
|
|
services.mingetty.autologinUser = lib.mkDefault "root";
|
|
}
|