Move network settings

This commit is contained in:
Mateusz Słodkowicz 2023-05-18 22:38:32 +02:00
parent 03e5106791
commit 34279ed406
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
2 changed files with 18 additions and 1 deletions

View File

@ -6,9 +6,9 @@
./hardware ./hardware
./tmp.nix ./tmp.nix
./network.nix
]; ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
system.copySystemConfiguration = false; system.copySystemConfiguration = false;
system.stateVersion = "23.05"; system.stateVersion = "23.05";

View File

@ -0,0 +1,17 @@
{ config, pkgs, lib, inputs, materusFlake, ... }:
{
networking.useDHCP = lib.mkDefault true;
networking.hostName = "materusPC";
networking.networkmanager.enable = true;
networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [ 24800 5900 5357 4656 ];
networking.firewall.allowedUDPPorts = [ 24800 5900 3702 4656 ];
#Fix warning
networking.networkmanager.extraConfig = lib.mkDefault ''
[connectivity]
uri=http://nmcheck.gnome.org/check_network_status.txt
'';
}