13 lines
354 B
Nix
13 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> ];
|
||
|
|
||
|
}
|