nixos-config/images/remote-install/config.nix

37 lines
1.3 KiB
Nix
Raw Normal View History

2019-12-20 05:54:26 +01:00
{ pkgs, lib, ... }:
let
2020-04-08 16:43:09 +02:00
remote-access = import ../lib/remote-access.nix {
2019-10-24 02:20:38 +02:00
# cat ~/.ssh/id_rsa.pub
2019-12-20 05:54:26 +01:00
publicSshKey =
"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==";
2019-10-24 02:20:38 +02:00
# remote-install-get-hiddenReceiver
hiddenReceiver = "";
2020-04-08 16:43:09 +02:00
};
2019-10-24 02:20:38 +02:00
in {
imports = [ remote-access ];
2019-10-24 02:20:38 +02:00
# network configuration
2020-04-08 16:43:09 +02:00
# ---------------------
# no wifi
#networking.networkmanager.enable = true;
# wifi
networking.wireless.enable = true;
networking.wireless.networks."ssid".psk = "password";
2019-10-24 02:20:38 +02:00
2020-04-08 16:43:09 +02:00
# configuration
environment.extraInit = ''
# use vi shortcuts
# ----------------
set -o vi
EDITOR=vim
'';
2019-10-24 02:20:38 +02:00
}