added template hosts/orcus/ config
This commit is contained in:
parent
ffb2241e23
commit
0de7ae5a43
7 changed files with 443 additions and 0 deletions
94
hosts/orcus/default.nix
Normal file
94
hosts/orcus/default.nix
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
{ inputs, outputs, modulesPath, lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
||||
## Host specific files
|
||||
./hardware-configuration.nix # hardware config
|
||||
./modules # more host specific configs
|
||||
|
||||
## Shared 'core' config options
|
||||
../../core/config.nix
|
||||
|
||||
];
|
||||
|
||||
## ooh, hostname - this one's important!
|
||||
networking.hostName = "hades";
|
||||
|
||||
hardware = {
|
||||
|
||||
## No bluetooth inside Hades (yet)
|
||||
bluetooth.enable = false;
|
||||
|
||||
graphics = {
|
||||
enable = true;
|
||||
#enable32Bit = false;
|
||||
|
||||
## Packages for the iGPU inside Hades
|
||||
extraPackages = with pkgs; [
|
||||
#intel-compute-runtime
|
||||
#intel-media-driver
|
||||
#vaapiIntel
|
||||
#vaapiVdpau
|
||||
#libvdpau-va-gl
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
## Packages for the dGPU inside Hades
|
||||
amdgpu = {
|
||||
initrd.enable = true;
|
||||
opencl.enable = true;
|
||||
## Vulkan packages for the dGPU inside Hades
|
||||
amdvlk = {
|
||||
#enable = false;
|
||||
#package = [ ];
|
||||
#support32Bit.enable = false;
|
||||
#supportExperimental.enable = false;
|
||||
#settings = {
|
||||
#};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
programs = {
|
||||
|
||||
## For tweaking system performance
|
||||
corectrl = {
|
||||
enable = true;
|
||||
## Allows tweaking GPU performance
|
||||
gpuOverclock = {
|
||||
enable = true;
|
||||
## Needed for radeon GPU overclocking
|
||||
ppfeaturemask = "0xfffd7fff";
|
||||
};
|
||||
};
|
||||
## Performance tweaking continued
|
||||
tuxclocker = {
|
||||
enable = false;
|
||||
enableAMD = true;
|
||||
useUnfree = true;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
## Some packages for managing the hardware inside Hades
|
||||
environment.systemPackages = with pkgs; [
|
||||
#umr
|
||||
lact
|
||||
radeontop
|
||||
#amdgpu_top
|
||||
#radeontools
|
||||
#radeon-profile
|
||||
nvtopPackages.amd
|
||||
];
|
||||
|
||||
systemd = {
|
||||
packages = with pkgs; [
|
||||
lact
|
||||
];
|
||||
services.lactd.wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue