1
1
Fork 0

Enable firewall

This commit is contained in:
Tim Van Baak 2023-08-02 15:39:25 +00:00
parent 35247f7b4a
commit dd265429be
1 changed files with 12 additions and 15 deletions

View File

@ -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. Its 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?
} }