nixos-config/terranix/tinc-test/02-build/configs/nixserver-server/configuration.nix

13 lines
354 B
Nix
Raw Normal View History

2020-01-06 06:37:25 +01:00
{ pkgs, lib, ... }: {
imports = [ ./hardware-configuration.nix ./tinc-server.nix ];
networking.hostName = "server";
environment.systemPackages = with pkgs; [ htop git vim mosh ];
networking.firewall.allowedUDPPorts = [ 60001 ];
services.sshd.enable = true;
users.users.root.openssh.authorizedKeys.keyFiles = [ <generated/sshkey.pub> ];
}