This commit is contained in:
Annika Merris 2024-05-21 11:34:41 -04:00
parent c8e1248e1d
commit 5dc4dfee11
2 changed files with 5 additions and 7 deletions

View file

@ -12,12 +12,10 @@ inputs.nixpkgs.lib.nixosSystem {
lix-module.nixosModules.default
home-manager.nixosModules.home-manager
sops-nix.nixosModules.sops
./hardware-configuration.nix
../../modules/common
../../modules/nixos
{
imports = [
./hardware-configuration.nix
];
# something with overlays, I don't get those yet.
# Hardware

View file

@ -1,12 +1,12 @@
{ inputs, globals, config, lib, pkgs, modulesPath, ... }:
with inputs;
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
# boot.loader.grub.device = "/dev/vda";
boot.loader.grub.device = "/dev/vda";
services.xserver.videoDrivers = [ "amdgpu" ]; # TODO: I use wayland, do I need this?
hardware.enableRedistributableFirmware = true;
powerManagement.cpuFreqGovernor = "performance";
@ -26,6 +26,6 @@ with inputs;
swapDevices = [ ];
nixpkgs.hostPlatform = nixpkgs.lib.mkDefault "x86_64-linux";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = true;
}