nix-config/hosts/desktops/rotterdam.nix
2024-01-16 15:30:45 -03:00

74 lines
1.5 KiB
Nix

{ inputs, config, pkgs, lib, ... }:
{
imports = [
# Host-common imports
../common
# Desktop-common imports
./common
# Host-specific imports
./rotterdam
];
networking.hostName = "rotterdam";
services = {
hardware.openrgb.enable = true;
keyd = {
enable = true;
keyboards.main = {
ids = [ "*" ];
settings = {
main = {
capslock = "overload(meta, esc)";
esc = "overload(meta, esc)";
};
shift = {
leftshift = "capslock";
rightshift = "capslock";
};
};
};
};
};
hardware.opengl.extraPackages = with pkgs; [ rocmPackages.clr.icd ];
systemd.targets.hibernate.enable = false; # disable non-functional hibernate
nix.nixPath = [ "nixos-config=${./rotterdam.nix}" ];
# users.users.user.extraGroups = [ "corectrl" ];
boot.kernelParams = [
"processor.max_cstate=1" # Fixes bug where ryzen cpus freeze when in highest C state
"clearcpuid=514"
];
programs = {
# corectrl.enable = true;
steam.dedicatedServer.openFirewall = true;
};
environment.systemPackages = with pkgs; [
cemu
citrix_workspace
ollama
# retroarchFull
rpcs3
yuzu-ea
# Packages from 3rd party overlays
emulationstation-de
];
networking.firewall = {
allowedTCPPorts = [
27036 # Steam remote play
27037 # Steam remote play
];
allowedUDPPorts = [
27031 # Steam remote play
27036 # Steam remote play
];
};
}