betamike-infra/nixos_configs/template.nix

17 lines
406 B
Nix
Raw Permalink Normal View History

{ modulesPath, config, lib, pkgs, ... }:
{
imports = [
"${toString modulesPath}/virtualisation/digital-ocean-image.nix"
];
environment.systemPackages = [ pkgs.jq ];
services.openssh.enable = true;
networking.firewall.allowedTCPPorts = [ 22 ];
users.users.root.openssh.authorizedKeys.keys = [
(builtins.readFile "/home/mike/.ssh/id_mops.pub")
];
# Put host specific logic here
}