networking

This commit is contained in:
cnst
2024-07-20 17:50:06 +02:00
parent 66d370d256
commit 04ee4810b9
3 changed files with 19 additions and 18 deletions

15
nixos/core/networking.nix Normal file
View File

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

View File

@@ -77,21 +77,6 @@ in {
pkiBundle = "/etc/secureboot";
};
# Networking
networking = {
networkmanager.enable = true;
hostName = "cnix";
nftables.enable = true;
firewall = {
enable = true;
interfaces = {
"enp7s0" = {
allowedTCPPorts = [22 80 443];
};
};
};
};
environment.sessionVariables = {
FLAKE = "/home/cnst/.nix-config";
};

View File

@@ -3,6 +3,7 @@
# core
../../core/fonts.nix
../../core/hyprland.nix
../../core/networking.nix
../../core/zsh.nix
# hardware
@@ -17,14 +18,14 @@
../../services/gnome-keyring.nix
../../services/greetd.nix
../../services/gvfs.nix
../../services/locate.nix
../../services/mullvad.nix
../../services/openssh.nix
../../services/pipewire.nix
../../services/udisks.nix
../../services/xserver-cnix.nix
../../services/locate.nix
../../services/power.nix
../../services/samba.nix
../../services/udisks.nix
../../services/xserver-cnix.nix
# extra
../../extra/gaming.nix