clean up file and add uptime kuma
This commit is contained in:
@@ -8,13 +8,13 @@ let
|
||||
in
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
../../nixos
|
||||
../../../users/blake
|
||||
../../../modules/system
|
||||
#../../../modules/holocron
|
||||
../../../modules/homelab
|
||||
#../../../modules/holocron
|
||||
];
|
||||
|
||||
home-manager.users.blake.imports = [
|
||||
@@ -25,18 +25,16 @@ in
|
||||
tailscale.enable = false;
|
||||
};
|
||||
homelab = {
|
||||
base_domain = "vaniville.lan";
|
||||
host_ip = "10.10.0.11";
|
||||
ddns.enable = true;
|
||||
uptime-kuma = {
|
||||
enable = true;
|
||||
url = "up.blakedheld.xyz";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
useRoutingFeatures = "server";
|
||||
};
|
||||
|
||||
|
||||
# use the systemd-boot EFI boot loader.
|
||||
#boot.loader.systemd-boot.enable = true;
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
@@ -50,37 +48,31 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
# define shell
|
||||
programs.zsh.enable = true;
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
|
||||
# package install list
|
||||
# packages reccomended by linode
|
||||
environment.systemPackages = with pkgs; [
|
||||
inetutils
|
||||
mtr
|
||||
sysstat
|
||||
];
|
||||
|
||||
# allow proprietary packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# enable flakes
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
# setup hostname and networking stack
|
||||
# setup the network forwarding this host is designed for
|
||||
# general networking config
|
||||
networking = {
|
||||
hostName = "vaniville"; # Define your hostname.
|
||||
usePredictableInterfaceNames = false;
|
||||
useDHCP = false;
|
||||
interfaces.eth0.useDHCP = true;
|
||||
#networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
interfaces.eth0.useDHCP = true; # public ipv4 interface
|
||||
|
||||
# the proper way to forward ports on nixos, need to figure it out locally then try to get it working over vps
|
||||
nat = {
|
||||
enable = true;
|
||||
externalInterface = "eth0"; # your PUBLIC_IF
|
||||
internalInterfaces = [ "tailscale0" ];
|
||||
# maybe one day i will figure out the forward ports proper
|
||||
forwardPorts = [
|
||||
# { sourcePort = 80; destination = "10.10.0.10:80"; proto = "tcp"; } # http
|
||||
# { sourcePort = 443; destination = "10.10.0.10:443"; proto = "tcp"; } # https
|
||||
@@ -98,6 +90,7 @@ in
|
||||
];
|
||||
};
|
||||
|
||||
# what actually does the forwarding
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 22 80 443 25777 7567 21115 21116 21117 21118 21119 ];
|
||||
@@ -127,6 +120,12 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
# enable tailscale for to forward over!
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
useRoutingFeatures = "server";
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "25.05"; # Did you read the comment?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user