nixos-config/terranix/tinc-test/01-terranix/config.nix
Ingolf Wagner 973e3b3305
reformat
2021-11-01 19:30:41 +01:00

32 lines
843 B
Nix

{ 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";
#};
hcloud-modules = /home/palo/dev/terranix-hcloud/terraform-0.11;
in
{
imports = [ (toString hcloud-modules) ./config/ssh-setup.nix ];
hcloud.export.nix = "${toString ../02-build/generated}/nixos-machines.nix";
hcloud.nixserver.server = {
configurationFile = pkgs.writeText "configuration.nix" ''
{ pkgs, lib, ... }:
{
environment.systemPackages = with pkgs; [
htop git vim mosh
];
networking.firewall.allowedUDPPorts = [ 60001 ];
}
'';
};
}