2024-03-12 22:14:08 -04:00
|
|
|
# Custom desktop with AMD Ryzen 5 2600, 16GB RAM, AMD Rx 6700, and 1TB SSD + 2TB HDD.
|
2024-03-03 21:42:59 -05:00
|
|
|
|
2024-03-06 23:56:27 -05:00
|
|
|
{ config, pkgs, lib, ... }:
|
2024-03-03 21:42:59 -05:00
|
|
|
|
|
|
|
{
|
2024-03-24 14:06:24 -04:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
2024-03-03 21:42:59 -05:00
|
|
|
|
|
|
|
# Bootloader.
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
networking.hostName = "mauville"; # Define your hostname.
|
2024-03-06 23:56:27 -05:00
|
|
|
|
2024-03-16 13:23:59 -04:00
|
|
|
services.xserver = {
|
|
|
|
# Prevent system sleep after reboot to login screen.
|
|
|
|
displayManager.gdm.autoSuspend = false;
|
|
|
|
# Add AMDGPU driver.
|
|
|
|
videoDrivers = [ "amdgpu" ];
|
2024-03-06 23:56:27 -05:00
|
|
|
};
|
2024-03-03 21:42:59 -05:00
|
|
|
|
2024-03-16 13:23:59 -04:00
|
|
|
hardware.opengl = {
|
|
|
|
# Add ROCM annd AMD Vulkan driver.
|
2024-03-24 14:06:24 -04:00
|
|
|
extraPackages = with pkgs; [ rocmPackages.clr.icd amdvlk ];
|
2024-03-16 13:23:59 -04:00
|
|
|
# Add support for 32bit apps.
|
|
|
|
driSupport32Bit = true;
|
2024-03-24 14:06:24 -04:00
|
|
|
extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
|
2024-03-16 13:23:59 -04:00
|
|
|
};
|
2024-03-24 11:40:53 -04:00
|
|
|
|
2024-03-24 18:13:47 -04:00
|
|
|
home-manager.users.aly = import ../../home/aly-hyprland.nix;
|
2024-03-24 14:06:24 -04:00
|
|
|
|
2024-03-28 16:13:46 -04:00
|
|
|
homeLab.enable = true;
|
|
|
|
programs.steamGames.enable = true;
|
|
|
|
desktopConfig.enable = true;
|
|
|
|
|
2024-03-16 13:23:59 -04:00
|
|
|
system.stateVersion = "23.11";
|
2024-03-03 21:42:59 -05:00
|
|
|
}
|