remove nixos-hardware
This commit is contained in:
parent
852c6454e1
commit
f4589b8f40
16
flake.lock
16
flake.lock
|
@ -497,21 +497,6 @@
|
||||||
"type": "github"
|
"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": {
|
"nixos-wsl": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_4",
|
"flake-compat": "flake-compat_4",
|
||||||
|
@ -703,7 +688,6 @@
|
||||||
"nix-colors": "nix-colors",
|
"nix-colors": "nix-colors",
|
||||||
"nix-gaming": "nix-gaming",
|
"nix-gaming": "nix-gaming",
|
||||||
"nixos": "nixos",
|
"nixos": "nixos",
|
||||||
"nixos-hardware": "nixos-hardware",
|
|
||||||
"nixos-wsl": "nixos-wsl",
|
"nixos-wsl": "nixos-wsl",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
"spicetify-nix": "spicetify-nix",
|
"spicetify-nix": "spicetify-nix",
|
||||||
|
|
|
@ -47,7 +47,6 @@
|
||||||
|
|
||||||
nil.url = "github:oxalica/nil";
|
nil.url = "github:oxalica/nil";
|
||||||
nur.url = "github:nix-community/NUR";
|
nur.url = "github:nix-community/NUR";
|
||||||
nixos-hardware.url = "github:nixos/nixos-hardware";
|
|
||||||
nix-colors.url = "github:misterio77/nix-colors";
|
nix-colors.url = "github:misterio77/nix-colors";
|
||||||
nixos-wsl.url = "github:nix-community/nixos-wsl";
|
nixos-wsl.url = "github:nix-community/nixos-wsl";
|
||||||
};
|
};
|
||||||
|
@ -59,7 +58,6 @@
|
||||||
home,
|
home,
|
||||||
hyprland,
|
hyprland,
|
||||||
impermanence,
|
impermanence,
|
||||||
nixos-hardware,
|
|
||||||
nur,
|
nur,
|
||||||
...
|
...
|
||||||
} @ inputs:
|
} @ inputs:
|
||||||
|
@ -110,10 +108,7 @@
|
||||||
hosts = {
|
hosts = {
|
||||||
sforza = {
|
sforza = {
|
||||||
modules = [
|
modules = [
|
||||||
nixos-hardware.nixosModules.common-cpu-amd
|
# nixos-hardware.nixosModules.common-pc-laptop-ssd
|
||||||
nixos-hardware.nixosModules.common-cpu-amd-pstate
|
|
||||||
nixos-hardware.nixosModules.common-gpu-amd
|
|
||||||
nixos-hardware.nixosModules.common-pc-laptop-ssd
|
|
||||||
hyprland.nixosModules.default
|
hyprland.nixosModules.default
|
||||||
impermanence.nixosModules.impermanence
|
impermanence.nixosModules.impermanence
|
||||||
];
|
];
|
||||||
|
|
|
@ -26,6 +26,26 @@
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
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;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
time.timeZone = config.vars.timezone;
|
time.timeZone = config.vars.timezone;
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
boot.kernelModules = ["kvm-amd"];
|
boot.kernelModules = ["kvm-amd"];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
|
services.fstrim.enable = true;
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "tank/local/root";
|
device = "tank/local/root";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
|
|
Loading…
Reference in New Issue