95 lines
1.6 KiB
Nix
95 lines
1.6 KiB
Nix
{ lib, config, pkgs, modulesPath, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./network-configuration.nix
|
|
./core/config.nix
|
|
|
|
./modules/syncthing.nix
|
|
./modules/disko.nix
|
|
./modules/zfs.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
|
|
];
|
|
|
|
}
|