refactor(modules/hardware): move hardware config to modules
This commit is contained in:
parent
cb01ba95b0
commit
067e0c9970
7 changed files with 40 additions and 10 deletions
|
@ -1,30 +1,24 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
system.mainUser = "rafiq";
|
||||
system.bootloader = "systemd-boot";
|
||||
hardware.drives.btrfs = {
|
||||
enable = true;
|
||||
drive = "/dev/disk/by-id/nvme-CT2000P3SSD8_2325E6E77434";
|
||||
ephemeralRoot = true;
|
||||
};
|
||||
hardware.platform = "amd";
|
||||
hardware.gpu = "nvidia";
|
||||
|
||||
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
networking.hostName = "nemesis"; # Define your hostname.
|
||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue