Serenity/core/hosts/hades/default.nix
2024-11-07 15:03:02 +10:00

91 lines
1.5 KiB
Nix

{ lib, config, pkgs, modulesPath, ... }:
{
imports = [
./hardware
./network
../../config.nix
];
nix = {
settings = {
};
gc = {
## Automatically run 'nix-collect-garbage'
automatic = true;
## Ever day.
dates = "daily";
## and clear junk older than x days
options = "--delete-older-than 3d";
## No clue what this does lol.
#persistent = true;
};
};
hardware = {
enableAllFirmware = true;
bluetooth.enable = false;
graphics = {
enable = true;
## Packages for integrated graphics inside Hades
extraPackages = with pkgs; [
intel-compute-runtime
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
};
amdgpu = {
initrd.enable = true;
opencl.enable = true;
amdvlk = {
enable = true;
#package = [ ];
support32Bit.enable = true;
supportExperimental.enable = true;
#settings = {
#};
};
};
};
programs = {
## For tweaking Radeon GPUs
corectrl = {
enable = true;
gpuOverclock = {
enable = true;
## Allows changing clocks and volts
ppfeaturemask = "0xfffd7fff";
};
};
tuxclocker = {
enable = true;
enableAMD = true;
useUnfree = true;
};
};
## Some packages for managing the radeon GPU inside Hades
environment.systemPackages = with pkgs; [
umr
radeontop
amdgpu_top
radeontools
radeon-profile
nvtopPackages.amd
];
}