broken config, someone fix

This commit is contained in:
Freecorn 2024-09-22 14:42:26 -06:00
parent e4febece92
commit 409d94d257

View file

@ -22,12 +22,6 @@ in
device = "/dev/sda"; device = "/dev/sda";
}; };
# Hostname and networking
networking = {
hostName = "freecornserver";
networkmanager.enable = true;
};
# Enable network manager applet # Enable network manager applet
programs.nm-applet.enable = true; programs.nm-applet.enable = true;
@ -49,6 +43,29 @@ in
# Enable the LXQT Desktop Environment. # Enable the LXQT Desktop Environment.
# displayManager.lightdm.enable = true; # displayManager.lightdm.enable = true;
# desktopManager.lxqt.enable = true; # desktopManager.lxqt.enable = true;
# };
# Enable automatic login for the user.
# services.displayManager.autoLogin = {
# enable = true;
# user = "freecorn";
# };
# Enable sound with pipewire.
# hardware.pulseaudio.enable = false;
# security.rtkit.enable = true;
# services.pipewire = {
# enable = true;
# alsa.enable = true;
# alsa.support32Bit = true;
# pulse.enable = true;
# };
# OpenGL and drivers
# hardware.opengl = {
# enable = true;
# driSupport = true;
# driSupport32Bit = true;
# }; # };
# Printer Stuff (FUCK HP!) # Printer Stuff (FUCK HP!)
@ -65,15 +82,11 @@ in
}; };
}; };
# Enable sound with pipewire. # Install fonts, need this for orbitron!
# hardware.pulseaudio.enable = false; # fonts.packages = with pkgs; [
# security.rtkit.enable = true; # orbitron
# services.pipewire = { # ];
# enable = true;
# alsa.enable = true;
# alsa.support32Bit = true;
# pulse.enable = true;
# };
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.nextcloud = { users.users.nextcloud = {
@ -81,13 +94,6 @@ in
isSystemUser = true; isSystemUser = true;
}; };
# # OpenGL and drivers
# hardware.opengl = {
# enable = true;
# driSupport = true;
# driSupport32Bit = true;
# };
# RTL-SDR Support # RTL-SDR Support
hardware.rtl-sdr.enable = true; hardware.rtl-sdr.enable = true;
boot.kernelParams = [ "modprobe.blacklist=dvb_usb_rtl28xxu" ]; # blacklist dunb driver boot.kernelParams = [ "modprobe.blacklist=dvb_usb_rtl28xxu" ]; # blacklist dunb driver
@ -98,12 +104,6 @@ in
# OpenWebRX # OpenWebRX
# services.openwebrx.enable = true; # services.openwebrx.enable = true;
# Enable automatic login for the user.
# services.displayManager.autoLogin = {
# enable = true;
# user = "freecorn";
# };
# PufferPannel # PufferPannel
services = { services = {
pufferpanel = { pufferpanel = {
@ -221,14 +221,12 @@ in
defaults.email = secrets.cornEmail; defaults.email = secrets.cornEmail;
}; };
# Install firefox.
# programs.firefox.enable = true;
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# Packages installed in system profile # Packages installed in system profile
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# firefox
wget wget
x11vnc x11vnc
fastfetch fastfetch
@ -242,11 +240,6 @@ in
qbittorrent qbittorrent
]; ];
# Install fonts, need this for orbitron!
fonts.packages = with pkgs; [
orbitron
];
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh = { services.openssh = {
enable = true; enable = true;
@ -258,18 +251,24 @@ in
openFirewall = true; openFirewall = true;
}; };
# Open ports in the firewall. # Hostname and networking
networking.firewall.allowedTCPPorts = [ networking = {
1935 # RTMP hostName = "freecornserver";
4455 # VR networkmanager.enable = true;
80 443 # Nginx firewall = {
1234 # Something allowedTCPPorts = [
25565 # minecraft port 1935 # RTMP
]; 4455 # VR
networking.firewall.allowedUDPPorts = [ 80 443 # Nginx
4455 1234 # Something
24454 # minecraft vc mod 25565 # minecraft port
]; 2049
];
allowedUDPPorts = [
4455
24454 # minecraft vc mod
];
};
# Copy and link the NixOS configuration file to (/run/current-system/configuration.nix). # Copy and link the NixOS configuration file to (/run/current-system/configuration.nix).
system.copySystemConfiguration = true; system.copySystemConfiguration = true;