2020-01-06 06:37:25 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
|
|
|
2020-01-07 05:47:25 +01:00
|
|
|
#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
|
|
|
|
2020-01-07 05:47:25 +01:00
|
|
|
hcloud-modules = /home/palo/dev/terranix-hcloud/terraform-0.11;
|
2020-01-06 06:37:25 +01:00
|
|
|
|
2021-11-01 19:30:41 +01:00
|
|
|
in
|
|
|
|
{
|
2020-01-06 06:37:25 +01:00
|
|
|
|
2020-01-07 05:47:25 +01:00
|
|
|
imports = [ (toString hcloud-modules) ./config/ssh-setup.nix ];
|
2020-01-06 06:37:25 +01:00
|
|
|
|
2020-01-07 05:47: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 ];
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|