mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 14:54:26 -05:00
Initial commit unclean
This commit is contained in:
50
modules/server/networking.nix
Normal file
50
modules/server/networking.nix
Normal file
@@ -0,0 +1,50 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
networking.hostName = "misox"; # Define your hostname.
|
||||
|
||||
|
||||
# networking.interfaces.eno1 = {
|
||||
|
||||
# Assign a static IPv6 address (same as your example)
|
||||
# ipv6.addresses = [
|
||||
# {
|
||||
# address = "2003:ca:7f20:cf00:dd2d:ebde:44e6:7eca"; # Static IPv6 address
|
||||
# prefixLength = 64; # Prefix length (usually 64)
|
||||
# }
|
||||
# ];
|
||||
#
|
||||
# Enable temporary addresses (privacy addresses) as well
|
||||
#ipv6.useTempAddresses = true;
|
||||
#};
|
||||
|
||||
# The ping behind fritzbox still does not work
|
||||
networking.enableIPv6 = true;
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
# Opening ssh and the web
|
||||
22
|
||||
|
||||
80
|
||||
443
|
||||
|
||||
|
||||
############
|
||||
# Jonas Stuff
|
||||
|
||||
# LifeDash Deploy
|
||||
8000
|
||||
];
|
||||
|
||||
|
||||
|
||||
# Rewrite for local host support
|
||||
# to make this global you need to confifure a custom dns
|
||||
networking.hosts = {
|
||||
"127.0.0.1" = [ "hahn1.one" "cloud.hahn1.one" "cool.hahn1.one" "grafana.hahn1.one"];
|
||||
"::1" = [ "hahn1.one" "cloud.hahn1.one" "cool.hahn1.one" "grafana.hahn1.one"];
|
||||
#"127.0.0.1" = ["nextcloud.misox" "default.misox" "grafana.misox" "collabora.misox"];
|
||||
#"::1" = ["nextcloud.misox" "grafana.misox" "default.misox" "collabora.misox"];
|
||||
};
|
||||
|
||||
networking.networkmanager.wifi.powersave = false;
|
||||
}
|
||||
Reference in New Issue
Block a user