mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-10 01:24:05 -05:00
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
# 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 = [
|
||
"sg"
|
||
"nvme"
|
||
"xhci_pci"
|
||
"ahci"
|
||
"usbhid"
|
||
"usb_storage"
|
||
"sd_mod"
|
||
];
|
||
boot.initrd.kernelModules = [ ];
|
||
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
||
hardware.amdgpu = {
|
||
initrd.enable = true;
|
||
opencl.enable = true;
|
||
};
|
||
|
||
hardware.keyboard.qmk.enable = true; # QMK development stuff
|
||
environment.systemPackages = with pkgs; [ vial ];
|
||
services.udev.packages = lib.singleton (
|
||
pkgs.writeTextFile {
|
||
name = "59-vial.rules";
|
||
text = ''
|
||
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
|
||
'';
|
||
destination = "/etc/udev/rules.d/59-vial.rules";
|
||
}
|
||
);
|
||
}
|