Initial commit
commit
641d910f85
@ -0,0 +1 @@
|
||||
credentials
|
@ -0,0 +1 @@
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzV5dI01NhwuL6ayiO0STcSQiDf7lEtu63NuLZKQUdZVuVHIqyt3Gquks2OI1NZGrJdXA315yw89ZqyMo+z7gSGHEV6P0fAXKW6G78JOFWsA5lGpaLxTsZ6Q7r0Z9FMqDvA5Jlsyznyj9hhO1cz01WPLzB92ypd9ifldtrAQIYQItxGXOuRkBJiShuIRqtr4Q2chXiOoRZKb4v4Gyt/UPxTpvfM/zcOz0zi1d4ijSbLqgIUJhxvrWADfdgEQ77unepDoD+HT51QBX7dj8RuYivxLSA3vpfNeCgt2CYBf6FYnmWkWSnN1RCtQPJNxsMuLzC2ZBbIkz0tDgcIBPbHxGr sven@linux-rfa7.site
|
@ -0,0 +1 @@
|
||||
builtins.replaceStrings ["\n"] [""]
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
(builtins.readFile ./joepie91.pub)
|
||||
];
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
pkgs: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
wget
|
||||
curl
|
||||
htop
|
||||
iotop
|
||||
iftop
|
||||
nload
|
||||
lsof
|
||||
];
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
{
|
||||
network.description = "Cryto";
|
||||
|
||||
osmium = { config, lib, pkgs, ... }: let
|
||||
proxiedApplications = [{
|
||||
hostname = "pastebin-stream.cryto.net";
|
||||
tls = false;
|
||||
config = ''
|
||||
root ${pkgs.valgrind.doc}/share/doc/valgrind/html
|
||||
'';
|
||||
}];
|
||||
|
||||
generateCaddyHostConfiguration = applications:
|
||||
lib.concatStrings (map (application: ''
|
||||
${application.hostname} {
|
||||
${lib.optionalString (application.tls == false) "tls off"}
|
||||
${application.config}
|
||||
}
|
||||
'') applications);
|
||||
in {
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
agree = true;
|
||||
email = "admin@cryto.net";
|
||||
config = ''
|
||||
${generateCaddyHostConfiguration proxiedApplications}
|
||||
'';
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 2015 ];
|
||||
};
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
let
|
||||
removeNewlines = (import ../lib/remove-newlines.nix);
|
||||
in {
|
||||
resources.sshKeyPairs.ssh-key = {};
|
||||
|
||||
osmium = { config, pkgs, ... }: {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
passwordAuthentication = false;
|
||||
challengeResponseAuthentication = false;
|
||||
};
|
||||
|
||||
deployment.targetEnv = "digitalOcean";
|
||||
deployment.digitalOcean.region = "ams2";
|
||||
deployment.digitalOcean.size = "512mb";
|
||||
#deployment.digitalOcean.authToken = removeNewlines (builtins.readFile ../credentials/digitalocean-auth-token);
|
||||
} // (import ../lib/root-ssh.nix) // ((import ../lib/tools.nix) pkgs);
|
||||
}
|
Loading…
Reference in New Issue