# 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, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"]; boot.kernelModules = ["kvm-amd" "amdgpu"]; boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; boot.extraModprobeConfig = '' options v4l2loop devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1 ''; security.polkit.enable = true; fileSystems."/" = { device = "/dev/disk/by-uuid/50366080-c1da-4726-b930-e5cd619afaaa"; fsType = "ext4"; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/A720-72DC"; fsType = "vfat"; options = ["fmask=0077" "dmask=0077"]; }; swapDevices = [ {device = "/dev/disk/by-uuid/f4b35122-4041-4b39-a9e0-5358f7e4b634";} ]; # 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 # 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.eno1.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; ############# ### hardware ############# # everything amd gpu hardware.graphics.enable32Bit = true; hardware.graphics.extraPackages = [ pkgs.rocmPackages.clr.icd pkgs.libva ]; boot.initrd.kernelModules = ["amdgpu"]; hardware.amdgpu.overdrive.ppfeaturemask = "0xffffffff"; services.hardware.openrgb.enable = true; hardware.openrazer = { enable = true; users = ["sarah"]; }; }