nix/nixos/hosts/nixos-iso-console/default.nix
2023-12-13 13:08:29 +09:00

18 lines
486 B
Nix

{ config, lib, pkgs, modulesPath, desktop, username, ... }: {
nixpkgs.config.allowUnfree = false;
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
networking.hostName = "nixos-iso-console";
networking.firewall.allowedTCPPorts = [ 22 ];
# Allow passworded ssh
services.openssh = {
enable = true;
openFirewall = false;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = mkForce true;
};
}