From f02a1ff90747674c6e84c5a3b7d185cfc2ba53d1 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Fri, 21 Jun 2024 11:13:17 +0200 Subject: [PATCH] Updated hardware configuration --- hosts/laptop/hardware-configuration.nix | 13 +++++++++++-- modules/system/hardware/firewall.nix | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/hosts/laptop/hardware-configuration.nix b/hosts/laptop/hardware-configuration.nix index 6c1a39d..8051f05 100644 --- a/hosts/laptop/hardware-configuration.nix +++ b/hosts/laptop/hardware-configuration.nix @@ -8,7 +8,7 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ]; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; @@ -24,6 +24,11 @@ options = [ "fmask=0022" "dmask=0022" ]; }; + fileSystems."/var/lib/docker/overlay2/539923c18432611fc07642163d0fefe19c5de9d2767fa4778645a8d65f99f85a/merged" = + { device = "overlay"; + fsType = "overlay"; + }; + swapDevices = [ ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking @@ -31,7 +36,11 @@ # still possible to use this option, but it's recommended to use it in conjunction # with explicit per-interface declarations with `networking.interfaces..useDHCP`. networking.useDHCP = lib.mkDefault true; - # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; + # networking.interfaces.br-1dc84fe6529c.useDHCP = lib.mkDefault true; + # networking.interfaces.docker0.useDHCP = lib.mkDefault true; + # networking.interfaces.eth0.useDHCP = lib.mkDefault true; + # networking.interfaces.veth9b2658e.useDHCP = lib.mkDefault true; + # networking.interfaces.wlan0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; diff --git a/modules/system/hardware/firewall.nix b/modules/system/hardware/firewall.nix index 1c04ccc..40f5b1c 100644 --- a/modules/system/hardware/firewall.nix +++ b/modules/system/hardware/firewall.nix @@ -3,7 +3,7 @@ { networking.firewall = { enable = true; - allowedTCPPorts = [ 53317 ]; + allowedTCPPorts = [ 53317 3000 ]; allowedUDPPorts = [ 53317 ]; }; }