This commit is contained in:
Ingolf Wagner 2020-01-10 18:45:44 +13:00
parent da863a77ea
commit a69e393644
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 5 additions and 9 deletions

View file

@ -10,7 +10,8 @@
to = 60100;
}];
services.sshd.enable = true;
users.users.root.openssh.authorizedKeys.keyFiles = [ <test-generated/sshkey.pub> ];
users.users.root.openssh.authorizedKeys.keyFiles =
[ <test-generated/sshkey.pub> ];
# wireshark
programs.wireshark.enable = true;

View file

@ -1,12 +1,9 @@
# shared tinc file between client and server
{ config, pkgs, lib, ... }:
let
nixosMachines = import <test-generated/nixos-machines.nix>;
let nixosMachines = import <test-generated/nixos-machines.nix>;
in {
imports = [
<cluster-module>
];
imports = [ <cluster-module> ];
networking.firewall.trustedInterfaces = [ "tinc.private" ];
@ -22,9 +19,7 @@ in {
hosts = {
server = {
tincIp = "10.123.142.1";
realAddress = [
nixosMachines.nixserver-server.host.ipv4
];
realAddress = [ nixosMachines.nixserver-server.host.ipv4 ];
publicKey = lib.fileContents <test-assets/tinc/server_host_file>;
};
sterni = {