reformat
This commit is contained in:
parent
da863a77ea
commit
a69e393644
2 changed files with 5 additions and 9 deletions
|
@ -10,7 +10,8 @@
|
||||||
to = 60100;
|
to = 60100;
|
||||||
}];
|
}];
|
||||||
services.sshd.enable = true;
|
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
|
# wireshark
|
||||||
programs.wireshark.enable = true;
|
programs.wireshark.enable = true;
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
# shared tinc file between client and server
|
# shared tinc file between client and server
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let nixosMachines = import <test-generated/nixos-machines.nix>;
|
||||||
nixosMachines = import <test-generated/nixos-machines.nix>;
|
|
||||||
in {
|
in {
|
||||||
|
|
||||||
imports = [
|
imports = [ <cluster-module> ];
|
||||||
<cluster-module>
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.firewall.trustedInterfaces = [ "tinc.private" ];
|
networking.firewall.trustedInterfaces = [ "tinc.private" ];
|
||||||
|
|
||||||
|
@ -22,9 +19,7 @@ in {
|
||||||
hosts = {
|
hosts = {
|
||||||
server = {
|
server = {
|
||||||
tincIp = "10.123.142.1";
|
tincIp = "10.123.142.1";
|
||||||
realAddress = [
|
realAddress = [ nixosMachines.nixserver-server.host.ipv4 ];
|
||||||
nixosMachines.nixserver-server.host.ipv4
|
|
||||||
];
|
|
||||||
publicKey = lib.fileContents <test-assets/tinc/server_host_file>;
|
publicKey = lib.fileContents <test-assets/tinc/server_host_file>;
|
||||||
};
|
};
|
||||||
sterni = {
|
sterni = {
|
||||||
|
|
Loading…
Reference in a new issue