Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 61ba8a8c85365ac8effbb1690d9eddbce9d11d3b 72 lines 2.4 kB view raw
1# Do not modify this file! It was generated by ‘nixos-generate-config’ 2# and may be overwritten by future invocations. Please make changes 3# to /etc/nixos/configuration.nix instead. 4{ config, lib, pkgs, modulesPath, ... }: 5 6{ 7 imports = 8 [ 9 (modulesPath + "/installer/scan/not-detected.nix") 10 ]; 11 12 boot.kernelPackages = pkgs.linuxPackages; 13 boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "dm-raid" "raid1" ]; 14 boot.initrd.kernelModules = [ "dm-snapshot" "dm-raid" "raid1" ]; 15 boot.kernelModules = [ "kvm-amd" "zfs" ]; 16 boot.kernelParams = [ "i915.enable_guc=3" ]; 17 boot.extraModulePackages = [ ]; 18 19 fileSystems."/" = 20 { 21 device = "/dev/disk/by-uuid/1988fa0d-ff4a-44aa-a93e-7f0bf3cea5cf"; 22 fsType = "ext4"; 23 }; 24 25 fileSystems."/boot" = 26 { 27 device = "/dev/disk/by-uuid/81D4-01CD"; 28 fsType = "vfat"; 29 }; 30 31 swapDevices = [ ]; 32 33 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 34 # (the default) this is the recommended approach. When using systemd-networkd it's 35 # still possible to use this option, but it's recommended to use it in conjunction 36 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 37 networking.useDHCP = lib.mkDefault true; 38 # networking.interfaces.enp4s0f0.useDHCP = lib.mkDefault true; 39 # networking.interfaces.enp4s0f1.useDHCP = lib.mkDefault true; 40 # networking.interfaces.enp6s0.useDHCP = lib.mkDefault true; 41 42 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 43 hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 44 45 #nixpkgs.config.packageOverrides = pkgs: { 46 # vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; }; 47 #}; 48 hardware.graphics = { 49 enable = true; 50 extraPackages = with pkgs; [ 51 intel-media-driver 52 #vaapiVdpau 53 #libvdpau-va-gl # unmaintained, very old 54 intel-compute-runtime 55 vpl-gpu-rt 56 ]; 57 #extraPackages32 = with pkgs; [ 58 # intel-media-driver 59 # vaapiVdpau 60 # #libvdpau-va-gl 61 # intel-compute-runtime 62 # vpl-gpu-rt 63 #]; 64 }; 65 environment.variables = { 66 VDPAU_DRIVER = "va_gl"; 67 LIBVA_DRIVER_NAME = "iHD"; 68 LIBVA_DRIVERS_PATH = "/run/opengl-driver/lib/dri"; 69 GST_VAAPI_ALL_DRIVERS = "1"; 70 }; 71 #services.xserver.videoDrivers = [ "intel" ]; 72}