mirror of https://github.com/materusPL/Nixerus.git
Move network settings
This commit is contained in:
parent
03e5106791
commit
34279ed406
|
@ -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";
|
||||||
|
|
|
@ -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
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue