{ config, pkgs, lib, ... }: { imports = [ ./hardware-configuration.nix ../../common/services/ssh.nix ./services/acme.nix ./services/nginx.nix ./services/mail.nix ./data/secrets/secrets.nix ]; boot.loader.grub.enable = true; boot.loader.grub.version = 2; boot.loader.grub.device = "/dev/sda"; boot.supportedFilesystems = ["zfs"]; services.zfs.autoSnapshot.enable = true; services.zfs.autoScrub.enable = true; networking.hostName = "capetillo"; # Define your hostname. networking.hostId = "17a9ec46"; time.timeZone = "Europe/Copenhagen"; networking.useDHCP = false; networking.interfaces.ens3.useDHCP = true; networking.interfaces.ens3.ipv6.addresses = [ { address = "2a01:4f9:c011:50e2::1"; prefixLength = 64; } ]; networking.defaultGateway6 = { address = "fe80::1"; interface = "ens3"; }; users.users.emelie = { isNormalUser = true; extraGroups = [ "wheel" ]; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICO4LyBsW1YuUA6i3EL/IZhchSvk7reO4qgRmR/tdQPU emelie@flap" ]; }; users.users.deploy = { isNormalUser = true; extraGroups = [ "wheel" ]; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICO4LyBsW1YuUA6i3EL/IZhchSvk7reO4qgRmR/tdQPU emelie@flap" ]; }; users.groups.backup.members = [ "virtualMail" ]; security.sudo.wheelNeedsPassword = false; environment.systemPackages = with pkgs; [ vim htop iotop dig ]; nix.trustedUsers = [ "root" "deploy" "@wheel" ]; services.openssh.enable = true; networking.firewall.allowedTCPPorts = [ 22 80 443 ]; # networking.firewall.allowedUDPPorts = [ ... ]; system.stateVersion = "21.05"; }