From 101d47fa29c42951cddedc12a4c04ebc50488e2d Mon Sep 17 00:00:00 2001 From: stitchy Date: Fri, 5 Apr 2024 02:23:27 -0700 Subject: [PATCH] moar malachite fixes --- hosts/malachite/default.nix | 12 +++++++++++- hosts/malachite/hardware-configuration.nix | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/hosts/malachite/default.nix b/hosts/malachite/default.nix index 14f6574..b546972 100644 --- a/hosts/malachite/default.nix +++ b/hosts/malachite/default.nix @@ -2,7 +2,7 @@ let passthrough = pkgs.writeShellApplication { name = "pasthrough.sh"; - runtimeInputs = lib.attrVals [ "coreutils" "kmod" "libvirtd" "procps" ] pkgs; + runtimeInputs = lib.attrVals [ "coreutils" "kmod" "libvirt" "procps" ] pkgs; text = '' GUEST_NAME="$1" HOOK_NAME="$2" @@ -69,6 +69,7 @@ let fi ''; + }; in { imports = [ @@ -88,6 +89,15 @@ in { steam-hardware.enable = true; }; + networking.networkmanager.enable = true; + services.syncthing = { + enable = true; + user = "stitchynyan"; + openDefaultPorts = true; + databaseDir = "/home/stitchynyan/.local/share/syncthing"; + dataDir = "/home/stitchynyan"; + }; + networking.hostName = "malachite"; time.timeZone = "America/Los_Angeles"; diff --git a/hosts/malachite/hardware-configuration.nix b/hosts/malachite/hardware-configuration.nix index da77e9a..1cbe4bc 100644 --- a/hosts/malachite/hardware-configuration.nix +++ b/hosts/malachite/hardware-configuration.nix @@ -7,7 +7,7 @@ boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; + boot.kernelModules = [ "kvm-intel" "vfio-pci" ]; boot.extraModulePackages = [ ]; boot.kernelParams = [