sdr server stuff (rtl_tcp support)
This commit is contained in:
parent
ea5cb4848e
commit
8ee0144cdf
|
@ -31,6 +31,14 @@ in
|
|||
# Select internationalisation properties.
|
||||
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.
|
||||
# services.xserver = {
|
||||
# enable = true;
|
||||
|
@ -69,18 +77,18 @@ in
|
|||
# };
|
||||
|
||||
# Printer Stuff (FUCK HP!)
|
||||
services = {
|
||||
printing = {
|
||||
enable = true;
|
||||
drivers = [ pkgs.hplip ];
|
||||
webInterface = false;
|
||||
};
|
||||
avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
# services = {
|
||||
# printing = {
|
||||
# enable = true;
|
||||
# drivers = [ pkgs.hplip ];
|
||||
# webInterface = false;
|
||||
# };
|
||||
# avahi = {
|
||||
# enable = true;
|
||||
# nssmdns4 = true;
|
||||
# openFirewall = true;
|
||||
# };
|
||||
# };
|
||||
|
||||
# Install fonts, need this for orbitron!
|
||||
# fonts.packages = with pkgs; [
|
||||
|
@ -263,18 +271,18 @@ in
|
|||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
1935 # RTMP
|
||||
4455 # VR
|
||||
# 4455 # VR
|
||||
80 443 # Nginx
|
||||
1234 # Something
|
||||
25565 # minecraft port
|
||||
1234 # rtl_tcp
|
||||
# 25565 # minecraft port
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
4455
|
||||
24454 # minecraft vc mod
|
||||
# 4455
|
||||
# 24454 # minecraft vc mod
|
||||
];
|
||||
# Add extra input rules using nftables
|
||||
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 = {
|
||||
|
@ -300,7 +308,6 @@ in
|
|||
# NFS server
|
||||
services.nfs.server = {
|
||||
enable = true;
|
||||
# Allowing to 0.0.0.0 makes any IP the firewall allows in
|
||||
exports = ''
|
||||
/export/freecornNFS *(rw,no_subtree_check)
|
||||
'';
|
||||
|
|
|
@ -17,6 +17,7 @@ in {
|
|||
"nfsShare"
|
||||
"docker"
|
||||
];
|
||||
uid = 1000;
|
||||
};
|
||||
|
||||
# Define home manager programs and configs
|
||||
|
|
Reference in a new issue