mirror of
https://github.com/Ascyii/nixos.git
synced 2025-12-31 22:44:23 -05:00
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{ 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;
|
|
}
|