entirely vibed refactor

This commit is contained in:
alisceon 2026-03-10 21:50:51 +01:00
parent cea12431ff
commit c343c52ab7
78 changed files with 884 additions and 1099 deletions

View file

@ -0,0 +1,81 @@
{ config, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
networking = {
hostName = "tower";
interfaces.enp10s0.wakeOnLan.enable = true;
firewall.allowedUDPPorts = [ 9 ];
};
time.hardwareClockInLocalTime = true;
boot = {
initrd.enable = true;
loader = {
efi.canTouchEfiVariables = true;
systemd-boot = {
enable = true;
windows = {
"nvme0n1p1" = {
title = "Windows";
efiDeviceHandle = "FS0";
sortKey = "1";
};
};
edk2-uefi-shell = {
enable = true;
sortKey = "0";
};
};
};
kernelPackages = pkgs.linuxPackages_6_18;
};
hardware = {
graphics = {
enable = true;
extraPackages = with pkgs; [ nvidia-vaapi-driver ];
};
nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = true;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
};
services = {
xserver.videoDrivers = [ "nvidia" ];
openssh.enable = true;
};
environment = {
variables = {
GBM_BACKEND = "nvidia-drm";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
MOZ_DISABLE_RDD_SANDBOX = "1";
LIBVA_DRIVER_NAME = "nvidia";
};
systemPackages = [
pkgs.efibootmgr
pkgs.prismlauncher
pkgs.nvtopPackages.nvidia
pkgs.gamescope
];
};
programs = {
gamemode.enable = true;
steam = {
enable = true;
remotePlay.openFirewall = true;
extraCompatPackages = [ pkgs.proton-ge-bin ];
package = pkgs.steam.override {
extraPkgs = _pkgs: [ pkgs.gamemode ];
};
};
};
}

View file

@ -0,0 +1,39 @@
# 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 =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/0fd6a4e2-3fa3-4a9a-90fa-8679feb0196d";
fsType = "btrfs";
options = [ "subvol=@" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/E212-41FD";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
# 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.enp10s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}