nixcfg/hosts/mauville/default.nix

43 lines
960 B
Nix
Raw Normal View History

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.
{ config, pkgs, lib, ... }:
{
imports =
2024-03-16 13:23:59 -04:00
[
./hardware-configuration.nix
2024-03-13 13:28:54 -04:00
../../users/aly.nix
../../system
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "mauville"; # Define your hostname.
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-16 13:23:59 -04:00
hardware.opengl = {
# Add ROCM annd AMD Vulkan driver.
extraPackages = with pkgs; [
rocmPackages.clr.icd
amdvlk
];
# Add support for 32bit apps.
driSupport32Bit = true;
opengl.extraPackages32 = with pkgs; [
driversi686Linux.amdvlk
];
};
2024-03-15 00:05:25 -04:00
environment.systemPackages = [ pkgs.backblaze-b2 ];
2024-03-16 13:23:59 -04:00
system.stateVersion = "23.11";
}