diff --git a/systems/x86_64-linux/kami/default.nix b/systems/x86_64-linux/kami/default.nix index a2d4071..82a982b 100644 --- a/systems/x86_64-linux/kami/default.nix +++ b/systems/x86_64-linux/kami/default.nix @@ -27,6 +27,8 @@ git ]; + + programs = { dconf.enable = true; droidcam.enable = true; diff --git a/systems/x86_64-linux/kami/hardware.nix b/systems/x86_64-linux/kami/hardware.nix index 5156afe..b59744b 100644 --- a/systems/x86_64-linux/kami/hardware.nix +++ b/systems/x86_64-linux/kami/hardware.nix @@ -1,13 +1,33 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: +{ config, lib, pkgs, modulesPath, inputs, ... }: +let + inherit (inputs) nixos-hardware; +in { - imports = + imports = with nixos-hardware.nixosModules; [ (modulesPath + "/installer/scan/not-detected.nix") + common-cpu-intel + common-gpu-nvidia + common-pc + common-pc-ssd ]; + hardware.nvidia.prime = { + offload.enable = false; + sync.enable = false; + + # Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA + intelBusId = "PCI:0:2:0"; + + # Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA + nvidiaBusId = "PCI:1:0:0"; + }; + + hardware.video.hidpi.enable = lib.mkDefault true; + boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" "sr_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ];