nixos-config/terranix/tinc-test/01-terranix/config.nix

32 lines
843 B
Nix
Raw Normal View History

2020-01-06 06:37:25 +01:00
{ config, lib, pkgs, ... }:
let
#hcloud-modules = pkgs.fetchgit {
# #url = "https://github.com/mrVanDalo/terranix-hcloud.git";
# url = "https://git.ingolf-wagner.de/terranix/hcloud.git";
# rev = "b6896f385f45ecfd66e970663c55635c9fd8b26b";
# sha256 = "1bggnbry7is7b7cjl63q6r5wg9pqz0jn8i3nnc4rqixp0ckwdn85";
#};
2020-01-06 06:37:25 +01:00
hcloud-modules = /home/palo/dev/terranix-hcloud/terraform-0.11;
2020-01-06 06:37:25 +01:00
in {
imports = [ (toString hcloud-modules) ./config/ssh-setup.nix ];
2020-01-06 06:37:25 +01:00
hcloud.export.nix = "${toString ../02-build/generated}/nixos-machines.nix";
2020-01-06 06:37:25 +01:00
hcloud.nixserver.server = {
configurationFile = pkgs.writeText "configuration.nix" ''
{ pkgs, lib, ... }:
{
environment.systemPackages = with pkgs; [
htop git vim mosh
];
networking.firewall.allowedUDPPorts = [ 60001 ];
}
'';
};
}