write-ups-challenges-2020-2021/deployment/configuration.nix
2022-11-24 18:03:20 +01:00

39 lines
3.9 KiB
Nix

{ ... }: {
imports = [
./hardware-configuration.nix
];
boot.cleanTmpDir = true;
networking.hostName = "igctf-test3";
networking.firewall.allowPing = true;
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [
"#"
"# WARNING: Automatically generated file"
"# This file will be erased at every boot"
"# This file was generated with '/usr/sbin/scw-fetch-ssh-keys'"
"#"
"# To add a new key, you can:"
"# -- Add keys on your Scaleway account https://cloud.scaleway.com/#/credentials"
"# -- Add keys using server tags - https://cloud.scaleway.com/#/servers/ce59daa2-b92d-4c9b-a595-f904099d4d6b"
"ssh-rsa_XXXXXXXXXXX AUTHORIZED_KEY=ssh-rsa_YYYYYYYYYYYYYYY""
"# - Be sure to replace all spaces with underscores"
"# - $> sed 's/ /_/g' ~/.ssh/id_rsa.pub"
"# -- Add the keys to '/root/.ssh/instance_keys' which will be imported"
"#"
"# And recreate your 'authorized_keys' file with the new keys:"
"ssh-keys --upgrade'"
"#"
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+55wyXDs3Bmb1SZajBs9Uhazw/XWSu91iYSQo4dyDd5CLqfAaLrRKIc5SbdAucCWO0/atorjxAocdxey+O/mY8kLM1DnooPL75ckEWgu3s+v2pAtZYXIN8mDzOOB+pWW2caWWg0BZXL5KITWyKbXK9EnoDYisT/uevoKSMBPYodyrIaKZ7fT099VOZHzYiowcS8h0/ereLtr6PjjTZdkaqDKcVw+MJceSc9+g2kW1CGCHkf08zeYUteoYuf8vH/o1YNTnCNu/RROxfvVTGHrgM1ERg6bm0Eeu28yrj2HF7K1rg4CKLapsDMqCd1+dnCvaX9TVpRWNi3J8UInBOTPr bram@localhost.localdomain"
"ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBH7DEXBvwCshz+Ga3oxZhjwqJl3wjJgq7dJCDkUrbIQhw7qH7uHP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pX5Lp0h5emgDb/xe20htfI9RWh9zFqV2zD3K5icoaaOscAKf7Ctgm/Ff8= nibor@Rylia"
"# Below your custom ssh keys from '/root/.ssh/instance_keys'"
];
}