mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-20 05:59:51 -07:00
chore: rename nixos to linux
This commit is contained in:
parent
26aa04552c
commit
cbcb9467d6
11 changed files with 18 additions and 20 deletions
19
modules/linux/networking/default.nix
Executable file
19
modules/linux/networking/default.nix
Executable file
|
@ -0,0 +1,19 @@
|
|||
let
|
||||
universalAllowedPorts = [27016 42805];
|
||||
universalAllowedRanges = [
|
||||
{
|
||||
from = 42852;
|
||||
to = 42872;
|
||||
}
|
||||
];
|
||||
in {
|
||||
services.openssh.enable = true;
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = universalAllowedPorts;
|
||||
allowedUDPPorts = universalAllowedPorts;
|
||||
allowedUDPPortRanges = universalAllowedRanges;
|
||||
allowedTCPPortRanges = universalAllowedRanges;
|
||||
};
|
||||
networking.firewall.enable = true;
|
||||
networking.nameservers = ["1.1.1.1" "1.0.0.1"];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue