47 lines
2.1 KiB
Nix
47 lines
2.1 KiB
Nix
{ pkgs, lib, ... }:
|
|
let
|
|
hcloud-modules = pkgs.fetchgit {
|
|
url = "https://github.com/mrVanDalo/terranix-hcloud.git";
|
|
rev = "5fa359a482892cd973dcc6ecfc607f4709f24495";
|
|
sha256 = "0smgmdiklj98y71fmcdjsqjq8l41i66hs8msc7k4m9dpkphqk86p";
|
|
};
|
|
|
|
#nixosInfect = pkgs.fetchgit {
|
|
# "url" = "https://github.com/elitak/nixos-infect.git";
|
|
# rev = "928f9e5e1d63e77a91f2ca57ffa2be1fef3078ec";
|
|
#sha256 = "0rs84c549l863vbnnqgnx7v6m2zlq0wz46jbhm4v1l1a25d966s1";
|
|
#};
|
|
in {
|
|
imports = [ (toString hcloud-modules) ];
|
|
|
|
# configure admin ssh keys
|
|
users.admins.palo.publicKey =
|
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC6uza62+Go9sBFs3XZE2OkugBv9PJ7Yv8ebCskE5WYPcahMZIKkQw+zkGI8EGzOPJhQEv2xk+XBf2VOzj0Fto4nh8X5+Llb1nM+YxQPk1SVlwbNAlhh24L1w2vKtBtMy277MF4EP+caGceYP6gki5+DzlPUSdFSAEFFWgN1WPkiyUii15Xi3QuCMR8F18dbwVUYbT11vwNhdiAXWphrQG+yPguALBGR+21JM6fffOln3BhoDUp2poVc5Qe2EBuUbRUV3/fOU4HwWVKZ7KCFvLZBSVFutXCj5HuNWJ5T3RuuxJSmY5lYuFZx9gD+n+DAEJt30iXWcaJlmUqQB5awcB1S2d9pJ141V4vjiCMKUJHIdspFrI23rFNYD9k2ZXDA8VOnQE33BzmgF9xOVh6qr4G0oEpsNqJoKybVTUeSyl4+ifzdQANouvySgLJV/pcqaxX1srSDIUlcM2vDMWAs3ryCa0aAlmAVZIHgRhh6wa+IXW8gIYt+5biPWUuihJ4zGBEwkyVXXf2xsecMWCAGPWPDL0/fBfY9krNfC5M2sqxey2ShFIq+R/wMdaI7yVjUCF2QIUNiIdFbJL6bDrDyHnEXJJN+rAo23jUoTZZRv7Jq3DB/A5H7a73VCcblZyUmwMSlpg3wos7pdw5Ctta3zQPoxoAKGS1uZ+yTeZbPMmdbw== cardno:000611343142";
|
|
|
|
users.admins.terranix.publicKey = "${lib.fileContents ./sshkey.pub}";
|
|
|
|
# configure provisioning private Key to be used when running provisioning on the machines
|
|
provisioner.privateKeyFile = toString ./sshkey;
|
|
|
|
hcloud.nixserver = {
|
|
playground = {
|
|
enable = true;
|
|
channel = "nixos-20.09";
|
|
provisioners = [
|
|
#{
|
|
# file.source = "${nixosInfect}/nixos-infect";
|
|
# file.destination = "/root/nixos-infect";
|
|
#}
|
|
{
|
|
file.source = "${toString ./../../images/translate-setup}";
|
|
file.destination = "/root/translate-setup";
|
|
}
|
|
];
|
|
configurationFile = pkgs.writeText "configuration.nix" ''
|
|
{ pkgs, lib, config, ... }:
|
|
{ environment.systemPackages = [ pkgs.git ]; }
|
|
'';
|
|
};
|
|
};
|
|
|
|
}
|