nixfiles/hosts/hetzner-vm/hetzner-vm.nix
2021-12-28 22:06:26 +00:00

53 lines
1.2 KiB
Nix

{ modulesPath, tree, config, pkgs, lib, ... }:
{
imports = with tree; [
users.chaoticryptidz
profiles.tailscale
profiles.sshd
hosts.hetzner-vm.services.nginx
hosts.hetzner-vm.services.invidious
hosts.hetzner-vm.services.vault
hosts.hetzner-vm.services.jitsi
(modulesPath + "/profiles/qemu-guest.nix")
];
home-manager.users.root = { imports = with tree; [ home.base ]; };
home-manager.users.chaoticryptidz = {
imports = with tree; [
home.base
home.dev.archives
home.dev.editors
home.dev.git
home.dev.info
home.dev.network
home.dev.vcs
];
};
networking.hostName = "hetzner-vm";
time.timeZone = "Europe/London";
networking.firewall.enable = true;
networking.firewall.allowPing = false;
networking.firewall.allowedTCPPorts = [ 22 ];
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL4L1eBZzYXZNGBucTn/eOFp48el9JPiYt9iXQDpBSg/ chaoticryptidz@owo.monster"
];
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = {
device = "/dev/sda1";
fsType = "ext4";
};
system.stateVersion = "21.11";
}