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

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