Fix: update desktop configuration and hardware settings for improved setup

This commit is contained in:
2025-10-28 01:29:40 +00:00
parent c36e4ba6e0
commit 2318dbe18e
3 changed files with 478 additions and 45 deletions

View File

@@ -1,14 +1,14 @@
{ config, pkgs, ... }:
{ config, pkgs, inputs, ... }:
{
# Desktop PC specific configuration
networking.hostName = "desktop";
networking.hostName = "zeph-desktop";
# Users configuration
users.users.yourusername = { # Change "yourusername" to your actual username
users.users.zeph = { # Change "yourusername" to your actual username
isNormalUser = true;
description = "Your Name"; # Change this
description = "Zephrynis"; # Change this
extraGroups = [ "networkmanager" "wheel" "video" "audio" ];
shell = pkgs.zsh; # or pkgs.bash
};
@@ -21,7 +21,7 @@
enable = true;
# Display manager
displayManager.gdm.enable = true;
# displayManager.gdm.enable = true;
# Desktop environment (choose one, or comment all for a standalone WM)
# desktopManager.gnome.enable = true;
@@ -33,10 +33,16 @@
};
# Optional: Enable Wayland compositor
# programs.hyprland = {
# enable = true;
# xwayland.enable = true;
# };
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; [

View File

@@ -1,40 +1,39 @@
# This file should be generated by running:
# nixos-generate-config --show-hardware-config > hardware-configuration.nix
#
# Run this command on your DESKTOP to get the correct hardware configuration
# Then copy the output here.
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ ];
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
# PLACEHOLDER: Replace this entire file with your actual hardware configuration
# You can generate it by running the command mentioned above on your NixOS system
boot.initrd.availableKernelModules = [ ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/0e7eaa23-aef5-4e29-9967-4392034bf652";
fsType = "ext4";
};
# Swap configuration
# swapDevices = [ ];
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/4D7C-4370";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
# CPU microcode updates (uncomment for your CPU)
# hardware.cpu.intel.updateMicrocode = true;
# hardware.cpu.amd.updateMicrocode = true;
swapDevices = [ ];
# NVIDIA drivers (uncomment if you have an NVIDIA GPU)
# services.xserver.videoDrivers = [ "nvidia" ];
# hardware.nvidia = {
# modesetting.enable = true;
# powerManagement.enable = false;
# open = false;
# nvidiaSettings = true;
# };
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f0u7i2.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}