Use nixos-hardware to set some hardware specific stuff
This commit is contained in:
parent
1c9931fda2
commit
30209e952d
3 changed files with 12 additions and 14 deletions
|
@ -11,6 +11,8 @@
|
||||||
|
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
|
nixos-hardware.url = github:NixOS/nixos-hardware;
|
||||||
|
|
||||||
nixos-generators = {
|
nixos-generators = {
|
||||||
url = "github:nix-community/nixos-generators";
|
url = "github:nix-community/nixos-generators";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -56,6 +58,7 @@
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{ self
|
{ self
|
||||||
|
, nixos-hardware
|
||||||
, sops
|
, sops
|
||||||
, ha-now-playing
|
, ha-now-playing
|
||||||
, pamedia
|
, pamedia
|
||||||
|
@ -156,6 +159,9 @@
|
||||||
loki = defSystem "x86_64-linux" {
|
loki = defSystem "x86_64-linux" {
|
||||||
imports = [
|
imports = [
|
||||||
(import ./machines/loki/configuration.nix { inherit self nixpkgs; })
|
(import ./machines/loki/configuration.nix { inherit self nixpkgs; })
|
||||||
|
nixos-hardware.nixosModules.common-cpu-amd
|
||||||
|
nixos-hardware.nixosModules.common-gpu-amd
|
||||||
|
nixos-hardware.nixosModules.common-pc-ssd
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-amd" "apple-mfi-fastcharge" ];
|
boot.kernelModules = [ "kvm-amd" "apple-mfi-fastcharge" "zenpower" ];
|
||||||
boot.extraModulePackages = [
|
boot.extraModulePackages = [ ] ++
|
||||||
(with config.boot.kernelPackages; rtl88x2bu)
|
(with config.boot.kernelPackages; [ rtl88x2bu zenpower ]);
|
||||||
];
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-uuid/42065c7e-d0aa-4de8-a913-014cf59d48ac";
|
device = "/dev/disk/by-uuid/42065c7e-d0aa-4de8-a913-014cf59d48ac";
|
||||||
|
|
|
@ -45,16 +45,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.opengl = {
|
hardware.opengl.enable = true;
|
||||||
enable = true;
|
|
||||||
driSupport = true;
|
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
rocm-opencl-icd
|
|
||||||
rocm-opencl-runtime
|
|
||||||
rocm-runtime
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
|
|
||||||
|
@ -65,6 +56,7 @@ in
|
||||||
file
|
file
|
||||||
ht-rust
|
ht-rust
|
||||||
jq
|
jq
|
||||||
|
lm_sensors
|
||||||
nix-template
|
nix-template
|
||||||
nvd
|
nvd
|
||||||
usbutils
|
usbutils
|
||||||
|
|
Loading…
Reference in a new issue