Add NixOS dual-configuration setup (dev and gaming profiles)

Co-authored-by: ragusa-it <196988693+ragusa-it@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-01 19:35:39 +00:00
parent cf10576824
commit bf80ac7579
6 changed files with 653 additions and 1 deletions

View File

@@ -0,0 +1,42 @@
# This is a placeholder hardware-configuration.nix file.
#
# IMPORTANT: Replace this file with your actual hardware-configuration.nix
# generated during NixOS installation, typically found at:
# /etc/nixos/hardware-configuration.nix
#
# To generate a new hardware configuration, run:
# sudo nixos-generate-config --show-hardware-config > hardware-configuration.nix
#
# This placeholder will NOT work for actual system builds.
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
# Example boot configuration (replace with your actual hardware)
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
# Example filesystem configuration (replace with your actual mounts)
# fileSystems."/" = {
# device = "/dev/disk/by-uuid/YOUR-ROOT-UUID";
# fsType = "ext4";
# };
#
# fileSystems."/boot" = {
# device = "/dev/disk/by-uuid/YOUR-BOOT-UUID";
# fsType = "vfat";
# };
#
# swapDevices = [
# { device = "/dev/disk/by-uuid/YOUR-SWAP-UUID"; }
# ];
# CPU microcode updates for AMD
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}