45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ modulesPath, tree, config, pkgs, lib, ... }:
|
|
|
|
{
|
|
imports = with tree; [
|
|
users.chaoticryptidz
|
|
profiles.tailscale
|
|
profiles.sshd
|
|
hosts.hetzner-vm.services.invidious
|
|
(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";
|
|
}
|
|
|