DashNix/nix/hardware/spaceship/configuration.nix
2024-07-10 17:03:31 +02:00

39 lines
776 B
Nix

{ pkgs, lib, ... }:
{
imports = [
../../modules/conf.nix
];
# config variables
conf = {
monitor = "DP-1";
gaming = {
enable = true;
};
streamdeck.enable = true;
hostname = "spaceship";
};
virtualisation.virtualbox.host.enable = true;
# enable hardware acceleration and rocm
hardware.xone.enable = true;
hardware.graphics.extraPackages = with pkgs; [
libvdpau-va-gl
vaapiVdpau
rocmPackages.clr.icd
rocm-opencl-runtime
];
hardware.graphics = {
enable = true;
enable32Bit = lib.mkDefault true;
};
networking.firewall = {
allowedTCPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
allowedUDPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
};
}