parent
5bc625a883
commit
7db7982b41
3 changed files with 2 additions and 3 deletions
hosts
|
@ -17,7 +17,7 @@
|
|||
inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
|
||||
inputs.nixos-hardware.nixosModules.common-gpu-amd
|
||||
(self.lib.createSystemModule "home-pc" {
|
||||
hardwareConfig = ../hardware/home-pc.nix;
|
||||
hardwareConfig = ../hosts/home-pc/hardware.nix;
|
||||
config = ../hosts/home-pc/default.nix;
|
||||
})
|
||||
self.lib.createMediaGroup
|
||||
|
@ -57,7 +57,7 @@
|
|||
inputs.nixos-hardware.nixosModules.common-gpu-intel-kaby-lake
|
||||
inputs.matrix-appservices.nixosModule
|
||||
(self.lib.createSystemModule "home-server" {
|
||||
hardwareConfig = ../hardware/lattepanda.nix;
|
||||
hardwareConfig = ../hosts/home-server/hardware.nix;
|
||||
config = ../hosts/home-server/default.nix;
|
||||
})
|
||||
self.lib.createMediaGroup
|
||||
|
|
26
hosts/home-pc/hardware.nix
Normal file
26
hosts/home-pc/hardware.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
# 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,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
boot.initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"ahci"
|
||||
"xhci_pci"
|
||||
"usb_storage"
|
||||
"usbhid"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
21
hosts/home-server/hardware.nix
Normal file
21
hosts/home-server/hardware.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"nvme"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"sdhci_pci"
|
||||
"rtsx_usb_sdmmc"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.kernelParams = [ "i915.enable_guc=3" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue