mirror of
https://github.com/zephrynis/nix-flake.git
synced 2026-02-18 20:21:53 +00:00
83 lines
2.0 KiB
Nix
83 lines
2.0 KiB
Nix
{ config, pkgs, inputs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
../../system/nvidia.nix
|
|
];
|
|
|
|
# Desktop PC specific configuration
|
|
# RTX 3080 - Enable open-source kernel module for better performance
|
|
hardware.nvidia.open = lib.mkForce true;
|
|
|
|
networking.hostName = "zeph-desktop";
|
|
|
|
# Users configuration
|
|
users.users.zeph = { # Change "yourusername" to your actual username
|
|
isNormalUser = true;
|
|
description = "Zephrynis"; # Change this
|
|
extraGroups = [ "networkmanager" "wheel" "video" "audio" ];
|
|
shell = pkgs.zsh; # or pkgs.bash
|
|
};
|
|
|
|
# Enable zsh system-wide
|
|
programs.zsh.enable = true;
|
|
|
|
# Display manager and desktop environment / window manager
|
|
services.xserver = {
|
|
enable = true;
|
|
|
|
# Display manager
|
|
# displayManager.gdm.enable = true;
|
|
|
|
# Desktop environment (choose one, or comment all for a standalone WM)
|
|
# desktopManager.gnome.enable = true;
|
|
# desktopManager.plasma5.enable = true;
|
|
|
|
# Window manager (uncomment if you want a standalone WM)
|
|
# windowManager.i3.enable = true;
|
|
# windowManager.bspwm.enable = true;
|
|
};
|
|
|
|
# Optional: Enable Wayland compositor
|
|
programs.hyprland = {
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
|
};
|
|
|
|
services.displayManager.sddm = {
|
|
enable = true;
|
|
wayland.enable = true;
|
|
};
|
|
|
|
# Desktop-specific packages (gaming, streaming, etc.)
|
|
environment.systemPackages = with pkgs; [
|
|
# Add desktop-specific packages here
|
|
# discord
|
|
# steam
|
|
# obs-studio
|
|
|
|
# NVIDIA utilities
|
|
nvtopPackages.full # GPU monitoring tool
|
|
vulkan-tools # Vulkan utilities (vulkaninfo, etc.)
|
|
glxinfo # OpenGL information
|
|
];
|
|
|
|
# Gaming support (uncomment if needed)
|
|
# programs.steam.enable = true;
|
|
# programs.gamemode.enable = true;
|
|
|
|
# Fonts
|
|
fonts.packages = with pkgs; [
|
|
noto-fonts
|
|
noto-fonts-cjk-sans
|
|
noto-fonts-emoji
|
|
liberation_ttf
|
|
fira-code
|
|
fira-code-symbols
|
|
nerd-fonts.fira-code
|
|
nerd-fonts.jetbrains-mono
|
|
nerd-fonts.iosevka
|
|
];
|
|
}
|