nixos-config/terranix/tinc-test/02-build/configs/nixserver-server/configuration.nix
2020-01-06 18:37:25 +13:00

12 lines
354 B
Nix

{ 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> ];
}