1

reformat using alejandra

This commit is contained in:
2023-01-18 14:00:02 +01:00
parent 3ad68f24d6
commit eb44696de3
43 changed files with 1283 additions and 1095 deletions

View File

@ -1,6 +1,11 @@
{ inputs, config, lib, mylib, pkgs, ... }:
rec {
{
inputs,
config,
lib,
mylib,
pkgs,
...
}: rec {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
@ -20,6 +25,6 @@ rec {
xkbVariant = "altgr-intl";
# videoDrivers = [ "nvidia" ]; # NVIDIA
videoDrivers = [ "amdgpu" ];
videoDrivers = ["amdgpu"];
};
}

View File

@ -1,19 +1,23 @@
# 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") ];
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
boot = {
initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
# Enable early Nvidia kernel modesetting
# https://wiki.archlinux.org/title/GDM#GDM_ignores_Wayland_and_uses_X.Org_by_default (not fixed by this)
# https://wiki.archlinux.org/title/Kernel_mode_setting#Early_KMS_start
# initrd.kernelModules = [ "nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" ]; # NVIDIA
initrd.kernelModules = [ "amdgpu" ];
kernelModules = [ "kvm-intel" ];
initrd.kernelModules = ["amdgpu"];
kernelModules = ["kvm-intel"];
# Specific to used kernel (currently linux_zen)
extraModulePackages = with pkgs.linuxKernel.packages.linux_zen; [
new-lg4ff # Logitech force feedback
@ -96,7 +100,7 @@
sane.enable = true; # Scanning
xpadneo.enable = true; # Xbox Controller
xpadneo.enable = true; # Xbox Controller
};
environment.variables.AMD_VULKAN_ICD = "RADV"; # Choose mesa driver by default