2021-12-28 15:09:51 +00:00
|
|
|
{ modulesPath, tree, config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = with tree; [
|
2021-12-28 22:59:28 +00:00
|
|
|
users.root
|
2022-01-29 21:44:38 +00:00
|
|
|
users.chaos
|
2021-12-28 21:42:46 +00:00
|
|
|
|
2021-12-29 16:21:53 +00:00
|
|
|
profiles.base
|
2021-12-28 15:09:51 +00:00
|
|
|
profiles.tailscale
|
|
|
|
profiles.sshd
|
2021-12-28 21:42:46 +00:00
|
|
|
|
2021-12-29 12:26:15 +00:00
|
|
|
hosts.hetzner-vm.services.restic
|
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
|
2022-01-01 17:28:16 +00:00
|
|
|
hosts.hetzner-vm.services.netdata
|
2022-01-03 21:13:15 +00:00
|
|
|
hosts.hetzner-vm.services.quassel
|
2022-01-23 10:30:56 +00:00
|
|
|
hosts.hetzner-vm.services.mpd
|
|
|
|
hosts.hetzner-vm.services.storage-sftp
|
2021-12-28 21:42:46 +00:00
|
|
|
|
2021-12-28 15:09:51 +00:00
|
|
|
(modulesPath + "/profiles/qemu-guest.nix")
|
|
|
|
];
|
|
|
|
|
2022-01-03 16:50:22 +00:00
|
|
|
home-manager.users.root = {
|
|
|
|
imports = with tree; [ home.base home.dev.small ];
|
|
|
|
};
|
2022-01-29 21:44:38 +00:00
|
|
|
home-manager.users.chaos = {
|
2022-01-03 16:50:22 +00:00
|
|
|
imports = with tree; [ home.base home.dev.small ];
|
2021-12-28 15:09:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
networking.hostName = "hetzner-vm";
|
|
|
|
time.timeZone = "Europe/London";
|
|
|
|
|
2021-12-28 16:00:56 +00:00
|
|
|
networking.firewall.enable = true;
|
2021-12-29 12:26:15 +00:00
|
|
|
networking.firewall.allowPing = true;
|
2021-12-28 16:00:56 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
|
|
|
|
2021-12-29 12:26:15 +00:00
|
|
|
networking.enableIPv6 = true;
|
|
|
|
networking.usePredictableInterfaceNames = false;
|
|
|
|
networking.dhcpcd.enable = true;
|
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
|
|
|
networks.eth0 = {
|
|
|
|
name = "eth0";
|
2021-12-29 13:17:01 +00:00
|
|
|
address = [ "2a01:4f9:c010:8beb::/64" ];
|
2021-12-29 12:26:15 +00:00
|
|
|
gateway = [ "fe80::1" ];
|
|
|
|
};
|
|
|
|
};
|
2021-12-28 15:09:51 +00:00
|
|
|
|
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
boot.loader.grub.device = "/dev/sda";
|
|
|
|
boot.initrd.kernelModules = [ "nvme" ];
|
2021-12-28 22:06:26 +00:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/sda1";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2021-12-28 15:09:51 +00:00
|
|
|
|
|
|
|
system.stateVersion = "21.11";
|
|
|
|
}
|
|
|
|
|