mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-11 13:01:01 -05:00
Dirty
This commit is contained in:
parent
c8e1248e1d
commit
5dc4dfee11
2 changed files with 5 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue