mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-09-20 00:59:04 +05:30
34 lines
725 B
Nix
34 lines
725 B
Nix
{config, ...}: {
|
|
flake.modules.nixos.arcturus = {
|
|
lib,
|
|
pkgs,
|
|
system,
|
|
...
|
|
} @ innerArgs: {
|
|
imports = with config.flake.modules.nixos; [
|
|
hardware
|
|
];
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
"nvme"
|
|
"xhci_pci"
|
|
"ahci"
|
|
"usbhid"
|
|
"usb_storage"
|
|
"sd_mod"
|
|
];
|
|
boot.initrd.kernelModules = [];
|
|
boot.kernelModules = ["kvm-amd"];
|
|
boot.extraModulePackages = [];
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault innerArgs.config.hardware.enableRedistributableFirmware;
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
nixpkgs.hostPlatform = lib.mkDefault system;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
nvtopPackages.amd
|
|
];
|
|
};
|
|
}
|