nix/nixos/hosts/nixos-iso-desktop/default.nix
2023-12-13 13:11:45 +09:00

19 lines
498 B
Nix

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