2020-01-06 06:37:25 +01:00
|
|
|
{ pkgs, lib, ... }: {
|
|
|
|
imports = [ ./hardware-configuration.nix ./tinc-server.nix ];
|
|
|
|
|
|
|
|
networking.hostName = "server";
|
|
|
|
|
2020-01-07 05:47:25 +01:00
|
|
|
# ssh
|
|
|
|
environment.systemPackages = with pkgs; [ htop git vim mosh tmux ];
|
|
|
|
networking.firewall.allowedUDPPortRanges = [{
|
|
|
|
from = 60000;
|
|
|
|
to = 60100;
|
|
|
|
}];
|
2020-01-06 06:37:25 +01:00
|
|
|
services.sshd.enable = true;
|
2020-01-10 06:45:44 +01:00
|
|
|
users.users.root.openssh.authorizedKeys.keyFiles =
|
|
|
|
[ <test-generated/sshkey.pub> ];
|
2020-01-07 05:47:25 +01:00
|
|
|
|
|
|
|
# wireshark
|
|
|
|
programs.wireshark.enable = true;
|
2020-01-06 06:37:25 +01:00
|
|
|
|
|
|
|
}
|