remove nixos-hardware
This commit is contained in:
parent
852c6454e1
commit
f4589b8f40
16
flake.lock
16
flake.lock
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
];
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
boot.kernelModules = ["kvm-amd"];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
services.fstrim.enable = true;
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "tank/local/root";
|
||||
fsType = "zfs";
|
||||
|
|
Loading…
Reference in New Issue