48 lines
1.7 KiB
Nix
48 lines
1.7 KiB
Nix
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
{
|
|
imports =
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
|
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
boot.extraModulePackages = [ ];
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
boot.zfs.package = pkgs.zfs_2_4;
|
|
swapDevices = [ ];
|
|
hardware.graphics.extraPackages = with pkgs; [
|
|
rocmPackages.clr.icd
|
|
];
|
|
systemd.tmpfiles.rules = [
|
|
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
|
];
|
|
|
|
# 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.<interface>.useDHCP`.
|
|
|
|
#networking.firewall.enable = false;
|
|
|
|
# networking.interfaces.enp12s0.useDHCP = lib.mkDefault true;
|
|
# networking.interfaces.wlp11s0.useDHCP = lib.mkDefault true;
|
|
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
|
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
|
|
|
services.lact = {
|
|
enable = true;
|
|
};
|
|
|
|
services.hardware.openrgb.enable = true;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
system.stateVersion = "25.11";
|
|
networking.hostName = "Aphelion";
|
|
networking.hostId = "b7fa9c25";
|
|
|
|
}
|