mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 15:43:55 -05:00
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
# Custom desktop with AMD Ryzen 5 2600, 16GB RAM, AMD Rx 6700, and 1TB SSD + 2TB HDD.
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
# ../../modules/gnome
|
|
# ../../modules/kde.nix
|
|
../../modules/hyprland.nix
|
|
../../modules/homelab
|
|
../../modules/steam.nix
|
|
../../system
|
|
../../users/aly.nix
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
# Bootloader.
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
networking.hostName = "mauville"; # Define your hostname.
|
|
|
|
services.xserver = {
|
|
# Prevent system sleep after reboot to login screen.
|
|
displayManager.gdm.autoSuspend = false;
|
|
# Add AMDGPU driver.
|
|
videoDrivers = [ "amdgpu" ];
|
|
};
|
|
|
|
hardware.opengl = {
|
|
# Add ROCM annd AMD Vulkan driver.
|
|
extraPackages = with pkgs; [ rocmPackages.clr.icd amdvlk ];
|
|
# Add support for 32bit apps.
|
|
driSupport32Bit = true;
|
|
extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
|
|
};
|
|
|
|
home-manager.users.aly = import ../../home/aly-hyprland.nix;
|
|
|
|
system.stateVersion = "23.11";
|
|
}
|