From 461a2f6f7b4af0276690d6944eed43fea8b6304d Mon Sep 17 00:00:00 2001 From: k3t Date: Tue, 10 Mar 2026 00:54:42 -0600 Subject: [PATCH] add laptop hardware config --- hosts/laptop/hardware-configuration.nix | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 hosts/laptop/hardware-configuration.nix diff --git a/hosts/laptop/hardware-configuration.nix b/hosts/laptop/hardware-configuration.nix new file mode 100755 index 0000000..fc8e8ae --- /dev/null +++ b/hosts/laptop/hardware-configuration.nix @@ -0,0 +1,35 @@ +# 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") + ]; + + fileSystems."/" = + { device = "/dev/disk/by-label/NixOS"; + fsType = "btrfs"; + options = [ "subvol=@" ]; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-label/NixOS"; + fsType = "btrfs"; + options = [ "subvol=@home" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/E0C2-A3A3"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + #swapDevices = + # [ { device = "/dev/disk/by-uuid/fe32f9af-3382-4505-90e3-aaf1c41bf5d4"; } + # ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}