mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-04-01 02:00:22 +02:00
WIP: Laptop config
This commit is contained in:
70
desktop/default.nix
Normal file
70
desktop/default.nix
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./modules
|
||||
../common
|
||||
];
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot = {
|
||||
windows = {
|
||||
"w" = {
|
||||
title = "Windows";
|
||||
efiDeviceHandle = "HD3b";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "epiquev2";
|
||||
};
|
||||
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
|
||||
hardware = {
|
||||
cpu.amd.updateMicrocode = true;
|
||||
|
||||
amdgpu = {
|
||||
initrd.enable = true;
|
||||
overdrive.enable = true;
|
||||
};
|
||||
|
||||
bluetooth = {
|
||||
settings = {
|
||||
General = {
|
||||
Name = "epiquev2";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
graphics = {
|
||||
extraPackages = with pkgs; [
|
||||
rocmPackages.clr.icd
|
||||
rocmPackages.rocminfo
|
||||
rocmPackages.rocm-smi
|
||||
];
|
||||
};
|
||||
|
||||
amdgpu.opencl.enable = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
Reference in New Issue
Block a user