mirror of
https://github.com/materusPL/Nixerus.git
synced 2025-06-29 05:04:24 +02:00
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";
|
||||||
|
17
configurations/host/materusPC/network.nix
Normal file
17
configurations/host/materusPC/network.nix
Normal 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
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user