moved hosts/ to top level
This commit is contained in:
parent
0cddc8eede
commit
09bf89f02b
12 changed files with 0 additions and 0 deletions
91
hosts/hades/default.nix
Normal file
91
hosts/hades/default.nix
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
{ 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
|
||||
];
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue