sdr server stuff (rtl_tcp support)

This commit is contained in:
Freecorn 2024-09-27 14:05:28 -06:00
parent ea5cb4848e
commit 8ee0144cdf
3 changed files with 28 additions and 19 deletions

View file

@ -31,6 +31,14 @@ in
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_CA.UTF-8"; i18n.defaultLocale = "en_CA.UTF-8";
# allow non nix programs to run
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
# Add any missing dynamic libraries for unpackaged programs
# here, NOT in environment.systemPackages
];
# Enable the X11 windowing system. # Enable the X11 windowing system.
# services.xserver = { # services.xserver = {
# enable = true; # enable = true;
@ -69,18 +77,18 @@ in
# }; # };
# Printer Stuff (FUCK HP!) # Printer Stuff (FUCK HP!)
services = { # services = {
printing = { # printing = {
enable = true; # enable = true;
drivers = [ pkgs.hplip ]; # drivers = [ pkgs.hplip ];
webInterface = false; # webInterface = false;
}; # };
avahi = { # avahi = {
enable = true; # enable = true;
nssmdns4 = true; # nssmdns4 = true;
openFirewall = true; # openFirewall = true;
}; # };
}; # };
# Install fonts, need this for orbitron! # Install fonts, need this for orbitron!
# fonts.packages = with pkgs; [ # fonts.packages = with pkgs; [
@ -263,18 +271,18 @@ in
firewall = { firewall = {
allowedTCPPorts = [ allowedTCPPorts = [
1935 # RTMP 1935 # RTMP
4455 # VR # 4455 # VR
80 443 # Nginx 80 443 # Nginx
1234 # Something 1234 # rtl_tcp
25565 # minecraft port # 25565 # minecraft port
]; ];
allowedUDPPorts = [ allowedUDPPorts = [
4455 # 4455
24454 # minecraft vc mod # 24454 # minecraft vc mod
]; ];
# Add extra input rules using nftables # Add extra input rules using nftables
extraInputRules = '' extraInputRules = ''
ip saddr { 10.0.0.240, 10.0.0.124 } tcp dport 2049 accept comment "Accept NFS" ip saddr { 10.0.0.124, ${secrets.jimIP1}, ${secrets.jimIP2}, ${secrets.lunaIP} } tcp dport 2049 accept comment "Accept NFS"
''; '';
}; };
nftables = { nftables = {
@ -300,7 +308,6 @@ in
# NFS server # NFS server
services.nfs.server = { services.nfs.server = {
enable = true; enable = true;
# Allowing to 0.0.0.0 makes any IP the firewall allows in
exports = '' exports = ''
/export/freecornNFS *(rw,no_subtree_check) /export/freecornNFS *(rw,no_subtree_check)
''; '';

View file

@ -17,6 +17,7 @@ in {
"nfsShare" "nfsShare"
"docker" "docker"
]; ];
uid = 1000;
}; };
# Define home manager programs and configs # Define home manager programs and configs

View file

@ -10,6 +10,7 @@ in {
"networkmanager" "networkmanager"
"wheel" "wheel"
"nginx" "nginx"
"nfsShare"
]; ];
shell = pkgs.zsh; shell = pkgs.zsh;
}; };