From f7f351439ea31b5960a09263fec4e79e7b994da2 Mon Sep 17 00:00:00 2001 From: Akshay Date: Fri, 29 Mar 2024 15:35:26 +0000 Subject: mantis: add ext device --- hosts/laurel/configuration.nix | 3 +-- hosts/mantis/hardware-configuration.nix | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/hosts/laurel/configuration.nix b/hosts/laurel/configuration.nix index 8dce03f..74e2948 100644 --- a/hosts/laurel/configuration.nix +++ b/hosts/laurel/configuration.nix @@ -93,9 +93,8 @@ proxyPass = "http://127.0.0.1:${builtins.toString config.services.invidious.port}"; proxyWebsockets = true; extraConfig = '' - proxySetHeader X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; # so Invidious knows domain - proxy_http_version 1.1; # to keep alive proxy_set_header Connection ""; # to keep alive ''; }; diff --git a/hosts/mantis/hardware-configuration.nix b/hosts/mantis/hardware-configuration.nix index 8d7f39a..6afcb08 100644 --- a/hosts/mantis/hardware-configuration.nix +++ b/hosts/mantis/hardware-configuration.nix @@ -5,7 +5,8 @@ { imports = - [ (modulesPath + "/installer/scan/not-detected.nix") + [ + (modulesPath + "/installer/scan/not-detected.nix") ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; @@ -14,18 +15,25 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/e3eda8a2-b5fe-4458-988c-48579a7cc6c6"; + { + device = "/dev/disk/by-uuid/e3eda8a2-b5fe-4458-988c-48579a7cc6c6"; + fsType = "ext4"; + }; + + fileSystems."/servarr" = + { + device = "/dev/sdb"; fsType = "ext4"; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/A170-EC57"; + { + device = "/dev/disk/by-uuid/A170-EC57"; fsType = "vfat"; }; swapDevices = - [ { device = "/dev/disk/by-uuid/61cb6a91-b916-40b9-b231-c04378629d90"; } - ]; + [{ device = "/dev/disk/by-uuid/61cb6a91-b916-40b9-b231-c04378629d90"; }]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's -- cgit v1.2.3