clean up file and add uptime kuma

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