Some checks failed
Nix Format Check / check-format (push) Failing after 38s
adds noatime to all devices root partition mount options adds cosmic desktop to workstations adds xanmod kernel to workstations adds xanmod with zfs to servers adds perplexityai extension to brave removes openra flatpak adds threads limit to upgrade command to prevent system freezes removes fcitx5 completely
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
modulesPath,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ /etc/nixos/hardware-configuration.nix ];
|
|
networking.hostName = "mennos-gamingpc";
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-uuid/ac5a70cf-4b12-4d02-b5b4-a6eddf4c40b5";
|
|
fsType = "ext4";
|
|
options = [ "noatime" ];
|
|
};
|
|
|
|
networking.interfaces.enp8s0.wakeOnLan = {
|
|
enable = true;
|
|
};
|
|
|
|
# Bootloader.
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
# Enable Vulkan support for AMD graphics cards
|
|
hardware.graphics.extraPackages32 = with pkgs.pkgsi686Linux; [ amdvlk ];
|
|
|
|
# Swap file (Desktop PC has 48GB of RAM so 8GB swap should be enough)
|
|
swapDevices = [
|
|
{
|
|
device = "/swapfile";
|
|
size = 8192;
|
|
}
|
|
];
|
|
|
|
# Enable graphics
|
|
hardware.graphics = {
|
|
enable = true;
|
|
|
|
# Enable the latest AMDGPU drivers
|
|
extraPackages = with pkgs; [
|
|
amdvlk
|
|
rocmPackages.clr
|
|
];
|
|
};
|
|
|
|
# Add ROCm packages and nvtop
|
|
environment.systemPackages = with pkgs; [
|
|
rocmPackages.rocm-smi
|
|
rocmPackages.clr
|
|
rocmPackages.rocm-core
|
|
rocmPackages.hipcc
|
|
rocmPackages.rocm-device-libs
|
|
nvtopPackages.amd
|
|
];
|
|
}
|