fixing networking

This commit is contained in:
cnst
2024-07-27 18:53:16 +02:00
parent 7b26c3e235
commit f5a63d61c3
9 changed files with 36 additions and 9 deletions

View File

@@ -0,0 +1,15 @@
{
networking = {
networkmanager.enable = true;
hostName = "adampad";
nftables.enable = true;
firewall = {
enable = true;
interfaces = {
"enp7s0" = {
allowedTCPPorts = [22 80 443];
};
};
};
};
}

View File

@@ -0,0 +1,15 @@
{
networking = {
networkmanager.enable = true;
hostName = "toothpc";
nftables.enable = true;
firewall = {
enable = true;
interfaces = {
"enp4s0" = {
allowedTCPPorts = [22 80 443];
};
};
};
};
}

View File

@@ -3,8 +3,8 @@
# core
../../core/fonts.nix
../../core/hyprland.nix
../../core/networking.nix
../../core/zsh.nix
../../core/network/adampad.nix
# hardware
../../hardware/cnix.nix

View File

@@ -3,7 +3,7 @@
# core
../../core/fonts.nix
../../core/hyprland.nix
../../core/networking.nix
../../core/network/cnix.nix
../../core/zsh.nix
# hardware

View File

@@ -77,12 +77,6 @@ in {
pkiBundle = "/etc/secureboot";
};
# Enable networking
networking = {
networkmanager.enable = true;
hostName = "toothpc";
};
environment.sessionVariables = {
FLAKE = "/home/toothpick/.nix-config";
};

View File

@@ -4,6 +4,7 @@
../../core/fonts.nix
../../core/hyprland.nix
../../core/zsh.nix
../../core/network/toothpc.nix
# hardware
../../hardware/toothpc.nix