nixfiles/hosts/hetzner-vm/hetzner-vm.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

2021-12-28 15:09:51 +00:00
{ modulesPath, tree, config, pkgs, lib, ... }:
{
imports = with tree; [
users.chaoticryptidz
2021-12-28 21:42:46 +00:00
2021-12-28 15:09:51 +00:00
profiles.tailscale
profiles.sshd
2021-12-28 21:42:46 +00:00
hosts.hetzner-vm.services.nginx
2021-12-28 16:00:56 +00:00
hosts.hetzner-vm.services.invidious
2021-12-28 21:42:46 +00:00
hosts.hetzner-vm.services.vault
hosts.hetzner-vm.services.jitsi
2021-12-28 15:09:51 +00:00
(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";
2021-12-28 16:00:56 +00:00
networking.firewall.enable = true;
networking.firewall.allowPing = false;
networking.firewall.allowedTCPPorts = [ 22 ];
2021-12-28 15:09:51 +00:00
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";
}