nix/nixos/hosts/nixos-iso-console/default.nix

20 lines
493 B
Nix
Raw Normal View History

2023-09-21 03:33:17 +02:00
{ 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 ];
2023-12-13 05:08:29 +01:00
# Allow passworded ssh
services.openssh = {
enable = true;
openFirewall = false;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = mkForce true;
2023-12-13 05:10:46 +01:00
};
2023-12-13 05:08:29 +01:00
};
2023-09-21 03:33:17 +02:00
}