2023-12-17 21:42:07 -08:00
|
|
|
{ config, user, ... }:
|
2022-11-08 19:08:54 -08:00
|
|
|
|
2023-12-17 21:42:07 -08:00
|
|
|
{
|
|
|
|
imports = [
|
2023-10-08 18:01:51 -07:00
|
|
|
(import ./../../modules/xrdp.nix)
|
2023-02-16 11:28:00 -08:00
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
2022-11-08 19:08:54 -08:00
|
|
|
|
2023-09-21 08:42:04 -07:00
|
|
|
networking.hosts = {
|
|
|
|
"100.64.0.1" = ["files.nickiel.net" "git.nickiel.net" "nickiel.net"
|
|
|
|
"jellyfin.nickiel.net" ];
|
2023-08-05 10:30:10 -07:00
|
|
|
};
|
2023-08-11 09:08:09 -07:00
|
|
|
# tailscale set --exit-node <SEVERNAME> to route through an exit node
|
2023-12-25 18:38:17 -08:00
|
|
|
services.tailscale.enable = true;
|
|
|
|
networking.firewall = {
|
2023-09-21 08:42:04 -07:00
|
|
|
checkReversePath = "loose"; trustedInterfaces = [ "tailscale0" ];
|
2023-08-05 10:30:10 -07:00
|
|
|
allowedUDPPorts = [ config.services.tailscale.port ];
|
2023-05-28 22:10:42 -07:00
|
|
|
};
|
2022-12-09 10:17:19 -08:00
|
|
|
|
2023-09-21 08:42:04 -07:00
|
|
|
boot.loader = { efi = {
|
|
|
|
canTouchEfiVariables = true; efiSysMountPoint = "/boot";
|
2022-11-08 19:08:54 -08:00
|
|
|
};
|
2023-09-21 11:24:16 -07:00
|
|
|
grub = {
|
|
|
|
devices = [ "nodev" ];
|
|
|
|
efiSupport = true;
|
|
|
|
enable = true;
|
|
|
|
useOSProber = true;
|
|
|
|
# extraEntries = ''
|
|
|
|
# menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows
|
|
|
|
# --class os $menuentry_id_option 'osprober-efi-364F-BE7A' {
|
|
|
|
# insmod part_gpt insmod fat search --no-floppy --fs-uuid
|
|
|
|
# --set=root 364F-BE7A chainloader
|
|
|
|
# /efi/Microsoft/Boot/bootmgfw.efi
|
|
|
|
# }
|
|
|
|
# '';
|
2022-11-08 19:08:54 -08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|