mirror of
https://github.com/zephrynis/nix-flake.git
synced 2026-08-18 05:55:53 +00:00
Initial NixOS flake: Hyprland (end-4 illogical-impulse), NVIDIA, gaming, dev tools
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01C5ydBQk68JYw8HXzUDLAyV
This commit is contained in:
26
hosts/nixos-pc/hardware-configuration.nix
Normal file
26
hosts/nixos-pc/hardware-configuration.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
# PLACEHOLDER — on install day, overwrite this file with the one produced by
|
||||
# nixos-generate-config --root /mnt
|
||||
# (it lands in /mnt/etc/nixos/hardware-configuration.nix), then `git add` it —
|
||||
# flakes only evaluate tracked files. The generated file adds the correct
|
||||
# boot.initrd.availableKernelModules for this machine.
|
||||
#
|
||||
# The labels below match the mkfs commands in README.md (mkfs.ext4 -L nixos,
|
||||
# mkfs.fat -n NIXBOOT), so this stub is bootable even before replacement.
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-label/NIXBOOT";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ]; # 128GB RAM — no swap
|
||||
|
||||
hardware.cpu.intel.updateMicrocode = true;
|
||||
}
|
||||
Reference in New Issue
Block a user