networking
This commit is contained in:
15
nixos/core/networking.nix
Normal file
15
nixos/core/networking.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
networking = {
|
||||||
|
networkmanager.enable = true;
|
||||||
|
hostName = "cnix";
|
||||||
|
nftables.enable = true;
|
||||||
|
firewall = {
|
||||||
|
enable = true;
|
||||||
|
interfaces = {
|
||||||
|
"enp7s0" = {
|
||||||
|
allowedTCPPorts = [22 80 443];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -77,21 +77,6 @@ in {
|
|||||||
pkiBundle = "/etc/secureboot";
|
pkiBundle = "/etc/secureboot";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Networking
|
|
||||||
networking = {
|
|
||||||
networkmanager.enable = true;
|
|
||||||
hostName = "cnix";
|
|
||||||
nftables.enable = true;
|
|
||||||
firewall = {
|
|
||||||
enable = true;
|
|
||||||
interfaces = {
|
|
||||||
"enp7s0" = {
|
|
||||||
allowedTCPPorts = [22 80 443];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
FLAKE = "/home/cnst/.nix-config";
|
FLAKE = "/home/cnst/.nix-config";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
# core
|
# core
|
||||||
../../core/fonts.nix
|
../../core/fonts.nix
|
||||||
../../core/hyprland.nix
|
../../core/hyprland.nix
|
||||||
|
../../core/networking.nix
|
||||||
../../core/zsh.nix
|
../../core/zsh.nix
|
||||||
|
|
||||||
# hardware
|
# hardware
|
||||||
@@ -17,14 +18,14 @@
|
|||||||
../../services/gnome-keyring.nix
|
../../services/gnome-keyring.nix
|
||||||
../../services/greetd.nix
|
../../services/greetd.nix
|
||||||
../../services/gvfs.nix
|
../../services/gvfs.nix
|
||||||
|
../../services/locate.nix
|
||||||
../../services/mullvad.nix
|
../../services/mullvad.nix
|
||||||
../../services/openssh.nix
|
../../services/openssh.nix
|
||||||
../../services/pipewire.nix
|
../../services/pipewire.nix
|
||||||
../../services/udisks.nix
|
|
||||||
../../services/xserver-cnix.nix
|
|
||||||
../../services/locate.nix
|
|
||||||
../../services/power.nix
|
../../services/power.nix
|
||||||
../../services/samba.nix
|
../../services/samba.nix
|
||||||
|
../../services/udisks.nix
|
||||||
|
../../services/xserver-cnix.nix
|
||||||
|
|
||||||
# extra
|
# extra
|
||||||
../../extra/gaming.nix
|
../../extra/gaming.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user