Enable firewall
This commit is contained in:
parent
35247f7b4a
commit
dd265429be
|
@ -5,32 +5,29 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
beatific.hostName = "backyard";
|
beatific.hostName = "backyard";
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
users.users.tvb.extraGroups = [ "networkmanager" ];
|
users.users.tvb.extraGroups = [ "networkmanager" ];
|
||||||
|
|
||||||
# Open ports in the firewall.
|
networking.firewall = {
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
enable = true;
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
allowedTCPPorts = [
|
||||||
# Or disable the firewall altogether.
|
80 # http
|
||||||
networking.firewall.enable = false;
|
443 # https
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value governs how some stateful data, like databases, are handled
|
||||||
# settings for stateful data, like file locations and database versions
|
# across different versions of NixOS. This should not be changed to a new
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# release unless the sysadmin has determined that no services would be
|
||||||
# this value at the release version of the first install of this system.
|
# adversely affected by changing this.
|
||||||
# Before changing this value read the documentation for this option
|
system.stateVersion = "23.05";
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
||||||
system.stateVersion = "23.05"; # Did you read the comment?
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue