remove nixos-hardware

This commit is contained in:
Ludovico 2023-04-10 09:47:11 +10:00
parent 852c6454e1
commit f4589b8f40
No known key found for this signature in database
GPG Key ID: 3911DD276CFE779C
4 changed files with 23 additions and 22 deletions

View File

@ -497,21 +497,6 @@
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1680876084,
"narHash": "sha256-eP9yxP0wc7XuVaODugh+ajgbFGaile2O1ihxiLxOuvU=",
"owner": "nixos",
"repo": "nixos-hardware",
"rev": "3006d2860a6ed5e01b0c3e7ffb730e9b293116e2",
"type": "github"
},
"original": {
"owner": "nixos",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixos-wsl": {
"inputs": {
"flake-compat": "flake-compat_4",
@ -703,7 +688,6 @@
"nix-colors": "nix-colors",
"nix-gaming": "nix-gaming",
"nixos": "nixos",
"nixos-hardware": "nixos-hardware",
"nixos-wsl": "nixos-wsl",
"nur": "nur",
"spicetify-nix": "spicetify-nix",

View File

@ -47,7 +47,6 @@
nil.url = "github:oxalica/nil";
nur.url = "github:nix-community/NUR";
nixos-hardware.url = "github:nixos/nixos-hardware";
nix-colors.url = "github:misterio77/nix-colors";
nixos-wsl.url = "github:nix-community/nixos-wsl";
};
@ -59,7 +58,6 @@
home,
hyprland,
impermanence,
nixos-hardware,
nur,
...
} @ inputs:
@ -110,10 +108,7 @@
hosts = {
sforza = {
modules = [
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-cpu-amd-pstate
nixos-hardware.nixosModules.common-gpu-amd
nixos-hardware.nixosModules.common-pc-laptop-ssd
# nixos-hardware.nixosModules.common-pc-laptop-ssd
hyprland.nixosModules.default
impermanence.nixosModules.impermanence
];

View File

@ -26,6 +26,26 @@
hardware.bluetooth.enable = true;
# OpenGL
boot = {
initrd.kernelModules = ["amdgpu"];
kernelParams = ["amd_pstate=passive" "initcall_blacklist=acpi_cpufreq_init"];
kernelModules = ["amd-pstate"];
};
hardware.cpu.amd.updateMicrocode = true;
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
# mesaPackage = pkgs.mesa_23;
extraPackages = with pkgs; [
amdvlk
rocm-opencl-icd
rocm-opencl-runtime
];
extraPackages32 = with pkgs; [driversi686Linux.amdvlk];
};
networking.networkmanager.enable = true;
time.timeZone = config.vars.timezone;

View File

@ -12,6 +12,8 @@
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
services.fstrim.enable = true;
fileSystems."/" = {
device = "tank/local/root";
fsType = "zfs";